/* Chest leads in 3D */
.h3-root { display: grid; gap: 8px; }
.h3-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.h3-seg { display: flex; flex: 1 1 auto; }
.h3-seg > button { flex: 1 1 auto; padding-inline: 8px; font-size: 13px; }
.h3-stage { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #050d18; }
.h3-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.h3-layer[hidden] { display: none; }
.h3-canvas { cursor: grab; touch-action: none; }
.h3-canvas:active { cursor: grabbing; }
.h3-canvas:focus-visible { outline: 3px solid var(--focus, #f4b740); outline-offset: -3px; }
.h3-read { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.h3-axis { margin: 0; font-size: 14px; line-height: 1.45; }
.h3-axis b { font-size: 20px; margin-right: 2px; font-variant-numeric: tabular-nums; color: var(--accent); }
.h3-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.h3-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.h3-chips li { display: grid; justify-items: center; gap: 1px; width: 30px; padding: 4px 0 3px; border-radius: 8px; border: 1px solid transparent; }
.h3-chips li.is-transition { border-color: #d97706; background: rgba(217, 119, 6, 0.08); }
.h3-chips b { font-size: 11.5px; }
.h3-chips small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.h3-bar-wrap { position: relative; width: 8px; height: 34px; border-radius: 4px; background: var(--line); overflow: hidden; }
.h3-bar-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--muted); opacity: 0.6; }
.h3-bar-wrap i { position: absolute; left: 0; right: 0; }
.h3-bar-wrap i.pos { bottom: 50%; background: #14b8a6; }
.h3-bar-wrap i.neg { top: 50%; background: #e15548; }
.h3-rot { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.h3-legend { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.h3-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.h3-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.h3-key-pos, .h3-key-neg { width: 10px; height: 10px; border-radius: 50%; background: #14b8a6; }
.h3-key-neg { background: #e15548; }
.h3-key-now { background: #d97706; }
.h3-key-loop { background: repeating-linear-gradient(90deg, #087d85 0 4px, transparent 4px 6px); }
.h3-key-axis { background: #087d85; height: 4px; }
@media (max-width: 520px) { .h3-read { grid-template-columns: minmax(0, 1fr); } }
