/* pivot points and Fibonacci */
[data-tool-page="pivots"] .field { grid-template-columns: minmax(0, 1fr); }
[data-tool-page="pivots"] .inp input { width: 100%; }
[data-tool-page="pivots"] .field-row { align-items: start; }
/* a canvas is a replaced element: inset alone leaves it at 300x150, so size it */
[data-tool-page="pivots"] .chart-box > canvas { width: calc(100% - 20px); height: calc(100% - 20px); }
[data-tool-page="pivots"] .tool-grid ~ .grid { margin-top: 16px; }
.pv-symrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pv-symrow input { text-transform: uppercase; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pv-acts .hint { font-size: 12.5px; color: var(--text-3); flex: 1 1 200px; }
.pv-sub { margin: 6px 0 -4px; font-size: 14px; font-weight: 680; color: var(--text); letter-spacing: -.01em; padding-top: 12px; border-top: 1px solid var(--line); }
.pv-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 4px; }
.pv-pt { border: 1px solid var(--line); border-radius: 12px; }
.pv-pt .tbl th { background: var(--bg-soft); }
.pv-pt .tbl td, .pv-pt .tbl th { padding: 8px 12px; }
.pv-pt .tbl td.lv { font-weight: 700; }
.pv-pt .tbl tr.pp td { background: color-mix(in oklab, var(--amber) 13%, transparent); }
.pv-pt .tbl td.nb { font-weight: 750; color: var(--text); text-decoration: underline; text-decoration-color: var(--amber-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pv-note { margin: 0; font-size: 12.5px; color: var(--text-3); }
.pv-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunk); color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.pv-msg:empty { display: none; }
.pv-below { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.pv-box.chart-box.tall { height: 520px; }
.pv-below .tbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pv-below .tbar .seg::-webkit-scrollbar { display: none; }
.pv-below .tbar .seg button { flex: none; }
.pv-ft td, .pv-ft th { padding: 9px 12px; }
.pv-ft tr.ext td:first-child { color: var(--text-3); }
.pv-ft tr.on td { background: color-mix(in oklab, var(--amber) 14%, transparent); font-weight: 650; }
.pv-lg-r { background: var(--text-2); }
.pv-lg-p { background: var(--amber-deep); }
.pv-lg-s { background: var(--text-2); opacity: .55; }
.pv-lg-f { background: var(--text-3); }
.pv-lg-c { background: var(--text); }
.panel-f .srcs img { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin: 0 4px 0 2px; }
@media (max-width: 1100px) { .pv-below { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pv-box.chart-box.tall { height: 460px; } }
