:root {
  --panel-bg: rgba(9, 18, 31, 0.84);
  --panel-bg-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e9eff6;
  --muted: #98abc0;
  --dim: #6f8399;
  --cyan: #38d6ff;
  --cyan-2: #8fe8ff;
  --sand: #e2c38a;
  --amber: #ffc857;
  --pos: #5fd0ff;
  --neg: #e6c58c;
  --radius: 16px;
  --panel-w: 368px;
  --gauge-w: 96px;
  --gap: 14px;
  color-scheme: dark;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #081321; color: var(--text); overflow: hidden; }
button, input { font: inherit; color: inherit; }
#map { position: absolute; inset: 0; }

/* ------------------------------------------------ panel */
.panel {
  position: fixed; z-index: 5; left: var(--gap); top: var(--gap); bottom: var(--gap); width: var(--panel-w);
  display: flex; flex-direction: column; background: var(--panel-bg); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease, opacity 0.25s ease;
}
body.panel-collapsed .panel { transform: translateX(calc(-100% + 54px)); }
body.panel-collapsed .panel .panel-body, body.panel-collapsed .panel .brand div { opacity: 0; pointer-events: none; }
body.panel-collapsed #panelToggle svg { transform: rotate(180deg); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand svg { width: 34px; height: 34px; color: var(--cyan); flex: none; }
.brand h1 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap; }
.brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.icon-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-bg-2); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); }
.icon-btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 14px 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; transition: opacity 0.2s; }
.panel h2 { margin: 0; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.hint { color: var(--dim); font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* seviye kartı */
.level-card { padding: 14px 14px 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(56, 214, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.level-card.neg { background: linear-gradient(160deg, rgba(226, 195, 138, 0.12), rgba(255, 255, 255, 0.02)); }
.level-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.level-readout { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
#levelValue { font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.level-card.pos #levelValue { color: var(--pos); }
.level-card.neg #levelValue { color: var(--neg); }
.level-readout .unit { font-size: 20px; color: var(--muted); font-weight: 600; }
.scenario { display: flex; flex-direction: column; gap: 3px; min-height: 62px; }
.scenario b { font-size: 13px; color: var(--cyan-2); font-weight: 650; }
.level-card.neg .scenario b { color: var(--sand); }
.scenario span { font-size: 12.5px; line-height: 1.45; color: #c5d2e0; }
.level-input { display: grid; grid-template-columns: repeat(3, 1fr) 2.7fr repeat(3, 1fr); gap: 4px; margin-top: 12px; }
.level-input button { height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-bg-2); font-size: 11.5px; color: #cfe0ef; cursor: pointer; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.level-input button:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-2); }
.level-input .num { display: flex; align-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); padding: 0 8px 0 6px; }
.level-input .num input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: right; font-weight: 650; font-size: 14px; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.level-input .num input::-webkit-outer-spin-button, .level-input .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.level-input .num span { color: var(--muted); font-size: 12px; margin-left: 3px; }
.level-input .num:focus-within { border-color: var(--cyan); }

/* istatistikler */
.stats { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.stat { padding: 10px 12px; border-radius: 12px; background: var(--panel-bg-2); border: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-value { margin-top: 3px; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat.mini .stat-value { font-size: 18px; }
.bar { position: relative; height: 6px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #4fd8ff, #2d8fd8); transition: width 0.15s; }
.bar.sea { height: 8px; }
.bar.sea i { background: rgba(70, 170, 230, 0.55); }
.bar.sea u { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 3px; background: #1d6fc0; }
.toplist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toplist button { position: relative; width: 100%; display: flex; justify-content: space-between; padding: 5px 8px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.04); cursor: pointer; overflow: hidden; font-size: 12.5px; }
.toplist button:hover { background: rgba(255, 255, 255, 0.09); }
.toplist button span, .toplist button b { position: relative; z-index: 1; }
.toplist button b { font-variant-numeric: tabular-nums; color: var(--cyan-2); }
.toplist button i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(56, 214, 255, 0.16); }
.seas { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sea-head { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 12.5px; align-items: baseline; }
.sea-head b { font-variant-numeric: tabular-nums; color: #9fd8ff; }
.sea-head em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; text-align: right; }
.legend { padding: 2px 2px 0; }
.lg-grad { display: block; height: 9px; border-radius: 5px; }
.legend-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.legend-keys { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.legend-keys span { display: inline-flex; align-items: center; gap: 6px; }
.legend-keys i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-keys i.dash { height: 0; border-top: 2px dashed #fff6d5; border-radius: 0; }

/* ayarlar */
.settings { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.seg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #cdd9e6; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: rgba(56, 214, 255, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(56, 214, 255, 0.35); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cdd9e6; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { flex: none; position: relative; width: 34px; height: 19px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #dfe8f1; transition: transform 0.2s; }
.switch input:checked + i { background: #1ea8d8; }
.switch input:checked + i::after { transform: translateX(15px); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.range-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.range-row input { accent-color: var(--cyan); }

/* il listesi */
.cities { margin-top: 14px; }
.cities-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cities-head input { width: 150px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); font-size: 12.5px; outline: none; }
.cities-head input:focus { border-color: var(--cyan); }
.cities .hint { margin: 6px 0 8px; }
.city-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.city-list li[hidden] { display: none; }
.city { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; background: rgba(255, 255, 255, 0.03); cursor: pointer; text-align: left; }
.city:hover { background: rgba(255, 255, 255, 0.08); }
.city .plate { font-size: 11px; font-weight: 700; color: #a9bbcf; background: rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 3px 0; text-align: center; font-variant-numeric: tabular-nums; }
.city .nm { display: flex; flex-direction: column; min-width: 0; }
.city .n1 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city .n1 em { font-style: normal; color: var(--dim); font-weight: 500; }
.city .n2 { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.city .pbar { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.city .pbar[hidden] { display: none; }
.city .pbar i { display: block; height: 100%; background: #38d6ff; }
.city .st { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.city .st b { font-size: 12.5px; color: #cfdbe7; font-weight: 650; }
.city .st small { font-size: 10px; color: var(--dim); }
.city-list li.wet .city { background: rgba(56, 214, 255, 0.1); border-color: rgba(56, 214, 255, 0.25); }
.city-list li.wet .st b { color: var(--cyan-2); }
.city-list li.wet .plate { background: rgba(56, 214, 255, 0.25); color: #e8fbff; }
.city-list li.near .st b { color: var(--amber); }
.panel-foot { margin-top: 14px; padding: 10px 2px 4px; border-top: 1px solid var(--line); }
.link-btn { border: 0; background: none; padding: 0; color: var(--cyan-2); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------ gösterge */
.gauge { position: fixed; z-index: 4; right: var(--gap); top: var(--gap); bottom: var(--gap); width: var(--gauge-w); display: flex; flex-direction: column; align-items: stretch; user-select: none; }
.g-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #cfe0ef; text-align: right; padding: 0 2px 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.g-body { position: relative; flex: 1; min-height: 120px; margin: 8px 0; }
.g-track { position: absolute; right: 0; top: 0; bottom: 0; width: 42px; border-radius: 12px; background: rgba(9, 18, 31, 0.78); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); cursor: ns-resize; outline: none; touch-action: none; backdrop-filter: blur(10px); }
.g-track:focus-visible { box-shadow: 0 0 0 2px var(--cyan), 0 10px 30px rgba(0, 0, 0, 0.4); }
.g-sky { position: absolute; inset: 0; border-radius: 11px; background: linear-gradient(180deg, rgba(140, 180, 220, 0.12), rgba(140, 180, 220, 0.02)); }
.g-water { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0 0 11px 11px; background: linear-gradient(180deg, rgba(70, 190, 230, 0.75), rgba(20, 70, 140, 0.9) 45%, rgba(5, 22, 52, 0.95)); }
.gauge.below .g-water { background: linear-gradient(180deg, rgba(60, 170, 220, 0.75), rgba(12, 50, 110, 0.95)); }
.g-surface { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #c7f4ff; box-shadow: 0 0 10px rgba(140, 230, 255, 0.9); }
.g-ticks { position: absolute; inset: 0; pointer-events: none; }
.g-tick { position: absolute; right: 0; width: 10px; height: 0; border-top: 1px solid rgba(255, 255, 255, 0.45); }
.g-tick.minor { width: 5px; border-top-color: rgba(255, 255, 255, 0.22); }
.g-tick span { position: absolute; right: 48px; top: -8px; font-size: 10.5px; line-height: 16px; color: #d6e3ef; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7); }
.g-zero { position: absolute; left: -6px; right: -6px; height: 0; border-top: 2px solid rgba(255, 246, 213, 0.9); pointer-events: none; }
.g-zero span { position: absolute; right: 54px; top: -9px; font-size: 11px; font-weight: 700; color: #fff6d5; text-shadow: 0 1px 3px #000; }
.g-handle { position: absolute; left: -9px; right: -9px; height: 0; pointer-events: none; }
.g-handle::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(140, 230, 255, 0.9); }
.g-pill { position: absolute; right: 54px; top: -13px; padding: 3px 9px; border-radius: 8px; background: #fff; color: #06233a; font-size: 13px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.gauge.below .g-pill { background: #f2dfb6; color: #3a2a0c; }
.g-track.dragging .g-pill { transform: scale(1.06); }
.g-presets { position: absolute; right: 100%; top: 0; bottom: 0; width: 0; }
.g-preset { position: absolute; right: 10px; transform: translateY(-50%); display: flex; align-items: baseline; gap: 6px; padding: 2px 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(9, 18, 31, 0.78); color: #dbe7f2; font-size: 11px; white-space: nowrap; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.g-preset:hover { background: rgba(20, 50, 80, 0.95); border-color: rgba(56, 214, 255, 0.5); }
.g-preset.under { opacity: 0.22; }
.g-preset.under:hover { opacity: 1; }
.g-preset .val { font-weight: 700; font-variant-numeric: tabular-nums; color: #8fe8ff; }
.g-preset.neg .val { color: #f0d39c; }
.g-preset.zero .val { color: #fff6d5; }
.g-preset .lead { position: absolute; right: -11px; top: 50%; width: 11px; height: 0; border-top: 1px dashed rgba(255, 255, 255, 0.4); }
.g-play { display: flex; justify-content: flex-end; gap: 6px; }
.g-btn { width: 42px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(9, 18, 31, 0.82); color: #dbe7f2; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); }
.g-btn:hover { background: rgba(30, 60, 90, 0.95); }
.g-btn.on { background: #1ea8d8; color: #fff; border-color: #1ea8d8; }
.gauge .g-play .g-btn:first-child { margin-left: auto; }

/* ------------------------------------------------ imleç bilgisi */
.readout { position: fixed; z-index: 4; left: calc(var(--panel-w) + var(--gap) * 2); right: calc(var(--gauge-w) + var(--gap) + 160px); bottom: 44px; margin: 0 auto; width: fit-content; max-width: calc(100% - var(--panel-w) - var(--gauge-w) - 220px); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 8px 14px; border-radius: 12px; background: rgba(9, 18, 31, 0.86); border: 1px solid var(--line); font-size: 12.5px; color: #cfdbe7; pointer-events: none; backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.readout b { color: #fff; }
.r-coord { color: var(--dim); }
.r-wet b, .r-wet { color: var(--cyan-2); }
.r-basin { color: var(--amber); }

/* popup */
.info-popup .maplibregl-popup-content { background: rgba(9, 18, 31, 0.95); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); font-size: 12.5px; }
.info-popup .maplibregl-popup-tip { border-top-color: rgba(9, 18, 31, 0.95) !important; border-bottom-color: rgba(9, 18, 31, 0.95) !important; }
.info-popup .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; right: 4px; top: 2px; }
.pp-title { font-size: 15px; font-weight: 700; padding-right: 16px; }
.pp-title small { color: var(--muted); font-weight: 500; }
.pp-sub { color: var(--muted); margin-top: 2px; }
.pp-body { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pp-note { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255, 200, 87, 0.1); border: 1px solid rgba(255, 200, 87, 0.25); color: #f3dca8; line-height: 1.4; }

.pick-marker { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4); animation: pulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56, 214, 255, 0.7); } 100% { box-shadow: 0 0 0 18px rgba(56, 214, 255, 0); } }

/* MapLibre kontrolleri */
.maplibregl-ctrl-top-right { top: 0; right: calc(var(--gauge-w) + var(--gap) + 152px); }
.maplibregl-ctrl-bottom-right { right: calc(var(--gauge-w) + var(--gap) + 152px); }
.maplibregl-ctrl-group { background: rgba(9, 18, 31, 0.86) !important; border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(0.95); }
.maplibregl-ctrl-scale { background: rgba(9, 18, 31, 0.7); color: #dbe7f2; border-color: #dbe7f2; }
.maplibregl-ctrl-attrib { background: rgba(9, 18, 31, 0.75) !important; color: #b8c7d6; }
.maplibregl-ctrl-attrib a { color: #cfe3f5; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

/* yükleme ve bildirim */
.loading { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 14px; background: #081321; color: var(--muted); font-size: 14px; transition: opacity 0.5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading .err { max-width: 520px; text-align: center; color: #ffd7a8; line-height: 1.5; padding: 0 20px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(56, 214, 255, 0.2); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 60; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; padding: 10px 16px; border-radius: 10px; background: rgba(60, 30, 10, 0.92); border: 1px solid rgba(255, 200, 87, 0.4); color: #ffe7b8; font-size: 13px; transition: all 0.3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hakkında */
.about { max-width: 680px; width: calc(100% - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: #0c1828; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.about::backdrop { background: rgba(2, 8, 16, 0.6); backdrop-filter: blur(3px); }
.about-inner { padding: 22px 26px 22px; max-height: 82vh; overflow-y: auto; font-size: 13.5px; line-height: 1.55; color: #cfdbe7; }
.about h2 { margin: 0 0 8px; font-size: 19px; color: #fff; }
.about h3 { margin: 16px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--cyan-2); }
.about ul { margin: 4px 0; padding-left: 20px; }
.about li { margin: 3px 0; }
.about a { color: var(--cyan-2); }
.about kbd { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2); font-size: 12px; }
.primary { margin-top: 16px; padding: 8px 18px; border-radius: 9px; border: 0; background: #1ea8d8; color: #fff; font-weight: 650; cursor: pointer; }
.primary:hover { background: #29b9eb; }

/* ------------------------------------------------ dar ekran */
@media (max-width: 820px) {
  :root { --panel-w: auto; --gauge-w: 78px; --gap: 8px; }
  .panel { left: var(--gap); right: calc(var(--gauge-w) + var(--gap) * 2); top: auto; bottom: var(--gap); width: auto; max-height: 46vh; }
  body.panel-collapsed .panel { transform: translateY(calc(100% - 58px)); }
  body.panel-collapsed #panelToggle svg { transform: rotate(90deg); }
  #panelToggle svg { transform: rotate(-90deg); }
  .brand p { display: none; }
  #levelValue { font-size: 36px; }
  .g-presets { display: none; }
  .g-tick span { right: 46px; }
  .readout { left: var(--gap); right: calc(var(--gauge-w) + var(--gap) * 2); top: var(--gap); bottom: auto; max-width: none; width: auto; margin: 0; }
  .maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-right { display: none; }
  .brand h1 { overflow: hidden; text-overflow: ellipsis; }
  .brand { overflow: hidden; }
}
