.pc-hc {
    --hc-accent: var(--color-primary-dark, #0d4ed1);
    --hc-ink: var(--color-text, #0a1626);
    --hc-muted: #42536a;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: clamp(14px, 2.2vw, 25px);
    border: 1px solid #c5d3e6;
    border-radius: 12px;
    background: #fff;
    color: var(--hc-ink);
    box-shadow: 0 10px 32px #13325912;
    font-variant-numeric: tabular-nums;
}

.pc-hc .pc-hc__header h2 {
    margin: 0 0 4px;
    padding: 0;
    color: var(--hc-ink);
    font-size: clamp(23px, 2.1vw, 30px);
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.pc-hc .pc-hc__header p, .pc-hc .pc-hc__chart-heading p {
    margin: 0;
    padding: 0;
    color: var(--hc-muted);
    font-size: 14px;
    line-height: 1.45;
}

.pc-hc__filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 14px 0 10px; }
.pc-hc__metrics, .pc-hc__periods { display: flex; padding: 2px; border: 1px solid #d5dfed; border-radius: 6px; }
.pc-hc button { font: inherit; }
.pc-hc__metrics button, .pc-hc__periods button {
    min-height: 38px;
    padding: 3px clamp(4px, 1vw, 11px);
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.25;
}
.pc-hc__metrics button[aria-pressed="true"] { background: #eaf2ff; color: #153e91; }
.pc-hc__periods button[aria-pressed="true"] { background: var(--hc-accent); color: #fff; }
.pc-hc button:disabled { opacity: .56; cursor: default; }
.pc-hc :is(button, summary, a):focus-visible { outline: 2px solid #0d4ed1; outline-offset: 3px; }

.pc-hc__chart-heading { padding: 10px 12px; border-radius: 7px; background: #f0f5ff; }
.pc-hc .pc-hc__chart-heading h3 { margin: 0 0 3px; padding: 0; color: #153e91; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.25; }
.pc-hc__plot {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 2px;
    height: 74px;
    margin-top: 9px;
    background: repeating-linear-gradient(to top, #dfe7f1 0 1px, transparent 1px 18px);
}
.pc-hc__bar { position: relative; min-width: 0; padding: 0; border: 0; border-bottom: 1px solid #9aacc3; background: transparent; cursor: pointer; }
.pc-hc__bar::before { position: absolute; right: 12%; bottom: 0; left: 12%; height: var(--bar-height); border-radius: 3px 3px 0 0; background: var(--hc-accent); content: ""; }
.pc-hc__bar[aria-pressed="true"], .pc-hc__bar:hover { background: #dce9fd; }
.pc-hc__axis, .pc-hc__day, .pc-hc__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-hc__axis, .pc-hc__footer { color: var(--hc-muted); font-size: 12px; }
.pc-hc__day { min-height: 46px; }
.pc-hc .pc-hc__selection { margin: 0; padding: 0; color: #2c4260; font-size: 13px; font-weight: 650; line-height: 1.4; }
.pc-hc__day-nav { display: flex; gap: 3px; }
.pc-hc__day-nav button { width: 44px; height: 44px; border: 1px solid #d5dfed; border-radius: 6px; background: #fff; color: #153e91; cursor: pointer; font-size: 21px; line-height: 1; }
.pc-hc__case { margin: 6px 0 0; border-top: 1px solid #d5dfed; }
.pc-hc .pc-hc__case summary, .pc-hc .pc-hc__case p, .pc-hc .pc-hc__case small { margin: 0; padding: 6px 0; color: var(--hc-muted); font-size: 13px; line-height: 1.5; }
.pc-hc .pc-hc__case summary { color: #153e91; font-weight: 700; cursor: pointer; }
.pc-hc__footer { flex-wrap: wrap; margin-top: 5px; }
.pc-hc .pc-hc__footer a { color: var(--hc-accent); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1024px) { .pc-hc { grid-column: 2; grid-row: 1; } }
