:root{
  --accent:#02A0FF;
  --text:#e6eef9;
  --muted:#9fb3d1;
  --btn:#1f2a4a;
  --btn-hover:#28345a;
  --input-border:rgba(255,255,255,.3);
}

*{
  box-sizing:border-box;
}

body{
  min-height: 100vh;
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: linear-gradient(180deg, #140027 0%, #1f003e 10%, #1f2d5a 50%, #1b4c3c 100%);
  color:var(--text);
  padding-bottom: 70px;
  scroll-behavior: auto;
  overscroll-behavior: none;
}
/* do not underline <a> */
a{
    color:var(--accent);
    text-decoration: none;
}
a:hover{
    text-decoration: none;
}

.nav-panel {
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(30, 30, 30);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 10px;
  z-index: 10;
}

.image-nav {
  position: relative;
  height: 45px;
  display: flex;
  padding: 0;
  margin: 0;
}

.image-nav a {
  position: absolute; 
  top: 50%; 
  transform: translate(-50%, -50%);
}


.image-nav img {
  height: 30px;
  width:  30px;
}

/* Aurora logo in navigation - different sizing */
.image-nav img#aurora-logo {
  height: 30px;
  width: auto; /* Let it scale naturally based on height */
  max-width: none; /* Remove any width constraints */
}

/* Top navigation panel - mirrors bottom nav-panel */
.top-nav-panel {
  text-align: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
  padding: 8px 10px;
  z-index: 10;
}

/* used for home, info, settings pages */
.container{
  max-width:980px;
  margin:28px auto;
  padding:0 16px;
  width: 100%;
  overflow-x: hidden;
}

/* Ensure the first location button has enough top spacing to clear the sticky header */
#locationBox {
  margin-top: 2px;
}
.container::-webkit-scrollbar{
  display: none;
  width:0px;
}

.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.08); border-radius:16px;
  padding:6px; 
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  margin-bottom: 12px;
  transition: transform 0s ease-in-out, box-shadow 0s ease-in-out;
}

.panel h2{
  margin-top: 3px;
}
.panel > :last-child {
  margin-bottom: 0px;
}

/* Modal-specific panel that overrides transparent background */
.panel.modal-panel {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid #444;
}

/* === KV GRID STYLES === */
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;/*repeat(auto-fit, minmax(180px, 2fr));*/
  gap: 3px;
  margin-bottom: 3px;
}
.kv-item {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  height: 100%;
  transition: transform 0s ease-in-out, box-shadow 0s ease-in-out, border-color 0s ease-in-out;
}
.kv-item strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1px;
}

.kv-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.v-item {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  height: 100%;
  transition: transform 0s ease-in-out, box-shadow 0s ease-in-out, border-color 0s ease-in-out;
  display: flex;
  flex-direction: column;   /* stack children vertically */
  gap: 4px;                 /* optional spacing between lines */
  align-items: center;
  margin-bottom: 4px; /* add 4px gap under v-item */
}
.v-item .locationIcon {
  height: 12px;
  width: 12px;
  vertical-align: text-top;
  transform: translateY(-6px);
  margin-left: 2px;
  filter: invert(48%) sepia(93%) saturate(1915%) hue-rotate(171deg) brightness(102%) contrast(102%);
  display: none; /* Hidden by default */
}
.v-item .locationIcon.visible {
  display: inline-block;
}
/* Invisible placeholder to maintain alignment of text */
#locationIcon2 {
  display: inline-block;    /* allow width to take effect */
  width: 12px;              /* adjustable horizontal size */
  height: 1px;              /* minimal height so it doesn't affect line-height */
  visibility: hidden;       /* invisible but still occupies layout space */
}
/* location name */
.v-item .large{
  font-size: 30px;
  font-weight: 500;
  color: var(--accent); /* lime; */
}
/* distance and time */
.v-item .small {
  font-size: 16px;
  color: var(--text);
}

/* UNIFIED HOVER EFFECT */
.kv-item-link:hover .kv-item,
.v-item:hover,
a.section-header-link:hover .section-header-container {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 35px rgba(0,0,0,.4);
}

/* === LINK WRAPPER STYLES === */
a.section-header-link {
  text-decoration: none;
  display: block;
  color: inherit;
  cursor: pointer;
}

/* === SECTION HEADER STYLES === */
.multiline{
  white-space: pre-line;
}

.section-header-container {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px 6px;
  border-radius: 16px 16px 0 0;
  margin: -2px -2px 8px;
  transition: all 0s ease-in-out;
}
.section-header-container h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent); /* #4c6995; */
  margin: 0;
}
/* =============================== */
.wrap{
  border-radius:16px;
  border:2px solid rgba(255,255,255,.08);
  margin: 16px 0 8px;
}

.imgwrap{
  position: relative;  
}
.imgwrap img{
  display:block;
  width:100%;
  height:auto;
  cursor:pointer;
}

.image-container {
  overflow: hidden;
  position: relative; /* All children will be positioned relative to this */
  display: block;
  width: 100%;
  height: auto;
}

.base-image { /* for the map */
  /* margin-top: -50px; Trying to crop off the top of the image. */
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.overlay-image { /* for the marker */
  position: absolute;
  height: 10px; /* size of marker image */
  width: 10px;
  z-index: 2;   /* Make sure the overlay is on top */
  transform: translate(-50%, -50%); /* Add this line */
}

.iframe-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 850 / 1000;
  margin-bottom: 12px;
}

.iframe-help {
  position: absolute;
  left: 95%; 
  height: 5%; 
  width: 5%;
  z-index: 5;  /* above the iframe */
}

iframe {
  position: absolute;
  top: 46%;
  left: 50%;
  border: none;
  width: 850px;
  height: 1000px;
  transform: translate(-50%, -50%) scale(var(--scale-factor, 1));
}

.formgrid{
  display:grid;
  gap:6px
}
.formgrid label{
  font-size:12px;color:var(--muted);
  display:block;
  margin-bottom:6px
}
.input, select, .seg{
  width:100%;
  background:rgba(255,255,255,.0);
  border:1px solid rgba(255,255,255,.0);
  color:var(--text);
  padding:10px 6px;
  border-radius:10px;
  outline:none;
}
#fixedLocSearch, #fixedLocSearchSettings {
  font-size: 18px;
}
#fixedLocSearchSettings.active {
  border-color: var(--accent);
  background: var(--btn);
}

.formgrid .row {
  align-items: center;   /* vertical alignment of title + controls */
  gap: 6px;             /* horizontal spacing between items */
}

/* ensure consistent vertical spacing between rows in the Settings page
   so titles like "Distance Units" line up with spacing in the Alert Settings panel */
#settingsPage .formgrid > .row {
  margin-top: 3px; /* adjust value to match the Alert Settings spacing */
}
/* avoid adding extra gap before the very first row */
#settingsPage .formgrid > .row:first-child {
  margin-top: 0;
}

.input{
  border: 1px solid var(--input-border);
}

.input::placeholder{color:#c7d3ea80}
.input:disabled, .input[readonly] {
  background: rgba(0,0,0,.1); 
  color: var(--muted); 
  opacity: 0.7; 
}
.row{
  display:grid;
  grid-template-columns:1fr;
  gap:3px
}
@media (max-width:720px){ .row{grid-template-columns:1fr} }
.seg{
  display:flex;
  gap:8px;
  padding:0px
}
.seg input{
  display:none
}
.seg label{
  flex:1;
  padding:10px 3px;
  border-radius:8px;
  text-align:center;
  border:1px solid var(--input-border);
  cursor:pointer;
}
.seg input:checked + label{
  background:var(--btn-hover);
  border-color:var(--accent)
}

.small{
  font-size:12px;
  color:var(--muted)
}

.top-navIcon-btn {
  background: rgba(30, 30, 30, 0);
  border: none;
  padding: 4px;
  line-height: 0;
  cursor: pointer;
  border-radius: 50%;
}
.top-navIcon-btn img.navIcon {
  height: 30px;
  width: 30px;
  margin: 0;
  vertical-align: middle;
  opacity: 0.8;
  transition: opacity 0s ease;
}
.top-navIcon-btn:hover img.navIcon {
  opacity: 1.0;
}

/* Standard size for icons in text */
.icon-in-text {
  height:16px; 
  vertical-align: middle;
}

/* Special alignment for Aurora Tonight logo in text */
img[src*="auroratonight"].icon-in-text {
  vertical-align: text-top;
  height: 18px; /* Slightly larger for better visibility */
}

/* Larger size for icon-192.png in text */
img[src$="icon-192.png"].icon-in-text {
  height: 20px;
}

/* Inverted icons for _off and _on images */
img[src*="_off"], img[src*="_on"], img[src*="compass.png"],
img[src*="back_icon.svg"], img[src*="M_circle.svg"], img[src*="refresh_icon.svg"] {
  filter: invert(1);
}

/* icons in accent color */
img[src*="location.svg"], img[src*="ip_location.svg"], img[src*="diagonalarrow.png"] {
  filter: invert(48%) sepia(93%) saturate(1915%) hue-rotate(171deg) brightness(102%) contrast(102%);
}

#infoPage p {
  font-size: 17px;      /* base text */
  line-height: 1.3;  /* comfortable line spacing */
  color: rgba(255, 255, 255, 0.8); /* slightly muted */
}

.time-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.time-wrapper label {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75em;
  color: #888;
  font-weight: normal;
  pointer-events: none;
  z-index: 1;
}

.time-wrapper input[type="time"] {
  padding: 10px 6px 10px 35px;
  font-size: 0.9em;
  width: 100%;
}

/* Slider Styles */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 8px 0;
}

.slider {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, 
    rgba(255,255,255,0.2) 0%, 
    rgba(255,255,255,0.2) var(--fill-percentage, 50%), 
    #4a9eff var(--fill-percentage, 50%), 
    #4a9eff 100%);
}

.sliderTicks {
  position: relative;
  font-size: 0.75em;
  color: #888;
  margin-top: 2px;
  height: 1.2em;
  width: 100%;
}

.sliderTicks span {
  position: absolute;
  transform: translateX(-50%); /* Center the text on the position */
  white-space: nowrap; /* Prevent text wrapping */
}

/* Position ticks at exact slider value positions  */
.sliderTicks span:nth-child(1) { left: calc(0% + 10px); }    /* G1 - value 1 */
.sliderTicks span:nth-child(2) { left: calc(20% + 8px); }   /* G2 - value 2 */
.sliderTicks span:nth-child(3) { left: calc(40% + 4px); }   /* G3 - value 3 */
.sliderTicks span:nth-child(4) { left: calc(60% + 0px); }   /* G4 - value 4 */
.sliderTicks span:nth-child(5) { left: calc(80% - 4px); }   /* G5 - value 5 */
.sliderTicks span:nth-child(6) { left: calc(100% - 10px); }  /* OFF - value 6 */

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a9eff;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin-top: -4px; /* Center the thumb on the track */
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a9eff;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: none; /* Remove default border for Firefox */
  margin-top: 0; /* Firefox handles this differently */
}

/* Firefox specific fixes */
.slider::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  border: none;
}

.slider-value {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
  color: var(--primary);
}

.slider-label {
  font-size: 0.8em;
  color: #888;
  min-width: 35px;
  text-align: center;
}

#geodgpContainer {
  aspect-ratio: 18 / 16;
  padding-top: 4px;
  background: transparent;
}
#geodgpContainer img {
  height: 118%;
  scale: 105%;
  object-fit: contain;
}

/* Apply scroll margin to all elements with an id (internal link targets) */
[id] {
  scroll-margin-top: 80px;
}

.faq-answer {
  display: none;
  margin-left: 24px;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-triangle {
  display: inline-block;
  transition: transform 0.2s;
  margin-right: 8px;
}
.faq-item.active .faq-triangle {
  transform: rotate(90deg); /* Down-pointing triangle */
}
.faq-question {
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
}

[id^="faq"] {
  margin-bottom: 12px;
  color: var(--text);
}
[id^="faq"] p {
  margin: 4px 0 0; 
  color: var(--muted);
}

/* === NEW LOCATION MODAL STYLES === */
.locationModalBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.locationModal {
  width: 100%;
  max-width: 420px;
  background:linear-gradient(180deg, rgba(40,52,90,.9), rgba(30,39,74,.9));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

/* Reduce padding for chart modals */
#cloudModal, #kpModal {
  padding: 6px 6px 12px;
}

/* Location button */
.locationBtn {
  width: 100%;
  margin-bottom: 8px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.locationBtn:hover {
  background: var(--btn-hover);
}
.locationBtn.active {
  border-color: var(--accent);
  background: var(--btn);
  box-shadow: 0 8px 22px rgba(2, 160, 255, 0.18);
  transform: translateY(-1px);
}

#searchResults {
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.result-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 14px;
}
.result-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.locationModal-sectionTitle {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin: 20px 0 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

/* Keep */
#geodgpContainer .polar-cover-overlay {
  position: absolute;
  top: 10.5%;
  left: 25.5%;
  width: 40%; 
  height: 80%;
  z-index: 2;
  pointer-events: none;
  cursor: default;
  scale: 2.04;
}
/* Add the arrow icon after the external link */
a[href^="http"]:not(.top-navIconBtn)::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 2px;
  vertical-align: text-top;
  background-image: url("assets/diagonalarrow.png");
  filter: invert(48%) sepia(93%) saturate(1915%) hue-rotate(171deg) brightness(90%) contrast(102%);
  background-size: contain;
  background-repeat: no-repeat;
}

#noaaImg {
  filter: brightness(0.75); /* tweak 0.0–1.0 for more/less dark */
  padding: 2%;
}

/* START: New Styles for Settings Page Location Finder */

/* Styles the search results container on the settings page */
#searchResultsSettings {
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
}

/* === NEW CLOUD MODAL STYLES === */
.modalTitle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--muted);
  white-space: pre-line;
}

/* Reduce top/bottom margin for chart modal titles */
#cloudModal .modalTitle,
#kpModal .modalTitle {
  margin: 0 0 8px;
}

.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
  touch-action: none;
}

.chart-tooltip {
  position: absolute;
  background: rgba(40, 52, 90, 0.9);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0s ease;
  z-index: 10;
  top: -40px; /* Position above the chart */
  text-align: center;
  font-size: 14px;
}

#tooltipValue {
  font-weight: 600;
  margin-top: 4px;
}

.chart-line {
  position: absolute;
  top: 0;
  bottom: 25px; /* leave space for x-axis labels */
  width: 1px;
  background-color: var(--accent);
  pointer-events: none;
  z-index: 9;
}

/* === TIME SLIDER STYLES === */
.timeSlider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0px -2px -2px;
  padding: 8px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 16px 16px;
}

.timeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0px 0;
  padding: 5px 0px 0px 0px;
  box-sizing: border-box;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, 
    rgba(255,255,255,.1) 0%, 
    rgba(2, 160, 255, 0.3) 50%, 
    rgba(255,255,255,.1) 100%);
  outline: none;
  transition: all 0s ease;
  border: none;
}

.timeSlider:hover {
  background: linear-gradient(90deg, 
    rgba(255,255,255,.3) 0%, 
    rgba(2, 160, 255, 0.7) 50%, 
    rgba(255,255,255,.3) 100%);
}

.timeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0185cc);
  cursor: pointer;
  border: 2px solid #015088;
  box-shadow: 0 2px 10px rgba(2, 160, 255, 0.3);
  transition: all 0s ease;
}

.timeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(2, 158, 255, 0.7);
}

.timeSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0185cc);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 10px rgba(2, 160, 255, 0.3);
  transition: all 0s ease;
}

.timeSlider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(2, 160, 255, 0.7);
}

.timeSliderTicks {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 0 26px;
}

.timeSliderTick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}

#comparisonTable {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
#comparisonTable th {
  background-color: lime;
  color: black;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,.1);
}
#comparisonTable td {
  padding: 8px;
  border: 1px solid #444;
  text-align: center;
  background-color: rgb(30, 30, 30);
}
#comparisonTable td.lime {
  background-color: rgb(0, 40, 0);
  color: lime; 
}
#comparisonTable td.yellow {
  background-color: rgb(40, 40, 0);
  color: yellow; 
}

/* === PWA SPECIFIC STYLES === */
/* Hide scrollbars in standalone mode for more app-like feel */
@media all and (display-mode: standalone) {
  body {
    overflow-x: hidden;
    user-select: none; /* Prevent text selection for app-like feel */
    -webkit-user-select: none;
    -webkit-touch-callout: none; /* Disable callout on iOS */
  }
  
  /* Remove any remaining scroll indicators */
  ::-webkit-scrollbar {
    display: none;
  }
  
  /* Prevent zoom on input focus (iOS) */
  input, select, textarea {
    font-size: 16px;
  }
  
  /* Better touch targets for standalone mode */
  .locationBtn, .kv-item, .v-item, button {
    min-height: 44px; /* iOS recommended touch target size */
    min-width: 44px;
  }
}

/* Install button styles */
.pwa-installBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 160, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pwa-installBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 160, 255, 0.4);
}

.pwa-installBtn:active {
  transform: translateY(0);
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(30px, env(safe-area-inset-left));
    padding-right: max(30px, env(safe-area-inset-right));
    padding-top: max(8px, env(safe-area-inset-top));
  }
  
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  
  .nav-panel {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
}

