.pc-history { scroll-margin-top: 92px; }
.pc-history .pc-history-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 16px; margin:0 0 8px; }
.pc-history .pc-period-caption { margin:0; color:#435970; font-size:14px; line-height:1.55; font-weight:500; }
.pc-history .pc-period-options { display:inline-flex; padding:3px; gap:2px; background:#f1f5fa; border:1px solid #d5dfea; border-radius:9px; box-sizing:border-box; }
.pc-history .pc-period-options button { appearance:none; background:transparent; color:#39516b; border:0; box-shadow:none; min-height:38px; font:inherit; font-size:14px; line-height:1.35; font-weight:600; padding:6px 15px; border-radius:6px; cursor:pointer; }
.pc-history .pc-period-options button[aria-pressed="true"] { background:#244e75; color:white; }
.pc-history .pc-period-options button { -webkit-tap-highlight-color:transparent; }
.pc-history .pc-period-options button:focus-visible { outline:3px solid #1263c3; outline-offset:2px; }
.pc-history .pc-history-figure { margin:0; }
.pc-history .pc-history-figure svg { display:block; width:100%; height:202px; }
.pc-history figcaption { color:#506273; font-size:13px; line-height:1.65; margin:8px 0 0; }
.pc-history svg text { font-family:inherit; }
@media (max-width:600px) {
  .pc-history .pc-period-caption { font-size:13px; }
  .pc-history .pc-history-toolbar { align-items:flex-start; flex-direction:column; gap:8px; }
  .pc-history .pc-period-options button { min-height:40px; }
  .pc-history .pc-history-figure svg { height:187px; }
  .pc-history figcaption { font-size:12px; }
}
.pc-history.monthly .pc-history-toolbar .pc-period-caption{font-variant-numeric:tabular-nums;color:#344a5b;font-size:15px;font-weight:600}
.pc-history.monthly .legend{display:flex;align-items:center;flex-wrap:wrap;gap:5px 20px;margin:12px 0 0;color:#455d6c;font-size:13px;line-height:1.6}
.pc-history.monthly .legend span{display:inline-flex;align-items:center;gap:7px}
.pc-history.monthly .legend i{width:24px;height:0;border-top:3px solid #206577}
.pc-history.monthly .legend .sample{border-top:2px dashed #687b8b}
.pc-history.monthly .pc-history-figure svg{--pcmh-chart-height:228px;height:calc(var(--pcmh-chart-height) + var(--pcmh-month-space, 0px));overflow:visible;touch-action:pan-y;user-select:none;cursor:crosshair}
.pc-history.monthly .month-browse{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;margin:6px 0 0;border:1px solid #dbe5ed;border-radius:9px;background:#f7fafc}
.pc-history.monthly .month-readout{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;font-size:14px;color:#334e60;font-variant-numeric:tabular-nums}
.pc-history.monthly .month-readout strong{font-size:20px;line-height:1.4;color:#183e51}
.pc-history.monthly .month-readout .kind{font-size:12px}
.pc-history.monthly .month-controls{display:inline-flex;flex:none;gap:4px}
.pc-history.monthly .month-controls button{padding:0;width:44px;height:44px;display:grid;place-items:center;background:white;border:1px solid #c3d3df;border-radius:7px;color:#244e75;cursor:pointer;font:24px/1 Arial,sans-serif}
.pc-history.monthly .month-controls button:disabled{background:transparent;border-color:#d7e1e9;color:#879ba8;cursor:default}
.pc-history.monthly .month-controls button:focus-visible{outline:2px solid #1263c3;outline-offset:1px}
.pc-history.monthly .pc-history-figure figcaption{font-size:13px;line-height:1.6;margin-top:10px}
@media(max-width:600px){
  .pc-history.monthly .pc-history-toolbar .pc-period-caption{font-size:14px}
  .pc-history.monthly .pc-history-figure svg{--pcmh-chart-height:202px}
  .pc-history.monthly .legend{font-size:12px;gap:4px 16px}
  .pc-history.monthly .month-browse{padding:7px 8px;gap:4px}
  .pc-history.monthly .month-readout{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:baseline;font-size:12px}
  .pc-history.monthly .selected-month{grid-column:1/-1}
  .pc-history.monthly .month-readout strong{font-size:18px}
  .pc-history.monthly .month-readout .kind{font-size:11px}
  .pc-history.monthly .pc-history-figure figcaption{font-size:12px}
}
@media(max-width:350px){.pc-history.monthly .month-readout .kind{grid-column:1/-1}}

.pc-history [hidden]{display:none!important}
.pc-history:not(.pcmh-ready) .pc-history-toolbar,.pc-history:not(.pcmh-ready) .pc-history-figure,.pc-history.pcmh-ready .pcmh-fallback{display:none}
.pcmh-fallback{width:100%;border-collapse:collapse}
.pcmh-fallback td,.pcmh-fallback th{padding:.45em;text-align:left}
.pc-history .pc-history-figure svg{overflow:hidden}
.pc-history .month-readout strong{white-space:nowrap}
@media(max-width:350px){.pc-history .month-browse{flex-wrap:wrap}.pc-history .month-controls{margin-left:auto}}
@media(max-width:350px){.pc-history #price-history-heading{font-size:20px}}
