/*
 * Witch Stats — tool-specific styles (bar/histogram/bubble charts).
 * Requires ../../shared/css/tokens.css and ../../shared/css/tool-shell.css
 * loaded first. Source: build_docs/design_handoff_witch_tools/redesign/tools.html.
 */

.brim-section { margin-top: 56px; }
.brim-h { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 24px; }

.hist { display: flex; align-items: flex-end; gap: 16px; height: 220px; padding-bottom: 2px; border-bottom: 2px solid var(--ink); overflow-x: auto; }
.hist-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 40px; }
.hist-count { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.hist-bar { width: 100%; max-width: 64px; display: flex; flex-direction: column-reverse; border-radius: 2px 2px 0 0; overflow: hidden; background: var(--desk); }
.hist-seg { width: 100%; }
.hist-label { margin-top: 10px; font-size: 11px; color: var(--ink-mid); text-align: center; }

.typebars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; max-width: 640px; }
.typebar-row { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 14px; }
.typebar-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.typebar-track { height: 14px; background: var(--desk); border-radius: 2px; overflow: hidden; }
.typebar-fill { height: 100%; border-radius: 2px; }
.typebar-count { font-size: 13px; color: var(--ink-mid); text-align: right; }

.placebars { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; max-width: 640px; }
.placebar-row { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 14px; }
.placebar-name { font-size: 13px; color: var(--ink-soft); }
.placebar-track { height: 10px; background: var(--desk); border-radius: 2px; overflow: hidden; }
.placebar-fill { height: 100%; border-radius: 2px; background: var(--rust); }
.placebar-count { font-size: 13px; color: var(--ink-mid); text-align: right; }

.witch-tip { position: fixed; background: var(--ink-2); color: var(--on-dark); padding: 10px 14px; border-radius: 4px; font-size: 12.5px; line-height: 1.55; max-width: 280px; pointer-events: none; z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,.35); display: none; }
.witch-tip b { color: #fff; }
.wbubble { fill: var(--wave-core-alt); fill-opacity: .75; stroke: var(--wave-core); stroke-width: 1; cursor: pointer; transition: fill-opacity 120ms; }
.wbubble:hover { fill-opacity: 1; }
