:root {
  --background: #0f1216;
  --surface: #1a1c22;
  --surface-variant: #252830;
  --surface-container: #1e2024;
  --surface-container-high: #282a2f;
  --surface-container-highest: #333538;
  --primary: #a8c7fa;
  --primary-container: rgba(168, 199, 250, 0.12);
  --secondary: #c3c7cf;
  --tertiary: #e8b9d5;
  --on-surface: #e2e2e9;
  --on-surface-variant: #c4c7d0;
  --outline: #44474f;
  --outline-variant: #44474f80;
  --nav-active-bg: rgba(168, 199, 250, 0.15);
  --scrim: rgba(0, 0, 0, 0.5);

  --aqi-good: #4ade80;
  --aqi-satisfactory: #a3e635;
  --aqi-moderate: #facc15;
  --aqi-poor: #fb923c;
  --aqi-very-poor: #f87171;
  --aqi-severe: #dc2626;

  --nav-height: 80px;
  --sidebar-width: 260px;

  --motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
  --motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --motion-duration-short1: 50ms;
  --motion-duration-short2: 100ms;
  --motion-duration-short3: 150ms;
  --motion-duration-short4: 200ms;
  --motion-duration-medium1: 250ms;
  --motion-duration-medium2: 300ms;
  --motion-duration-medium3: 350ms;
  --motion-duration-medium4: 400ms;
  --motion-duration-long1: 450ms;
  --motion-duration-long2: 500ms;

  --shape-corner-none: 0;
  --shape-corner-extra-small: 4px;
  --shape-corner-small: 8px;
  --shape-corner-medium: 12px;
  --shape-corner-large: 16px;
  --shape-corner-extra-large: 28px;
  --shape-corner-full: 9999px;
}

[data-theme='light'] {
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-variant: #e2e8f0;
  --surface-container: #f1f5f9;
  --surface-container-high: #e2e8f0;
  --surface-container-highest: #cbd5e1;
  --primary: #1d4ed8;
  --primary-container: rgba(29, 78, 216, 0.12);
  --secondary: #475569;
  --tertiary: #7c3aed;
  --on-surface: #0f172a;
  --on-surface-variant: #475569;
  --outline: #94a3b8;
  --outline-variant: #94a3b880;
  --nav-active-bg: rgba(29, 78, 216, 0.12);
  --scrim: rgba(0, 0, 0, 0.32);
}

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.main-content {
  flex: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.view {
  display: none;
  height: 100%;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  animation: viewFadeIn var(--motion-duration-medium2) var(--motion-easing-emphasized-decelerate);
  position: relative;
}

.view:not(#view-map):not(#view-settings)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='412' viewBox='0 0 600 412' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0,412) scale(0.1,-0.1)' fill='%23a8c7fa' stroke='none'%3E%3Cpath d='M3063 2950 c-174 -37 -337 -257 -250 -338 50 -47 116 -22 147 56 73 185 359 150 378 -46 6 -70 -12 -115 -67 -164 -87 -78 -205 -88 -448 -37 -435 89 -558 90 -866 5 -119 -33 -157 -77 -123 -141 25 -45 51 -55 106 -39 25 7 88 25 140 40 156 44 356 46 560 4 345 -72 443 -81 557 -51 257 67 377 293 272 516 -65 139 -251 228 -406 195z'/%3E%3Cpath d='M3880 2607 c-130 -46 -220 -138 -260 -265 -39 -125 121 -163 165 -40 36 100 97 148 190 148 235 0 267 -287 45 -400 -178 -90 -429 -101 -790 -35 -739 135 -1042 136 -1445 4 -178 -58 -213 -88 -189 -157 22 -64 54 -66 214 -12 222 74 351 94 605 94 225 1 254 -2 620 -66 575 -100 772 -99 1016 3 299 125 384 449 169 643 -87 78 -244 117 -340 83z'/%3E%3Cpath d='M2992 1690 c-34 -5 -156 -28 -270 -50 -324 -66 -474 -62 -706 15 -123 41 -123 41 -161 11 -36 -29 -41 -85 -9 -116 43 -43 253 -101 435 -120 147 -15 279 2 619 77 137 31 314 25 385 -13 204 -106 146 -374 -81 -374 -94 0 -152 45 -183 141 -38 120 -184 86 -162 -38 66 -357 614 -358 711 0 77 284 -213 518 -578 467z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

[data-theme='light'] .view:not(#view-map):not(#view-settings)::before {
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='412' viewBox='0 0 600 412' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0,412) scale(0.1,-0.1)' fill='%231d4ed8' stroke='none'%3E%3Cpath d='M3063 2950 c-174 -37 -337 -257 -250 -338 50 -47 116 -22 147 56 73 185 359 150 378 -46 6 -70 -12 -115 -67 -164 -87 -78 -205 -88 -448 -37 -435 89 -558 90 -866 5 -119 -33 -157 -77 -123 -141 25 -45 51 -55 106 -39 25 7 88 25 140 40 156 44 356 46 560 4 345 -72 443 -81 557 -51 257 67 377 293 272 516 -65 139 -251 228 -406 195z'/%3E%3Cpath d='M3880 2607 c-130 -46 -220 -138 -260 -265 -39 -125 121 -163 165 -40 36 100 97 148 190 148 235 0 267 -287 45 -400 -178 -90 -429 -101 -790 -35 -739 135 -1042 136 -1445 4 -178 -58 -213 -88 -189 -157 22 -64 54 -66 214 -12 222 74 351 94 605 94 225 1 254 -2 620 -66 575 -100 772 -99 1016 3 299 125 384 449 169 643 -87 78 -244 117 -340 83z'/%3E%3Cpath d='M2992 1690 c-34 -5 -156 -28 -270 -50 -324 -66 -474 -62 -706 15 -123 41 -123 41 -161 11 -36 -29 -41 -85 -9 -116 43 -43 253 -101 435 -120 147 -15 279 2 619 77 137 31 314 25 385 -13 204 -106 146 -374 -81 -374 -94 0 -152 45 -183 141 -38 120 -184 86 -162 -38 66 -357 614 -358 711 0 77 284 -213 518 -578 467z'/%3E%3C/g%3E%3C/svg%3E");
}

.view>* {
  position: relative;
  z-index: 1;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpCentered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 currentColor;
  }

  50% {
    box-shadow: 0 0 20px 4px currentColor;
  }
}

.active-view {
  display: flex;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  padding: 16px;
  padding-bottom: 100px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

header {
  padding: 24px 24px;
  margin-bottom: 24px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  border-bottom: 1px solid var(--outline-variant);
  transition: all 0.3s ease;
}

.header-brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.brand-logo {
  height: 38px;
  width: auto;
  margin-left: -6px; 
  vertical-align: middle; 
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.3));
}

@media (min-width: 768px) {
  header {
    padding: 40px 24px;
    margin-bottom: 48px;
  }

  .header-brand h1 {
    font-size: 32px;
  }

  .brand-logo {
    height: 56px; 
    margin-left: -10px; 
    vertical-align: middle;
  }
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #0f1216;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.github-link svg {
  margin-right: 8px;
}

.add-btn {
  background: var(--primary);
  color: #0f1216;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

[data-theme='light'] .add-btn {
  color: #fff;
}

.mobile-icon {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.desktop-text {
  display: none;
}

@media (max-width: 767px) {
  .add-btn {
    width: 48px;
    height: 32px;
    border-radius: 100px;
    padding: 0;
  }
}

.search-container {
  padding: 16px 24px 0 24px;
  background: var(--background);
}

.search-bar {
  background: var(--surface);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.search-bar svg {
  width: 20px;
  height: 20px;
  fill: var(--on-surface-variant);
  margin-right: 12px;
}

:root {
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-family: var(--font-mono);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--on-surface);
  font-size: 16px;
  width: 100%;
  font-family: var(--font-family);
  outline: none;
}

.card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
  border-radius: var(--shape-corner-extra-large);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--outline-variant);
  transition:
    background var(--motion-duration-medium2) var(--motion-easing-standard),
    transform var(--motion-duration-short4) var(--motion-easing-emphasized),
    box-shadow var(--motion-duration-medium2) var(--motion-easing-standard),
    border-color var(--motion-duration-medium2) var(--motion-easing-standard);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: var(--outline);
}

.card:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme='light'] .card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme='light'] .main-aqi-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme='light'] .pollutants-container-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.main-aqi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--shape-corner-extra-large);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container-high) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid var(--outline-variant);
  animation: scaleIn var(--motion-duration-medium3) var(--motion-easing-emphasized-decelerate);
  transition: all var(--motion-duration-medium2) var(--motion-easing-standard);
}

.main-aqi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--outline-variant) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--outline-variant) 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.main-aqi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--primary) 0%, transparent 60%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  animation: pulseGlowEffect 8s ease-in-out infinite;
}

@keyframes pulseGlowEffect {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.08;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.12;
  }
}

.hero-3d-logo-container {
  position: relative;
  width: 400px;
  height: 400px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-bg-philosophy {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono), monospace;
  font-size: 28px;
  font-weight: 700;
  color: #a8c7fa;
  opacity: 0.8;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 4px;
  filter: drop-shadow(0 0 20px rgba(168, 199, 250, 0.4));
}

.hero-3d-logo {
  width: 360px;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(168, 199, 250, 0.6));
  animation: float 6s ease-in-out infinite;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hero-quote {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--on-surface-variant);
  opacity: 0.7;
  letter-spacing: 0.5px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(168, 199, 250, 0.2));
  animation: fadeIn var(--motion-duration-long2) var(--motion-easing-emphasized-decelerate) both;
}

@media (max-width: 767px) {
  .hero-bg-philosophy {
    font-size: 18px;
    letter-spacing: 2px;
    top: 120px;
  }

  .hero-3d-logo {
    width: 240px;
  }

  .hero-quote {
    font-size: 13px;
    bottom: 48px;
    padding: 0 32px;
    box-sizing: border-box;
    line-height: 1.4;
  }

  .hero-3d-logo-container {
    width: 280px;
    height: 280px;
  }
}


@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.main-aqi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 40%, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.aqi-display-large {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  animation: slideUp var(--motion-duration-medium4) var(--motion-easing-emphasized-decelerate);
}

.naqi-chip {
  color: #1a1c22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--shape-corner-full);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  transition: transform var(--motion-duration-short3) var(--motion-easing-emphasized);
}

.naqi-chip:hover {
  transform: scale(1.05);
}

.primary-pollutant {
  font-size: 18px;
  font-weight: 500;
  color: var(--on-surface);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.primary-pollutant-label {
  font-size: 13px;
  color: var(--on-surface-variant);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-pollutant-value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--shape-corner-full);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.trend-badge.improving {
  color: var(--aqi-good);
}

.trend-badge.worsening {
  color: var(--aqi-very-poor);
}

.update-time {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.chart-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.chart-wrapper {
  height: 200px;
  width: 100%;
  position: relative;
  background-color: var(--surface-variant);
  background-image:
    linear-gradient(var(--outline-variant) 1px, transparent 1px),
    linear-gradient(90deg, var(--outline-variant) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: var(--shape-corner-medium);
  overflow: hidden;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-top: 8px;
  padding: 0 10px;
}

.pollutants-container-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
  padding: 24px;
  border-radius: var(--shape-corner-extra-large);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--outline-variant);
  transition: all var(--motion-duration-medium2) var(--motion-easing-standard);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-align: center;
}

.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pollutant-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
  padding: 20px;
  border-radius: var(--shape-corner-large);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--outline-variant);
  transition: all var(--motion-duration-medium2) var(--motion-easing-standard);
  animation: scaleIn var(--motion-duration-medium2) var(--motion-easing-emphasized-decelerate) both;
}

.pollutant-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: var(--outline);
}

.pollutant-card:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.p-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.p-value {
  font-size: 28px;
  font-weight: 600;
}

.p-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--on-surface-variant);
  margin-left: 4px;
}

.home-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#view-dashboard {
  position: relative;
}

#empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--on-surface-variant);
  z-index: 1;
}

.dashboard-card {
  background: var(--surface);
  border-radius: var(--shape-corner-extra-large);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--motion-duration-short3) var(--motion-easing-emphasized),
    box-shadow var(--motion-duration-medium1) var(--motion-easing-standard),
    background var(--motion-duration-short4) var(--motion-easing-standard);
  animation: slideUp var(--motion-duration-medium2) var(--motion-easing-emphasized-decelerate) both;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-card:active {
  transform: scale(0.98);
}

[data-theme='light'] .dashboard-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.aqi-badge-small {
  width: 56px;
  height: 56px;
  border-radius: var(--shape-corner-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #1a1c22;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--motion-duration-short3) var(--motion-easing-emphasized);
}

.dashboard-card:hover .aqi-badge-small {
  transform: scale(1.08);
}

.skeleton-card {
  cursor: default;
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none;
  box-shadow: none;
}

.skeleton-line {
  background: var(--surface-variant);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  display: block;
}

.skeleton-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface-variant);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  display: block;
  flex-shrink: 0;
}

@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.btn-outlined {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 500;
  cursor: pointer;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--on-surface);
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-variant);
  border: 2px solid var(--outline);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 6px;
  bottom: 6px;
  background-color: var(--on-surface-variant);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

#map-container {
  width: 100%;
  height: 100%;
  background: var(--surface-variant);
}


.nav-item {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--shape-corner-large);
  transition:
    color var(--motion-duration-short3) var(--motion-easing-standard),
    background var(--motion-duration-short3) var(--motion-easing-standard),
    transform var(--motion-duration-short2) var(--motion-easing-emphasized);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  border-radius: var(--shape-corner-full);
  padding: 4px 16px;
  transition:
    background var(--motion-duration-short4) var(--motion-easing-emphasized),
    transform var(--motion-duration-short3) var(--motion-easing-emphasized);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active svg {
  background: var(--nav-active-bg);
  fill: var(--primary);
  transform: scale(1.1);
}

.sidebar {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

.desktop-text {
  display: none;
}

.settings-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--outline);
  opacity: 0.9;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.settings-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.settings-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.divider {
  height: 1px;
  background: var(--outline);
  opacity: 0.2;
  margin: 8px 0;
}

.clickable {
  cursor: pointer;
}

.section-header {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.spacer-24 {
  height: 24px;
}

.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--primary);
  border-color: rgba(31, 88, 180, 0.3);
  background: rgba(168, 199, 250, 0.05);
}

[data-theme='light'] .promo-card {
  border-color: rgba(65, 105, 225, 0.3);
  background: rgba(65, 105, 225, 0.05);
}

.explore-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--shape-corner-extra-large);
  margin-bottom: 12px;
  box-sizing: border-box;
  animation: slideUp var(--motion-duration-medium2) var(--motion-easing-emphasized-decelerate) both;
}

.explore-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: transform 150ms cubic-bezier(0.2, 0, 0, 1);
}

.explore-card-inner:active {
  transform: scale(0.97);
}

@keyframes pinFlash {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

.explore-card.pin-flash .explore-card-inner {
  animation: pinFlash 200ms cubic-bezier(0.2, 0, 0, 1);
}

.pin-btn {
  background: var(--surface-variant);
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--shape-corner-full);
  transition:
    background var(--motion-duration-short3) var(--motion-easing-standard),
    transform var(--motion-duration-short2) var(--motion-easing-emphasized);
}

.pin-btn:hover {
  background: var(--surface-container-highest);
}

.pin-btn:active {
  transform: scale(0.9);
}

.pin-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--on-surface-variant);
  transition: fill 0.2s;
  transform: rotate(45deg);
}

.pin-btn.pinned svg {
  fill: var(--primary);
}

.provider-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-top: 8px;
}

.provider-container {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.provider-link {
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.provider-link:hover {
  opacity: 1;
}

[data-theme='light'] .dark-only {
  display: none !important;
}

[data-theme='dark'] .light-only {
  display: none !important;
}

.air-gradient-bg {
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-img {
  text-decoration: none;
  border: none;
  display: inline-block;
  cursor: pointer;
}

.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet-overlay.closing {
  pointer-events: none;
}

@media (min-width: 768px) {
  .bottom-sheet-overlay {
    align-items: center;
  }
}

.bottom-sheet {
  background: var(--background);
  border-radius: var(--shape-corner-extra-large) var(--shape-corner-extra-large) 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 12px 24px 24px 24px;
  animation: slideUpFromBottom var(--motion-duration-medium4) var(--motion-easing-emphasized-decelerate);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.24);
  position: relative;
}

.bottom-sheet-overlay.closing .bottom-sheet {
  animation: slideDownToBottom var(--motion-duration-medium2) var(--motion-easing-emphasized-accelerate);
}

@media (min-width: 768px) {
  .bottom-sheet {
    border-radius: var(--shape-corner-extra-large);
    max-width: 500px;
    max-height: 70vh;
    animation: scaleIn var(--motion-duration-medium2) var(--motion-easing-emphasized-decelerate);
  }

  .bottom-sheet-overlay.closing .bottom-sheet {
    animation: scaleOut var(--motion-duration-short4) var(--motion-easing-emphasized-accelerate);
  }
}

.bottom-sheet-handle {
  width: 32px;
  height: 4px;
  background: var(--on-surface-variant);
  opacity: 0.4;
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

@media (min-width: 768px) {
  .bottom-sheet-handle {
    display: none;
  }
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.now-viewing-badge-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.now-viewing-badge-compact svg {
  fill: var(--on-surface-variant);
}

.icon-btn-compact {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--on-surface-variant);
  border-radius: var(--shape-corner-full);
  transition: background var(--motion-duration-short2) var(--motion-easing-standard);
}

.icon-btn-compact:hover {
  background: var(--surface-variant);
}

.icon-btn-compact svg {
  fill: currentColor;
  display: block;
}

.bottom-sheet-title {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: var(--on-surface);
}

.bottom-sheet-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-sheet-subtitle .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqi-good);
  animation: pulse 2s infinite;
}

.bottom-sheet-aqi-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.bottom-sheet-aqi-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-sheet-aqi-value {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--on-surface);
}

.bottom-sheet-aqi-badge {
  background: var(--primary);
  color: var(--on-primary);
  padding: 6px 16px;
  border-radius: var(--shape-corner-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  width: fit-content;
}

.bottom-sheet-aqi-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.bottom-sheet-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-sheet-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

.bottom-sheet-pollutant {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}

.bottom-sheet-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.bottom-sheet-trend svg {
  fill: currentColor;
}

.bottom-sheet-time {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.bottom-sheet-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-outlined {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--shape-corner-full);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--motion-duration-short2) var(--motion-easing-standard);
}

.btn-outlined:hover {
  background: var(--surface-variant);
}

.btn-filled {
  background: var(--primary);
  border: none;
  color: var(--on-primary);
  padding: 10px 24px;
  border-radius: var(--shape-corner-full);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--motion-duration-short2) var(--motion-easing-standard);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-filled:hover {
  background: var(--primary-container);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slideUpFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDownToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--scrim);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn var(--motion-duration-short4) var(--motion-easing-emphasized-decelerate);
}

.modal-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--shape-corner-extra-large);
  width: 85%;
  max-width: 400px;
  animation: scaleIn var(--motion-duration-medium2) var(--motion-easing-emphasized-decelerate);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.hidden {
  display: none !important;
}

.link-text {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.modal-text {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
}

.bg-good {
  background-color: var(--aqi-good) !important;
}

.bg-satisfactory {
  background-color: var(--aqi-satisfactory) !important;
}

.bg-moderate {
  background-color: var(--aqi-moderate) !important;
}

.bg-poor {
  background-color: var(--aqi-poor) !important;
}

.bg-very-poor {
  background-color: var(--aqi-very-poor) !important;
}

.bg-severe {
  background-color: var(--aqi-severe) !important;
}

.text-good {
  color: var(--aqi-good) !important;
}

.text-satisfactory {
  color: var(--aqi-satisfactory) !important;
}

.text-moderate {
  color: var(--aqi-moderate) !important;
}

.text-poor {
  color: var(--aqi-poor) !important;
}

.text-very-poor {
  color: var(--aqi-very-poor) !important;
}

.text-severe {
  color: var(--aqi-severe) !important;
}

@media (min-width: 768px) {
  .main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .content-scroll {
    padding: 32px 64px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-only,
  .mobile-only-flex {
    display: none !important;
  }

  .desktop-only {
    display: block;
  }

  .mobile-icon {
    display: none;
  }

  .desktop-text {
    display: block;
  }

  .add-btn {
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .home-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-content: start;
  }

  .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-content: start;
  }

  .detail-container {
    max-width: 900px;
    margin: 0 auto;
  }

  .pollutant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }

  .now-viewing-container {
    max-width: 900px;
  }

  .now-viewing-name {
    font-size: 28px;
  }

  .aqi-display-large {
    font-size: 64px;
  }

  .main-aqi-card {
    padding: 16px 20px;
  }

  .pinned-chips-container {
    padding: 0 24px 16px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .aqi-badge-small {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .concentrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concentration-card {
    padding: 12px;
  }

  .concentration-value .value {
    font-size: 20px;
  }

  .cigarette-card {
    padding: 16px;
  }

  .cigarette-icon {
    width: 40px;
    height: 40px;
  }

  .cigarette-icon svg {
    width: 24px;
    height: 24px;
  }

  .cigarette-value {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  header {
    padding: 12px 16px;
  }

  .github-link {
    padding: 6px 10px;
  }

  .github-link svg {
    margin-right: 0 !important;
  }

  .github-link .desktop-text {
    display: none !important;
  }

  .search-container {
    padding: 12px 16px 0 16px;
  }

  .content-scroll {
    padding: 12px;
    padding-bottom: 64px;
  }



  .aqi-display-large {
    font-size: 56px;
  }

  .now-viewing-name {
    font-size: 24px;
  }

  .main-aqi-card {
    padding: 16px;
  }

  .concentration-value .value {
    font-size: 18px;
  }

  .cigarette-card {
    padding: 14px;
    gap: 12px;
  }

  .cigarette-icon {
    width: 40px;
    height: 40px;
  }

  .cigarette-value {
    font-size: 16px;
  }
}

.trend-display {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
}

.trend-up {
  color: var(--aqi-very-poor);
}

.trend-down {
  color: var(--aqi-good);
}

.trend-neutral {
  color: var(--on-surface-variant);
}

.pinned-chips-container {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pinned-chips-container::-webkit-scrollbar {
  display: none;
}

.pinned-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-corner-full);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
  transition:
    background var(--motion-duration-short3) var(--motion-easing-standard),
    border-color var(--motion-duration-short3) var(--motion-easing-standard),
    transform var(--motion-duration-short2) var(--motion-easing-emphasized);
}

.pinned-chip:active {
  transform: scale(0.95);
}

.pinned-chip.selected {
  background: var(--primary-container);
  border-color: var(--primary);
}

.pinned-chip .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pinned-chip .checkmark {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-left: -2px;
}

.aqi-bar-container {
  width: 100%;
  margin: 12px 0;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
  border-radius: var(--shape-corner-extra-large);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--outline-variant);
  transition: all var(--motion-duration-medium2) var(--motion-easing-standard);
}

.aqi-bar-container:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: var(--outline);
}

.aqi-bar-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.aqi-bar {
  position: relative;
  height: 8px;
  border-radius: var(--shape-corner-full);
  overflow: visible;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.aqi-bar-gradient {
  height: 100%;
  border-radius: var(--shape-corner-full);
  background: linear-gradient(to right,
      var(--aqi-good) 0%,
      var(--aqi-good) 10%,
      var(--aqi-satisfactory) 10%,
      var(--aqi-satisfactory) 20%,
      var(--aqi-moderate) 20%,
      var(--aqi-moderate) 40%,
      var(--aqi-poor) 40%,
      var(--aqi-poor) 60%,
      var(--aqi-very-poor) 60%,
      var(--aqi-very-poor) 80%,
      var(--aqi-severe) 80%,
      var(--aqi-severe) 100%);
}

.aqi-bar-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-surface);
  border: 3px solid var(--background);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: left var(--motion-duration-medium3) var(--motion-easing-emphasized);
}

.aqi-bar-us .aqi-bar-gradient {
  background: linear-gradient(to right,
      #00e400 0%,
      #00e400 10%,
      #ffff00 10%,
      #ffff00 20%,
      #ff7e00 20%,
      #ff7e00 30%,
      #ff0000 30%,
      #ff0000 40%,
      #8f3f97 40%,
      #8f3f97 60%,
      #7e0023 60%,
      #7e0023 100%);
}

.now-viewing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 0;
}

.now-viewing-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.now-viewing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.now-viewing-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.now-viewing-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--on-surface);
}

.now-viewing-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--aqi-good);
  font-weight: 500;
  margin-top: 0;
}

.now-viewing-source .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.live-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--aqi-good);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--aqi-good);
}

.concentrations-section {
  margin-top: 16px;
}

.concentrations-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.concentrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.concentration-card {
  background: var(--surface);
  border-radius: var(--shape-corner-large);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--motion-duration-short3) var(--motion-easing-emphasized);
}

.concentration-card:active {
  transform: scale(0.98);
}

.concentration-label {
  background: var(--surface-variant);
  padding: 6px 10px;
  border-radius: var(--shape-corner-medium);
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface-variant);
  text-transform: uppercase;
}

.concentration-value {
  flex: 1;
  text-align: right;
}

.concentration-value .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
}

.concentration-value .unit {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-left: 2px;
}

.cigarette-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
  border-radius: var(--shape-corner-extra-large);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--outline-variant);
  transition: all var(--motion-duration-medium2) var(--motion-easing-standard);
}

.cigarette-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  border-color: var(--outline);
}

.cigarette-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.12) 100%);
  border-radius: var(--shape-corner-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cigarette-icon svg {
  width: 24px;
  height: 24px;
  fill: #ef4444;
}

.cigarette-content {
  flex: 1;
}

.cigarette-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
}

.cigarette-label {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.team-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin: 80px 0;
  padding: 0 24px;
}

.team-taskbar {
  background: rgba(var(--surface-rgb), 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--outline-variant);
  border-radius: 999px;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

.team-taskbar:hover {
  border-color: var(--outline);
}

.team-taskbar.founders {
  border-color: rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--primary-rgb), 0.05);
}

.team-taskbar.founders:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 48px rgba(var(--primary-rgb), 0.2);
}

.team-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  opacity: 0.9;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.member-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
  background: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.member-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.member-circle:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(168, 199, 250, 0.3);
  z-index: 10;
}

.member-circle:hover img {
  transform: scale(1.05);
}

.member-circle.redacted {
  background: #1a1c22;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  cursor: help;
}

.member-circle.redacted:hover {
  border-style: solid;
  border-color: var(--aqi-very-poor);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.redacted-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

.member-circle.redacted:hover .redacted-icon {
  color: var(--aqi-very-poor);
}

.problem-evidence {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evidence-img {
  width: 100%;
  height: auto;
  border-radius: var(--shape-corner-large);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.evidence-img:hover {
  transform: scale(1.02);
  border-color: var(--outline);
}

.evidence-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: italic;
  color: var(--primary);
  opacity: 0.9;
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}

@media (max-width: 767px) {
  .team-footer {
    margin-top: 40px;
    margin-bottom: 110px;
  }

  .member-circle {
    width: 42px;
    height: 42px;
  }

  .team-taskbar {
    padding: 12px 20px;
    border-radius: 30px;
  }

  .team-title {
    font-size: 10px;
    letter-spacing: 2px;
  }
}