.feed-gallery-shell{position:relative;width:100%;overflow:hidden;background:#101813}
.feed-gallery-shell .feed-photo-gallery,.feed-gallery-shell .feed-photo-viewer{position:relative;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scroll-snap-type:x mandatory}
.feed-gallery-shell .feed-photo-slide,.feed-gallery-shell .feed-photo-viewer-slide{scroll-snap-stop:always}
.feed-gallery-nav{position:absolute;top:50%;z-index:6;display:grid;place-items:center;width:42px;height:42px;margin-top:-21px;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(16,39,30,.82);color:#fff;font-size:32px;line-height:1;box-shadow:0 4px 14px rgba(0,0,0,.18);cursor:pointer}
.feed-gallery-nav:focus-visible{outline:3px solid #fff;outline-offset:2px}
.feed-gallery-prev{left:10px}.feed-gallery-next{right:10px}
@media (hover:none) and (pointer:coarse){.feed-gallery-nav{width:46px;height:46px;margin-top:-23px;font-size:34px}}
.atlas-detail .atlas-photo-gallery{order:0}

/* Web/PWA home mirrors the compact Android home. The app shell is phone-width on
   desktop as well, so this intentionally applies to every non-native app shell. */
html:not(.native-app) .home-page{display:grid;gap:8px}
html:not(.native-app) .home-page .hero{padding:16px 18px;border-radius:22px}
html:not(.native-app) .home-page .hero h1{margin:4px 0;font-size:24px;line-height:1.06}
html:not(.native-app) .home-page .hero p{font-size:13px;line-height:1.3}
html:not(.native-app) .home-page .hero-actions{margin-top:11px}
html:not(.native-app) .home-page .hero-actions button{min-height:42px;padding:9px 13px}
html:not(.native-app) .home-page .section-head{margin:8px 2px 4px}
html:not(.native-app) .home-page .section-head h2{font-size:17px}
html:not(.native-app) .home-page .stats-grid{gap:6px}
html:not(.native-app) .home-page .stat-card{padding:9px 7px;border-radius:14px}
html:not(.native-app) .home-page .stat-card strong{font-size:17px}
html:not(.native-app) .home-page .stat-card span{margin-top:2px;font-size:11px}
html:not(.native-app) .home-page .micro-note{margin-top:2px;font-size:11px}
html:not(.native-app) .home-page .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html:not(.native-app) .home-page .quick-card{min-height:72px;padding:8px 4px;border-radius:14px;text-align:center}
html:not(.native-app) .home-page .quick-card .qicon{margin-bottom:5px;font-size:20px}
html:not(.native-app) .home-page .quick-card strong{font-size:11px;line-height:1.15}
html:not(.native-app) .home-page .quick-card small{display:none}
html:not(.native-app) .home-page .trip-card{grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding:9px 10px;border-radius:14px}
html:not(.native-app) .home-page .trip-icon{width:40px;height:40px;border-radius:12px;font-size:19px}
html:not(.native-app) .home-page .trip-title,
html:not(.native-app) .home-page .trip-score strong{font-size:13px}
html:not(.native-app) .home-page .trip-meta,
html:not(.native-app) .home-page .trip-score small{font-size:10px}
html:not(.native-app) .home-page .empty{padding:13px 10px;font-size:12px}
html:not(.native-app) .home-page .empty .big{display:inline;margin:0 6px 0 0;font-size:18px}
@media (max-width:360px){html:not(.native-app) .home-page .quick-card strong{font-size:10px}}

/* GPSFix3: compact, privacy-safe live trip diagnostics. */
.gps-status-card{margin-top:8px;padding:9px 10px;border:1px solid rgba(23,60,44,.14);border-radius:14px;background:rgba(255,255,255,.48)}
.gps-status-line{display:flex;align-items:center;gap:7px;min-width:0}
.gps-status-line strong{font-size:13px;line-height:1.2}
.gps-status-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#a47d23;box-shadow:0 0 0 3px rgba(164,125,35,.12)}
.gps-status-ok .gps-status-dot{background:#2f7b55;box-shadow:0 0 0 3px rgba(47,123,85,.12)}
.gps-status-bad .gps-status-dot{background:#a94438;box-shadow:0 0 0 3px rgba(169,68,56,.12)}
.gps-status-accuracy{margin-left:auto;font-size:12px;font-weight:700;white-space:nowrap}
.gps-status-meta{margin-top:5px;font-size:11px;line-height:1.35;opacity:.86}
.gps-diagnostics-button{min-height:32px;margin-top:6px;padding:5px 9px;font-size:11px}
.gps-diagnostic-summary{display:grid;gap:5px}
.gps-log-list{display:grid;gap:5px;max-height:42vh;overflow:auto;padding:2px 0 4px}
.gps-log-row{display:grid;grid-template-columns:auto auto 1fr;gap:4px 7px;align-items:baseline;padding:7px 8px;border:1px solid rgba(23,60,44,.10);border-radius:10px;font-size:10px;line-height:1.3}
.gps-log-row>span:first-child{font-variant-numeric:tabular-nums}
.gps-log-row>strong{font-size:9px;letter-spacing:.04em}
.gps-log-row>small{grid-column:1/-1;overflow-wrap:anywhere;opacity:.78}
.native-app .active-trip .gps-status-card{padding:7px 9px}
.native-app .active-trip .gps-status-card .micro-note{font-size:10px;line-height:1.3}
@media (max-width:360px){.gps-status-meta{font-size:10px}.gps-status-line strong{font-size:12px}}

/* PWA20: one-photo confirmation preview before persisting to a completed trip. */
.trip-camera-preview-panel{display:grid;gap:10px;margin-top:10px}
.trip-camera-preview-panel[hidden]{display:none}
.trip-camera-preview-image{display:block;width:100%;max-height:38vh;object-fit:cover;border-radius:18px;border:1px solid rgba(23,60,44,.14);background:#e9eee8}
.trip-camera-reject{min-height:46px;border:1px solid rgba(23,60,44,.28);background:transparent;color:#173c2c}
.trip-camera-reject:focus-visible{outline:3px solid rgba(46,107,80,.32);outline-offset:2px}
