/* «Где печать» — стили.
   Верстаем от мобильного: продвижение идёт через вертикальные видео, значит
   подавляющее большинство придёт с телефона по ссылке из описания профиля.
   Десктоп вторичен и получает две колонки уже в конце файла. */

:root {
  /* Палитра: яркая и тёплая, как переводная картинка в блокноте */
  --cream: #fff8f0;
  --paper: #ffffff;
  --ink: #2b2140;
  --ink-soft: #6b6280;
  --line: #efe6f5;

  --pink: #ff5c8a;
  --pink-dark: #e84473;
  --violet: #7c5cff;
  --mint: #00c2a8;
  --sun: #ffc93c;

  --open: #21b45c;
  --soon: #f59e0b;
  --closed: #ef4444;
  --unknown: #9aa1ae;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(43, 33, 64, .13);
  --shadow-sm: 0 2px 10px rgba(43, 33, 64, .1);

  --header-h: 56px;
  --filters-h: 54px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--violet); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 20px; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
/* Логотип рисует себя сам: подложка и тень ему не нужны, у штампа свои цвета. */
.logo .mark { width: 28px; height: 28px; display: block; flex: none; }

.header .spacer { flex: 1; }

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { background: #f6f0fd; color: var(--violet); }

/* На узком экране пункты меню уезжают в шторку — в шапке остаётся кнопка */
.burger {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 17px;
  cursor: pointer;
}
@media (min-width: 760px) { .burger { display: none; } }
@media (max-width: 759px) { .nav.desktop { display: none; } }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(43, 33, 64, .35);
  backdrop-filter: blur(2px);
  display: none;
}
.drawer.open { display: block; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(80vw, 300px);
  background: var(--paper);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: slide-in .18s ease;
}
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer__panel a {
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.drawer__panel a:hover { background: #f6f0fd; }

/* --------------------------------------------------------------------------
   Общая раскладка карты
   -------------------------------------------------------------------------- */

.app {
  position: relative;
  height: calc(100dvh - var(--header-h) - var(--filters-h));
  display: flex;
  overflow: hidden;
}

.map-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
}
/* z-index и isolation здесь не для порядка слоёв внутри карты, а чтобы карта
   не лезла наружу. Яндекс рисует свои копирайты и кнопку «Открыть Яндекс
   Карты» с большими z-index, а позиционированный блок без z-index своего
   контекста наложения не создаёт — значит эти кнопки соревнуются за слой со
   шторкой карточки и вылезают поверх неё. Так стрелки листания комментариев
   и оказывались под логотипом Яндекса. */
#map {
  position: absolute;
  inset: 0;
  background: #eee7f5;
  z-index: 0;
  isolation: isolate;
}

/* Фильтры — одной строкой с горизонтальным скроллом, сразу под шапкой.
   Специально не поверх карты: карта может не подняться, а фильтровать
   список всё равно нужно. */
.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: var(--filters-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .1s ease, background .15s ease;
}
.chip:active { transform: scale(.96); }
.chip.on { background: var(--violet); color: #fff; }
.chip.on.open-now { background: var(--open); }
.chip.on.official { background: var(--sun); color: var(--ink); }
.chip .count { opacity: .6; font-weight: 600; }

/* Плавающие кнопки. Приподняты над нижним краем: там идёт полоса копирайтов
   Яндекса, закрывать её нельзя по условиям использования карт, да и наши
   кнопки на ней не читаются. */
.fabs {
  position: absolute;
  right: 12px;
  bottom: calc(38px + var(--safe-bottom));
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 19px;
  cursor: pointer;
}
.fab:active { transform: scale(.94); }
.fab.primary { background: var(--pink); color: #fff; }

/* Переключатель «карта ↔ список» — только на телефоне.
   z-index выше списка (30): список закрывает карту целиком, и переключатель
   должен оставаться поверх, иначе с него не вернуться обратно на карту. */
.view-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(38px + var(--safe-bottom));
  z-index: 45;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.view-toggle button {
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.view-toggle button.on { background: var(--violet); color: #fff; }
@media (min-width: 900px) { .view-toggle { display: none; } }

/* --------------------------------------------------------------------------
   Список точек
   -------------------------------------------------------------------------- */

.list {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--cream);
  display: none;
  flex-direction: column;
}
.list.show { display: flex; }

.search {
  padding: 10px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 2;
}
.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 16px; /* меньше 16px — и Safari зумит страницу при фокусе */
  font-family: inherit;
  color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--violet); }

.list__items {
  flex: 1;
  overflow-y: auto;
  /* Снизу плавает переключатель «карта ↔ список» — под ним должен помещаться
     последний пункт, иначе до него не добраться. */
  padding: 0 10px calc(100px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

.item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.item:active { transform: scale(.995); }
.item__dot {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--unknown);
}
.item__dot.open { background: var(--open); }
.item__dot.closing_soon { background: var(--soon); }
.item__dot.closed { background: var(--closed); }
.item__body { min-width: 0; flex: 1; }
.item__name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.item__meta {
  color: var(--ink-soft);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item__status { font-size: 13px; font-weight: 650; margin-top: 2px; }
.item.collected { background: linear-gradient(180deg, #fff, #f4fff8); }
.item.collected .item__name::after { content: "✓"; color: var(--open); font-weight: 900; }

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Метки на карте
   -------------------------------------------------------------------------- */

/* Метка целиком нарисована в svg (см. pinSVG в map.js). Остриё приходится на
   левый нижний угол элемента, поэтому отрицательными полями точка ставится
   ровно под ним: капля должна указывать на место, а не висеть рядом с ним. */
.pin {
  width: 28px; height: 38px;
  margin: -37px 0 0 -14px;
  cursor: pointer;
  transition: transform .12s ease;
  transform-origin: 50% 96%;
  color: #fff; /* цвет значка внутри капли */
}
.pin svg {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(43, 33, 64, .35));
  overflow: visible;
}
.pin__body { fill: var(--unknown); stroke: #fff; stroke-width: 2.4; }
.pin__icon { fill: currentColor; }
.pin.open .pin__body { fill: var(--open); }
.pin.closing_soon .pin__body { fill: var(--soon); }
.pin.closed .pin__body { fill: var(--closed); }
.pin.unknown .pin__body { fill: var(--unknown); }
.pin.official .pin__body { stroke: var(--sun); stroke-width: 3.4; }
.pin.collected { color: var(--open); }
.pin.collected .pin__body { fill: #fff; }
.pin.active { transform: scale(1.25); z-index: 5; }

.cluster {
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(43, 33, 64, .3);
  cursor: pointer;
}

.me-dot {
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #2f80ed;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 128, 237, .2);
}

/* --------------------------------------------------------------------------
   Карточка точки — выезжает снизу, а не модалка по центру
   -------------------------------------------------------------------------- */

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  max-height: 88dvh;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(43, 33, 64, .22);
  transform: translateY(101%);
  transition: transform .24s cubic-bezier(.2, .8, .3, 1);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.sheet.open { transform: translateY(0); }

.sheet__grip {
  flex: 0 0 auto;
  padding: 8px 0 4px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}
.sheet__grip i {
  width: 42px; height: 4px;
  border-radius: 999px;
  background: var(--line);
  display: block;
}
.sheet__body {
  overflow-y: auto;
  padding: 4px 16px calc(20px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

/* Крестик прибит к правому верхнему углу шторки, а не стоит рядом с названием:
   от длины названия его место не должно зависеть. Поле справа у заголовка —
   чтобы длинное название не заезжало под кнопку. */
.sheet__close {
  position: absolute;
  top: 10px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: #f4f1f8;
  font-size: 16px; cursor: pointer; color: var(--ink-soft);
}
.card__head { padding-right: 34px; }
.card__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.card__branch { color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* Расписание: сегодня открыто строкой, остальные дни — по требованию. */
.week { margin-top: 6px; }
.week > summary {
  cursor: pointer;
  color: var(--violet);
  font-weight: 650;
  font-size: 14px;
  list-style: none;
}
.week > summary::-webkit-details-marker { display: none; }
.week > summary::after { content: ' ▾'; }
.week[open] > summary::after { content: ' ▴'; }
.week__row { display: flex; gap: 8px; margin-top: 4px; font-size: 14px; }
.week__day { color: var(--ink-soft); min-width: 22px; font-weight: 650; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #f4f1f8;
  color: var(--ink-soft);
}
.badge.official { background: #fff4d1; color: #9a6b00; }
.badge.open { background: #e4f8ec; color: #147a3d; }
.badge.closing_soon { background: #fff1dc; color: #9a5b00; }
.badge.closed { background: #ffe9e9; color: #b32020; }
.badge.unknown { background: #eef0f3; color: #5b6472; }

.rows { margin: 12px 0; display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.row__icon { flex: 0 0 22px; font-size: 15px; line-height: 1.45; }
.row__label { color: var(--ink-soft); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.row__value { word-break: break-word; }

.stamp-block {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 10px 0;
}
.stamp-block.past { opacity: .62; }
.stamp-block__title { font-weight: 750; display: flex; gap: 8px; align-items: center; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
/* Две кнопки в строку, вместе — во всю ширину плитки, как «Открыть карту».
   flex-basis 0 делит место поровну независимо от длины надписей: иначе
   «Создать аккаунт» перетянул бы ширину на себя. Перенос запрещён — в две
   строки кнопки становятся выше и рванее; чтобы «Создать аккаунт» помещался
   на узких экранах, боковые поля ужаты. */
/* Кнопка, которая относится к полю прямо над ней, а не к разделу целиком. */
.actions--tight { margin-top: 4px; }
/* Две строки кнопок подряд — это одна группа, а не два раздела. */
.actions + .actions { margin-top: 6px; }

/* Строка «широкая кнопка + квадратная»: маршрут занимает всё место, значок
   «поделиться» остаётся ровным квадратом той же высоты. */
.actions--row { flex-wrap: nowrap; align-items: stretch; }
.btn--grow { flex: 1 1 auto; min-width: 0; }
.btn--icon {
  flex: 0 0 auto;
  width: auto;
  aspect-ratio: 1;
  padding: 0;
}
.btn--icon svg { width: 20px; height: 20px; display: block; }

.actions--fill { flex-wrap: nowrap; }
.actions--fill .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: #f4f1f8;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-dark); }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); }
.btn--collected { background: var(--open); color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

.missing {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff8e6;
  color: #8a6300;
  font-size: 13.5px;
}
.missing a { color: #8a6300; font-weight: 700; }

/* --------------------------------------------------------------------------
   Комментарии
   -------------------------------------------------------------------------- */

.comments { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.comment__head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.comment__author { font-weight: 750; }
.comment__stats { color: var(--mint); font-weight: 700; }
.comment__date { color: var(--ink-soft); margin-left: auto; font-size: 12px; }
.comment__body { font-size: 14.5px; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }

/* Листалка комментариев. Появляется только со второй страницы: две стрелки
   под тремя сообщениями, когда других нет, — мусор на экране. */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.pager__btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.pager__btn[disabled] { opacity: .4; cursor: default; }
.pager__info { color: var(--ink-soft); font-size: 14px; font-weight: 650; }

textarea, input[type=text], input[type=password], select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--violet); }
textarea { min-height: 84px; resize: vertical; }

label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.hint { color: var(--ink-soft); font-size: 13px; font-weight: 500; margin-top: 4px; }

/* Honeypot: поле для ботов. Человек его не видит и не заполняет, поэтому
   капча не нужна — она отсекает людей, а спам всё равно проходит. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin: 12px 0;
}
.notice.ok { background: #e4f8ec; color: #147a3d; }
.notice.err { background: #ffe9e9; color: #b32020; }
.notice.info { background: #f0ecff; color: #4c37b8; }

/* --------------------------------------------------------------------------
   Обычные страницы
   -------------------------------------------------------------------------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px calc(48px + var(--safe-bottom));
}
.page p { margin: 0 0 14px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }

.tile {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
/* Пояснение под кнопкой во всю ширину: без отступа текст прилипает к кнопке
   и читается как её вторая строка. */
.tile .btn--wide + p { margin-top: 10px; }

.progress-hero {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  margin-bottom: 18px;
}
.progress-hero .big { font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.progress-hero .sub { opacity: .9; margin-top: 6px; font-weight: 600; }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  margin-top: 14px;
  overflow: hidden;
}
.progress-bar i { display: block; height: 100%; background: #fff; border-radius: 999px; }

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ach {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 2px solid transparent;
}
.ach.done { border-color: var(--sun); background: linear-gradient(180deg, #fffdf5, #fff6dd); }
.ach__emoji { font-size: 30px; filter: grayscale(1); opacity: .45; }
.ach.done .ach__emoji { filter: none; opacity: 1; }
.ach__title { font-weight: 800; font-size: 14.5px; margin-top: 6px; }
.ach__desc { color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; }
.ach__progress { font-size: 12.5px; font-weight: 700; color: var(--violet); margin-top: 6px; }

.route-list { counter-reset: stop; }
.route-stop {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.route-stop__no {
  flex: 0 0 28px; height: 28px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}

.loader {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ink-soft);
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px; top: 8px;
  z-index: 999;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Десктоп: список слева, карта справа
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .app { flex-direction: row; }
  .list {
    position: relative;
    display: flex;
    flex: 0 0 380px;
    border-right: 1px solid var(--line);
  }
  .sheet {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 420px;
    max-height: calc(100dvh - var(--header-h) - var(--filters-h) - 32px);
    border-radius: var(--radius);
    transform: translateY(calc(100% + 24px));
  }
  .sheet.open { transform: translateY(0); }
  .filters { padding-left: 14px; }
}

/* --------------------------------------------------------------------------
   Поле пароля с кнопкой «показать»
   -------------------------------------------------------------------------- */

.pw { position: relative; }
.pw input { padding-right: 92px; }
.pw__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #f4f1f8;
  color: var(--violet);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
}
.pw__toggle:hover { background: #ece5fb; }
.pw__toggle:active { transform: translateY(-50%) scale(.96); }

/* --------------------------------------------------------------------------
   Профиль: список собранных печатей
   -------------------------------------------------------------------------- */

.stamp-row {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.stamp-row__head { display: flex; gap: 8px; align-items: flex-start; }
.stamp-row__name { flex: 1; font-weight: 750; font-size: 15px; }
.stamp-row__remove {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  background: #f4f1f8;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}
.stamp-row__remove:hover { background: #ffe9e9; color: var(--closed); }

.stamp-row__date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stamp-row__human { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.stamp-row__link { font-size: 13px; font-weight: 700; text-decoration: none; }

/* Карта не поднялась (нет ключа или API не ответил) — список занимает всё
   место, а не ютится в колонке рядом с пустотой. */
body.no-map .list {
  position: relative;
  display: flex;
  flex: 1;
  border-right: none;
}
body.no-map .list__items { padding-bottom: calc(24px + var(--safe-bottom)); }
/* Карта не поднялась — переключать не на что. Раньше кнопка пряталась заодно
   с картой, потому что лежала внутри неё; теперь она снаружи и убирается сама. */
body.no-map .view-toggle { display: none; }

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