/* ============================================================
   Momento — внутренние страницы (всё, кроме главной).
   Подключается после style.css: цвета, шрифты, кнопки и поля
   форм берутся оттуда (переменные в :root).
   ============================================================ */

/* ---------- Общие детали ---------- */

.logo-sm .logo-word { font-size: 18px; }
.logo-sm .logo-mark { transform: scale(.85); transform-origin: left center; }

/* Переключатель из двух-трёх кнопок */
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg button {
  border: 0;
  background: none;
  font: 500 14px/1 var(--font-text);
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"],
.seg button[aria-selected="true"] { background: var(--ink); color: var(--white); }

/* Строка со ссылкой и кнопкой «Скопировать» */
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
}
.link-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere; /* длинная ссылка переносится, а не обрезается — её должно быть видно целиком */
  line-height: 1.35;
  font-weight: 500;
}

.qr-big {
  width: 232px;
  height: 232px;
  margin: 24px auto 14px;
  padding: 14px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line);
}

.field input::placeholder,
.field textarea::placeholder { color: #A89A8E; }

/* Текст только для экранных дикторов (незрячих посетителей) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.card h2 { font: 600 18px/1.3 var(--font-text); letter-spacing: 0; }

.btn-danger { background: var(--white); border-color: #E7B9B5; color: var(--danger); }
.btn-danger:hover { background: #FBEDEC; border-color: var(--danger); }
.modal .btn-danger { background: var(--danger); border-color: var(--danger); color: var(--white); }
.modal .btn-danger:hover { background: #8F1E17; }

/* Тарифные «таблетки» */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-test { background: var(--paper); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.badge-lite { background: var(--sky); color: var(--sky-ink); }
.badge-standard { background: var(--butter); color: var(--butter-ink); }
.badge-premium { background: var(--lilac); color: var(--lilac-ink); }

/* Полоска «сколько места занято» */
.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.meter-label { font-size: 14px; color: var(--ink-soft); }

/* Переключатель вкл/выкл */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.card h2 + .switch-row { margin-top: 8px; border-top: 0; }
.switch-text strong { display: block; font-weight: 500; }
.switch-text span { font-size: 14px; color: var(--ink-soft); }
.switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
  transition: background-color .2s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(46, 39, 36, .25);
  transition: transform .2s;
}
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Круглая кнопка-значок */
.icon-link {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}
.icon-link:hover { border-color: var(--ink); }

/* ============================================================
   Страница гостя (album.html)
   ============================================================ */

.page-guest { padding-bottom: 32px; }

.guest-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.guest-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  max-height: 440px;
  width: 100%;
  background: var(--ink);
}
.guest-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guest-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 22, 19, .8) 0%, rgba(28, 22, 19, .3) 42%, rgba(28, 22, 19, 0) 68%);
}
.guest-cover-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: var(--white);
}
.guest-cover h1 {
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14em;
}
.guest-date { margin-top: 10px; font-size: 15px; opacity: .9; }

/* Обложка без фото — пастельный фон с «конфетти». Цвет зависит от праздника. */
.guest-cover.is-plain,
.pv-cover,
.confetti {
  background:
    radial-gradient(circle at 12% 24%, var(--peach) 0 14px, transparent 15px),
    radial-gradient(circle at 84% 18%, var(--mint) 0 22px, transparent 23px),
    radial-gradient(circle at 72% 70%, var(--butter) 0 12px, transparent 13px),
    radial-gradient(circle at 92% 58%, var(--rose) 0 8px, transparent 9px),
    var(--lilac);
}
.type-birthday { background-color: var(--peach) !important; }
.type-corporate { background-color: var(--sky) !important; }
.type-graduation { background-color: var(--butter) !important; }
.type-other { background-color: var(--mint) !important; }
.guest-cover.is-plain { aspect-ratio: auto; min-height: 240px; }
.guest-cover.is-plain::after { display: none; }
.guest-cover.is-plain .guest-cover-text { color: var(--ink); }

.guest-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
/* На телефоне порядок: загрузка → фото → «сохранить альбом» */
.guest-side { display: contents; }
.upload-card { order: 1; }
.g-album { order: 2; }
.save-card { order: 3; }

.upload-card {
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.upload-title { font-size: 20px; }
.upload-lead { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.upload-btn { width: 100%; margin-top: 18px; min-height: 60px; font-size: 17px; }
.upload-btn .i { width: 22px; height: 22px; }
.drop-hint { display: none; }
.upload-notes {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.upload-notes li { display: flex; gap: 10px; align-items: baseline; }
.upload-notes li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-ink);
  transform: translateY(-2px);
}

.save-card {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.save-card h2 { font: 600 16px/1.3 var(--font-text); letter-spacing: 0; }
.save-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.g-album-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.g-count { font: 600 17px/1.3 var(--font-text); letter-spacing: 0; font-variant-numeric: tabular-nums; }

.g-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.g-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.g-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.g-open img,
.g-open video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.g-open:hover img { transform: scale(1.04); }
.g-open:focus-visible { outline-offset: -3px; }

.g-like {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.g-like .emo { font-size: 12px; line-height: 1; letter-spacing: 1px; }
.g-like.is-liked { background: var(--rose); }

.g-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 16, 14, .55);
  color: var(--white);
}
.g-broken {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

/* Загрузка: фото затемнено, внизу полоска прогресса */
.is-uploading img,
.is-uploading video { filter: brightness(.65) saturate(.5); }
.g-progress {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
  pointer-events: none;
}
.g-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
  transition: width .14s linear;
}
.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--mint-ink);
  border-radius: inherit;
  pointer-events: none;
  animation: fade-out 1.4s ease-out forwards;
}
@keyframes fade-out { to { opacity: 0; } }

.g-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 20px;
  border: 2px dashed var(--line);
  border-radius: 24px;
  color: var(--ink-soft);
}
.g-empty .i { width: 40px; height: 40px; }
.g-empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }
.g-more { display: flex; margin: 24px auto 0; }

.guest-foot {
  max-width: 34em;
  margin: 56px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.guest-foot a { color: var(--ink); }

/* Полоса для организатора над альбомом */
.owner-bar { background: var(--ink); color: var(--white); font-size: 14px; }
.owner-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.owner-bar-text { opacity: .7; }
.owner-bar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.owner-bar a { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 500; text-decoration: none; }
.owner-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.owner-bar .i { width: 17px; height: 17px; }
.owner-bar :focus-visible { outline-color: var(--white); }

/* Метка «На проверке» на своём фото, пока организатор его не одобрил */
.g-pending {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 11.5px;
  font-weight: 600;
  pointer-events: none;
}

/* Экран пароля */
.is-locked .guest,
.is-locked .fab { display: none; }
.pass-gate {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  padding: 24px 16px 64px;
}
.pass-gate-card {
  width: min(440px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.pass-gate-card h1 { font-size: 26px; line-height: 1.15; }
.pass-gate-card .field { width: 100%; text-align: left; }
.pass-gate-card .btn { width: 100%; }

/* Плавающая кнопка «Добавить фото» (только телефон) */
.fab {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 500 16px/1 var(--font-text);
  box-shadow: 0 16px 40px -12px rgba(46, 39, 36, .7);
  transform: translate(-50%, 140%);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
  cursor: pointer;
}
.fab.is-shown { transform: translate(-50%, 0); }

/* Подсказка «Фото ↓» (только телефон): фото альбома ниже — стрелка тихонько подпрыгивает */
.photos-hint {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 19;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 20px 5px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  box-shadow: 0 14px 34px -14px rgba(46, 39, 36, .6);
  font: 600 14px/1.1 var(--font-text);
  transform: translateX(-50%);
  cursor: pointer;
}
.photos-hint .i { width: 22px; height: 22px; animation: hint-bounce 1.4s ease-in-out infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .photos-hint .i { animation: none; }
}

/* Плашка «Загружаем — не закрывайте страницу» (assets/js/upload.js) */
.upload-guard {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 70;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 16px 40px -14px rgba(46, 39, 36, .7);
  text-align: center;
  transform: translate(-50%, calc(-100% - 30px));
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
  pointer-events: none;
}
.upload-guard.is-shown { transform: translate(-50%, 0); }
.upload-guard strong { font-size: 15px; font-weight: 600; }
.upload-guard span { font-size: 13px; opacity: .8; }

/* QR-код для друга: кнопка «Скачать» */
.qr-save { margin-top: 14px; }

/* Страница, куда Яндекс возвращает разрешение «Сохранить на Яндекс Диск» (yadisk.html) */
.yadisk-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.yadisk-text { max-width: 26em; font-size: 18px; }

/* Подсказка при перетаскивании файлов в окно */
.drop-overlay {
  position: fixed;
  inset: 12px;
  z-index: 60;
  display: grid;
  place-items: center;
  border: 3px dashed var(--ink);
  border-radius: 28px;
  background: rgba(244, 237, 227, .92);
  font: 500 22px/1.3 var(--font-display);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.drop-overlay.is-shown { opacity: 1; }
.drop-overlay div { display: grid; justify-items: center; gap: 14px; }
.drop-overlay .i { width: 44px; height: 44px; }

@media (max-width: 959px) {
  .page-guest .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

@media (min-width: 600px) {
  .g-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .g-item { border-radius: 12px; }
  .g-like { right: 8px; bottom: 8px; }
}

@media (min-width: 960px) {
  .guest-cover { aspect-ratio: 21 / 8; }
  .guest-cover-text { left: 40px; right: 40px; bottom: 36px; }
  .guest-date { font-size: 17px; }
  .guest-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 32px;
  }
  .guest-side { display: block; position: sticky; top: 24px; }
  .save-card { margin-top: 16px; }
  .drop-hint { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: var(--ink-soft); }
  .fab { display: none; }
  .photos-hint { display: none !important; }
}

@media (max-width: 420px) {
  .hide-narrow { display: none; }
}
@media (max-width: 600px) {
  .guest-top { height: 64px; }
  .guest-cover { border-radius: 22px; }
  .guest-cover-text { left: 18px; right: 18px; bottom: 16px; }
  .upload-card { padding: 20px; }
  .save-card { padding: 18px 20px; }
}

/* ---------- Просмотр фото на весь экран ---------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #14100E;
  color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #14100E; }
.lightbox[open] { animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; } }

.lb-top,
.lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.lb-bottom { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
.lb-count { font-size: 15px; opacity: .75; font-variant-numeric: tabular-nums; padding-left: 4px; }

.lb-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn .i { width: 24px; height: 24px; }
.lightbox :focus-visible { outline-color: var(--white); }

.lb-stage {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 0 12px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.lb-media {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.lb-media[hidden] { display: none; }
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  background: rgba(20, 16, 14, .5);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Низ просмотра: строка реакций, под ней время и «Скачать» */
.lightbox .lb-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
.lb-reacts {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lb-react {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font: 600 15px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .15s;
}
.lb-react:hover { background: rgba(255, 255, 255, .2); }
.lb-react .emo { font-size: 21px; line-height: 1; }
.lb-react-count:empty { display: none; }
.lb-react[aria-pressed="true"] { background: rgba(255, 255, 255, .92); border-color: var(--white); color: var(--ink); }
.lb-react.is-pop .emo { animation: pop .45s cubic-bezier(.2, .8, .3, 1.4); }
.lb-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lb-time { font-size: 15px; opacity: .7; min-width: 0; }
.lb-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font: 500 15px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
}
.lb-download:hover { background: rgba(255, 255, 255, .2); }
@keyframes pop {
  40% { transform: scale(1.5); }
}

@media (hover: none) {
  .lb-nav { display: none; } /* на телефоне листают свайпом */
}
@media (max-width: 600px) {
  .lb-download span { display: none; }
  .lb-download { padding: 0 15px; min-height: 44px; }
  .lb-stage { padding: 0; }
  .lb-reacts { justify-content: flex-start; gap: 4px; }
  .lb-react { min-width: 0; padding: 0 10px; min-height: 42px; gap: 4px; font-size: 14px; }
  .lb-react .emo { font-size: 19px; }
}

/* ---------- Окно с QR-кодом для друга ---------- */

.qr-modal .modal-body { text-align: center; }
.qr-modal h2 { padding: 0 40px; }
.qr-album { font: 500 18px/1.3 var(--font-display); letter-spacing: -0.02em; }
.qr-modal .link-row { margin-top: 20px; text-align: left; }

/* ============================================================
   Трансляция на экран (tv.html)
   ============================================================ */

.page-wall {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #14100E;
  color: var(--white);
}
.page-wall.is-idle { cursor: none; }

.wall {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 12px 12px 0;
  min-height: 0;
}
.wall-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #221C19;
}
/* «По одному»: одно большое фото на весь экран вместо трёх */
.wall-one .wall { grid-template-columns: 1fr; }
.wall-one .wall-panel:nth-child(n+2) { display: none; }
.wall-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.wall-frame.is-active { opacity: 1; }
.wall-bg,
.wall-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Фон — то же фото, размытое: заполняет пустые места у горизонтальных фото */
.wall-bg { object-fit: cover; filter: blur(30px) brightness(.55); transform: scale(1.2); }
.wall-img { object-fit: contain; }
.wall-frame.is-active .wall-img { animation: slow-zoom 12s ease-out both; }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
.wall-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--peach-ink);
  font-size: 15px;
  font-weight: 600;
}

.wall-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 28px 20px;
}
.wall-brand { font: 600 14px/1 var(--font-display); opacity: .6; }
.wall-title h1 {
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.wall-date { margin-top: 6px; opacity: .65; font-size: 16px; }
.wall-qr {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
}
.wall-qr .qr { width: 96px; height: 96px; }
.wall-qr-text { display: grid; gap: 2px; font-size: 15px; }
.wall-qr-text strong { font: 500 18px/1.2 var(--font-display); letter-spacing: -0.02em; }
.wall-qr-text span { color: var(--ink-soft); }
.wall-qr-text .wall-link { color: var(--ink); font-weight: 600; margin-top: 4px; }

/* Уведомление «новое фото» */
.wall-toast {
  position: fixed;
  top: 84px; /* ниже кнопок управления */
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(calc(-100% - 40px));
  transition: transform .5s cubic-bezier(.2, .8, .3, 1.2), opacity .3s;
}
.wall-toast.is-shown { transform: none; opacity: 1; }
.wall-toast i { width: 12px; height: 12px; border-radius: 50%; background: var(--peach-ink); }

/* Кнопки управления — видны, пока двигают мышью */
.wall-controls {
  position: fixed;
  left: 24px;
  right: 24px;
  top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: opacity .3s;
}
.wall-controls-right { display: flex; gap: 8px; }
.is-idle .wall-controls { opacity: 0; pointer-events: none; }
.wall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 16, 14, .7);
  color: var(--white);
  font: 500 15px/1 var(--font-text);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.wall-btn:hover { background: rgba(20, 16, 14, .9); }
.page-wall :focus-visible { outline-color: var(--white); }

@media (max-width: 900px) {
  .wall { grid-template-columns: 1fr; }
  .wall-panel:nth-child(n+2) { display: none; }
  .wall-view { display: none; } /* на узком экране и так одно фото */
  .wall-info { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
  .wall-qr .qr { width: 72px; height: 72px; }
  .wall-toast { top: auto; bottom: 200px; right: 16px; left: 16px; justify-content: center; font-size: 16px; transform: translateY(40px); opacity: 0; transition: opacity .3s, transform .3s; }
  .wall-toast.is-shown { opacity: 1; }
  .wall-controls { left: 20px; right: 20px; top: 20px; }
  .wall-btn span { display: none; }
}

/* ============================================================
   Вход и регистрация (login.html)
   ============================================================ */

.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 48px 48px;
  background: var(--lilac);
  overflow: hidden;
}
.auth-collage { position: relative; height: 400px; }
.auth-collage figure {
  position: absolute;
  margin: 0;
  width: 42%;
  max-width: 230px;
  padding: 10px 10px 42px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(var(--r));
}
.auth-collage figure:nth-child(1) { left: 2%; top: 56px; }
.auth-collage figure:nth-child(2) { left: 30%; top: 0; z-index: 2; }
.auth-collage figure:nth-child(3) { left: 56%; top: 96px; }
.auth-collage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.auth-collage figcaption {
  position: absolute;
  left: 14px;
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.auth-slogan {
  font: 500 clamp(32px, 3.4vw, 50px)/1.02 var(--font-display);
  letter-spacing: -0.035em;
}
.auth-note { margin-top: 14px; color: var(--lilac-ink); font-size: 16px; }

.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 24px;
}
.auth-logo { display: none; }
.auth-top { width: min(420px, 100%); display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.auth-card { width: min(420px, 100%); }
.auth-tabs { margin-bottom: 32px; }
.auth-form { display: grid; gap: 18px; }
.auth-form:focus { outline: none; }
.auth-form h1 { font-size: 30px; line-height: 1.1; }
.auth-sub { color: var(--ink-soft); margin-top: 8px; }
.auth-form > .btn { width: 100%; }
.auth-forgot { justify-self: start; font-size: 15px; margin-top: -6px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; text-decoration: none; font-weight: 500; }
.auth-legal { font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.auth-done-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
}
.auth-done-icon .i { width: 30px; height: 30px; }

/* Поле пароля с кнопкой-глазом */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 52px; }
.pass-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.pass-toggle:hover { color: var(--ink); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-logo { display: flex; }
  .auth-top { justify-content: space-between; }
  .auth-main { justify-content: flex-start; padding: 24px 16px 48px; }
}

/* ============================================================
   Шапка кабинета (создание альбома, кабинет, управление, оплата)
   ============================================================ */

.app-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.app-header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.app-header-link {
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.app-header-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.app-nav { display: flex; gap: 4px; }
.app-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.app-nav a:hover { color: var(--ink); }
.app-nav a[aria-current="page"] { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.user-menu { position: relative; margin-left: auto; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 15px/1 var(--font-text);
  cursor: pointer;
}
.user-btn .i { width: 16px; height: 16px; color: var(--ink-soft); }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peach);
  color: var(--peach-ink);
  font-weight: 600;
}
.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.user-pop-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.user-pop-head strong { display: block; }
.user-pop-head span { font-size: 14px; color: var(--ink-soft); }
.user-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
}
.user-pop a:hover { background: var(--paper); }
.user-pop .pop-nav { display: none; }

@media (max-width: 760px) {
  /* На телефоне в шапке остаётся только «Главная», остальное — в меню под кружком с именем */
  .app-nav a:not(:first-child) { display: none; }
  .app-header-row { gap: 16px; }
  .user-pop .pop-nav { display: flex; }
  .user-name { display: none; }
  .app-header-row { height: 64px; }
}
@media (max-width: 420px) {
  /* Узкие телефоны (360 точек): чуть плотнее, чтобы шапка не вылезала за край экрана */
  .app-header-row { gap: 8px; }
  .app-nav a { padding: 9px 10px; }
}

/* ============================================================
   Создание альбома (create.html)
   ============================================================ */

.create { padding-top: 32px; padding-bottom: 96px; }

.stepper {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.stepper li + li::before { content: ""; width: 32px; height: 1.5px; background: var(--line); }
.stepper span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 13px;
}
.stepper li[aria-current] { color: var(--ink); }
.stepper li[aria-current] span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stepper li.is-done span { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(380px, 1fr);
  gap: 48px;
  align-items: start;
}
/* minmax(0, 1fr) — чтобы длинная ссылка не растягивала колонку и не залезала под предпросмотр */
.create-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.create-step:focus { outline: none; }
.create-step h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.create-sub { margin-top: 12px; max-width: 32em; color: var(--ink-soft); font-size: 17px; }
.create-plan {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 14.5px;
  font-weight: 500;
}

/* Выбор праздника — кнопки-«таблетки» */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.field-label { font-size: 14px; font-weight: 500; }
.optional { color: var(--ink-soft); font-weight: 400; }
.cover-pick { display: flex; align-items: center; gap: 16px; }
.create-next { justify-self: start; min-width: 220px; }
.create-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.create-step .auth-legal { text-align: left; line-height: 1.7; }

.done-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 14px;
  font-weight: 600;
}
.done-badge .i { width: 18px; height: 18px; }
.done-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.done-card .qr { width: 132px; height: 132px; flex-shrink: 0; }
.done-card-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.done-label { font-size: 14px; color: var(--ink-soft); }
.done-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.plan-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--butter);
}
.plan-note > div { min-width: 0; }
.plan-note strong { display: block; font-weight: 600; }
.plan-note span { display: block; margin-top: 2px; color: var(--butter-ink); font-size: 15px; }
.plan-note .btn { flex-shrink: 0; }

/* Предпросмотр «как увидят гости» */
.create-preview {
  position: sticky;
  top: 24px;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px 24px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.preview-label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.create-preview .phone { box-shadow: 0 40px 70px -40px rgba(46, 39, 36, .5); }
.pv-cover {
  position: relative;
  height: 120px;
  margin: 14px 0 2px;
  overflow: hidden;
  border-radius: 16px;
}
.pv-cover img { width: 100%; height: 100%; object-fit: cover; }
.phone-title.is-placeholder { color: #A89A8E; }

@media (max-width: 960px) {
  .create-layout { grid-template-columns: 1fr; }
  .create-preview { display: none; }
}
@media (max-width: 600px) {
  .create { padding-top: 24px; }
  .stepper { margin-bottom: 28px; gap: 8px; }
  .stepper li + li::before { width: 12px; }
  .done-card { flex-direction: column; align-items: stretch; }
  .done-card .qr { align-self: center; }
  .plan-note { flex-direction: column; align-items: flex-start; }
  .create-next, .create-actions .btn { width: 100%; }
}

/* ============================================================
   Личный кабинет (dashboard.html)
   ============================================================ */

.cabinet { padding-top: 40px; padding-bottom: 96px; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-head h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }

.acards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.acard {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.acard-cover { position: relative; display: block; min-height: 100%; }
.acard-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acard-body { display: grid; gap: 10px; align-content: start; padding: 22px 24px 24px; }
.acard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acard h2 { font-size: 19px; line-height: 1.25; }
.acard h2 a { text-decoration: none; }
.acard h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acard-meta { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 4px; }
.acard-status { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.acard-status .i { width: 18px; height: 18px; color: var(--ink-soft); }
.acard-status.is-warn { color: var(--danger); font-weight: 500; }
.acard-status.is-warn .i { color: var(--danger); }
.acard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.acard-actions .icon-link { width: 42px; height: 42px; }
.acard-actions .icon-link:first-of-type { margin-left: auto; }
.acard-actions button.icon-link { padding: 0; cursor: pointer; }
.icon-link.is-danger { color: var(--ink-soft); }
.icon-link.is-danger:hover { border-color: var(--danger); color: var(--danger); }

.acard-new {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 200px;
  padding: 28px;
  border: 2px dashed var(--line);
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  grid-template-columns: none;
}
.acard-new:hover { border-color: var(--ink); color: var(--ink); }
.acard-new strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.acard-new-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}
.acard-new-icon .i { width: 26px; height: 26px; }

.table-card { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.pay-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.pay-table th,
.pay-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay-table th { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.pay-table tr:last-child td { border-bottom: 0; }
.pay-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cab-note { margin-top: 16px; color: var(--ink-soft); font-size: 15px; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.settings-grid .card { display: grid; gap: 16px; }
.settings-grid .card > .btn { justify-self: start; }
.card-danger p { color: var(--ink-soft); }

@media (max-width: 1000px) {
  .acards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cabinet { padding-top: 28px; }
  .page-head .btn { width: 100%; }
  .acard { grid-template-columns: 1fr; }
  .acard-cover { height: 150px; }
  .acard-body { padding: 18px 18px 20px; }
  .card { padding: 22px 18px; }
}

/* ============================================================
   Управление альбомом (manage.html)
   ============================================================ */

.manage { padding-top: 28px; padding-bottom: 120px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.back-link .i { width: 18px; height: 18px; }

.manage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.manage-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.manage-title h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; }
.manage-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; color: var(--ink-soft); }
.status-open { display: inline-flex; align-items: center; gap: 7px; color: var(--mint-ink); font-weight: 500; font-size: 15px; }
.status-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-ink); }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr);
  gap: 12px;
  margin-top: 28px;
}
.stat {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.stat-num { font: 500 28px/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-soft); font-size: 14.5px; }
.stat-space { gap: 10px; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.stat-row span { color: var(--ink-soft); }
.stat-row .is-warn { color: var(--danger); font-weight: 500; }
.stat-row a { font-weight: 500; text-underline-offset: 3px; }

.manage-tabs { margin: 36px 0 24px; max-width: 100%; overflow-x: auto; }

.photos-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.photos-toolbar .seg span { margin-left: 4px; opacity: .6; font-variant-numeric: tabular-nums; }
.photos-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.m-photos-note { margin: 14px 0 18px; font-size: 14.5px; color: var(--ink-soft); max-width: 44em; }
/* Организатор загружает свои фото: полоска хода загрузки над сеткой */
.m-upload-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.m-upload-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.m-upload-row span { color: var(--ink-soft); }

.m-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.m-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
}
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s, filter .2s; }
.m-item.is-hidden img { opacity: .45; filter: grayscale(1); }
.m-hidden-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
}
.m-hidden-badge .i { width: 14px; height: 14px; }
.m-item.is-hidden .m-hidden-badge { display: inline-flex; }
/* Фото на проверке */
.m-pending-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.m-item.is-pending .m-pending-badge { display: inline-flex; }
.m-item.is-pending { box-shadow: inset 0 0 0 3px var(--butter); }
.m-item.is-pending .m-actions { opacity: 1; }
.m-approve { background: var(--mint) !important; color: var(--mint-ink) !important; }
.pending-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
  padding: 14px 16px 14px 20px;
  border-radius: 16px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 15px;
}
.pending-note strong { color: var(--ink); }
.m-like {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 500;
}
.m-like .emo { font-size: 12px; line-height: 1; letter-spacing: 1px; }
.m-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}
.m-act {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(46, 39, 36, .4);
}
.m-act:hover { background: var(--white); }
.m-act[data-act="delete"]:hover { color: var(--danger); }
.m-act .i { width: 18px; height: 18px; }
/* На компьютере кнопки появляются при наведении, на телефоне видны всегда */
@media (hover: hover) {
  .m-actions { opacity: 0; transition: opacity .15s; }
  .m-item:hover .m-actions,
  .m-item:focus-within .m-actions { opacity: 1; }
}

/* Режим «выбрать несколько»: вся плитка — одна большая кнопка */
.m-select { display: none; }
.is-selecting .m-actions { display: none; }
.is-selecting .m-select {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.m-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(20, 16, 14, .25);
  color: transparent;
}
.m-check .i { width: 16px; height: 16px; }
.m-item.is-selected { box-shadow: inset 0 0 0 4px var(--ink); }
.m-item.is-selected .m-check { background: var(--ink); border-color: var(--ink); color: var(--white); }

.bulk-bar {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 50px -16px rgba(46, 39, 36, .6);
  transform: translateX(-50%);
}
.bulk-count { font-weight: 500; white-space: nowrap; margin-right: 6px; font-variant-numeric: tabular-nums; }
.bulk-actions { display: flex; gap: 2px; }
.bulk-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 500 15px/1 var(--font-text);
  cursor: pointer;
}
.bulk-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.bulk-bar button:disabled { opacity: .4; cursor: default; }
.bulk-bar .is-danger { color: #F2B8B2; }
.bulk-bar .bulk-cancel { background: var(--white); color: var(--ink); }
.bulk-bar .bulk-cancel:hover { background: var(--butter) !important; }
.bulk-bar :focus-visible { outline-color: var(--white); }
.bulk-bar .i { width: 18px; height: 18px; }

/* Вкладка «QR-код» (карточки на столы — в cards.css) */
.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: start;
}
.card-sub { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.qr-card .link-row { margin-top: 4px; }
.qr-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qr-cards-promo.inspo { margin-top: 0; }
.qr-cards-promo .btn { margin-top: 16px; }
.qr-cards-promo .inspo-row { margin-top: 20px; }

.inspo { margin-top: 40px; }
.inspo h2 { font-size: 22px; }
.inspo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; max-width: 760px; }
.inspo figure { position: relative; margin: 0; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; }
.inspo img { width: 100%; height: 100%; object-fit: cover; }
.inspo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  font-weight: 500;
}

/* Настройки альбома */
.cover-thumb {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  background-size: cover !important;
  background-position: center !important;
}
.settings-save {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
}
.settings-save .btn { box-shadow: 0 16px 30px -14px rgba(46, 39, 36, .6); }

/* Окно «Скачать всё» */
.download-options { display: grid; gap: 10px; margin-top: 22px; }
.download-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.download-option:hover { border-color: var(--ink); }
.download-option .i { width: 26px; height: 26px; }
.download-option strong { display: block; }
.download-option span { color: var(--ink-soft); font-size: 14.5px; }
.download-option span strong { color: var(--ink); font-size: 16px; }

/* Окно «Трансляция на экран» */
.tv-view { margin: 18px 0 16px; }
.tv-host { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tv-host h3 { font-size: 17px; }
.tv-host p { color: var(--ink-soft); font-size: 15px; }
.tv-host .link-btn { justify-self: start; font-size: 14px; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-space { grid-column: 1 / -1; }
  .qr-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .manage-actions { width: 100%; }
  .manage-actions .btn { flex: 1; padding: 0 12px; }
  .stat { padding: 14px 16px; }
  .stat-num { font-size: 22px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bulk-bar { padding-left: 14px; gap: 2px; }
  .bulk-bar button { padding: 0 10px; }
  .bulk-bar .bulk-actions span { display: none; }
  .inspo-row { grid-template-columns: 1fr; }
  /* «Фото» вместо «Фото и видео» и поуже — четыре вкладки помещаются на телефоне */
  .manage-tabs .tab-long { display: none; }
  .manage-tabs button { padding: 10px 11px; }
}

/* ============================================================
   Оплата (pay.html)
   ============================================================ */

.pay { padding-top: 28px; padding-bottom: 96px; }
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
  margin-top: 18px;
}
.pay-main h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; }
.pay-sub { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }

.plan-options { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; border: 0; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; top: 24px; left: 22px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.po-body {
  display: grid;
  gap: 6px;
  padding: 20px 22px 20px 58px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.plan-option:hover .po-body { border-color: var(--ink-soft); }
.plan-option input:checked + .po-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan-option input:focus-visible + .po-body { outline: 3px solid var(--ink); outline-offset: 3px; }
.plan-option.is-disabled { cursor: default; opacity: .55; }
.plan-option.is-disabled .po-body { background: transparent; }
.po-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.po-head strong { font: 500 19px/1.2 var(--font-display); letter-spacing: -0.02em; }
.po-price { margin-left: auto; font: 500 22px/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.po-list { color: var(--ink-soft); font-size: 15px; }

.pay-perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: 15px; }
.pay-perks li { display: flex; gap: 10px; align-items: baseline; }
.pay-perks li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-ink); transform: translateY(-2px); }

.pay-summary { position: sticky; top: 24px; display: grid; gap: 18px; }
.sum-list { display: grid; gap: 10px; margin: 0; }
.sum-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.sum-list dt { color: var(--ink-soft); }
.sum-list dd { margin: 0; text-align: right; font-weight: 500; }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sum-total strong { font: 500 30px/1 var(--font-display); letter-spacing: -0.03em; }
.pay-btn { width: 100%; }
.pay-secure { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.pay-secure .i { width: 18px; height: 18px; margin-top: 1px; }
.pay-legal { font-size: 13.5px; color: var(--ink-soft); }

.pay-done {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 560px;
  margin-top: 40px;
}
.pay-done:focus { outline: none; }
.pay-done h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
.pay-done p { color: var(--ink-soft); font-size: 17px; }

.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: rgba(244, 237, 227, .92);
  font-size: 17px;
  font-weight: 500;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .pay-layout { grid-template-columns: 1fr; gap: 28px; }
  .pay-summary { position: static; }
}
@media (max-width: 600px) {
  .po-body { padding: 16px 16px 16px 50px; }
  .plan-option input { top: 20px; left: 18px; }
  .po-price { margin-left: 0; width: 100%; }
}

/* ============================================================
   Альбом закрыт (expired.html) и «Страница не найдена» (404.html)
   ============================================================ */

.page-expired { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.expired-bg {
  position: fixed;
  inset: -40px;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  filter: blur(14px) grayscale(.4);
  opacity: .35;
}
.expired-bg img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.expired {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 16px;
}
.expired-card {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.expired-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--butter-ink);
}
.expired-icon .i { width: 30px; height: 30px; }
.expired-card h1 { font-size: 32px; letter-spacing: -0.03em; }
.expired-album { font: 500 18px/1.3 var(--font-display); letter-spacing: -0.02em; }
.expired-text { color: var(--ink-soft); }
.expired-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.expired-guest {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--white);
  font-size: 15px;
  text-align: left;
}
.expired-foot { font-size: 15px; color: var(--ink-soft); text-align: center; }
.expired-foot a { color: var(--ink); }

.notfound-num {
  font: 600 clamp(80px, 16vw, 140px)/0.9 var(--font-display);
  letter-spacing: -0.06em;
  color: var(--lilac-ink);
}

@media (max-width: 600px) {
  .expired-card { padding: 32px 22px; }
  .expired-actions .btn { width: 100%; }
}

/* ============================================================
   Документы: оферта, политика, согласие (offer / privacy / consent.html)
   и страница «Контакты»
   ============================================================ */

.doc { max-width: 780px; margin: 0 auto; padding: 48px 24px 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.doc-meta { margin-top: 14px; color: var(--ink-soft); }
.doc-toc {
  margin: 32px 0 8px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.doc-toc p { font-weight: 600; margin-bottom: 10px; }
.doc-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: 15px; }
.doc-toc li { margin-bottom: 6px; break-inside: avoid; }
.doc-toc a { color: var(--ink-soft); text-underline-offset: 3px; }
.doc-toc a:hover { color: var(--ink); }
.doc section { counter-increment: sec; }
.doc h2 { margin-top: 44px; font-size: 22px; line-height: 1.25; scroll-margin-top: 90px; }
.doc-toc ~ section > h2::before { content: counter(sec) ". "; } /* нумерация — только в документах с оглавлением */
.doc .contact-card h2 { margin-top: 0; }
.doc .clauses { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: cl; display: grid; gap: 12px; }
.doc .clauses > li { position: relative; padding-left: 3.2em; counter-increment: cl; color: #3F3531; }
.doc .clauses > li::before {
  content: counter(sec) "." counter(cl) ".";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.doc ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .doc-list { margin: 24px 0 0; padding-left: 1.4em; display: grid; gap: 14px; color: #3F3531; }
.doc .doc-list li::marker { color: var(--ink-soft); }
.doc p + p { margin-top: 12px; }
.doc-lead { margin-top: 24px; color: #3F3531; }
.doc-requisites {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
/* Места, куда нужно вписать свои данные */
mark.fill {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--butter);
  color: var(--butter-ink);
  font-weight: 500;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.contact-card { display: grid; gap: 8px; align-content: start; }
.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--lilac-ink);
  margin-bottom: 6px;
}
.contact-card:nth-child(2) .contact-icon { background: var(--sky); color: var(--sky-ink); }
.contact-card:nth-child(3) .contact-icon { background: var(--mint); color: var(--mint-ink); }
.contact-card:nth-child(4) .contact-icon { background: var(--butter); color: var(--butter-ink); }
.contact-card p { color: var(--ink-soft); font-size: 15px; }
.contact-card .contact-value { color: var(--ink); font-size: 18px; font-weight: 500; }
.contact-card .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 700px) {
  .doc { padding: 32px 16px 72px; }
  .doc-toc ol { columns: 1; }
  .doc .clauses > li { padding-left: 2.8em; }
  .contacts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Настоящий сайт (этап 2): загрузка, ошибки, архив, админка
   ============================================================ */

/* Плитка, пока телефон готовит фото к загрузке */
.g-wait {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, var(--surface) 30%, var(--paper) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.g-empty.g-problem { grid-column: 1 / -1; padding: 56px 16px; }
.g-problem .btn { margin-top: 18px; }
.upload-limit {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 14px;
  line-height: 1.45;
}

/* Фото сверх лимита: вместо фото — крошечная размытая копия и замок (страница гостя и управление) */
.g-blur,
.g-open img.g-blur,
.m-item img.g-blur {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  display: block;
  object-fit: cover;
  filter: blur(14px) saturate(1.1);
  background: linear-gradient(135deg, var(--lilac), var(--peach));
}
.g-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  color: var(--white);
  background: rgba(46, 39, 36, .28);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.g-over .i { width: 22px; height: 22px; }
.g-item.is-over .g-open { cursor: help; overflow: hidden; }
.g-over-note { margin: 0 0 14px; }
.m-item.is-over { box-shadow: inset 0 0 0 3px var(--peach); }
.m-open-over { position: relative; overflow: hidden; cursor: default; }
.m-item.is-over .m-over-badge { display: inline-flex; background: var(--peach); color: var(--peach-ink); }
.m-item.is-over .m-actions { opacity: 1; }
.over-note { background: var(--peach); color: var(--peach-ink); }

/* Реакции: уже 3 своих — остальные кнопки приглушены */
.lb-reacts.is-full .lb-react[aria-pressed="false"] { opacity: .38; }

/* Кабинет */
.cab-empty { grid-column: 1 / -1; color: var(--ink-soft); }
.pay-wait { color: var(--ink-soft); font-size: 14px; }
.pay-table td.pay-empty { text-align: center; color: var(--ink-soft); white-space: normal; padding: 28px 20px; }
.status-closed { display: inline-flex; align-items: center; gap: 7px; color: var(--peach-ink); font-weight: 500; font-size: 15px; }
.status-closed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--peach-ink); }

/* Управление альбомом: фото открывается по нажатию, у файлов без картинки — значок */
.m-open { display: block; width: 100%; height: 100%; }
.m-noimg {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.m-noimg .i { width: 28px; height: 28px; }
.m-item.is-hidden .m-noimg { opacity: .45; }

/* Скачивание архивом: окошко с ходом скачивания */
.zip-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(360px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.zip-title { font-weight: 600; }
.zip-text { color: var(--ink-soft); font-size: 14px; }
.zip-panel .btn { justify-self: start; }
.zip-parts { display: grid; gap: 8px; margin-top: 18px; }
.zip-parts .btn { justify-content: flex-start; }

/* Админка (admin.html) */
.adm-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.adm-todo { display: grid; gap: 10px; margin-bottom: 20px; }
.adm-todo:empty { display: none; }
.adm-todo-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--butter);
  color: var(--butter-ink);
  text-decoration: none;
  font-weight: 500;
}
.adm-todo-item .i { flex-shrink: 0; }
.adm-tools, .adm-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.adm-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.adm-card { display: grid; gap: 6px; }
.adm-card.is-done { opacity: .6; }
.adm-card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.adm-card-head strong { font-size: 17px; }
.adm-meta { color: var(--ink-soft); font-size: 14.5px; overflow-wrap: anywhere; }
/* Профиль человека в админке */
.adm-user-link { font-weight: 600; text-align: left; }
.modal.adm-user-modal { width: min(720px, calc(100% - 24px)); }
.adm-user-modal .modal-body > .adm-meta { margin-top: 6px; }
.adm-user-h { margin-top: 22px; font-size: 17px; }
.adm-user-list { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.adm-user-list > li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.adm-user-album.is-deleted { opacity: .6; }
.adm-wishes { white-space: pre-line; padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.adm-receipt { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.adm-receipt input { flex: 1 1 260px; min-width: 0; }
.adm-form { margin-top: 24px; }
.adm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin: 14px 0; }
.adm-search { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-search input { min-width: 0; width: 260px; max-width: 100%; }
.adm-details summary { cursor: pointer; font-weight: 500; margin-top: 6px; }
.adm-check { display: inline-flex; gap: 6px; align-items: center; font-size: 14.5px; cursor: pointer; }
.adm-steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.adm-steps li::before { content: '✓ '; color: var(--mint-ink); font-weight: 600; }
.adm-steps li.is-bad::before { content: '✗ '; color: var(--danger); }
.adm-steps li.is-bad { color: var(--danger); }

/* Трансляция: пока фото нет */
.wall-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  font: 500 clamp(20px, 2.4vw, 32px)/1.35 var(--font-display);
  letter-spacing: -0.02em;
}


@media (prefers-reduced-motion: reduce) {
  .fab, .toast, .g-open img, .wall-frame, .wall-toast { transition: none; }
  .is-done::after, .lb-react.is-pop .emo, .lightbox[open], .wall-frame.is-active .wall-img, .g-wait { animation: none; }
}
