.year-stats {
  --ys-ink: #eaf1fb;
  --ys-muted: rgba(234, 241, 251, .62);
  --ys-line: rgba(255, 255, 255, .11);
  --ys-surface: rgba(9, 17, 30, .18);
  min-width: 0;
  margin: 0 0 18px;
}
.year-stats, .year-stats * { box-sizing: border-box; }
.year-stats .ys-inner { padding: 16px 18px 18px; min-width: 0; }
.year-stats .ys-head, .year-stats .ys-head-actions, .year-stats .ys-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
}
.year-stats .ys-head { align-items: flex-start; flex-wrap: wrap; }
.year-stats .ys-head h2 { margin: 7px 0 0; font-size: 16px; line-height: 1.3; }
.year-stats .ys-subtitle { margin-top: 5px; color: var(--ys-muted); font-size: 11px; line-height: 1.45; }
.year-stats .ys-note { color: var(--ys-muted); font-size: 11px; line-height: 1.55; }
.year-stats .ys-kicker { color: color-mix(in srgb, var(--sky) 72%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.year-stats .ys-badge {
  display: inline-flex; align-items: center; border: 1px solid rgba(172,206,253,.2);
  border-radius: 999px; padding: 5px 8px; color: #d6e6fd; background: rgba(172,206,253,.1);
  font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.year-stats .ys-badge.partial { color: #ffd89a; border-color: rgba(245,158,11,.24); background: rgba(245,158,11,.09); }
.year-stats .ys-badge.future { color: rgba(234,241,251,.58); border-color: var(--ys-line); background: rgba(255,255,255,.035); }
.year-stats .ys-overview {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 15px 0 13px; min-width: 0;
}
.year-stats .ys-metric {
  min-width: 0; padding: 12px 13px; border: 1px solid var(--ys-line); border-radius: 12px;
  background: var(--ys-surface); transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.year-stats .ys-metric:hover { background: rgba(18,31,49,.38); border-color: rgba(172,206,253,.22); transform: translateY(-1px); }
.year-stats .ys-metric-label { color: var(--ys-muted); font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.year-stats .ys-metric-value { margin: 5px 0 3px; font-size: 23px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.year-stats .ys-metric-detail { color: var(--ys-muted); font-size: 10px; line-height: 1.5; }
.year-stats .ys-progress { height: 4px; margin: 9px 0 7px; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.1); }
.year-stats .ys-progress > i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--sky) 78%, #d8efff); }
.year-stats .ys-section-title { margin: 17px 0 8px; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.year-stats .ys-table-wrap { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; }
.year-stats .ys-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.year-stats .ys-table th { padding: 9px 9px; border-bottom: 1px solid var(--ys-line); color: rgba(234,241,251,.52); font-size: 9px; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.year-stats .ys-table td { padding: 8px 9px; border-bottom: 1px solid rgba(255,255,255,.065); white-space: nowrap; }
.year-stats .ys-table tr:last-child td { border-bottom: 0; }
.year-stats .ys-table tbody tr { transition: background-color .14s ease; }
.year-stats .ys-table tbody tr:hover { background: rgba(172,206,253,.045); }
.year-stats .ys-table .ys-num { text-align: right; }
.year-stats .ys-status { color: rgba(234,241,251,.68); }
.year-stats .ys-status.partial { color: #ffd89a; }
.year-stats .ys-status.future, .year-stats .ys-status.no-reports, .year-stats .ys-status.unavailable { color: rgba(234,241,251,.46); }
.year-stats .ys-quarter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.year-stats .ys-quarter {
  min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.085); border-radius: 10px; background: rgba(9,17,30,.12);
}
.year-stats .ys-quarter-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.year-stats .ys-quarter-title { font-size: 11px; font-weight: 750; }
.year-stats .ys-quarter-data { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; font-size: 10px; color: var(--ys-muted); }
.year-stats .ys-quarter-data strong { color: var(--ys-ink); text-align: right; font-variant-numeric: tabular-nums; }
.year-stats .ys-alert { margin: 11px 0 0; padding: 9px 10px; border: 1px solid rgba(245,158,11,.2); border-radius: 9px; background: rgba(245,158,11,.07); color: #f3d5a0; font-size: 10px; line-height: 1.5; }
.year-stats .ys-admin { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.085); }
.year-stats .ys-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.year-stats .ys-target-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 11px; min-width: 0; }
.year-stats .ys-target-form label { min-width: 0; }
.year-stats .ys-target-form label span { display: block; margin-bottom: 6px; color: color-mix(in srgb, var(--sky) 72%, transparent); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.year-stats .ys-target-form input { width: 100%; min-width: 0; }
.year-stats .ys-actions { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.year-stats .ys-provenance { margin-top: 8px; }
.year-stats .ys-loading { display: grid; gap: 9px; margin-top: 14px; }
.year-stats .ys-skeleton { height: 14px; max-width: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.12), rgba(255,255,255,.055)); background-size: 200% 100%; animation: ys-sheen 1.8s ease-in-out infinite; }
.year-stats .ys-skeleton:nth-child(2) { width: 72%; }
.year-stats .ys-skeleton:nth-child(3) { width: 88%; }
.year-stats :where(button, input):focus-visible { outline: 2px solid color-mix(in srgb, var(--sky) 80%, white); outline-offset: 2px; }
@keyframes ys-sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 760px) {
  .year-stats .ys-quarter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .year-stats .ys-inner { padding: 14px 13px 15px; }
  .year-stats .ys-overview { grid-template-columns: minmax(0,1fr); }
  .year-stats .ys-metric { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; align-items: center; }
  .year-stats .ys-metric-value { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .year-stats .ys-metric-detail, .year-stats .ys-progress { grid-column: 1 / -1; }
  .year-stats .ys-target-form { grid-template-columns: minmax(0,1fr); }
  .year-stats .ys-quarter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .year-stats *, .year-stats *::before, .year-stats *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
