.annual-shell {
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 72px;
}

.annual-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 22px;
}

.annual-head h1 {
  margin: 0 0 7px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
}

.annual-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.annual-actions,
.annual-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.annual-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.annual-toolbar .select {
  width: 160px;
  min-height: 40px;
}

.annual-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 15px;
  color: #6b4b1e;
  border: 1px solid #efd3aa;
  border-radius: 8px;
  background: #fff8ec;
}

.annual-alert[hidden] {
  display: none;
}

.annual-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.annual-stat {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.annual-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.annual-stat strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.1;
  text-overflow: ellipsis;
}

.annual-stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.annual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
  margin-bottom: 16px;
}

.annual-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.annual-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.annual-panel-head h2,
.annual-panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.annual-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.annual-structure {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px 18px 22px;
}

.annual-donut {
  position: relative;
  width: 155px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #edf1ee;
}

.annual-donut::after {
  position: absolute;
  inset: 28px;
  display: grid;
  place-content: center;
  content: attr(data-total);
  color: var(--ink);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
}

.annual-legend {
  display: grid;
  gap: 10px;
}

.annual-legend-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #4f5e55;
  font-size: 13px;
}

.annual-legend-row span:first-child {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.annual-legend-row strong {
  color: var(--ink);
}

.annual-trend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: end;
  min-height: 210px;
  padding: 22px 22px 18px;
}

.annual-trend-column {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  align-items: end;
  height: 170px;
  text-align: center;
}

.annual-trend-bar-wrap {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.annual-trend-bar {
  width: min(70px, 76%);
  min-height: 5px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #4da680, #176b52);
}

.annual-trend-column:nth-child(2) .annual-trend-bar {
  background: linear-gradient(180deg, #efb56c, #ce7723);
}

.annual-trend-column small {
  color: var(--muted);
  font-size: 11px;
}

.annual-trend-column strong {
  font-size: 13px;
}

.annual-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 18px;
}

.annual-keyword {
  padding: 6px 10px;
  color: #7b4b18;
  border: 1px solid #ecd0a9;
  border-radius: 999px;
  background: #fff7eb;
  font-size: 12px;
  font-weight: 700;
}

.annual-route-shell {
  margin: 14px;
}

.annual-route-panel,
.annual-city-panel {
  grid-column: 1 / -1;
}

.annual-cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px 18px;
}

.annual-city-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1ee;
}

.annual-city-row:last-child {
  border-bottom: 0;
}

.annual-city-row strong {
  display: block;
  font-size: 13px;
}

.annual-city-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.annual-city-row > span {
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.annual-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dimension-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dimension-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dimension-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
}

.dimension-title strong {
  font-size: 20px;
}

.dimension-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.annual-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 24px;
}

.annual-story h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.annual-story-text {
  color: #46534b;
  line-height: 2;
  white-space: pre-wrap;
}

.annual-highlights {
  display: grid;
  gap: 9px;
}

.annual-highlight {
  padding: 12px 14px;
  border-left: 3px solid #d1852e;
  background: #fff8ed;
}

.annual-highlight small {
  display: block;
  margin-bottom: 5px;
  color: #8b7355;
  font-size: 10px;
}

.annual-highlight strong {
  display: block;
  font-size: 13px;
}

.annual-highlight p {
  margin: 4px 0 0;
  color: #5c5a50;
  font-size: 12px;
}

.annual-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed #c6d1ca;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.annual-empty .empty-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #fff;
  border-radius: 8px;
  background: var(--forest);
}

.annual-empty h2 {
  margin: 0 0 8px;
}

.annual-empty p {
  max-width: 480px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .annual-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .annual-grid,
  .annual-story {
    grid-template-columns: 1fr;
  }

  .annual-cities {
    grid-template-columns: 1fr;
  }

  .annual-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .annual-head {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
  }

  .annual-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annual-actions .btn {
    padding-inline: 8px;
  }

  .annual-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .annual-toolbar .select {
    width: 100%;
  }

  .annual-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annual-structure {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding-inline: 14px;
  }

  .annual-donut {
    width: 112px;
  }

  .annual-donut::after {
    inset: 22px;
    font-size: 12px;
  }

  .annual-dimensions {
    grid-template-columns: 1fr;
  }

  .annual-cities {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-nav,
  .annual-head,
  .annual-toolbar,
  .annual-alert,
  .toast {
    display: none !important;
  }

  .annual-shell {
    padding: 0;
  }

  .page-container {
    width: 100%;
  }

  .annual-panel,
  .annual-stat,
  .dimension-card {
    box-shadow: none;
  }
}
