/* Reisezeit-Weltkarte (MapLibre-Version)
   Prinzip: Vollflächige Karte/Globus, schwebendes Glas-Chrome, Chrome monochrom.
   Die einzigen Farben auf dem Schirm sind die Datenfarben (ideal / machbar). */
:root {
  --bg: #0b0d12;
  --track-bg: rgba(255, 255, 255, .18);
  --track-fill: #0a84ff;
  --chrome-bg: #10141c; /* Von Safari 26 gesampelte Leisten-Farbe, nah an der Ozeanfarbe der Karte */
  --bg-grad: radial-gradient(120% 90% at 50% 42%, #121a2a 0%, #0b0d12 55%, #05060a 100%);
  --ideal: #30d47e;
  --okay: #f0a94b;
  --land-bad: #4a5266;
  --ideal-soft: rgba(48, 212, 126, .15);
  --okay-soft: rgba(240, 169, 75, .15);
  --bad-soft: rgba(150, 160, 180, .12);
  --glass: rgba(18, 20, 27, .78);
  --glass-strong: rgba(21, 23, 31, .92);
  --hairline: rgba(255, 255, 255, .09);
  --text: #f2f4f7;
  --text-dim: #9aa3b4;
  --text-faint: #626c7e;
  --chip: rgba(255, 255, 255, .92);
  --chip-text: #14161c;
  --hover-wash: rgba(255, 255, 255, .07);
  --sel-stroke: #ffffff;
  --rain: #4a86c2;
  --chart-line: #f2f4f7;
  --price: #e8c268;
  --radius-l: 18px;
  --shadow: 0 16px 48px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Light Mode = Tag: Himmel-Gradient mit Sonnen-Glow, warmes Glas, tiefblauer Akzent-Chip */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #bcd9ec;
    --track-bg: rgba(20, 30, 50, .16);
    --track-fill: #007aff;
    --chrome-bg: #cfe2ea;
    --bg-grad: linear-gradient(180deg, #7db6dd 0%, #cde5f2 46%, #fdecd2 100%);
    --ideal: #12a45f;
    --okay: #dd8f24;
    --land-bad: #9aa6ba;
    --ideal-soft: rgba(18, 164, 95, .14);
    --okay-soft: rgba(221, 143, 36, .16);
    --bad-soft: rgba(90, 105, 130, .14);
    --glass: rgba(255, 252, 245, .78);
    --glass-strong: rgba(255, 253, 248, .93);
    --hairline: rgba(70, 55, 30, .13);
    --text: #1c1e26;
    --text-dim: #59606f;
    --text-faint: #8b909e;
    --chip: #175c8f;
    --chip-text: #ffffff;
    --hover-wash: rgba(45, 70, 100, .07);
    --sel-stroke: #1b3a5c;
    --rain: #3f7fc0;
    --chart-line: #1b1e26;
    --price: #b8860b;
    --shadow: 0 16px 44px rgba(40, 60, 90, .2), 0 2px 8px rgba(40, 60, 90, .12);
  }
}
:root[data-theme="light"] {
  --bg: #bcd9ec;
  --track-bg: rgba(20, 30, 50, .16);
  --track-fill: #007aff;
  --chrome-bg: #cfe2ea;
  --bg-grad: linear-gradient(180deg, #7db6dd 0%, #cde5f2 46%, #fdecd2 100%);
  --ideal: #12a45f;
  --okay: #dd8f24;
  --land-bad: #9aa6ba;
  --ideal-soft: rgba(18, 164, 95, .14);
  --okay-soft: rgba(221, 143, 36, .16);
  --bad-soft: rgba(90, 105, 130, .14);
  --glass: rgba(255, 252, 245, .78);
  --glass-strong: rgba(255, 253, 248, .93);
  --hairline: rgba(70, 55, 30, .13);
  --text: #1c1e26;
  --text-dim: #59606f;
  --text-faint: #8b909e;
  --chip: #175c8f;
  --chip-text: #ffffff;
  --hover-wash: rgba(45, 70, 100, .07);
  --sel-stroke: #1b3a5c;
  --rain: #3f7fc0;
  --chart-line: #1b1e26;
  --price: #b8860b;
  --shadow: 0 16px 44px rgba(40, 60, 90, .2), 0 2px 8px rgba(40, 60, 90, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Safari 26 (Liquid Glass): Root scrollbar halten, volle Höhe belegen und explizite
   Hintergrundfarben setzen, damit die Seite hinter Status- und URL-Leiste durchläuft
   und Safari die Leisten aus echten Seitenpixeln tönt (theme-color wird ignoriert). */
html {
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior: none;
  background-color: var(--chrome-bg);
}
body {
  min-height: 100vh;
  min-height: 100lvh;
  background: var(--bg-grad, var(--bg));
  background-color: var(--chrome-bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Bühne deckt die große Viewport-Höhe ab (auch den Bereich unter Safaris Leisten) */
.stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
}

/* ---------- Hintergrund hinter dem Globus: nachts Sterne, tagsüber Sonnenlicht ---------- */
#backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#stars { position: absolute; inset: 0; }
#stars i {
  position: absolute;
  border-radius: 50%;
  background: #dfe8ff;
  opacity: var(--o, .6);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, .6); }
  50% { opacity: calc(var(--o, .6) * .25); }
}
#glow {
  position: absolute;
  inset: 0;
  display: none;
  background: radial-gradient(46% 38% at 76% 8%, rgba(255, 216, 140, .8), rgba(255, 216, 140, 0) 70%);
}
:root[data-theme="light"] #stars { display: none; }
:root[data-theme="light"] #glow { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #stars { display: none; }
  :root:not([data-theme="dark"]) #glow { display: block; }
}

#map { position: absolute; inset: 0; }
#map canvas { cursor: grab; }
#map.dest-hover canvas { cursor: pointer; }

/* ---------- Lade-Choreografie ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes chrome-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chrome-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
#map { animation: fade-in 1.1s ease .05s backwards; }
.chrome-title { animation: chrome-in .55s cubic-bezier(.25,.9,.3,1) .15s backwards; }
/* Die Monatsleiste blendet sich erst ein, wenn sie befüllt ist (Klasse kommt aus app.js),
   sonst sieht man erst eine leere Mini-Kapsel und dann den Sprung auf die volle Breite */
.chrome-months { opacity: 0; }
.chrome-months.ready {
  opacity: 1;
  animation: chrome-in .55s cubic-bezier(.25,.9,.3,1) backwards;
}
.round-btn { animation: chrome-in .55s cubic-bezier(.25,.9,.3,1) .35s backwards; }

/* ---------- Glas-Chrome ---------- */
.chrome {
  position: absolute;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  z-index: 10;
}

.chrome-title { top: 16px; left: 16px; padding: 13px 17px 12px; }
.chrome-title h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.chrome-title p { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.chrome-months {
  top: 16px;
  /* Zentrierung über auto-Margins statt translateX(-50%): die Leiste wird erst
     nach dem Laden der Daten befüllt, und ein breitenabhängiger Transform würde
     dabei sichtbar von rechts in die Mitte rutschen */
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  padding: 5px;
  max-width: min(640px, calc(100vw - 32px));
  overflow: visible; /* die Glas-Linse darf über den Rand hinausragen */
}
.months { display: flex; gap: 2px; position: relative; touch-action: none; }
/* Slider nach dem iOS-27-UI-Kit: neutrale Spur, blaue Füllung bis zum Knob,
   weißer Kapsel-Knob mit weichem Schatten (Knob trägt bei uns die Monatszahl) */
.months::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 17px;
  height: 5px;
  border-radius: 3px;
  background: var(--track-bg);
}
.m-fill {
  position: absolute;
  left: 12px;
  top: 17px;
  height: 5px;
  border-radius: 3px;
  background: var(--track-fill);
  width: var(--fw, 0px);
  transition: width .38s cubic-bezier(.28, 1.22, .4, 1);
  pointer-events: none;
}
.m-thumb {
  position: absolute;
  top: 5px;
  left: 0;
  width: 42px;
  height: 29px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  background: #ffffff;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, .28),
    0 1px 2px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #16181d;
  transform: translateX(var(--tx, 0px)) scale(var(--knob-scale, 1));
  transition: transform .38s cubic-bezier(.28, 1.22, .4, 1);
  will-change: transform;
}
.months.dragging .m-thumb {
  --knob-scale: 1.12;
  transition-duration: .08s;
}
.months.dragging .m-fill { transition-duration: .08s; }
/* Beim ersten Layout (vor dem Laden der Webfont) darf der Knob nicht animiert
   springen: Transitions bleiben aus, bis die Position einmal final sitzt */
.months.no-anim .m-thumb,
.months.no-anim .m-fill { transition: none; }
.months button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 34px 0 5px;
  width: 47px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color .15s;
  flex: 0 0 auto;
}
.months button:hover { color: var(--text); }
.months button.active { color: var(--text); }
.months button .m-short { display: none; }
.months-caption { display: none; }

/* ---------- Einstellungs-Panel (Legende + Ansicht), standardmäßig zu ---------- */
.round-btn {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  cursor: pointer;
  z-index: 30;
  transition: color .15s, transform .2s cubic-bezier(.3, 1.3, .5, 1);
}
.round-btn:hover { color: var(--text); transform: scale(1.06); }
.round-btn[aria-expanded="true"] { color: var(--text); }
.chrome-settings {
  top: 66px;
  right: 16px;
  width: 226px;
  padding: 13px 15px 11px;
  z-index: 30;
}
@keyframes settings-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chrome-settings:not([hidden]) { animation: settings-in .22s cubic-bezier(.25, .9, .3, 1); }
.set-sec {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 7px;
}
.set-sec + .set-sec, #legend + .set-sec { margin-top: 14px; }
#legend { margin-bottom: 2px; }
.chrome-settings .layer-row { padding: 4px 0; }
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 3px 0;
}
.legend-row .sw { width: 13px; height: 13px; border-radius: 4px; flex: 0 0 auto; }
.legend-row .n {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}
.legend-row.faint, .legend-row.faint .n { color: var(--text-faint); font-weight: 500; }
.sw-none { background: transparent; border: 1px dashed var(--text-faint); }

/* ---------- Ansicht-Schalter (im Einstellungs-Panel) ---------- */
.layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.layer-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}
.switch {
  appearance: none;
  border: 1px solid var(--hairline);
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: var(--hover-wash);
  position: relative;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: background .2s ease, border-color .2s ease;
}
.switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: transform .22s cubic-bezier(.3, 1.2, .4, 1);
}
.switch[aria-checked="true"] { background: #34c759; border-color: transparent; }
.switch[aria-checked="true"] .knob { transform: translateX(16px); }
.layer-ico { font-size: 13px; }

.set-note {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.set-note a { color: var(--text-dim); }

/* ---------- Hover-Karte ---------- */
#tip {
  position: absolute;
  pointer-events: none;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--hairline);
  border-radius: 15px;
  padding: 13px 15px 12px;
  width: 254px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(4px) scale(.98);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 20;
}
#tip.show { opacity: 1; transform: translateY(0) scale(1); }
#tip .t-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
#tip .t-region { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3.5px 10px;
  border-radius: 999px;
  letter-spacing: .01em;
}
.badge.b2 { background: var(--ideal-soft); color: var(--ideal); }
.badge.b1 { background: var(--okay-soft); color: var(--okay); }
.badge.b0 { background: var(--bad-soft); color: var(--text-dim); }
#tip .badge { margin-top: 8px; }
#tip .t-stats {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
}
#tip .t-stat .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#tip .t-stat .v span { font-size: 11px; color: var(--text-faint); font-weight: 400; }
#tip .t-stat .l { font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.price-euros { letter-spacing: .06em; font-weight: 700; white-space: nowrap; }
.price-euros .off { opacity: .25; }
#tip .t-clima { font-size: 11.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.45; }
#tip .t-best { font-size: 11px; color: var(--text); margin-top: 6px; font-weight: 600; }
#tip .t-more { font-size: 10px; color: var(--text-faint); margin-top: 7px; }

/* ---------- Detail-Panel ---------- */
#panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 384px;
  max-width: calc(100% - 32px);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 40px));
  transition: transform .34s cubic-bezier(.22, .9, .26, 1);
  z-index: 15;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#panel.open { transform: translateX(0); }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
#panel.fresh .p-scroll > * { animation: rise .45s cubic-bezier(.25, .9, .3, 1) backwards; }
#panel.fresh .p-scroll > *:nth-child(2) { animation-delay: .05s; }
#panel.fresh .p-scroll > *:nth-child(3) { animation-delay: .09s; }
#panel.fresh .p-scroll > *:nth-child(4) { animation-delay: .13s; }
#panel.fresh .p-scroll > *:nth-child(5) { animation-delay: .17s; }
#panel.fresh .p-scroll > *:nth-child(n+6) { animation-delay: .21s; }
#panel .p-scroll { overflow-y: auto; padding: 24px 24px 20px; }
#panel .p-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--hover-wash);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
#panel .p-close:hover { color: var(--text); background: var(--bad-soft); }
.p-region { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.p-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; line-height: 1.15; }
.p-best {
  display: inline-block;
  margin-top: 10px;
  margin-right: 6px;
  font-size: 12.5px;
  color: var(--ideal);
  background: var(--ideal-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.p-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); margin-top: 14px; }
.p-hint {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  background: var(--hover-wash);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
}
.p-hint b { color: var(--text); font-weight: 600; }
.p-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--hover-wash);
  font-size: 12.5px;
  color: var(--text-dim);
}
.p-price .price-euros { font-size: 14px; color: var(--price); }
.p-price b { color: var(--text); font-weight: 600; }
.p-sec {
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 22px 0 10px;
  font-weight: 600;
}
.p-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.p-months .m { text-align: center; font-size: 9.5px; color: var(--text-faint); }
.p-months .m i { display: block; height: 22px; border-radius: 6px; margin-bottom: 4px; font-style: normal; }
.p-months .m.cur { color: var(--text); font-weight: 700; }
.p-months .m.cur i { outline: 2px solid var(--sel-stroke); outline-offset: 1px; }
.chart-wrap { position: relative; }
#chart { width: 100%; height: auto; display: block; }
#chart .hit { cursor: crosshair; }
#chartTip {
  position: absolute;
  top: 4px;
  left: 0;
  pointer-events: none;
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 8px 11px;
  font-size: 11px;
  color: var(--text-dim);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease, left .12s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
  z-index: 2;
}
#chartTip.show { opacity: 1; transform: translateY(0); }
#chartTip b { color: var(--text); font-size: 11.5px; }
#chartTip .ct-row { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
#chartTip .ct-row i { width: 8px; height: 8px; border-radius: 2.5px; }
#chartTip .badge { margin-top: 2px; align-self: flex-start; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
#chart .bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-grow .5s cubic-bezier(.25, .9, .3, 1) backwards;
}
@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
#chart .tline { stroke-dasharray: 1; animation: line-draw .9s ease .15s backwards; }
@keyframes dot-in { from { opacity: 0; } to { opacity: 1; } }
#chart .tdot { animation: dot-in .3s ease .8s backwards; }
.p-chart-legend { display: flex; gap: 16px; font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.p-chart-legend .chip-l { display: flex; align-items: center; gap: 5px; }
.p-chart-legend .sw { width: 10px; height: 10px; border-radius: 3px; }

button:focus-visible { outline: 2px solid var(--sel-stroke); outline-offset: 2px; }

/* MapLibre-Bedienelemente ans Glas-Design angleichen */
.maplibregl-ctrl-group {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--hairline);
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}
.maplibregl-ctrl-group button { background: transparent !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--hairline) !important; }
.maplibregl-ctrl button .maplibregl-ctrl-icon { filter: none; }
:root:not([data-theme="light"]) .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: none !important; }
}
.maplibregl-ctrl-attrib {
  background: var(--glass) !important;
  border-radius: 8px;
  font-size: 10px;
}
.maplibregl-ctrl-attrib a { color: var(--text-faint) !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Mobil ----------
   Aufbau von unten: Fußzeile+Attribution ganz unten, darüber die volle Monatsleiste (Zahlen 1 bis 12,
   kein Scrollen), rechts darüber Legende und 3D-Schalter als Stapel. Safe-Area fürs iPhone. */
@media (max-width: 820px) {
  .chrome-title { top: calc(12px + env(safe-area-inset-top, 0px)); padding: 10px 14px 9px; }
  .chrome-title h1 { font-size: 16px; }
  .chrome-title p { display: none; }
  .chrome-months {
    top: auto;
    /* Über Safaris Bottom-Bar bleiben: lvh - dvh ist genau die Höhe des Browser-Chromes */
    bottom: max(calc(100lvh - 100dvh + 12px), calc(14px + env(safe-area-inset-bottom, 0px)));
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    padding-top: 3px;
  }
  .chrome-months.ready { animation-name: chrome-in-up; }
  .months-caption {
    display: block;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-dim);
    padding: 3px 0 2px;
  }
  .months { width: 100%; }
  .months button { flex: 1 1 0; width: auto; min-width: 0; }
  .months button .m-long { display: none; }
  .months button .m-short { display: inline; }
  .round-btn { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
  .chrome-settings { top: calc(62px + env(safe-area-inset-top, 0px)); right: 12px; width: min(240px, calc(100vw - 24px)); }
  .layer-lbl { font-size: 12px; }
  #tip { display: none; }
  #panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: max(calc(100lvh - 100dvh + 8px), calc(10px + env(safe-area-inset-bottom, 0px)));
    width: auto;
    max-height: 64%;
    transform: translateY(calc(100% + 40px));
  }
  #panel.open { transform: translateY(0); }
  #panel .p-scroll { padding: 18px 18px 16px; }
  .p-name { font-size: 22px; }
  .maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none; }
}
