.psr-panel { min-width: 0; display: grid; align-content: start; gap: .55rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.psr-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .15rem .65rem; }
.psr-zoom { min-height: 1.9rem; padding: .16rem 0; border: 0; color: var(--blue-dark); background: transparent; font: 600 .81rem/1.25 var(--font); text-decoration: underline; text-underline-offset: .16em; }
.psr-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .28rem .65rem; }
.psr-controls label { display: inline-flex; align-items: center; gap: .33rem; color: var(--slate); font-size: .8rem; font-weight: 580; }
.psr-region select { max-width: 100%; min-height: 2.1rem; border: 1px solid var(--line-strong); border-radius: .3rem; padding: .2rem .26rem; background: var(--surface); color: var(--navy); font: inherit; }
.psr-ads { min-height: 2rem; cursor: pointer; }
.psr-ads input { width: 1rem; height: 1rem; margin: 0; accent-color: #285c8d; }
.psr-plot { --psr-chart-height: 9.8rem; display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .4rem; margin-top: .28rem; }
.psr-scale { display: flex; height: var(--psr-chart-height); flex-direction: column; justify-content: space-between; text-align: right; }
.psr-scale span { position: relative; color: var(--slate); font: .72rem/1 var(--mono); }
.psr-scale span:first-child { transform: translateY(-.28em); }
.psr-scale span:last-child { transform: translateY(.28em); }
.psr-bars { display: flex; min-width: 0; position: relative; }
.psr-bars::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--psr-chart-height); border-block: 1px solid #ccd6e1; background: linear-gradient(to bottom, transparent calc(50% - .5px), #dae1e9 calc(50% - .5px), #dae1e9 calc(50% + .5px), transparent calc(50% + .5px)); pointer-events: none; }
.psr-month { position: relative; display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: .16rem; background: transparent; color: var(--slate); }
.psr-stack { display: flex; width: 100%; justify-content: center; height: var(--psr-chart-height); }
.psr-column { display: flex; flex-direction: column-reverse; justify-content: flex-start; width: min(70%, 3.2rem); height: 100%; }
.psr-column > span { display: block; flex-shrink: 0; }
.psr-plusRevenue { background: #315f88; }
.psr-goRevenue { background: #3e837b; }
.psr-freeAds { background: repeating-linear-gradient(135deg,#89659c 0 3px,#bda1cb 3px 5px); }
.psr-goAds { background: repeating-linear-gradient(45deg,#a46832 0 3px,#d7ab78 3px 5px); }
.psr-month-name { margin: .22rem auto 0; padding: .09rem .06rem; border-radius: .18rem; font: 560 .79rem/1.2 var(--font); }
.psr-year { min-height: .8rem; color: var(--muted); font: .64rem/1.2 var(--mono); }
.psr-month[aria-pressed="true"] .psr-month-name { color: white; background: #244d75; box-shadow: 0 0 0 .12rem #244d75; }
.psr-month:hover .psr-stack { background: #9bb8d31a; }
.psr-details { border-top: 1px solid var(--line-strong); padding-top: .45rem; }
.psr-detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; color: var(--navy); font-size: .96rem; }
.psr-month-total { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: .32rem; }
.psr-month-total > span { color: var(--slate); font: 500 .78rem/1.25 var(--font); }
.psr-key { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem 1rem; list-style: none; margin: .36rem 0 0; }
.psr-key > div { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem; }
.psr-key dt { display: inline-flex; align-items: center; gap: .32rem; color: var(--slate); font-size: .8rem; }
.psr-key dd { margin: 0; color: var(--navy); font: 560 .8rem/1.35 var(--font); }
.psr-swatch { flex-shrink: 0; width: .7rem; height: .7rem; border-radius: .1rem; }
@container (max-width: 440px) {
  .psr-controls { column-gap: .4rem; }
  .psr-key { column-gap: .6rem; }
  .psr-plot { gap: .3rem; }
  .psr-month-name { font-size: .7rem; }
}
