/* ГИС Чёрного моря — минималистичный UI */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f4f6f8;
  --bg2: #e9eef2;
  --panel: #ffffff;
  --accent: #0b6e7a;
  --warm: #c2410c;
  --text: #1a2330;
  --muted: #5b6b7c;
  --faint: #8a97a6;
  --line: #d5dde5;
  --ok: #0f766e;
  --bad: #b91c1c;
  --overlay: rgba(255, 255, 255, 0.92);
  --r: 8px;
  --font: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  /* aliases for leftover inline styles */
  --text2: var(--muted);
  --text3: var(--faint);
  --border: var(--line);
  --border2: var(--line);
  --glass: var(--overlay);
  --card: var(--panel);
  --card2: var(--bg2);
  --radius: var(--r);
  --radius2: 12px;
  --success: var(--ok);
  --danger: var(--bad);
}

body.dark {
  --bg: #0f1419;
  --bg2: #171d24;
  --panel: #1a222c;
  --accent: #2bb3c0;
  --warm: #f97316;
  --text: #e8eef4;
  --muted: #9aa8b6;
  --faint: #6b7a8a;
  --line: #2a3440;
  --ok: #2dd4bf;
  --bad: #f87171;
  --overlay: rgba(22, 28, 36, 0.92);
  --shadow: none;
  --text2: var(--muted);
  --text3: var(--faint);
  --border: var(--line);
  --border2: var(--line);
  --glass: var(--overlay);
  --card: var(--panel);
  --card2: var(--bg2);
  --success: var(--ok);
  --danger: var(--bad);
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

.app { display: flex; flex-direction: column; height: 100vh; }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header h1 i { color: var(--accent); font-size: 14px; }
.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hdr-btn,
.map-chip,
.tool-btn,
.scale-actions button,
.export-btn,
.btn,
.cal-nav button {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--r);
  transition: background .15s, color .15s, border-color .15s;
}
.hdr-btn {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hdr-btn:hover,
.map-chip:hover,
.tool-btn:hover,
.scale-actions button:hover,
.export-btn:hover { color: var(--text); border-color: var(--faint); }
.hdr-btn:active,
.map-chip.on,
.tool-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.data-mode-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-mode-badge.demo { color: #a16207; border-color: #e8d48b; }
.data-mode-badge.field { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }

/* Layout */
.main { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: width .2s ease, margin .2s ease;
}
.sidebar.hidden { width: 0; border-right: none; overflow: hidden; }

.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.sidebar-tab {
  padding: 8px 2px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
}
.sidebar-tab i { font-size: 13px; }
.sidebar-tab:hover { color: var(--muted); }
.sidebar-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--panel); }

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 10px;
}
.card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-box,
.compare-select,
textarea.inp,
.scale-ctrl input[type=number] {
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  outline: none;
}
.search-box { margin-bottom: 8px; }
.search-box:focus,
.compare-select:focus,
textarea.inp:focus,
.scale-ctrl input:focus { border-color: var(--accent); }

.beach-list { max-height: calc(100vh - 220px); overflow-y: auto; }
.beach-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.beach-item:hover { background: var(--bg2); }
.beach-item.current {
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.beach-item.field-data { border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.beach-item.field-data .beach-name::after {
  content: 'поле';
  font-size: 8px;
  margin-left: 6px;
  padding: 1px 4px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  color: var(--ok);
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}
.beach-name { font-size: 12px; font-weight: 600; }
.beach-region { font-size: 10px; color: var(--faint); }
.beach-temp { font-size: 13px; font-weight: 600; font-family: var(--mono); }
.beach-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--faint);
  padding: 0;
}
.icon-btn:hover { color: var(--accent); border-color: var(--line); background: var(--panel); }
.tp.warm { color: #fb923c; }
.tp.mid { color: #2dd4bf; }
.tp.cold { color: #38bdf8; }
.upwelling-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 12px;
  cursor: pointer;
}
.layer-toggle input { accent-color: var(--accent); }
.depth-ctrl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.depth-ctrl input[type=range] { flex: 1; accent-color: var(--accent); }
.depth-ctrl .val {
  font-size: 11px;
  font-family: var(--mono);
  min-width: 48px;
  text-align: right;
  color: var(--muted);
}

.scale-ctrl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.scale-ctrl label {
  font-size: 10px;
  color: var(--faint);
  display: block;
  margin-bottom: 2px;
}
.scale-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.scale-actions button {
  font-size: 10px;
  padding: 4px 7px;
}
.scale-hint { font-size: 10px; color: var(--faint); margin-top: 4px; }

/* Map */
.map-area {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--bg2);
}
#map { width: 100%; height: 100%; }

.map-layer-bar,
.map-tools,
.layer-info-bar,
.floating-temp,
.legend-bar {
  position: absolute;
  z-index: 50;
  pointer-events: none;
}
.map-layer-bar,
.map-tools,
.layer-info-bar,
.floating-temp,
.legend-bar,
.map-layer-bar *,
.map-tools *,
.layer-info-bar,
.floating-temp,
.legend-bar {
  pointer-events: auto;
}

.map-layer-bar { top: 10px; left: 10px; right: 56px; display: flex; flex-wrap: wrap; gap: 4px; }
.map-tools { top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-chip {
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
  background: var(--overlay);
  box-shadow: var(--shadow);
}
.tool-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--overlay);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.layer-info-bar {
  top: 46px;
  left: 10px;
  max-width: min(420px, calc(100% - 20px));
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 7px 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  box-shadow: var(--shadow);
}
.layer-info-bar b { color: var(--text); font-weight: 600; }

.floating-temp {
  bottom: 16px;
  right: 16px;
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: bottom .2s;
}
.floating-temp .big {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--warm);
  line-height: 1.1;
}
.floating-temp .sm { font-size: 10px; color: var(--muted); }

.legend-bar {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 12px;
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
  box-shadow: var(--shadow);
  transition: bottom .2s;
  white-space: nowrap;
}
.legend-bar .sq {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 3px;
  vertical-align: middle;
}
.legend-bar .leg-grad {
  width: min(220px, 36vw);
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.legend-bar .leg-min,
.legend-bar .leg-mid,
.legend-bar .leg-max {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
}
.legend-bar .leg-mid { opacity: 0.7; }
.legend-bar .leg-apv { margin-left: 4px; }

/* Graph: closed = no hit target; open lifts chrome */
.graph-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  background: var(--panel);
  border-top: 0 solid var(--line);
  transition: height .22s ease;
}
.graph-panel.open {
  height: min(340px, 42vh);
  pointer-events: auto;
  visibility: visible;
  border-top-width: 1px;
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
}
.map-area:has(.graph-panel.open) .floating-temp,
.map-area:has(.graph-panel.open) .legend-bar {
  bottom: calc(min(340px, 42vh) + 12px);
}
.graph-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg2);
}
.graph-panel-header h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.graph-panel-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
#temperatureGraph { height: calc(100% - 36px); width: 100%; min-height: 220px; }

.graph-toggle {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 55;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.graph-toggle:hover { color: var(--text); }
.map-area:has(.graph-panel.open) .graph-toggle { display: none; }

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.modal.show { display: flex; }
.modal-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(1000px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 18px;
  position: relative;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.modal-close:hover { color: var(--bad); }
.modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-right: 32px;
}
.modal-chart { height: 360px; width: 100%; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-h { font-size: 9px; color: var(--faint); text-align: center; padding: 4px 0; font-weight: 600; }
.cal-d {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 9px;
  cursor: pointer;
  border: 1px solid transparent;
}
.cal-d.has { border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.cal-d .ct { font-size: 11px; font-weight: 600; font-family: var(--mono); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-nav button { background: none; border: none; color: var(--muted); padding: 2px 8px; font-size: 16px; }
.cal-nav button:hover { color: var(--accent); }
.cal-nav span { font-size: 13px; font-weight: 600; }

.desc-block, .src-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  margin-bottom: 8px;
}
.desc-block h5, .src-card h4 {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}
.desc-block p, .src-card p { font-size: 11px; color: var(--muted); line-height: 1.5; }
.tag {
  display: inline-block;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  color: var(--muted);
  margin: 1px;
}

.star-pick { display: flex; gap: 2px; margin: 6px 0; }
.star-pick i { color: var(--faint); cursor: pointer; font-size: 16px; }
.star-pick i.on { color: #d97706; }
textarea.inp { resize: vertical; min-height: 50px; }

.btn {
  border: none;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
  margin-bottom: 6px;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-warm { background: var(--warm); color: #fff; border-color: var(--warm); }
.btn-sm { width: auto; padding: 4px 8px; font-size: 10px; }
.btn-secondary { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

.export-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-align: left;
}
.export-btn i { color: var(--accent); }

.ranking-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r);
  background: var(--panel);
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid var(--line);
}
.ranking-item:hover { border-color: var(--accent); }
.ranking-medal { font-size: 14px; min-width: 22px; text-align: center; }
.ranking-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 3px; }
.ranking-fill { height: 100%; border-radius: 2px; background: var(--accent); }

.omega-field-tag {
  display: inline-block;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  margin-bottom: 8px;
  font-weight: 600;
}
#omegaBayMap {
  width: 100%;
  height: 420px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
}
.omega-station-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin-top: 10px;
  max-height: 160px;
  overflow-y: auto;
}
.omega-st-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 8px;
  font-size: 10px;
}
.omega-st-item .st-num { font-weight: 700; color: var(--accent); }
.omega-st-item .st-t { font-family: var(--mono); font-weight: 600; color: var(--warm); font-size: 13px; }

/* Яндекс: оставить копирайт, убрать промо-плашку «Создать карту» */
.ymaps-2-1-map-copyrights-promo,
[class*="copyrights-promo"] { display: none !important; }

.desc-lead {
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 12px;
  line-height: 1.45;
}
.desc-block p { margin-bottom: 0.4em; }
.desc-block p:last-child { margin-bottom: 0; }
.boot-error h2 { color: var(--warm); margin-bottom: 8px; font-size: 18px; }
.boot-error pre {
  white-space: pre-wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: var(--r);
  margin-top: 12px;
  font-size: 12px;
}

.user-badge {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
a.hdr-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hint { font-size: 11px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
.stations-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow-y: auto; }
.station-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  background: var(--bg);
}
.station-item:hover { border-color: var(--faint); }
.comfort-line { font-size: 10px; margin-top: 2px; }
.comfort-line.cold, .comfort-pill.cold { color: #2563eb; }
.comfort-line.cool, .comfort-pill.cool { color: #0b6e7a; }
.comfort-line.ok, .comfort-pill.ok { color: #15803d; }
.comfort-line.warm, .comfort-pill.warm { color: #c2410c; }
.comfort-pill {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}
.auth-overlay[hidden] { display: none !important; }
.auth-card {
  width: min(360px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px 14px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.auth-card h3 { margin: 0 0 12px; font-size: 16px; }
.auth-card label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.auth-card .inp { width: 100%; margin-top: 4px; }
.auth-error { min-height: 16px; color: #b91c1c; font-size: 12px; margin-bottom: 8px; }
.auth-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}
.auth-switch {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

@media (max-width: 900px) {
  .main { flex-direction: column; }
  .sidebar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-right: none;
    border-bottom: 0;
    transition: max-height .25s ease;
  }
  .sidebar.open {
    max-height: 55vh;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
  }
  .sidebar.hidden { width: 100%; max-height: 0; }
  .header { padding: 8px 10px; min-height: auto; flex-wrap: wrap; }
  .header-controls { width: 100%; }
  .hdr-btn, .map-chip, .tool-btn, .btn {
    min-height: 40px;
    padding: 8px 12px;
  }
  .tool-btn { width: 40px; height: 40px; }
  .modal-body { width: 96vw; padding: 14px; }
  .modal-chart { height: 280px; }
  #omegaBayMap { height: 260px; }
  .floating-temp { bottom: 10px; right: 10px; }
  .legend-bar { font-size: 9px; bottom: 10px; left: 10px; right: 10px; transform: none; justify-content: center; flex-wrap: wrap; }
  .graph-panel.open { height: min(300px, 48vh); }
  .map-area:has(.graph-panel.open) .floating-temp,
  .map-area:has(.graph-panel.open) .legend-bar {
    bottom: calc(min(300px, 48vh) + 8px);
  }
}
