/* Page-specific layout; cards and products reuse home.css, controls and tables styles.css. */
.st-filters { display: grid; gap: 20px; }
.st-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.st-presets .btn { padding-inline: 18px; }
.st-fields { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1fr) auto; gap: 16px; align-items: end; }
.st-field { display: grid; gap: 8px; min-width: 0; }
.st-field label { font-size: 14px; }
.st-field select { font: inherit; }
.st-field input { min-width: 0; width: 100%; }
.st-fields > .btn { min-height: 44px; }
.st-period-heading { margin: 8px 0 0; align-items: baseline; }
.st-period-heading h2 { font-size: 22px; }
.st-coverage { padding: 14px 20px; border-radius: 12px; background: var(--inner); font-size: 14px; }
.st-metrics { margin-top: 0; }
.st-metrics .metric { display: flex; flex-direction: column; }
.st-metrics .metric-value { margin-top: 14px; }
.st-metrics .metric-note { min-height: 42px; }
.st-change { color: var(--blue); }
.st-chart { position: relative; margin-top: 12px; border-radius: 4px; }
.st-chart:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.st-chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.st-chart-grid { stroke: var(--line); stroke-width: 1; }
.st-chart text { fill: var(--muted); font: 12px Inter, sans-serif; }
.st-chart-bar { fill: var(--gray); }
.st-chart-bar.is-peak { fill: var(--blue); }
.st-chart-bar.is-selected { fill: var(--blue); opacity: 0.72; }
.st-chart-readout { font-size: 14px; margin-top: auto; padding-top: 6px; }
.st-chart-readout strong { font-weight: 700; color: var(--text); }
.st-chart-guide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.st-chart-guide .chart-legend { margin-top: 0; }
.st-chart-guide .muted { max-width: 100%; }
.st-details > summary { cursor: pointer; padding: 16px 0; color: var(--blue); }
.st-details > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.st-details-table { --table-min-width: 670px; font-size: 14px; }
.st-details-table td:not(:first-child), .st-details-table th:not(:first-child) { text-align: right; }
.st-sections { align-items: stretch; }
.st-section { display: flex; flex-direction: column; }
.st-section h2, .st-top h2 { font-size: 22px; }
.st-section .metric-value { margin: 12px 0 2px; }
.st-breakdown { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.st-breakdown li { min-width: 0; }
.st-breakdown-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.st-breakdown-line > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-breakdown-line strong { font-size: 16px; }
.st-share { display: inline-block; min-width: 54px; text-align: right; margin-left: 8px; }
.st-meter { height: 6px; border-radius: 4px; background: var(--inner); margin-top: 8px; overflow: hidden; }
.st-meter > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; width: var(--st-fill, 0%); }
.st-leads .st-breakdown { gap: 28px; }
.st-section-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 20px; justify-items: start; }
.st-top { display: grid; gap: 18px; margin-top: 8px; }
.st-top .section-heading { margin: 0; align-items: baseline; }
.st-top .data-table-wrap { padding-right: 26px; }
.st-top-table { --table-min-width: 660px; }
.st-col-views { width: 130px; }
.st-col-share { width: 180px; }
.st-product { display: flex; align-items: center; gap: 16px; }
.st-product .product-photo { flex-shrink: 0; width: 48px; height: 48px; }
.st-product .product-name { font-size: 14px; overflow-wrap: anywhere; }
.st-product .product-code { font-size: 12px; }
.st-top-table td, .st-top-table th { padding-top: 14px; padding-bottom: 14px; }
.st-top-table .st-views { text-align: right; font-variant-numeric: tabular-nums; }
.st-top-table .st-col-share { padding-left: 28px; }
.st-definitions { border-top: 1px solid var(--gray); margin-top: 4px; }
.st-definitions dl { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; font-size: 14px; }
.st-definitions dt { font-weight: 700; }
.st-definitions dd { margin: 0; }
.st-empty { background: var(--white); border-radius: 18px; }
.st-empty .btn { margin-top: 20px; }
.st-report { display: grid; gap: 20px; min-width: 0; }
.st-report [data-st-value] { font-variant-numeric: tabular-nums; }
.st-counter { display: inline-grid; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.st-counter > span { grid-area: 1 / 1; }
.st-count-final { opacity: 0; }
.st-count-display { justify-self: end; user-select: none; }
.st-chart-bar { transform-box: fill-box; transform-origin: center bottom; }
.st-meter > span { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .st-motion-pending .st-chart-bar { transform: scaleY(0); }
  .st-motion-pending .st-meter > span { transform: scaleX(0); }
  .st-motion-enter .st-chart-bar {
    animation: st-grow-up 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--st-enter-delay, 0ms) + var(--st-bar-delay, 0ms));
  }
  .st-motion-enter .st-meter > span {
    animation: st-grow-right 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--st-enter-delay, 0ms) both;
  }
}
@keyframes st-grow-up {
  from { transform: scaleY(0); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes st-grow-right {
  from { transform: scaleX(0); opacity: 0.35; }
  to { transform: scaleX(1); opacity: 1; }
}
@media print {
  .st-count-final { opacity: 1; }
  .st-count-display { display: none; }
  .st-chart-bar, .st-meter > span { animation: none !important; transform: none !important; }
}
@media (max-width: 1199px) {
  .st-fields { grid-template-columns: 1fr 1fr; }
  .st-fields > .btn { justify-self: start; }
  .st-presets .btn { padding-inline: 16px; }
  .st-col-share { width: 160px; }
  .st-top .data-table-wrap { padding-right: 20px; }
}
@media (max-width: 759px) {
  .st-sections { grid-template-columns: 1fr; }
  .st-chart svg { height: 180px; }
}
@media (max-width: 599px) {
  .st-filters { gap: 18px; }
  .st-presets { gap: 8px 6px; }
  .st-presets .btn { font-size: 14px; padding-inline: 14px; height: 38px; }
  .st-fields { gap: 14px 10px; }
  .st-fields .form-input { font-size: 14px; padding-inline: 12px; }
  .st-fields > .btn { width: 100%; padding-inline: 12px; }
  .st-period-heading, .st-top .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .st-period-heading h2, .st-section h2, .st-top h2 { font-size: 20px; }
  .st-chart-guide { gap: 8px; }
  .st-definitions dl { grid-template-columns: 1fr; gap: 6px; }
  .st-definitions dd { margin-bottom: 10px; }
  .st-report { gap: 16px; }
  .st-share { min-width: 45px; margin-left: 4px; }
  .st-top-table { --table-min-width: 0; }
  .st-top-table .table-col-number { width: 32px; }
  .st-top-table .st-col-views { width: 100px; }
  .st-top-table .st-col-share { display: none; }
  .st-top-table .st-views { padding-right: 0; }
  .st-product { gap: 10px; }
  .st-product > div { min-width: 0; }
  .st-product .product-photo { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .st-fields { grid-template-columns: 1fr; }
}
