[hidden] { display: none !important; }
.shell { width: min(1240px, calc(100% - 32px)); }
.range-bar, .chart-card { background: #2b181b; border: 1px solid #735037; border-radius: 16px; box-shadow: 0 12px 30px #0003; }
.range-bar { padding: 15px; display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.range-bar label { min-width: 165px; font-size: .82rem; color: #dcc6ab; }
.range-bar input { padding: 10px 12px; color-scheme: dark; }
.range-label { margin-left: auto; align-self: center; color: #ffd98c; font-weight: 700; }
.segmented { display: flex; align-self: end; padding: 3px; border: 1px solid #735037; border-radius: 10px; background: #1a1012; }
.segmented button { background: transparent; border: 0; color: #d7c2aa; padding: .55rem .8rem; }
.segmented button.active { background: #b57c3c; color: #1a1012; }
.cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.card { padding: 18px; min-height: 125px; align-content: start; }
.card strong { font-size: clamp(1.35rem, 2.3vw, 2.1rem); }
.top-card strong { font-size: clamp(1rem, 1.8vw, 1.45rem); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.chart-card { min-width: 0; padding: 20px; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card h2 { font-size: 1.15rem; }
.chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chart-heading span { color: #bda99a; font-size: .82rem; }
.trend-chart { min-height: 245px; overflow: hidden; }
.trend-chart svg { display: block; width: 100%; height: 245px; }
.axis-label { fill: #cbb6a4; font-size: 11px; }
.chart-empty { color: #aa958a; padding: 60px 12px; text-align: center; }
.payment-chart { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 200px; }
.donut { width: 165px; height: 165px; flex: 0 0 165px; border-radius: 50%; display: grid; place-items: center; }
.donut-hole { width: 106px; height: 106px; background: #2b181b; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 700; color: #ffd98c; }
.legend { display: grid; gap: 10px; font-size: .9rem; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.bar-chart { display: grid; gap: 14px; align-content: start; min-height: 200px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.bar-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label strong { color: #ffd98c; white-space: nowrap; }
.bar-track { height: 10px; background: #52383a; border-radius: 999px; overflow: hidden; margin-top: 5px; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b47b38, #f1c575); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cards, .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .top-card { grid-column: 1 / -1; } .payment-chart { gap: 14px; } }
@media (max-width: 560px) {
  .shell { width: calc(100% - 24px); padding-top: 18px; }
  .range-bar { align-items: stretch; }
  .range-bar label { flex: 1 1 100%; }
  .range-label { margin: 0; width: 100%; }
  .cards { gap: 9px; }
  .card { padding: 13px; min-height: 105px; }
  .card strong { font-size: 1.25rem; }
  .charts { grid-template-columns: 1fr; }
  .chart-card.wide, .top-card { grid-column: auto; }
  .chart-card { padding: 15px; }
}
