:root {
  --bg: #0b1220;
  --bg2: #101a2c;
  --card: #16223a;
  --card2: #1a2946;
  --line: #24334f;
  --text: #e8eef7;
  --muted: #8fa3bf;
  --accent: #63d6d0;      /* ледниковая бирюза */
  --terracotta: #e07856;  /* терракота */
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --head: rgba(11,18,32,.92);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}
#app { max-width: 560px; margin: 0 auto; padding-bottom: 32px; }
.hidden { display: none !important; }

/* ---------- главный экран ---------- */
.hero { position: relative; overflow: hidden; border-radius: 0 0 24px 24px; }
.hero-mountains { display: block; width: 100%; height: 200px; }
.hero-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 14px 12px 4px; pointer-events: none;
}
.hero-text .globe-btn { pointer-events: auto; }
.hero-text h1 {
  font-size: clamp(19px, 6vw, 26px); font-weight: 800; letter-spacing: 0.2px;
  white-space: nowrap; text-shadow: 0 2px 12px rgba(0,0,0,.6); text-align: center;
}
.hero-text p {
  color: #dce7f5; font-size: clamp(10px, 3vw, 13.5px); margin-top: 4px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6); white-space: nowrap; text-align: center;
  letter-spacing: -0.1px;
}

.points-list { padding: 16px 14px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loading, .error-box { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.error-box { color: var(--red); }

.point-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 12px; cursor: pointer; text-align: left;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
  color: var(--text); font: inherit;
}
.point-btn:active { transform: scale(.97); background: var(--card2); }
.point-btn .p-name { font-size: 15px; font-weight: 650; line-height: 1.25; }
.point-btn .p-ele { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.point-btn .p-region { font-size: 11px; color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 0; }

/* ---------- экран точки ---------- */
.back-btn {
  margin: 14px 14px 4px; background: none; border: none; color: var(--accent);
  font-size: 15px; font-weight: 600; cursor: pointer; padding: 8px 4px;
}
#point-content { padding: 4px 14px; }
.pt-title { font-size: 24px; font-weight: 800; margin: 4px 0 2px; }
.pt-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 12px;
}
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 10px; }

.now-main { display: flex; align-items: center; gap: 14px; }
.now-icon { font-size: 46px; line-height: 1; }
.now-t { font-size: 44px; font-weight: 800; }
.now-desc { color: var(--muted); font-size: 13.5px; }
.now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.now-cell { background: var(--bg2); border-radius: 12px; padding: 8px 10px; }
.now-cell .k { font-size: 11px; color: var(--muted); }
.now-cell .v { font-size: 15px; font-weight: 700; margin-top: 2px; }
.meta-line { color: var(--muted); font-size: 12px; margin-top: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 800; padding: 10px 16px; border-radius: 999px;
}
.badge.green { background: rgba(74,222,128,.14); color: var(--green); }
.badge.yellow { background: rgba(250,204,21,.14); color: var(--yellow); }
.badge.red { background: rgba(248,113,113,.14); color: var(--red); }
.advice { margin-top: 10px; font-size: 14.5px; color: #cdd9ea; }

.day-block { margin-bottom: 8px; }
.day-block:last-child { margin-bottom: 0; }
.day-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bg2); border-radius: 14px; padding: 10px 12px;
}
.chev { display: inline-block; margin-left: 4px; color: var(--muted); transition: transform .15s ease; }
.day-row.open .chev { transform: rotate(180deg); }

/* почасовой прогноз */
.hours-wrap { overflow-x: auto; scrollbar-width: thin; }
.hours-strip { display: flex; gap: 4px; padding: 2px 0 6px; }
.h-cell { min-width: 54px; flex: 0 0 auto; text-align: center; background: var(--bg2); border-radius: 12px; padding: 8px 4px 6px; }
.h-cell.now { outline: 1px solid var(--accent); background: rgba(99,214,208,.10); }
.h-time { font-size: 11px; color: var(--muted); font-weight: 600; }
.h-cell.now .h-time { color: var(--accent); }
.h-icon { font-size: 18px; margin: 3px 0 2px; }
.h-t { font-size: 14px; font-weight: 700; }
.h-pr { font-size: 10.5px; color: #6db3f2; min-height: 14px; margin-top: 2px; }
.h-w { font-size: 10.5px; color: var(--muted); }
.hours-legend { font-size: 10.5px; color: var(--muted); padding: 0 2px 8px; }
.hours-empty { color: var(--muted); font-size: 13px; padding: 8px 2px 12px; }
.day-icon { text-align: center; }
/* строка дня в стиле Yr.no: слева столбик (дата/т°/мм), центр — 4 иконки, справа ветер/облачность */
.d-left { min-width: 88px; flex: 0 0 auto; }
.d-date { font-weight: 800; font-size: 13.5px; }
.d-temp { font-size: 16px; font-weight: 800; margin-top: 1px; }
.d-max { color: #ef6a5a; }
.d-min { color: #6aa9e0; }
.d-pr { font-size: 12.5px; color: #5ea3f7; font-weight: 700; }
.d-icons { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.d-right { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.6; white-space: nowrap; flex: 0 0 auto; }
.d-right .wic { width: 13px; height: 13px; vertical-align: -2px; }

/* ---------- SVG-иконки погоды (вместо эмодзи — одинаковые на любом устройстве) ---------- */
.wic { display: inline-block; vertical-align: middle; }
.wic .snf { fill: #ffc93c; }
.wic .sn { stroke: #ffc93c; stroke-width: 1.7; stroke-linecap: round; fill: none; }
.wic .mn { fill: #dceaf5; }
.wic .cld { fill: #b3c2d6; }
.wic .fg { stroke: #8fa1b6; stroke-width: 1.7; stroke-linecap: round; fill: none; }
.wic .rn { stroke: #5ea3f7; stroke-width: 1.9; stroke-linecap: round; fill: none; }
.wic .drz { stroke: #86b8f2; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.wic .snw { stroke: #cfe8ff; stroke-width: 1.25; stroke-linecap: round; fill: none; }
.wic .blt { fill: #ffd166; }
.now-icon .wic { width: 54px; height: 54px; }
.h-icon .wic { width: 20px; height: 20px; }
.day-icon .wic { width: 24px; height: 24px; }
.dp-ico .wic { width: 30px; height: 30px; }
.wic .wnd { stroke: #9fb3c8; stroke-width: 1.8; stroke-linecap: round; fill: none; }
[data-theme="light"] .wic .cld { fill: #8296ae; }
[data-theme="light"] .wic .mn { fill: #7d92ac; }
[data-theme="light"] .wic .snw { stroke: #7aa8d8; }
[data-theme="light"] .wic .fg { stroke: #6e8199; }
[data-theme="light"] .wic .wnd { stroke: #6e8199; }
.vdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.vdot.green { background: var(--green); } .vdot.yellow { background: var(--yellow); } .vdot.red { background: var(--red); }

.analysis-text { font-size: 14.5px; color: #cdd9ea; }

.links-row { display: flex; gap: 10px; margin-bottom: 12px; }
.link-btn {
  flex: 1; text-align: center; text-decoration: none;
  background: var(--bg2); border: 1px solid var(--line); color: var(--accent);
  border-radius: 14px; padding: 12px 8px; font-size: 14px; font-weight: 700;
}
.link-btn.disabled { color: var(--muted); pointer-events: none; }
.soon-note { text-align: center; color: var(--muted); font-size: 12.5px; padding: 4px 0 10px; }

/* ---------- v3: шапка, темы, луна/солнце ---------- */
.theme-toggle { cursor: pointer; }
.sun-g { display: none; }
.sk0 { stop-color: #101c30; } .sk1 { stop-color: #0b1220; }
.mt1 { fill: #16243c; } .mt2 { fill: #0f1930; } .mt3 { fill: #0a1120; }
.snow { fill: #dfeaf2; opacity: .9; } .snow2 { opacity: .75; }
.theme-toggle.hint-glow { animation: ttGlow 2.2s ease-in-out infinite; }
@keyframes ttGlow { 50% { opacity: .45; } }
.globe-btn {
  background: none; border: none; font-size: 15px; cursor: pointer;
  padding: 0 1px; vertical-align: baseline;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.45));
}

/* светлая тема */
[data-theme="light"] {
  --bg: #eef2f7; --bg2: #e2eaf3; --card: #ffffff; --card2: #f0f4fa;
  --line: #d4dfec; --text: #182a44; --muted: #5d6f88; --accent: #0f9a8e;
  --head: rgba(238,242,247,.92);
}
[data-theme="light"] .moon-g { display: none; }
[data-theme="light"] .sun-g { display: block; }
[data-theme="light"] .sk0 { stop-color: #7fb2e5; } [data-theme="light"] .sk1 { stop-color: #cfe3f5; }
[data-theme="light"] .mt1 { fill: #7d97b8; } [data-theme="light"] .mt2 { fill: #6885a8; } [data-theme="light"] .mt3 { fill: #56719a; }
[data-theme="light"] .snow { fill: #ffffff; opacity: .95; }
[data-theme="light"] .hero-text h1 { text-shadow: 0 1px 8px rgba(255,255,255,.55); }
[data-theme="light"] .hero-text p { color: #2c4062; text-shadow: 0 1px 8px rgba(255,255,255,.55); }
[data-theme="light"] .globe-btn { filter: drop-shadow(0 1px 4px rgba(255,255,255,.6)); }

/* ---------- v2: sticky-шапка экрана точки ---------- */
.sticky-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  background: var(--head); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 2px 14px 2px 6px;
}
.sticky-head .back-btn { margin: 4px 0; flex: 0 0 auto; }
.sticky-name {
  font-weight: 700; font-size: 15px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ---------- v2: сворачиваемый блок ---------- */
.collapse-card { padding: 14px 16px; }
.collapse-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); font-weight: 700; cursor: pointer;
}
.collapse-head .chev { transition: transform .15s ease; }
.collapse-head.open .chev { transform: rotate(180deg); }
.collapse-body { margin-top: 10px; }

/* ---------- v2: панели (донат / комьюнити) ---------- */
.panels { padding: 4px 14px 0; }
.donate-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 12px; text-align: center;
}
.donate-panel.pulse { animation: dpPulse 2.4s ease-in-out infinite; }
@keyframes dpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,214,208,0); }
  50% { box-shadow: 0 0 0 5px rgba(99,214,208,.16); }
}
.dp-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.dp-amounts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.dp-amt {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.dp-amt.sel { border-color: var(--accent); color: var(--accent); background: rgba(99,214,208,.10); }
.dp-custom {
  width: 118px; background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; text-align: center; font-family: inherit;
}
.dp-custom:focus { outline: none; border-color: var(--accent); }
.dp-go {
  width: 100%; background: var(--accent); color: #06222a; border: none;
  border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 800; cursor: pointer;
}
.dp-thanks { font-size: 26px; font-weight: 800; color: var(--accent); animation: dpThanks .45s ease; }
@keyframes dpThanks { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dp-change { margin-top: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.community-panel {
  display: block; text-align: center; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); color: var(--accent);
  border-radius: 18px; padding: 16px; font-size: 15px; font-weight: 800; margin-bottom: 12px;
}

/* ---------- v2: всплывающая подсказка «скоро» для плейсхолдеров ---------- */
.soon-toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--card2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: 14px;
  opacity: 0; pointer-events: none; z-index: 999;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 90vw; text-align: center;
}
.soon-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- v2: разнос осадков по моделям в строке дня ---------- */
.d-spread { color: var(--muted); font-size: 11px; margin-left: 2px; }

/* ---------- v2.1: главная — действия, редактирование, drag-and-drop ---------- */
.point-btn { position: relative; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.points-list.editing .point-btn { touch-action: none; animation: wiggle .3s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-.4deg); } to { transform: rotate(.4deg); } }
.p-remove {
  display: none; position: absolute; top: -7px; right: -7px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.points-list.editing .p-remove { display: flex; }
.point-btn.dragging { animation: none; opacity: .92; box-shadow: 0 10px 30px rgba(0,0,0,.45); pointer-events: none; }
.drag-ph {
  border: 2px dashed var(--line); border-radius: 16px; background: transparent;
}
.edit-bar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: 12.5px; padding: 2px 2px 6px;
}
.edit-done {
  background: var(--accent); color: #04202b; border: none; border-radius: 10px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.home-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 4px; }
.ha-btn {
  flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; padding: 12px 10px; font-size: 14px; font-weight: 650; cursor: pointer;
  transition: border-color .15s ease;
}
.ha-btn:active { background: var(--card2); }
.ha-hint { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.home-fb { padding: 12px 14px 0; }
.home-fb .ha-btn { width: 100%; }
.home-fb .ha-hint { margin-top: 6px; }

/* ---------- v2.1: библиотека виджетов ---------- */
.lib-overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.lib-head {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; align-items: center;
  background: var(--head); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 14px;
}
.lib-search {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; color: var(--text); font-size: 15px; outline: none;
}
.lib-search:focus { border-color: var(--accent); }
.lib-close {
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  width: 40px; height: 40px; border-radius: 12px; font-size: 16px; cursor: pointer;
}
.lib-list { padding: 12px 14px 32px; }
.lib-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px;
}
.lib-info { flex: 1; min-width: 0; }
.lib-name { font-size: 15px; font-weight: 650; }
.lib-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lib-add {
  background: var(--accent); color: #04202b; border: none; border-radius: 10px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; flex: 0 0 auto;
}
.lib-on {
  background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; cursor: pointer; flex: 0 0 auto;
}
.lib-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- v2.1: кнопка «Поделиться» на экране точки ---------- */
.share-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 8px 14px; font-size: 13.5px; font-weight: 650;
  cursor: pointer; margin: 0 0 12px;
}
.share-btn:active { background: var(--card2); }

/* ---------- v2.1: попап «Предложить точку» ---------- */
.fb-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(4,8,16,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.fb-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; max-width: 340px; width: 100%; text-align: center;
}
.fb-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.fb-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.fb-text b { color: var(--text); }
.fb-go {
  width: 100%; background: var(--accent); color: #04202b; border: none;
  border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.fb-cancel {
  width: 100%; background: none; border: none; color: var(--muted);
  padding: 10px; font-size: 13.5px; cursor: pointer; margin-top: 4px;
}
.fb-input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 11px 14px; font-size: 15px; font-family: inherit;
  margin-bottom: 8px; outline: none;
}
.fb-input:focus { border-color: var(--accent); }
.fb-err {
  background: rgba(248,113,113,.12); color: var(--red); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; margin-bottom: 8px; text-align: left;
}
.fb-card .fb-text { margin-top: 4px; }

/* ---------- v2.2: вкладки библиотеки ---------- */
.lib-tabs {
  position: sticky; top: 65px; z-index: 2; display: flex; gap: 6px;
  background: var(--head); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px; border-bottom: 1px solid var(--line);
}
.lib-tab {
  flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 8px 6px; font-size: 13px; font-weight: 650; cursor: pointer;
  white-space: nowrap;
}
.lib-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(99,214,208,.10); }

/* ---------- v2.2: действия на экране точки, выбор карты ---------- */
.pt-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.pt-actions .share-btn { margin: 0; flex: 1; }
.map-choice { display: flex; gap: 10px; margin-bottom: 12px; }

/* ---------- v2.2: волны ---------- */
.waves-card .wv-now { font-size: 16px; font-weight: 700; }
.wv-days { margin-top: 10px; }
.wv-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--muted); padding: 5px 0;
  border-top: 1px solid var(--line);
}
.wv-row span:last-child { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- v2.3: кнопка ⓘ «О проекте», глобус у названия точки ---------- */
.info-btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: none; border: 1.5px solid rgba(255,255,255,.75); color: #fff;
  font-size: 17px; font-weight: 700; font-style: italic; font-family: Georgia, serif;
  cursor: pointer; vertical-align: 4px; margin-left: 6px;
  text-shadow: none; padding: 0;
}
[data-theme="light"] .info-btn { border-color: rgba(24,42,68,.6); color: #182a44; }
.info-btn-sm {
  width: 31px; height: 31px; font-size: 18px; vertical-align: middle; margin-left: 14px;
  border-width: 2px; border-color: #8be9e4; color: #aef3ee;
  box-shadow: 0 0 10px rgba(139,233,228,.35);
}
[data-theme="light"] .info-btn-sm {
  border-color: #0d8f88; color: #0b7a74; box-shadow: 0 0 8px rgba(13,143,136,.25);
}
.about-title { font-size: 16px; font-weight: 800; }
.about-body { padding: 18px 20px 40px; max-width: 560px; margin: 0 auto; }
.about-body p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; color: var(--text); }
.pt-globe { font-size: 20px; vertical-align: 2px; }
button.community-panel {
  width: 100%; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  text-align: center;
}
.tg-ico { width: 18px; height: 18px; fill: currentColor; vertical-align: -4px; margin-right: 7px; }

/* ---------- v2.2: СБП / подписка ---------- */
.dp-sbp {
  width: 100%; background: var(--bg2); border: 1px solid var(--accent); color: var(--accent);
  border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 800; cursor: pointer;
  margin-bottom: 12px;
}
.dp-sbp:active { background: rgba(99,214,208,.10); }
.dp-sub-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dp-thanks + .dp-change { margin-bottom: 12px; }

/* ---------- защита вёрстки: без горизонтального сдвига и «слонов» ---------- */
html, body { overflow-x: hidden; }
body { touch-action: pan-y; }
.hours-strip { touch-action: pan-x; }
.p-name, .lib-name, .sticky-name, .d-date {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
