/* =====================================================
   NAUTICA — Global Styles
   Dark background · White high-contrast text
   Barlow Condensed + IBM Plex Mono
   ===================================================== */

:root {
  --black:        #080c10;
  --dark:         #0d1117;
  --dark-2:       #111820;
  --dark-3:       #162030;
  --border:       rgba(255,255,255,0.08);
  --border-mid:   rgba(255,255,255,0.15);
  --border-bright:rgba(255,255,255,0.28);
  --white:        #ffffff;
  --off-white:    #e8edf2;
  --muted:        #8899aa;
  --dim:          #445566;
  --accent:       #00cfff;
  --accent-glow:  rgba(0, 207, 255, 0.18);

  /* ship colors */
  --cargo:     #4da6e8;
  --tanker:    #f48c1a;
  --passenger: #34d87a;
  --fishing:   #f5c842;
  --highspeed: #00cfff;
  --military:  #f05050;
  --sailing:   #b07ef5;
  --pleasure:  #26d4b8;
  --tug:       #f09030;
  --other:     #8899aa;
  --unknown:   #445566;

  --nav-h: 58px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════
   NAV BAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 2000;
  background: rgba(8, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-shrink: 0;
}

.status-pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dim);
  transition: background 0.4s, box-shadow 0.4s;
}

.status-pip.online  { background: #34d87a; box-shadow: 0 0 8px rgba(52,216,122,0.6); animation: pip-pulse 2s infinite; }
.status-pip.connecting { background: var(--accent); animation: pip-pulse 0.8s infinite; }
.status-pip.error   { background: #f05050; }

@keyframes pip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.status-text.online { color: #34d87a; }
.status-text.connecting { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.mobile-link {
  padding: 12px 24px;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--off-white);
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.mobile-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   PAGE SYSTEM
═══════════════════════════════════════════ */
.page {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.page.active {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════
   HOME / HERO
═══════════════════════════════════════════ */
#page-home {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(20deg);
  transform-origin: center bottom;
}

.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,207,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 760px;
  width: 100%;
  animation: hero-in 0.8s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
  animation: hero-in 0.8s 0.1s ease both;
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  animation: hero-in 0.8s 0.2s ease both;
}

.hero-desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
  animation: hero-in 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 52px;
  animation: hero-in 0.8s 0.4s ease both;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-mid);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  animation: hero-in 0.8s 0.5s ease both;
}

.hero-stat { text-align: center; }

.hero-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim);
  margin-top: 3px;
  text-transform: uppercase;
}

.hero-stat-div {
  width: 1px; height: 36px;
  background: var(--border);
}

/* ═══════════════════════════════════════════
   MAP PAGE
═══════════════════════════════════════════ */
#page-map {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#map-toolbar {
  flex-shrink: 0;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  z-index: 500;
}

.toolbar-left {
  display: flex;
  gap: 8px;
}

.tb-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.tb-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--dim);
}

.tb-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
}

.toolbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.region-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 5px 32px 5px 12px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.region-select:focus { border-color: var(--border-mid); }
.region-select option { background: var(--dark); }

.toolbar-right { display: flex; gap: 8px; }

.tb-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 2px;
  transition: all 0.2s;
}

.tb-btn:hover {
  border-color: var(--border-mid);
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.tb-btn-download {
  border-color: rgba(0, 207, 255, 0.3);
  color: var(--accent);
}

.tb-btn-download:hover {
  background: rgba(0, 207, 255, 0.1);
  border-color: var(--accent);
  color: var(--white);
}

#map {
  flex: 1;
  position: relative;
}

/* Leaflet dark overrides */
.leaflet-container { background: var(--black) !important; }

.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--dark-2) !important;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font-mono) !important;
  transition: all 0.2s;
}

.leaflet-control-zoom a:hover {
  background: var(--dark-3) !important;
  color: var(--white) !important;
}

.leaflet-control-attribution {
  background: rgba(8,12,16,0.75) !important;
  color: var(--dim) !important;
  font-size: 9px !important;
}

/* Ship markers */
.ship-marker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-marker-wrapper svg {
  filter: drop-shadow(0 0 3px currentColor);
  transition: filter 0.2s;
}

.ship-marker-wrapper:hover svg {
  filter: drop-shadow(0 0 7px currentColor) brightness(1.25);
}

/* Legend */
#legend {
  position: absolute;
  bottom: 24px;
  left: 16px;
  z-index: 900;
  background: rgba(8,12,16,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  min-width: 168px;
  transition: opacity 0.3s, transform 0.3s;
}

#legend.hidden { opacity: 0; pointer-events: none; transform: translateY(6px); }

.legend-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-hint {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
  opacity: 0.6;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.legend-item.filtered { opacity: 0.25; }
.legend-item:hover { opacity: 0.85; }

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

.legend-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--off-white);
  flex: 1;
}

.legend-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
}

/* Side panel */
#side-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  z-index: 800;
  background: rgba(8,12,16,0.93);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

#side-panel.panel-closed { transform: translateX(100%); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.panel-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 13px;
  transition: color 0.2s;
}

.panel-close:hover { color: var(--white); }

#panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

#panel-content::-webkit-scrollbar { width: 3px; }
#panel-content::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  gap: 14px;
  text-align: center;
}

.panel-empty p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
  max-width: 180px;
}

/* Vessel detail */
.vessel-header { display: flex; gap: 12px; margin-bottom: 18px; }

.vessel-type-badge {
  width: 34px; height: 34px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.vessel-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  line-height: 1.1;
}

.vessel-type-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

.vessel-mmsi {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
  margin-top: 2px;
}

.detail-section { margin-bottom: 14px; }

.detail-section-title {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--dim);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.detail-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 10px;
}

.detail-item.full-width { grid-column: 1 / -1; }

.detail-key {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--dim);
  margin-bottom: 3px;
}

.detail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.detail-val small { font-size: 10px; color: var(--dim); }

.speed-bar-wrap {
  margin-top: 4px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.speed-bar-fill {
  height: 100%;
  background: var(--white);
  border-radius: 1px;
  transition: width 0.5s ease;
}

.trail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  margin-top: 6px;
  transition: border-color 0.2s;
}

.trail-toggle:hover { border-color: var(--border-mid); }

.trail-toggle-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}

.toggle-switch {
  width: 26px; height: 14px;
  background: var(--dim);
  border-radius: 7px;
  position: relative;
  transition: background 0.2s;
}

.toggle-switch.on { background: var(--white); }

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--dark);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s;
}

.toggle-switch.on::after { transform: translateX(12px); }

/* ═══════════════════════════════════════════
   CONTENT PAGES (About, How It Works)
═══════════════════════════════════════════ */
.content-page {
  overflow-y: auto;
  background: var(--black);
}

.content-page::-webkit-scrollbar { width: 4px; }
.content-page::-webkit-scrollbar-thumb { background: var(--border-mid); }

.content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  text-align: center;
}

.content-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
}

.content-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.content-body {
  text-align: left;
}

.content-body > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}

.feature-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--border-mid); }

.feature-icon { font-size: 28px; margin-bottom: 12px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 !important;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 36px 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  width: 40px;
  height: 40px;
  background: var(--dark-2);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 !important;
}

/* Info box */
.info-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--muted);
  border-radius: 2px;
  padding: 20px 22px;
  margin: 28px 0;
}

.info-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.info-box p {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.7;
  margin: 0 !important;
}

/* Vessel type table */
.vessel-type-table { margin-top: 36px; }

.vtt-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--dim);
  margin-bottom: 16px;
}

.vtt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.vtt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.vtt-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vtt-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--off-white);
}

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 5000;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 2px;
  border-left: 3px solid var(--border-mid);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--white);
  color: var(--off-white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: 300px;
}

#toast.visible { opacity: 1; transform: translateY(0); }
#toast.success { border-left-color: #34d87a; }
#toast.error   { border-left-color: #f05050; }
#toast.warn    { border-left-color: var(--accent); }

/* ═══════════════════════════════════════════
   LEAFLET POPUP
═══════════════════════════════════════════ */
.leaflet-popup-content-wrapper {
  background: var(--dark-2) !important;
  border: 1px solid var(--border-mid) !important;
  border-radius: 2px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
  color: var(--white) !important;
  font-family: var(--font-display) !important;
}

.leaflet-popup-tip { background: var(--dark-2) !important; }

.popup-inner { padding: 2px; min-width: 140px; }
.popup-name  { font-size: 14px; font-weight: 700; color: var(--white); }
.popup-type  { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; margin-top: 2px; }
.popup-details { margin-top: 6px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.popup-action  { margin-top: 8px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.5px; color: var(--accent); cursor: pointer; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .nav-status { margin-left: auto; }

  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 22px; }

  .content-wrap { padding: 40px 20px 60px; }

  #side-panel { width: 100%; }

  .toolbar-center { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .tb-chip:last-child { display: none; }
}
