/* Meckman Design System V4 — Business Barometer Theme */

:root {
  --primary: #000000;
  --secondary: #2A2A2A;
  --accent: #FFF2CC;
  --spark: #CC0000;
  --text: #FFFFFF;
  --text-muted: #CCCCCC;
  --bg: #000000;
  --card-bg: #2A2A2A;
  --border-tan: rgba(255, 242, 204, 0.2);
  --border-tan-solid: rgba(255, 242, 204, 0.4);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font: 'Inter', sans-serif;

  /* Status colors */
  --status-healthy: #4CAF50;
  --status-moderate: #FFF2CC;
  --status-warning: #FF9800;
  --status-danger: #CC0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Schematic background pattern */
.bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 242, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 242, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border-tan);
  padding: 24px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.header-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
}

/* Data Provenance Bar */
.provenance-bar {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-tan);
}

.provenance-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.provenance-scope {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provenance-flag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 242, 204, 0.12);
  color: var(--accent);
  border: 1px solid var(--border-tan);
  border-radius: 3px;
  padding: 3px 8px;
}

.provenance-scope-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.provenance-sources {
  display: flex;
  gap: 20px;
}

.provenance-source {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.source-dot.source-live {
  background: var(--status-healthy);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.source-dot.source-demo {
  background: var(--status-warning);
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.4);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.source-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.source-org {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.source-date {
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.provenance-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-label {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}

.accent-line {
  width: 40px;
  height: 2px;
  background: var(--spark);
  margin: 0 auto;
}

/* Divider with dot */
.divider {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: var(--border-tan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spark);
  position: relative;
  top: 0;
}

/* Gauges Grid */
.gauges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.gauge-card {
  background: var(--card-bg);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s;
}

.gauge-card:hover {
  border-color: var(--border-tan-solid);
}

.gauge-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.gauge-svg {
  width: 200px;
  height: 120px;
  margin: 0 auto;
}

.gauge-score {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 16px;
}

.gauge-status {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.status-healthy { color: var(--status-healthy); }
.status-moderate { color: var(--status-moderate); }
.status-warning { color: var(--status-warning); }
.status-danger { color: var(--status-danger); }

/* Gauge trend delta */
.gauge-trend {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.gauge-trend.up { color: var(--status-healthy); }
.gauge-trend.down { color: var(--status-danger); }
.gauge-trend.neutral { color: var(--text-muted); }


/* Score Legend */
.score-legend {
  margin-top: 48px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
}

.legend-title {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.legend-bar {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
}

.legend-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.legend-zone span {
  font-size: 0.6rem;
  font-weight: 600;
}

.zone-danger { background: var(--status-danger); }
.zone-warning { background: var(--status-warning); }
.zone-moderate { background: var(--status-moderate); color: #000; }
.zone-healthy { background: var(--status-healthy); }

.legend-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Alerts Feed */
.alerts-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.alert-card {
  background: var(--card-bg);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.alert-card.severity-high {
  border-left: 3px solid var(--spark);
}

.alert-card.severity-medium {
  border-left: 3px solid var(--status-warning);
}

.alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.alert-icon.up {
  color: var(--status-healthy);
}

.alert-icon.down {
  color: var(--status-danger);
}

.alert-body {
  flex: 1;
}

.alert-segment {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.alert-message {
  font-size: 0.9rem;
  color: var(--text);
}

.alert-clickable {
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.alert-clickable:hover {
  border-color: var(--border-tan-solid);
  background: rgba(255, 242, 204, 0.03);
}

.alert-chevron {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.alert-clickable:hover .alert-chevron {
  opacity: 1;
  color: var(--accent);
}

/* Alert detail modal content */
.alert-detail-context {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-detail-segment {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 242, 204, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.alert-detail-chart-wrap {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  height: 220px;
}

.alert-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.alert-detail-stat {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.alert-detail-stat-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.alert-detail-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.alert-detail-stat-value.up { color: var(--status-healthy); }
.alert-detail-stat-value.down { color: var(--status-danger); }

.alert-detail-range {
  margin-bottom: 16px;
}

.alert-detail-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.no-alerts {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 32px;
}

/* Segment Tabs */
.segment-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.segment-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s;
}

.segment-tab:hover {
  color: var(--text);
  border-color: var(--border-tan-solid);
}

.segment-tab.active {
  background: var(--card-bg);
  color: var(--accent);
  border-color: var(--accent);
}

/* Segment Detail */
.segment-detail {
  max-width: 900px;
  margin: 0 auto;
}

.indicator-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-tan);
  gap: 24px;
}

.indicator-row:last-child {
  border-bottom: none;
}

.indicator-left {
  flex: 1;
  min-width: 0;
}

.indicator-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.indicator-name {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.indicator-inverted {
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.indicator-interpret {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  opacity: 0.8;
}

.alert-detail-guide {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-tan);
}

.alert-detail-guide h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.alert-detail-guide p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.indicator-as-of {
  font-size: 0.58rem;
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
  margin-left: auto;
}

/* Section timestamp */
.section-timestamp {
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.indicator-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.indicator-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.indicator-unit {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.indicator-trend {
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.indicator-trend.up { color: var(--status-healthy); }
.indicator-trend.down { color: var(--status-danger); }
.indicator-trend.neutral { color: var(--text-muted); }

.indicator-pct {
  font-size: 0.75rem;
  font-weight: 600;
}

/* 52-week range */
.indicator-range {
  margin-top: 4px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.range-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.range-fill {
  height: 100%;
  background: rgba(255, 242, 204, 0.15);
  border-radius: 2px;
}

.range-marker {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 4px rgba(255, 242, 204, 0.4);
}

.range-label-52w {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Score column on the right */
.indicator-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 60px;
  padding-top: 4px;
}

.indicator-score {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.indicator-score-bar {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.indicator-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Sparklines Grid */
.sparklines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.sparkline-card {
  background: var(--card-bg);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sparkline-info {
  flex: 1;
  min-width: 0;
}

.sparkline-name {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sparkline-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.sparkline-change {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 2px;
}

.sparkline-change.up { color: var(--status-healthy); }
.sparkline-change.down { color: var(--status-danger); }

.sparkline-chart {
  width: 120px;
  height: 40px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border-tan);
}

.footer-text {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Loading state */
.loading-skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, #333 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Info Button */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-tan-solid);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  font-style: italic;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.info-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Info Modal — V4 design: charcoal, tan border, rounded 12px */
.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.info-overlay.open {
  opacity: 1;
  visibility: visible;
}

.info-modal {
  background: var(--card-bg);
  border: 1px solid var(--border-tan-solid);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.3s;
}

.info-overlay.open .info-modal {
  transform: translateY(0);
}

.info-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.info-close:hover {
  color: var(--text);
  border-color: var(--border-tan-solid);
}

.info-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-right: 60px;
}

.info-content h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 20px;
  margin-bottom: 8px;
}

.info-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.info-content .info-good,
.info-content .info-bad {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.info-content .info-good {
  background: rgba(76, 175, 80, 0.08);
  border-left: 3px solid var(--status-healthy);
  color: var(--text);
}

.info-content .info-bad {
  background: rgba(204, 0, 0, 0.08);
  border-left: 3px solid var(--status-danger);
  color: var(--text);
}

.info-content .info-neutral {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 8px;
  background: rgba(255, 242, 204, 0.06);
  border-left: 3px solid var(--accent);
  color: var(--text);
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .header {
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .footer {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
}

/* Tablet — 2 columns for gauges, tighter spacing */
@media (max-width: 1024px) {
  .gauges-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }

  .sparklines-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
  }

  .section {
    padding: 60px 20px;
  }

  .indicator-bar-wrap {
    width: 140px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 0 16px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .section {
    padding: 40px 16px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .gauges-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gauge-card {
    padding: 24px 16px;
  }

  .gauge-svg {
    width: 160px;
    height: 96px;
  }

  .gauge-score {
    font-size: 2rem;
  }

  .sparklines-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sparkline-card {
    padding: 16px;
    gap: 12px;
  }

  .sparkline-value {
    font-size: 1.1rem;
  }

  .sparkline-chart {
    width: 90px;
    height: 36px;
  }

  .provenance-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    justify-content: center;
  }

  .provenance-scope-label {
    display: none;
  }

  .source-org {
    display: none;
  }

  .provenance-sources {
    gap: 14px;
  }

  .indicator-row {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  .indicator-right {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .indicator-score-bar {
    flex: 1;
  }

  .indicator-score {
    font-size: 1.1rem;
  }

  .indicator-value {
    font-size: 1rem;
  }


  /* Segment tabs — stack vertically on mobile */
  .segment-tabs {
    flex-direction: column;
    gap: 6px;
  }

  .segment-tab {
    padding: 12px 18px;
    font-size: 0.75rem;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .alert-card {
    padding: 12px 16px;
    gap: 12px;
  }

  .alert-message {
    font-size: 0.85rem;
  }

  .alerts-feed {
    gap: 8px;
  }

  .footer {
    padding: 32px 16px;
  }

  .divider {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .brand-title {
    font-size: 0.9rem;
  }

  .gauge-svg {
    width: 140px;
    height: 84px;
  }

  .gauge-score {
    font-size: 1.75rem;
  }

  .sparkline-chart {
    width: 70px;
    height: 30px;
  }
}

/* Landscape phone — side-by-side gauges */
@media (max-width: 768px) and (orientation: landscape) {
  .gauges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .gauge-card {
    padding: 16px 12px;
  }

  .gauge-svg {
    width: 120px;
    height: 72px;
  }

  .gauge-score {
    font-size: 1.5rem;
    margin-top: 8px;
  }

  .gauge-label {
    margin-bottom: 12px;
    font-size: 0.7rem;
  }

  .section {
    padding: 24px 16px;
  }

  .section-header {
    margin-bottom: 20px;
  }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
  .segment-tab {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gauge-card:hover {
    border-color: var(--border-tan);
  }
}
