:root {
  --bg: #070708;
  --bg-elevated: #0e0e11;
  --surface: #141418;
  --surface-hover: #1a1a20;
  --border: #2a2a32;
  --border-bright: #3d3d48;
  --text: #ececf0;
  --muted: #8b8b96;
  --accent: #7eb0e8;
  --accent-soft: rgba(126, 176, 232, 0.14);
  --glow: rgba(126, 176, 232, 0.08);
  --xp-green: #3d9a6e;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  position: relative;
}

.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image: url("avion.png");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(4, 5, 9, 0.9) 0%,
    rgba(6, 7, 11, 0.82) 38%,
    rgba(5, 6, 10, 0.92) 100%
  );
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% -10%, black, transparent);
}

.bg-orb {
  pointer-events: none;
  position: fixed;
  top: -20%;
  right: -15%;
  width: min(55vw, 28rem);
  height: min(55vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(126, 176, 232, 0.1) 0%,
    rgba(61, 154, 110, 0.05) 40%,
    transparent 70%
  );
  filter: blur(2px);
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.75rem 1.35rem 4rem;
}

.app-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding: 0.25rem;
  border-radius: var(--radius);
  background: rgba(12, 12, 16, 0.65);
  border: 1px solid var(--border);
}

.app-tab {
  flex: 1;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.app-tab:hover {
  color: var(--text);
}

.app-tab--active {
  background: rgba(126, 176, 232, 0.15);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(126, 176, 232, 0.25);
}

.hero--replay h1 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
}

.replay-progress {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: var(--mono);
}

.replay-results {
  margin-top: 1.5rem;
}

.replay-results.hidden {
  display: none;
}

.replay-map {
  min-height: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1;
}

.replay-chart-wrap {
  min-height: 200px;
  margin-top: 0.5rem;
}

.replay-summary-line {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.replay-warn {
  font-size: 0.8125rem;
  color: #e0b088;
  margin: 0 0 0.5rem;
}

.replay-landing-box {
  font-size: 0.875rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 154, 110, 0.35);
  background: rgba(61, 154, 110, 0.1);
  margin: 0 0 1rem;
}

.replay-string-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.replay-string-list li {
  margin-bottom: 0.35rem;
}

.replay-spec-list {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.replay-spec-list li {
  margin-bottom: 0.35rem;
}

.chart-alt-fallback {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.leaflet-container {
  background: var(--bg-elevated);
  font-family: var(--font);
}

.hero {
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}

.badge--xp12 {
  color: #b8e6d0;
  border-color: rgba(61, 154, 110, 0.45);
  background: rgba(61, 154, 110, 0.12);
  box-shadow: 0 0 20px rgba(61, 154, 110, 0.08);
}

.hero-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.hero-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 36rem;
}

.panel {
  background: rgba(20, 20, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.55s ease 0.05s both;
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.panel-hint {
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.panel-hint code {
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--accent);
  word-break: break-all;
}

.drop-zone {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  background: var(--bg-elevated);
}

.drop-zone:hover,
.drop-zone:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--glow);
}

.drop-zone:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}

.drop-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.drop-text strong {
  color: var(--text);
  font-weight: 600;
}

.linkish {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drop-meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

#file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.15rem;
  align-items: center;
}

button {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

.btn-primary {
  background: linear-gradient(180deg, #2a3340 0%, #1e252f 100%);
  border-color: var(--border-bright);
  color: var(--text);
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-bright);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--xp-green);
  color: #b8e6d0;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.file-name {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.guide {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14, 14, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 2rem;
  overflow: hidden;
  animation: fadeUp 0.5s ease 0.1s both;
}

.guide summary {
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
  user-select: none;
}

.guide summary::-webkit-details-marker {
  display: none;
}

.guide summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.guide[open] summary::after {
  content: "−";
}

.guide-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.guide-body > p {
  margin: 0.9rem 0 0.75rem;
}

.guide-xp12 {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--xp-green);
  background: rgba(61, 154, 110, 0.08);
  color: var(--text) !important;
}

.glossary {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.glossary dt {
  font-weight: 600;
  color: var(--text);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.glossary dd {
  margin: 0.15rem 0 0;
  padding-left: 0;
}

.results {
  margin-top: 2rem;
}

.results.hidden {
  display: none;
}

.results--visible .section-block {
  animation: fadeUp 0.45s ease both;
}

/* Après .results-intro : sections 2…8 du conteneur #results */
.results--visible .section-block:nth-child(2) {
  animation-delay: 0s;
}
.results--visible .section-block:nth-child(3) {
  animation-delay: 0.05s;
}
.results--visible .section-block:nth-child(4) {
  animation-delay: 0.1s;
}
.results--visible .section-block:nth-child(5) {
  animation-delay: 0.15s;
}
.results--visible .section-block:nth-child(6) {
  animation-delay: 0.2s;
}
.results--visible .section-block:nth-child(7) {
  animation-delay: 0.25s;
}
.results--visible .section-block:nth-child(8) {
  animation-delay: 0.3s;
}
.results--visible .section-block:nth-child(9) {
  animation-delay: 0.35s;
}
.results--visible .section-block:nth-child(10) {
  animation-delay: 0.4s;
}
.results--visible .section-block:nth-child(11) {
  animation-delay: 0.45s;
}
.results--visible .section-block:nth-child(12) {
  animation-delay: 0.5s;
}
.results--visible .section-block:nth-child(13) {
  animation-delay: 0.55s;
}
.results--visible .section-block:nth-child(14) {
  animation-delay: 0.58s;
}
.results--visible .section-block:nth-child(15) {
  animation-delay: 0.61s;
}

.results-intro {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.results-file {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.results-file strong {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 500;
}

.results-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.section-block {
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.section-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.section-desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-title--today {
  padding: 0.4rem 0.55rem;
  margin: 0 -0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    105deg,
    rgba(61, 154, 110, 0.18) 0%,
    rgba(126, 176, 232, 0.08) 55%,
    transparent 100%
  );
  border: 1px solid rgba(61, 154, 110, 0.22);
}

.grid-today {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.75rem;
}

.today-card {
  background: rgba(18, 20, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 176, 232, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.today-card .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.today-card .value {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.today-card--pulse {
  border-color: rgba(61, 154, 110, 0.45);
  box-shadow:
    0 0 0 1px rgba(61, 154, 110, 0.15),
    0 0 28px rgba(61, 154, 110, 0.12);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem;
}

.stat-card {
  background: rgba(20, 20, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.95rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.2s;
}

.stat-card--enter {
  opacity: 0;
  animation: cardEnter 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--enter-delay, 0s);
}

.stat-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
}

.stat-card--insight {
  border-color: rgba(126, 176, 232, 0.2);
}

.stat-card--insight .value {
  font-size: 0.95rem;
}

.stat-card--wide {
  grid-column: 1 / -1;
}

.stat-card .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-card .value {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
}

.charts-grid {
  display: grid;
  gap: 1rem;
}

.chart-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .charts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.chart-card {
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.chart-card--enter {
  opacity: 0;
  animation: cardEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--enter-delay, 0s);
}

.chart-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.chart-caption {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.chart-mount {
  min-height: 2rem;
}

.chart-donut-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.donut-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  -webkit-mask: radial-gradient(
    circle,
    transparent 58px,
    #000 59px
  );
  mask: radial-gradient(circle, transparent 58px, #000 59px);
  box-shadow: 0 0 20px var(--glow);
}

.donut-ring--enter {
  opacity: 0;
  transform: scale(0.86);
  animation: donutPop 0.8s cubic-bezier(0.34, 1.45, 0.64, 1) 0.12s forwards;
}

.chart-legend-item--enter {
  opacity: 0;
  animation: legendIn 0.5s ease forwards;
  animation-delay: var(--enter-delay, 0s);
}

.chart-legend {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.chart-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.legend-text {
  flex: 1;
}

.hours-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 4rem;
  gap: 0.5rem 0.65rem;
  align-items: center;
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .hours-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.hours-label {
  color: var(--muted);
}

.hours-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.hours-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.88s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.hours-val {
  font-family: var(--mono);
  text-align: right;
  color: var(--text);
}

.monthly-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.monthly-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .monthly-row {
    grid-template-columns: 1fr;
  }
}

.monthly-label {
  color: var(--muted);
  font-family: var(--mono);
}

.monthly-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.monthly-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #4a7399, var(--accent));
  transition: width 0.88s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.monthly-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bar-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
}

.bar-list .bar-track {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.bar-list .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #5a8bc4);
  border-radius: 3px;
  transition: width 0.88s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.bar-list .meta {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
  font-family: var(--mono);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips-airports {
  max-height: 240px;
  overflow-y: auto;
  padding: 0.35rem 0;
  scrollbar-width: thin;
}

.filter-label {
  display: block;
  margin-bottom: 0.65rem;
}

.filter-label-text {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.filter-input {
  width: 100%;
  max-width: 20rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.filter-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag--accent {
  border-color: rgba(126, 176, 232, 0.35);
  color: var(--accent);
  background: var(--accent-soft);
}

.muted-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(16, 16, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}

tbody tr:hover td {
  background: var(--bg-elevated);
}

tr:last-child td {
  border-bottom: none;
}

.mono-cell {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.muted-cell {
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

tr.row-hidden {
  display: none;
}

.error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(180, 80, 80, 0.45);
  background: rgba(40, 20, 20, 0.5);
  color: #e8a0a0;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.hidden {
  display: none !important;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes donutPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes legendIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card--enter,
  .chart-card--enter,
  .donut-ring--enter,
  .chart-legend-item--enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .results--visible .section-block {
    animation: none !important;
    opacity: 1 !important;
  }

  .bar-fill,
  .hours-fill,
  .monthly-fill {
    transition-duration: 0.01ms !important;
  }
}
