/* Keep history independent from the live detail updates and usable on a phone. */
.tech3d-detail.has-well-history{width:min(880px,calc(100vw - 24px))}
.well-history{margin-top:22px;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--bg)}
.well-history header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.well-history-eyebrow{color:var(--muted);font-size:10px;letter-spacing:.14em}
.well-history h4{margin:5px 0 0;font-size:18px;color:var(--ink)}
.well-history-periods{display:flex;gap:5px;flex-wrap:wrap}
.well-history-periods button[aria-pressed=true]{border-color:var(--blue);background:#27bde61a;color:var(--ink)}
.well-history button:focus-visible,.well-history svg:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.well-history-status{margin:16px 0;color:var(--muted);font-size:12px;min-height:18px}
.well-history-stats{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin:12px 0 22px}
.well-history-stats>div{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:12px}
.well-history-stats span{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}
.well-history-stats strong{color:var(--ink);font-size:18px;line-height:1.4}
.well-history-stats [data-well-stat=change] strong{color:var(--blue)}
.well-history-plot{min-width:0;width:100%}.well-history-plot svg{width:100%;display:block;overflow:visible}
.well-history-grid line{stroke:var(--line);stroke-width:1}.well-history-grid text{fill:var(--muted);font:11px system-ui,sans-serif}
.well-history-line{fill:none;stroke:var(--blue);stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.well-history-dot,.well-history-selected{fill:var(--blue)}.well-history-selected{stroke:var(--panel);stroke-width:2}
.well-history-crosshair{stroke:var(--muted);stroke-dasharray:3 4;opacity:.6}
.tech3d-detail .well-history-readout{color:var(--ink);font-size:13px;min-height:2.5em;padding:10px;background:var(--panel);border-radius:8px}
.tech3d-detail .well-history-note{font-size:11px;line-height:1.7}
.well-history [data-well-refresh]{margin-top:8px}
@media(max-width:600px){.tech3d-detail.has-well-history{padding:16px}.well-history{padding:12px}.well-history-stats{grid-template-columns:1fr 1fr;gap:6px}.well-history-stats>div:first-child{grid-column:1/-1}.well-history-stats strong{font-size:16px}.well-history-periods button{padding:8px 10px;min-height:44px}}
