/* Price panels and charts (lib/price-views.js, lib/price-charts.js). One chart hue, validated light + dark. */
:root { --pr-line: #1463C2; --pr-grid: #E6E7EB; --pr-up: #17804A; --pr-down: #B3261E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pr-line: #3D8EE6; --pr-grid: #2B2E36; --pr-up: #3DD68C; --pr-down: #FF8A80; } }
:root[data-theme="dark"] { --pr-line: #3D8EE6; --pr-grid: #2B2E36; --pr-up: #3DD68C; --pr-down: #FF8A80; }
.pr-fig { position: relative; margin: 8px 0 4px; }
.pr-chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.pr-grid { stroke: var(--pr-grid); stroke-width: 1; }
.pr-tick { fill: var(--muted); font: 11px var(--body); font-variant-numeric: tabular-nums; }
.pr-end { fill: var(--fg); font: 600 12px var(--body); }
.pr-line { fill: none; stroke: var(--pr-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pr-area { fill: var(--pr-line); opacity: .1; stroke: none; }
.pr-dot { fill: var(--pr-line); stroke: var(--surface); stroke-width: 2; }
.pr-dot.hollow { fill: var(--surface); stroke: var(--pr-line); }
.pr-cross { stroke: var(--muted); stroke-width: 1; pointer-events: none; }
.pr-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.12); max-width: 240px; z-index: 2; }
.pr-tip b { font-size: 14px; }
.pr-table summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.pr-table table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.pr-table th, .pr-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.pr-ladders { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pr-ladders { grid-template-columns: 1fr 1fr; } }
.pr-ladder { list-style: none; margin: 0; padding: 0; }
.pr-ladder li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pr-ladder li a.on { font-weight: 700; }
.pr-ladder .pr-src { display: block; font-size: 11.5px; color: var(--muted); }
.pr-ladder b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-ladder .none { color: var(--muted); font-weight: 400; }
.pr-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--sunken); color: var(--muted); margin-left: 4px; }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; }
.pr-stat { background: var(--sunken); border-radius: 10px; padding: 8px 10px; }
.pr-stat span { display: block; font-size: 12px; color: var(--muted); }
.pr-stat strong { font-size: 17px; }
.pr-up, .pr-stat .pr-up { color: var(--pr-up); } .pr-down, .pr-stat .pr-down { color: var(--pr-down); }
.pr-stat strong span { display: inline; font-size: inherit; }
.pr-rows { list-style: none; padding: 0; margin: 0; }
.pr-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pr-rows .feed-sub { display: block; }
.pr-calc fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0 0 12px; }
.pr-calc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pr-calc label { display: block; font-size: 13px; }
.pr-calc input, .pr-calc select { width: 100%; }
.pr-verdict { font-size: 18px; }
.pr-hero { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 4px 0; }
/* The charts scale with the screen: on phones the drawing shrinks to about half, so text and dots get bigger units. */
.pr-dot { r: 4px; }
@media (max-width: 600px) {
  .pr-tick { font-size: 19px; }
  .pr-end { font-size: 21px; }
  .pr-dot { r: 7px; stroke-width: 3; }
  .pr-line { stroke-width: 3.5; }
  .pr-hero { font-size: 34px; }
}
