@media (max-width: 639px) {
  body.mobile-panel-open { overflow: hidden; }
  .masthead { min-height: 58px; padding: 8px 12px; display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; }
  .masthead .edition { display: none; }
  .wordmark { flex: none; gap: 7px; font-size: 10px; letter-spacing: 1px; }
  .wordmark-logo { width: 31px; height: 31px; }
  .wordmark span { max-width: 117px; white-space: normal; font-size: 9px; line-height: 1.25; }
  .masthead nav { margin-left: auto; gap: 10px; font-size: 11px; white-space: nowrap; }
  .masthead nav a, .masthead nav button { font-size: 11px; }
  .mobile-panel-bar { display: flex; gap: 6px; padding: 8px 10px; background: #1b2225; border-bottom: 1px solid #46555a; }
  .mobile-panel-bar button { flex: 1; min-width: 0; height: 38px; padding: 0 6px; border: 1px solid #46555a; border-radius: 6px; background: #ffffff08; color: #e6eceb; font: 500 12px system-ui, sans-serif; }
  .mobile-panel-bar button[aria-expanded=true] { background: #e8ce94; border-color: #e8ce94; color: #172125; }
  .mobile-panel-backdrop { position: fixed; inset: 0; z-index: 9990; background: #0008; }
  .mobile-panel { box-sizing: border-box; position: fixed; top: 58px; right: 0; bottom: 0; z-index: 9991; display: flex; flex-direction: column; width: min(80vw, 312px); max-width: 100%; overflow: hidden; background: #1b2225; color: #e6eceb; border: 1px solid #46555a; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; box-shadow: -12px 0 40px #0008; }
  .mobile-panel[hidden], .mobile-panel-backdrop[hidden] { display: none !important; }
  .mobile-panel-head { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-bottom: 1px solid #46555a; }
  .mobile-panel-head strong { font: 600 16px system-ui, sans-serif; color: #f2f5f2; }
  .mobile-panel-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: #ffffff0a; color: #e9eeee; font: 26px/1 system-ui, sans-serif; }
  .mobile-panel-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); color: #dbe3df; }
  .mobile-panel-content .filterbar { display: grid !important; position: static !important; grid-template-columns: 1fr !important; gap: 14px !important; padding: 0 !important; border: 0 !important; }
  .mobile-panel-content .filterbar > * { grid-column: 1 / -1; }
  .mobile-panel-content .filterbar .agency-field { display: block !important; }
  .mobile-panel-content .filterbar label { display: block; margin-bottom: 6px; color: #afbfba; font: 11px system-ui, sans-serif; }
  .mobile-panel-content .filterbar input, .mobile-panel-content .filterbar select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 10px; background: #101719; color: #e9eeee; border: 1px solid #4a5a5b; border-radius: 6px; font: 14px system-ui, sans-serif; }
  .mobile-panel-content .filterbar .reset-filters { position: static !important; justify-self: start; padding: 4px 0; font-size: 12px; }
  .mobile-panel-content .plans-switch { display: flex; gap: 8px; align-items: center; padding: 15px 0 0; font-size: 13px; }
  .mobile-panel-content .plans-switch input { width: 18px; height: 18px; accent-color: #dfc18a; }
  .mobile-panel-content .legend, .mobile-panel-content .playbackbar, .mobile-panel-content .map-actions { display: flex !important; position: static !important; flex-wrap: wrap; width: auto !important; margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; }
  .mobile-panel-content .map-tools { flex-wrap: wrap; }
  .map-toolbar { padding: 8px 14px 7px; display: block; }
  .atlas-heading h1 { margin: 0 0 3px; font-size: 18px; line-height: 1.2; letter-spacing: 0; }
  .atlas-heading p { margin: 0; font-size: 10px; line-height: 1.3; }
  .chart-sheet { width: calc(100% - 24px); margin: 0 12px; }
  .chart-sheet .map-frame { width: 100%; height: 350px; min-height: 350px; max-height: none; aspect-ratio: auto; }
  .timebar { padding: 12px; }
  .mobile-map-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 8; display: flex; gap: 3px; padding: 4px; background: #172024eb; border: 1px solid #5b686a; border-radius: 7px; }
  .mobile-map-zoom button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: #ffffff0a; color: #eef4f2; font: 20px system-ui, sans-serif; }
}
