/* GIFTbase — вишлисты в браузере (/app/, /ru/app/, закрытый тест).
   Основа — styles.css сайта: владелец видит свой вишлист так же, как гость на
   публичной странице (карточки idea-card, шторка .sheet, окна .modal, плашка
   снизу .gb-snack). Здесь только то, чего у гостя нет: вход, аккаунт, главная
   с разделами, кнопки правки, поля формы и настройки. Цвета — токены сайта
   (--purple, --fill, --fill-2, --muted, --purple-text), фиолетовый приложения
   #6200EE и токены темы ниже (--ink…). Плашки заливкой без серых обводок —
   правило сайта. Акцентный шрифт — Unbounded (как в приложении и SEO-мониторе),
   основной — Montserrat. Светлая тема — класс light у <html>, блок в конце. */

body.webapp {
  --ink: #f3f4f6;          /* основной текст */
  --ink-2: #d1d5db;        /* текст на плашках, пункты меню */
  --ink-3: #9ca3af;        /* подписи полей */
  --hover: #262836;        /* плашка под курсором */
  --soft: rgba(255, 255, 255, .06);  /* лёгкая подсветка пункта, разделители */
  --pop: #202433;          /* меню и окна */
  --track: #2e3240;        /* дорожка переключателя, ручка шторки */
  --glass: rgba(21, 22, 29, .82);    /* липкие кнопки разделов */
  --field-focus: var(--fill-2);
  --shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
.u-title, .u-num, .lcard-title, .lcard-count, .lnew-t, .lp-jump i, .hsec-n { font-family: 'Unbounded', 'Montserrat', sans-serif; }
.u-title { font-weight: 700; letter-spacing: -.015em; }
.u-num { font-weight: 700; }

/* Полоса прокрутки страницы всегда держит своё место: шторка блокирует прокрутку,
   а контент не прыгает. В шторках полосы не видно — листается как в приложении */
html.webapp-html { scrollbar-gutter: stable; }
/* Служебные прокрутки (переход в вишлист, возврат на главную, шторки) — мгновенные: с плавной
   прокруткой сайта страница проезжала у всех на глазах. Плавно — только по кнопкам разделов */
html.webapp-html { scroll-behavior: auto; }
/* Блокировка прокрутки под шторкой — только у <html>: overflow у <body> делал его отдельной
   прокручиваемой областью, и липкая шапка уезжала вверх на величину прокрутки */
html.app-locked { overflow: hidden; }
.app-sheet .sheet-panel {
  scrollbar-width: none; overscroll-behavior: contain;
  bottom: var(--kb, 0px); max-height: 88vh; max-height: min(88dvh, calc(var(--vvh, 100dvh) - 12px));
  transition: transform .32s cubic-bezier(.2, .9, .25, 1), visibility 0s linear .32s;
}
/* Высоту клавиатуры отдаёт скрипт (iOS, Chrome на Android) — шторка едет за клавиатурой плавно:
   низ и высота меняются вместе, верхний край не скачет. Где окно сжимает сам браузер (запасной
   путь), переходов нет — иначе шторка догоняла бы окно с опозданием и дёргалась */
html.kb-js .app-sheet .sheet-panel {
  transition: transform .32s cubic-bezier(.2, .9, .25, 1), visibility 0s linear .32s,
    bottom .28s cubic-bezier(.2, .9, .25, 1), max-height .28s cubic-bezier(.2, .9, .25, 1), padding-bottom .28s cubic-bezier(.2, .9, .25, 1);
}
.app-sheet[open] .sheet-panel, html.kb-js .app-sheet[open] .sheet-panel { transition-delay: 0s; }
html.kb-open .app-sheet .sheet-panel { padding-bottom: 14px; }
.app-sheet .sheet-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }

body.webapp { min-height: 100vh; }
.webapp [hidden] { display: none !important; }
body.webapp main { padding-top: 14px; padding-bottom: 48px; }
.webapp .container.wl { padding-top: 0; }

/* ---------- аккаунт в шапке ---------- */
.acc-btn {
  position: relative; width: 36px; height: 36px; border-radius: 999px; padding: 0; flex-shrink: 0;
  border: none; background: none; color: var(--ink-2); cursor: pointer; transition: transform .12s ease;
}
.acc-btn:active { transform: scale(.94); }
.acc-ava {
  position: absolute; inset: 0; overflow: hidden; border-radius: 999px; background: var(--fill-2);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: background .2s;
}
.acc-btn:hover .acc-ava { background: var(--hover); }
.acc-ava img { width: 100%; height: 100%; object-fit: cover; }
/* шестерёнка в углу аватарки: за ней настройки — язык, имя, выход */
.acc-gear {
  position: absolute; right: -4px; bottom: -3px; width: 17px; height: 17px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill-2); color: var(--ink); box-shadow: 0 0 0 2px var(--dark); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.acc-gear svg { width: 11px; height: 11px; }
@media (hover: hover) { .acc-btn:hover .acc-gear { transform: rotate(60deg); } }
.acc-ava { transition: transform .4s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease, background .2s; }
.acc-gear { transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), box-shadow .3s ease; }
/* вишлист прокручен: в шапке название — аватарка уходит, шестерёнка разрастается в кнопку настроек */
body.wl-scrolled .acc-ava { opacity: 0; transform: scale(.4); }
body.wl-scrolled .acc-gear { transform: translate(-13.5px, -12.5px) scale(2.12); box-shadow: 0 0 0 0 transparent; }
@media (hover: hover) { body.wl-scrolled .acc-btn:hover .acc-gear { transform: translate(-13.5px, -12.5px) scale(2.12) rotate(60deg); } }
/* после входа язык выбирают в меню аккаунта */
body.webapp.signed-in .nav .lang-wrap { display: none; }
.app-menu .menu-langs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; }
.menu-langs-l { padding: 8px 12px 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.app-menu .lang-opt { padding: 8px 12px 8px 9px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.app-menu .lang-opt.is-current { color: var(--ink); }
.app-menu .lang-opt .flag { width: 22px; height: 22px; }
.menu-tag {
  margin-left: auto; padding: 3px 8px; border-radius: 999px; background: rgba(98, 0, 238, .2); color: #c4b5fd;
  font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.app-menu {
  position: fixed; z-index: 60; min-width: 230px; max-width: calc(100vw - 24px);
  background: var(--pop); border-radius: 16px; padding: 6px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  animation: app-pop .16s ease-out;
}
@keyframes app-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.app-menu .menu-head { padding: 10px 12px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-menu .menu-sep { height: 1px; margin: 4px 8px; background: var(--soft); }
.app-menu a, .app-menu button {
  display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; text-align: left;
  padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.app-menu a:hover, .app-menu button:hover { background: var(--soft); color: var(--ink); }
.app-menu svg { width: 18px; height: 18px; flex-shrink: 0; }
.app-menu .danger { color: #f87171; }
.app-menu .danger:hover { color: #fca5a5; }
.app-menu.mm {
  padding: 6px; border-radius: 20px; animation: none; overflow: hidden;
  background: rgba(16, 16, 24, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5); transition: clip-path .36s cubic-bezier(.2, .9, .25, 1);
}
.app-menu.mm.closing { transition: clip-path .26s cubic-bezier(.4, 0, .6, 1); pointer-events: none; }
.mm-body { display: flex; flex-direction: column; opacity: 0; transform: translateY(-4px); transition: opacity .15s ease, transform .2s ease; }
.mm.open .mm-body { opacity: 1; transform: none; transition: opacity .22s ease .1s, transform .3s cubic-bezier(.2, .9, .25, 1) .08s; }
.app-menu.mm a, .app-menu.mm button { color: #f3f4f6; border-radius: 12px; }
.app-menu.mm a:hover, .app-menu.mm button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.app-menu.mm .menu-head { display: flex; align-items: center; border-bottom: 0; margin: 0; color: rgba(255, 255, 255, .62); }
.app-menu.mm .menu-sep { background: rgba(255, 255, 255, .09); }
.app-menu.mm button.is-active { background: #6200EE; color: #fff; }
.app-menu.mm button.is-active svg:last-child { margin-left: auto; width: 16px; height: 16px; }
.app-menu.mm button[data-i] > span { flex: 1; min-width: 0; }
.app-menu.mm .danger { color: #fca5a5; }
/* крестик — ровно на месте кнопки, из которой выросло меню */
.mm-x { position: absolute; z-index: 2; padding: 0; border: none; border-radius: 999px; background: none; color: #fff; cursor: pointer; }
.mm-x i { position: absolute; left: 50%; top: 50%; width: 15px; height: 2.4px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(0) scaleX(.2); opacity: 0; transition: transform .32s cubic-bezier(.2, .9, .25, 1), opacity .2s; }
.mm.open .mm-x i:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); opacity: 1; }
.mm.open .mm-x i:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); opacity: 1; }
.mm-x:hover { background: rgba(255, 255, 255, .1); }

/* ---------- вход и закрытый тест ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: 48px 10px 24px; text-align: center; }
.auth-icon { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 22px; display: block; box-shadow: 0 16px 44px rgba(98, 0, 238, .35); }
.auth h1 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.auth > p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 26px; }
.auth-btns { display: flex; flex-direction: column; gap: 10px; }
.auth-btns .btn { width: 100%; gap: 10px; padding: 15px 20px; }
.auth-btns .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-apple { background: var(--fill-2); color: #fff; }
.btn-apple:hover { background: var(--hover); }
.auth-btns .btn[disabled] { opacity: .55; cursor: default; }
.auth-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(248, 113, 113, .1); color: #fecaca; font-size: 13.5px; line-height: 1.45; text-align: left; }
.auth-note { margin: 18px 0 0; color: #6b7280; font-size: 12.5px; }
/* встроенный браузер соцсети: как выйти в обычный браузер, над кнопками входа */
.inapp { margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: rgba(245, 158, 11, .12); text-align: left; }
.inapp b { display: block; margin: 0 0 4px; color: #fbbf24; font-size: 14.5px; }
.inapp p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.inapp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.inapp-btns .btn { gap: 8px; padding: 10px 14px; font-size: 13.5px; }
.inapp-btns .btn svg { width: 16px; height: 16px; }
html.light .inapp b { color: #b45309; }
/* Пароль закрытого теста: поле и кнопка во всю ширину, как кнопки входа */
.gate-form { display: flex; flex-direction: column; gap: 10px; }
.gate-form .f { margin: 0; }
.gate-form .f input { text-align: center; font-size: 16px; letter-spacing: .04em; }
.gate-form .btn { width: 100%; padding: 15px 20px; }
.gate-form .btn[disabled] { opacity: .55; cursor: default; }
.auth-gate .auth-msg { text-align: center; }
.auth .store-badges { margin: 4px 0 22px; }
.acc-card { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--fill); text-align: left; }
.acc-who { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.acc-who b { color: var(--ink); font-weight: 700; }
.acc-id { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.acc-id > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acc-id code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-2); }
.acc-copy { flex-shrink: 0; width: 32px; height: 32px; border: none; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.acc-copy:hover { color: var(--ink); background: var(--hover); }
.acc-copy svg { width: 15px; height: 15px; }
.acc-hint { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--soft); color: #fcd34d; font-size: 13px; line-height: 1.45; }
.auth .acc-card + .auth-btns { margin-top: 2px; }
/* Приветствие аккаунта, который начинает с сайта: имя, аватарка, согласие на письма */
.welcome { max-width: 460px; padding-top: 36px; }
/* без круга под готовой аватаркой: тень идёт по самой фигуре (у фото — по кругу) */
.welcome .pf-ava { display: block; margin: 0 auto 18px; filter: drop-shadow(0 12px 26px rgba(98, 0, 238, .35)); }
.welcome > p { margin-bottom: 22px; }
.welcome-form { text-align: left; }
.wc-ava-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.wc-ava-head .pf-label { margin: 0 0 0 4px; }
.wc-grid {
  max-height: 214px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin: 0 -4px 16px;
  -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent);
}
.welcome .tg-list { margin: 0 0 12px; }
.wc-legal { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0 4px 14px; }
.wc-legal a { color: var(--purple-text); }
/* «Продолжить» видна всегда: лента аватарок и согласие не уводят её за край экрана */
.wc-actions { position: sticky; bottom: 0; z-index: 2; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--dark) 30%); }
.wc-actions .btn { width: 100%; padding: 15px 20px; }
.wc-other { display: flex; justify-content: center; margin: 6px auto 0; }
/* «Аккаунт создан!»: шарики, поздравление, кнопка и почта входа */
.hello { padding-top: 40px; }
.hello-icon { display: block; width: 132px; height: 132px; margin: 0 auto 10px; filter: drop-shadow(0 16px 30px rgba(98, 0, 238, .35)); animation: hello-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.hello .auth-btns .btn { padding: 15px 20px; }
.hello-who { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.hello-who b { color: var(--ink-2); font-weight: 600; }
@keyframes hello-pop { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hello-icon { animation: none; } }

/* ---------- главная: приветствие, кнопки разделов, три раздела ---------- */
.webapp .container.wl.is-home { max-width: 1120px; padding: 0 16px; }
@media (min-width: 640px) { .webapp .container.wl.is-home { padding: 0 20px; } }

/* Приветствие — фиолетовая карточка, как три карточки на главной сайта:
   заливка с бликом, 3D-картинки справа мягко покачиваются */
.lp-hero {
  position: relative; overflow: hidden; display: flex; min-height: 224px; margin: 4px 0 16px; padding: 20px;
  border-radius: 28px; color: #fff; isolation: isolate;
  background: linear-gradient(160deg, #5a0fd6 0%, var(--purple) 55%, #3b0099 100%);
  box-shadow: 0 18px 44px rgba(77, 0, 196, .28);
}
.lp-hero::before {
  content: ''; position: absolute; z-index: -1; top: -120px; right: -70px; width: 340px; height: 340px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); pointer-events: none;
}
.hero-tx { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-hi { display: flex; align-items: center; gap: 12px; max-width: 60%; }
/* аватарка в приветствии — без подложки, обводки и карандаша; нажатие открывает «Имя и аватар» */
.hero-me { position: relative; flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: none; border-radius: 999px; background: none; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.hero-me img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
@media (hover: hover) { .hero-me:hover { transform: scale(1.06) rotate(-3deg); } }
.hero-me:active { transform: scale(.94); }
.hero-title { margin: 0; text-wrap: balance; font-size: 18px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, .92); overflow-wrap: anywhere; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: auto; padding-top: 6px; }
.hs { display: flex; flex-direction: column; gap: 6px; }
.hs b { font-size: 46px; font-weight: 800; line-height: .95; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hs small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.hero-art { position: absolute; z-index: 1; top: 12px; right: 6px; width: 40%; aspect-ratio: 1; pointer-events: none; }
.ha { position: absolute; height: auto; filter: drop-shadow(0 18px 26px rgba(20, 0, 60, .45)); animation: ha-float 7s ease-in-out infinite; }
.ha1 { width: 62%; right: 8%; bottom: 4%; }
.ha2 { width: 36%; left: 0; top: 6%; animation-delay: -2.4s; }
.ha3 { width: 24%; right: 0; top: 4%; animation-delay: -4.6s; }
@keyframes ha-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (min-width: 760px) {
  .lp-hero { min-height: 270px; padding: 30px 34px; border-radius: 32px; }
  .hero-me { width: 52px; height: 52px; }
  .hero-title { font-size: 20px; }
  .hero-stats { gap: 10px 44px; }
  .hs b { font-size: 68px; }
  .hs small { font-size: 14.5px; }
  .hero-art { top: 10px; bottom: 10px; right: 4%; width: auto; }
}

/* Кнопки разделов: липнут под шапкой и подсвечивают раздел на экране */
.lp-jump {
  position: sticky; top: calc(var(--nav-h) + 6px); z-index: 30;
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 4px; padding: 4px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.lp-jump button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: none; border-radius: 999px;
  background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background .3s ease, color .2s ease;
}
.lp-jump button:hover { color: var(--ink); }
.lp-jump button.on { background: #fff; color: #0b0b0b; }
.lp-jump i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); font-style: normal; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lp-jump button.on i { background: #6200EE; color: #fff; }
@media (max-width: 520px) { .lp-jump { width: 100%; } .lp-jump button { flex: 1 1 0; padding: 9px 4px; font-size: 13.5px; gap: 6px; } }
/* на компьютере все три раздела и так на виду — кнопки нужны только на телефоне и планшете */
@media (min-width: 760px) and (hover: hover) and (pointer: fine) { .lp-jump { display: none; } .webapp .hsec { scroll-margin-top: calc(var(--nav-h) + 16px); } }

.hsec { margin-top: 30px; scroll-margin-top: calc(var(--nav-h) + 66px); }
.hsec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.hsec-t { min-width: 0; }
.hsec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 5vw, 28px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.hsec-n { padding: 5px 9px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font-size: 12px; line-height: 1; }
.hsec-head p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hsec-btn { flex-shrink: 0; gap: 7px; padding: 10px 15px; font-size: 13.5px; }
.hsec-btn svg { width: 16px; height: 16px; }
/* на телефоне — круглая кнопка со значком, чтобы заголовку хватило места */
@media (max-width: 520px) { .hsec-btn { width: 42px; height: 42px; padding: 0; } .hsec-btn span { display: none; } .hsec-btn svg { width: 18px; height: 18px; } }
@media (min-width: 980px) { .hsec { margin-top: 40px; } .hsec-head { margin-bottom: 18px; } }

/* Пустой раздел: картинка, пара фраз и что делать */
.hempty {
  display: flex; align-items: center; gap: 10px 26px; padding: 22px 26px 22px 18px; border-radius: 26px;
  background: radial-gradient(120% 100% at 0% 100%, rgba(111, 0, 255, .26), rgba(111, 0, 255, 0) 60%), var(--fill);
}
.hempty-art { flex: 0 0 140px; width: 140px; height: 140px; }
.hempty-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(40, 0, 110, .4)); animation: ha-float 7s ease-in-out infinite; }
.hempty-tx { flex: 1; min-width: 0; }
.hempty h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.hempty p { margin: 0 0 16px; max-width: 540px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hempty-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hempty-btns .btn { gap: 8px; padding: 12px 18px; font-size: 14px; }
.hempty-btns .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 560px) {
  .hempty { flex-direction: column; padding: 16px 18px 20px; text-align: center; }
  .hempty-art { flex-basis: auto; width: 116px; height: 116px; }
  .hempty p { margin-left: auto; margin-right: auto; }
  .hempty-btns .btn { flex: 1 1 100%; }
}

/* Совместные — пока в приложении: те же кнопки под пометкой и плашка со сторами */
.hempty.is-app { flex-wrap: wrap; }
.hempty.is-app .hempty-tx { flex: 1 1 320px; }
.app-only {
  flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; padding: 18px 18px 20px; border-radius: 20px; text-align: center;
  background: linear-gradient(120deg, rgba(98, 0, 238, .32), rgba(98, 0, 238, .14));
}
.app-only > b { color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.app-only > small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.app-only .store-badges { justify-content: center; gap: 10px; margin-top: 8px; }
.app-only .badge-link { height: 42px; }
@media (max-width: 560px) { .hempty.is-app .hempty-tx { flex: 0 0 auto; width: 100%; } }
.app-sheet-art { display: flex; justify-content: center; margin: -6px 0 6px; }
.app-sheet-art img { width: 132px; height: 132px; filter: drop-shadow(0 16px 26px rgba(40, 0, 110, .4)); animation: ha-float 7s ease-in-out infinite; }
.app-sheet-text { text-align: center; }
.app-form .store-badges { margin: 4px 0 6px; }
.solo-page { max-width: 560px; margin: 8px auto 0; text-align: center; }
.solo-art { display: block; margin: 0 auto; width: 150px; height: 150px; filter: drop-shadow(0 16px 26px rgba(40, 0, 110, .4)); animation: ha-float 7s ease-in-out infinite; }
.solo-page h1 { margin: 8px 0 10px; font-size: clamp(24px, 6vw, 32px); }
.solo-page > p { margin: 0 auto 4px; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.6; }


/* Заготовки: пока данные едут, на месте того, что от них зависит, — серые плашки той же формы и
   размера с бегущим бликом; при подмене ничего не прыгает. Что известно заранее — рисуется сразу */
/* до первого кадра скрипта контейнер держит место, чтобы подвал не прыгал */
#app:empty { min-height: 70vh; }
.sk { position: relative; display: block; overflow: hidden; background: var(--fill-2); border-radius: 10px; }
.sk::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: sk-shine 1.5s ease-in-out infinite;
}
@keyframes sk-shine { to { transform: translateX(100%); } }
.sk.sk-light { background: rgba(255, 255, 255, .16); }
.sk.sk-light::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent); }
.sk-line { height: 12px; margin: 8px 0 0; border-radius: 99px; }
.sk-line.sm { height: 10px; }
.sk-line.lg { height: 22px; border-radius: 10px; }
.sk-circle { border-radius: 999px; }
.sk-line.w30 { width: 30%; } .sk-line.w45 { width: 45%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.sk-home .hero-hi { flex: 1; }
.sk-home .hero-hi .sk-line.lg { flex: none; width: min(190px, 34vw); margin: 0; }
.sk-home .hero-me.sk { width: 48px; height: 48px; }
.sk-home .hs { min-width: 64px; }
.sk-home .hs .sk-line.num { width: 52px; height: 40px; margin: 0; border-radius: 12px; }
.sk-home .hs .sk-line.sm { margin: 4px 0 0; }
@media (min-width: 760px) { .sk-home .hero-me.sk { width: 52px; height: 52px; } .sk-home .hs .sk-line.num { width: 70px; height: 58px; } }
.sk-lcard { pointer-events: none; }
.sk-lcard .lcard-cover.sk { border-radius: 22px; }
@media (min-width: 980px) { .sk-lcard .lcard-cover.sk { border-radius: 26px; } }
.sk-lcard .lcard-body .sk-line { margin: 0; }
.sk-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.sk-head .sk-ava { width: 84px; height: 84px; }
.sk-head .sk-title { width: min(62%, 320px); height: 28px; margin: 18px auto 0; }
.sk-acts { gap: 36px; }
.sk-acts .sk { width: 52px; height: 52px; }
.sk-controls { min-height: 40px; padding-left: 10px; }
.sk-controls .sk-line { width: 110px; height: 16px; margin: 0; }
.sk-card { pointer-events: none; }
.wl-gifts .sk-card .img-frame.sk { background: var(--fill-2); animation: none; border-radius: inherit; }
html.light .wl-gifts .sk-card .img-frame.sk { background: #ebe9f2; }
.sk-card .idea-body .sk-line:first-child { margin-top: 2px; }
html.light .sk { background: #ebe9f2; }
html.light .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); }
html.light .sk.sk-light { background: rgba(255, 255, 255, .22); }
/* Настоящие данные пришли на место заготовки — проявляются, без прыжков */
.wl-gifts.reveal > * { animation: app-fade .35s ease both; }
.home.from-sk .hero-tx, .home.from-sk .lcard:not(.lcard-new) { animation: app-fade .35s ease both; }
/* Аватарки в выборе: серый кружок, пока картинка грузится, потом — без подложки */
.pf-grid .pf-av { background: var(--fill-2); transition: background .25s, transform .12s, box-shadow .2s; }
.pf-grid .pf-av.ld { background: none; }
.pf-grid .pf-av img { opacity: 0; transition: opacity .25s ease; }
.pf-grid .pf-av.ld img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
  .wl-gifts.reveal > *, .home.from-sk .hero-tx, .home.from-sk .lcard { animation: none; }
}

/* Первое появление — волной сверху вниз */
.home.is-first .lp-hero, .home.is-first .lp-jump, .home.is-first .hsec-head, .home.is-first .lcard,
.home.is-first .hempty, .home.is-first .fgroup-head {
  animation: app-rise .62s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes app-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .home.is-first *, .ha, .hempty-art img, .lcard.is-new .lcard-cover, .lcard.bump .lcard-count, .u-num.bump, .wl-card.appear,
  .wl-card.appear .idea-media::after, .lhead.pop .wl-avatars, .lhead.pop .title-row, .cv-face.pop, .cv-cell.on img, .tt-star,
  .solo-art, .app-sheet-art img, .lang-menu, .tip-pop, .wl-empty-art img { animation: none !important; }
}

/* ---------- карточки вишлистов ---------- */
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 640px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; } }
@media (min-width: 980px) { .lgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; } }
.lcard {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; border: none; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.lcard-cover {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--fill);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
}
@media (min-width: 980px) { .lcard-cover { border-radius: 26px; } }
@media (hover: hover) { .lcard:hover .lcard-cover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); } }
.lcard:active .lcard-cover { transform: scale(.98); }
.lcard-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 0 2px; }
.lcard-title {
  font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--ink); letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
@media (min-width: 640px) { .lcard-title { font-size: 15.5px; } }
@media (min-width: 980px) { .lcard-title { font-size: 16.5px; } .lcard-meta { font-size: 13.5px; } }
.lcard-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lcard-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
/* число подарков и «Основной вишлист» — тёмное стекло поверх обложки, без яркой заливки */
.lcard-count, .lcard-badge {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
  background: rgba(12, 12, 18, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lcard-count { top: 10px; left: 10px; padding: 6px 10px; }
.lcard-count svg { width: 13px; height: 13px; }
.lcard-badge { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 7px 11px; color: #e9e5ff; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-people { position: absolute; left: 10px; bottom: 10px; z-index: 3; justify-content: flex-start; }
.lcard-people .wl-avatar { width: 30px; height: 30px; border: 2px solid var(--dark); }
.lcard-people .wl-avatar + .wl-avatar, .lcard-people .wl-avatar-more { margin-left: -9px; }
.lcard-people .wl-avatar-more { font-size: 10px; }
/* обложка-мозаика: 1 — целиком, 2 — пополам, 3 — большая и две малые, 4 — сеткой */
.cover { position: absolute; inset: 0; display: grid; gap: 2px; }
.cover .img-frame { border-radius: 0; }
.cover.n2 { grid-template-columns: 1fr 1fr; }
.cover.n3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.cover.n3 > .img-frame:first-child { grid-row: 1 / 3; }
.cover.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
/* пустой вишлист — 3D-картинка на фиолетовом свечении, как в каталоге сценариев сайта */
.cover-empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 100%, rgba(111, 0, 255, .3), rgba(111, 0, 255, 0) 70%), var(--fill); }
.cover-art { width: 56%; height: auto; filter: drop-shadow(0 14px 22px rgba(30, 0, 80, .45)); transition: transform .4s cubic-bezier(.2, .9, .25, 1.2); }
@media (hover: hover) { .lcard:hover .cover-art { transform: translateY(-5px) scale(1.05) rotate(-4deg); } }
.cover-wait { background: linear-gradient(100deg, var(--fill) 25%, var(--fill-2) 50%, var(--fill) 75%); background-size: 200% 100%; animation: img-shimmer 1.4s infinite linear; }
/* выбранная обложка — в центре, фото подарков по кругу вокруг неё (раскладка — ORBIT в app.js):
   скруглённые квадраты с лёгкой тенью и кантом цвета подложки, чтобы соседние не сливались */
.cover-orbit { display: block; background: radial-gradient(120% 90% at 50% 100%, rgba(111, 0, 255, .3), rgba(111, 0, 255, 0) 70%), var(--fill); }
.orb {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1 / 1; border-radius: 24%; overflow: hidden;
  background: var(--fill-2); box-shadow: 0 0 0 2px var(--fill), 0 8px 18px rgba(0, 0, 0, .34);
  transform: translate(-50%, -50%) rotate(var(--r)); transition: transform .45s cubic-bezier(.2, .9, .25, 1.2);
}
.orb .img-frame { border-radius: inherit; }
.orb .img-frame.loaded { background: var(--fill-2); }
.orb-icon {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--ic, 32%); height: auto; transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 18px rgba(30, 0, 80, .5)); transition: transform .4s cubic-bezier(.2, .9, .25, 1.2);
}
@media (hover: hover) {
  .lcard:hover .orb { transform: translate(-50%, -50%) translate(var(--hx), var(--hy)) rotate(calc(var(--r) * 1.7)); }
  .lcard:hover .orb-icon { transform: translate(-50%, -50%) translateY(-4px) scale(1.06) rotate(-4deg); }
}
/* скелет: места под фото мерцают, пока картинки грузятся; обложка уже на месте */
.cover-orbit .orb .img-frame:not(.loaded) { background: linear-gradient(100deg, var(--fill-2) 25%, var(--hover) 50%, var(--fill-2) 75%); background-size: 200% 100%; animation: img-shimmer 1.4s infinite linear; }
/* «Новый вишлист» — крупно внутри плитки, под плюсом */
.lcard-new .lcard-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; background: var(--fill); }
@media (hover: hover) { .lcard-new:hover .lcard-cover { background: radial-gradient(120% 90% at 50% 100%, rgba(111, 0, 255, .22), rgba(111, 0, 255, 0) 70%), var(--fill-2); box-shadow: none; } }
.lnew-t.is-lines { width: auto; }
.lnew-t.is-lines > span { display: block; white-space: nowrap; }
/* каждое слово — своей строкой: ширина по самому длинному слову */
.lnew-t { width: min-content; max-width: 100%; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: break-word; }
@media (min-width: 640px) { .lnew-t { font-size: 19px; } }
@media (min-width: 980px) { .lnew-t { font-size: 21px; } }
.card-new .plus-circle, .wl-add-card .plus-circle, .lcard-new .plus-circle {
  width: 50px; height: 50px; border-radius: 999px; background: #6200EE; color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(98, 0, 238, .4);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.lcard-new .plus-circle { width: 56px; height: 56px; }
@media (hover: hover) { .lcard-new:hover .plus-circle, .wl-add-card:hover .plus-circle { transform: rotate(90deg) scale(1.06); } }
.wl-add-card .plus-circle svg, .lcard-new .plus-circle svg { width: 24px; height: 24px; }
/* только что созданный вишлист и изменившееся число подарков */
.lcard.is-new .lcard-cover { animation: lc-new 1.5s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes lc-new {
  0% { transform: scale(.86); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
  30% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(139, 92, 246, .75); }
  100% { transform: none; box-shadow: 0 0 0 16px rgba(139, 92, 246, 0); }
}
.lcard.bump .lcard-count, .u-num.bump { animation: app-bump .55s cubic-bezier(.3, 1.6, .5, 1); }
.u-num.bump { display: inline-block; }
@keyframes app-bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* вишлисты друзей — по владельцам */
.fgroup + .fgroup { margin-top: 32px; }
.fgroup-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.fava { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: var(--fill); flex-shrink: 0; }
.fgroup-head span { display: flex; flex-direction: column; min-width: 0; }
.fgroup-head b { font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fgroup-head small { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- имя и аватар ---------- */
.wl-owner.is-me { margin: 0 auto 16px; padding: 4px 10px; border: none; border-radius: 22px; background: none; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.wl-owner.is-me.has-icon .me-pen { right: 0; bottom: 8px; }
@media (hover: hover) { .wl-owner.is-me.has-icon:hover .wl-cover-icon { animation-play-state: paused; } }
.wl-owner.is-me .wl-avatars { position: relative; }
.me-pen {
  position: absolute; right: -4px; bottom: 2px; width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; background: #6200EE; color: #fff;
  box-shadow: 0 0 0 3px var(--dark); transition: transform .15s;
}
.me-pen svg { width: 14px; height: 14px; }
.wl-owner.is-me:hover .me-pen { transform: scale(1.08); }
.pf-top { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.pf-ava { width: 88px; height: 88px; flex-shrink: 0; border-radius: 999px; overflow: hidden; }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-upload { gap: 8px; padding: 11px 16px; font-size: 14px; }
.pf-upload svg { width: 18px; height: 18px; }
.pf-label { margin: 4px 0 10px 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; margin: 0 0 18px; }
.pf-av { aspect-ratio: 1 / 1; padding: 0; border: none; border-radius: 999px; overflow: hidden; background: none; cursor: pointer; transition: transform .12s, box-shadow .2s; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .pf-av:hover { transform: scale(1.06); } }
.pf-av.on { box-shadow: 0 0 0 3px #6200EE; }

/* ---------- вишлист: шапка, плашки, действия ---------- */
.app-crumbs { margin: 0 0 2px; }
.app-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 4px; }
.app-crumbs svg { width: 18px; height: 18px; }
.lhead { margin-bottom: 16px; }
.wl-head .title-row { text-align: center; }
.wl-head .title-row h1 { margin: 0; font-size: clamp(23px, 5.4vw, 32px); line-height: 1.18; overflow-wrap: anywhere; }
/* карандаш — в строке названия, сразу за последним словом */
.tt-tail { white-space: nowrap; }
.wl-head .title-edit { display: inline-flex; vertical-align: middle; margin: -3px 0 0 4px; }
.lhead-meta { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.lhead-meta b { color: var(--ink); font-size: 15px; margin-left: 2px; }
.title-edit {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; border: none; background: none; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, background .2s;
}
.title-edit:hover { color: var(--ink); background: var(--soft); }
.title-edit svg { width: 17px; height: 17px; }
.owner-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.chip-arr { display: inline-flex; margin: 0 -4px 0 -2px; opacity: .65; }
.chip-arr svg { width: 14px; height: 14px; transform: rotate(180deg); }
/* действия — круглые кнопки с подписями (как в профиле приложения); главная — фиолетовая */
.lacts { display: flex; justify-content: center; gap: 4px; max-width: 240px; margin: 16px auto 20px; }
.la {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 2px 0; border: none; background: none;
  color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.la-ico {
  width: 52px; height: 52px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill-2); color: var(--ink); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background .2s, box-shadow .2s;
}
.la-ico svg { width: 22px; height: 22px; }
.la-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la.is-main .la-ico { background: #6200EE; color: #fff; box-shadow: 0 10px 24px rgba(98, 0, 238, .38); }
.la.is-main .la-t { color: var(--ink); }
@media (hover: hover) { .la:hover .la-ico { transform: translateY(-2px); background: var(--hover); } .la.is-main:hover .la-ico { background: var(--purple-light); } }
.la:active .la-ico { transform: scale(.92); }
@media (min-width: 640px) { .lacts { gap: 10px; } .la-ico { width: 56px; height: 56px; } .la { font-size: 13px; } }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 14px;
  border-radius: 999px; border: none; background: var(--fill-2); color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, transform .12s;
}
.chip:hover { background: var(--hover); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip svg { width: 15px; height: 15px; flex-shrink: 0; }
.chip.is-open { background: rgba(52, 211, 153, .13); color: #a7f3d0; }
.chip.is-open:hover { background: rgba(52, 211, 153, .2); }
.chip.is-shared { background: rgba(98, 0, 238, .18); color: #c4b5fd; }
.chip.is-shared:hover { background: rgba(98, 0, 238, .26); }
.chip.static { cursor: default; }
.chip.static:hover { background: var(--fill-2); color: var(--ink-2); }
.chip.static.is-shared:hover { background: rgba(98, 0, 238, .18); color: #c4b5fd; }
.chip.static:active { transform: none; }
.mini-switch { position: relative; width: 32px; height: 19px; border-radius: 999px; background: var(--track); flex-shrink: 0; margin-left: 2px; transition: background .2s; }
.mini-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 999px; background: #fff; transition: transform .2s; }
.chip.on .mini-switch { background: #6200EE; }
.chip.on .mini-switch::after { transform: translateX(13px); }
.owner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 18px; }
.owner-actions .btn { flex: 0 1 auto; gap: 8px; padding: 12px 18px; white-space: nowrap; font-size: 14.5px; }
.owner-actions .btn svg { width: 18px; height: 18px; }
.owner-actions .btn-icon { width: 46px; height: 46px; padding: 0; flex: 0 0 auto; }
.owner-actions .btn-icon svg { width: 20px; height: 20px; }
@media (max-width: 400px) { .owner-actions { gap: 8px; } .owner-actions .btn { font-size: 14px; padding: 12px 14px; } }
.btn-soft { background: var(--fill-2); color: var(--ink); }
.btn-soft:hover { background: var(--hover); }

/* добавление по ссылке */
.add-panel { max-width: 640px; margin: 0 auto 20px; padding: 8px 8px 6px; border-radius: 24px; background: var(--fill); transition: box-shadow .2s; }
.add-panel:focus-within { box-shadow: 0 0 0 2px #6200EE; }
.qa-row { display: flex; align-items: center; gap: 8px; }
.qa-ico { flex-shrink: 0; width: 34px; height: 34px; margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.qa-ico svg { width: 20px; height: 20px; }
.qa-row input { flex: 1; min-width: 0; height: 46px; border: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.qa-row input::placeholder { color: #737a8a; }
.qa-btn { flex-shrink: 0; gap: 6px; padding: 12px 18px; }
.qa-btn svg { width: 18px; height: 18px; }
.qa-manual { display: block; margin: 4px auto 2px; padding: 6px 10px; border: none; background: none; color: var(--purple-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.qa-manual:hover { color: #c4b5fd; }
@media (max-width: 420px) { .qa-btn span { display: none; } .qa-btn { padding: 12px 13px; } .qa-row input { font-size: 14px; } }

/* соавторы под шапкой */
.coauth {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto 22px; padding: 10px 14px;
  border: none; border-radius: 20px; background: var(--fill); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s;
}
.coauth:hover { background: var(--fill-2); }
.coauth .wl-avatars { justify-content: flex-start; flex-shrink: 0; }
.coauth .wl-avatar { width: 34px; height: 34px; border: 2px solid var(--fill); }
.coauth .wl-avatar + .wl-avatar, .coauth .wl-avatar-more { margin-left: -10px; }
.coauth .wl-avatar-more { font-size: 10px; }
.coauth-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.coauth-t b { font-size: 14px; color: var(--ink); }
.coauth-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coauth-go { display: inline-flex; color: var(--muted); }
.coauth-go svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* вишлист друга: строка про подбор подарка в приложении — здесь как раз выбирают подарок */
.app-nudge {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin: -4px auto 22px; padding: 10px 14px 10px 10px;
  border-radius: 20px; color: inherit; text-decoration: none; transition: background .2s, transform .12s;
  background: radial-gradient(120% 140% at 0% 100%, rgba(111, 0, 255, .26), rgba(111, 0, 255, 0) 62%), var(--fill);
}
.app-nudge:hover { background: radial-gradient(120% 140% at 0% 100%, rgba(111, 0, 255, .32), rgba(111, 0, 255, 0) 62%), var(--fill-2); }
.app-nudge:active { transform: scale(.98); }
.app-nudge img { flex-shrink: 0; width: 48px; height: 48px; filter: drop-shadow(0 8px 14px rgba(40, 0, 110, .4)); }
.an-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.an-t b { color: var(--ink); font-size: 14.5px; font-weight: 700; }
.an-t small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.an-go { display: inline-flex; flex-shrink: 0; color: var(--muted); }
.an-go svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* меню «⋮» поверх фото: кружок того же стекла, что у «Ссылки на магазин», по нажатию
   разрастается на всю картинку, точки складываются в крестик, действия — по центру */
.gm { position: absolute; inset: 0; z-index: 6; pointer-events: none; --gm-o: 8px; border-radius: inherit; }
@media (min-width: 640px) { .gm { --gm-o: 10px; } }
.gm > * { pointer-events: auto; }
.gm:not(.open) .gm-list, .gm:not(.open) .gm-bg { pointer-events: none; }
.gm-bg {
  position: absolute; top: var(--gm-o); right: var(--gm-o); width: 32px; height: 32px; border-radius: 16px;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: top .36s cubic-bezier(.2, .9, .25, 1), right .36s cubic-bezier(.2, .9, .25, 1), width .36s cubic-bezier(.2, .9, .25, 1),
    height .36s cubic-bezier(.2, .9, .25, 1), border-radius .36s ease, background .2s ease;
}
/* раскрывается скруглённым квадратом: углы с первого кадра и до конца — как у самой картинки */
.gm.open .gm-bg { top: 0; right: 0; width: 100%; height: 100%; border-radius: inherit; background: rgba(14, 14, 20, .8); box-shadow: none; }
.gm-btn { position: absolute; top: var(--gm-o); right: var(--gm-o); z-index: 2; width: 32px; height: 32px; padding: 0; border: none; border-radius: 16px; background: none; color: #fff; cursor: pointer; }
.gm-btn:active { transform: scale(.92); }
.gm-dots { position: absolute; inset: 0; }
.gm-dots i {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 2px; background: currentColor;
  transform: translate(-50%, -50%) translateY(var(--y, 0));
  transition: transform .32s cubic-bezier(.2, .9, .25, 1), width .32s cubic-bezier(.2, .9, .25, 1), height .32s ease, opacity .2s ease;
}
.gm-dots i:nth-child(1) { --y: -6px; }
.gm-dots i:nth-child(3) { --y: 6px; }
.gm.open .gm-dots i:nth-child(1) { width: 15px; height: 2.4px; transform: translate(-50%, -50%) rotate(45deg); }
.gm.open .gm-dots i:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
.gm.open .gm-dots i:nth-child(3) { width: 15px; height: 2.4px; transform: translate(-50%, -50%) rotate(-45deg); }
/* действия — ровно посередине картинки; крестик лежит слоем выше и в расчёт не входит */
.gm-list {
  position: absolute; inset: 0; box-sizing: border-box; padding: 8px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; transform: scale(.94); pointer-events: none; transition: opacity .15s ease, transform .2s ease;
}
.gm.open .gm-list { opacity: 1; transform: none; pointer-events: auto; transition: opacity .22s ease .1s, transform .3s cubic-bezier(.2, .9, .25, 1) .08s; }
.gm-list button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; padding: 9px 14px; border: none; border-radius: 999px;
  background: none; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
}
.gm-list button:hover { background: rgba(255, 255, 255, .12); }
.gm-list button svg { width: 16px; height: 16px; flex-shrink: 0; }
.gm-list .danger { color: #fca5a5; }
/* сортировка и вид — поверх карточек и их меню */
.webapp .wl-controls { z-index: 40; }
.wl-card { cursor: pointer; }
/* новый подарок падает на место и коротко подсвечивается */
.wl-card.appear { animation: card-drop .62s cubic-bezier(.2, .9, .25, 1.15) both; }
.wl-card.appear .idea-media::after {
  content: ''; position: absolute; inset: 0; z-index: 7; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 3px #8b5cf6, inset 0 0 26px rgba(139, 92, 246, .45); animation: card-glow 1.9s ease-out .15s both;
}
@keyframes card-drop { from { opacity: 0; transform: translateY(-18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes card-glow { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
/* только что созданный вишлист: картинка в шапке выпрыгивает, название поднимается */
.lhead.pop .wl-avatars { animation: head-pop .75s cubic-bezier(.3, 1.5, .5, 1) both; }
.lhead.pop .title-row { animation: app-rise .6s cubic-bezier(.2, .8, .2, 1) .12s both; }
@keyframes head-pop { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); } 55% { opacity: 1; } 100% { transform: none; } }
.gift-more { display: flex; justify-content: center; margin: 24px 0 0; }
.gift-more .btn { gap: 8px; padding: 12px 22px; }
.wl-card.is-mine .wl-booked-badge { background: #6200EE; }
.wl-done-badge {
  position: absolute; left: 8px; top: 8px; z-index: 4; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px 6px 8px; border-radius: 999px;
  background: rgba(16, 185, 129, .9); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
}
.wl-done-badge svg { width: 13px; height: 13px; }
.wl-done { margin-top: 34px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.wl-done-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 14px; }
.wl-done-head h2 { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.wl-done-head span { color: var(--muted); font-size: 14px; font-weight: 600; }
.wl-added { margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.wl-add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 1 / 1; border-radius: 20px; border: none; background: var(--fill);
  color: var(--ink-2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 10px; text-align: center;
  transition: background .2s, transform .12s;
}
.wl-add-card:hover { background: var(--fill-2); }
.wl-add-card:active { transform: scale(.97); }
.wl-empty { text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 420px; margin: 8px auto 24px; }
.wl-empty-art { display: flex; justify-content: center; margin: 8px 0 0; }
.wl-empty-art img { width: 112px; height: 112px; filter: drop-shadow(0 14px 24px rgba(40, 0, 110, .4)); animation: ha-float 7s ease-in-out infinite; }
html.light .wl-empty-art img { filter: drop-shadow(0 12px 20px rgba(77, 0, 196, .22)); }

/* ---------- формы в шторке ---------- */
.sheet-panel.app-form { padding-top: 8px; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--track); margin: 4px auto 12px; }
.form-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.form-head h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.form-x {
  width: 36px; height: 36px; border-radius: 999px; border: none; background: var(--fill-2); color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-x:hover { color: var(--ink); background: var(--hover); }
.form-x svg { width: 18px; height: 18px; }
.form-x[hidden] { display: none; }
/* «Очистить поля» в форме подарка: иконка ic_clear приложения маской, появляется мягко */
.form-clear { animation: clear-in .22s cubic-bezier(.2, .9, .3, 1.2); }
.clear-ico {
  display: inline-block; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: url('/app/ic-clear.webp') center / contain no-repeat; mask: url('/app/ic-clear.webp') center / contain no-repeat;
}
@keyframes clear-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.sheet-lede { color: var(--muted); font-size: 14px; line-height: 1.55; margin: -4px 0 16px; }
.sheet-note-pill { margin: -4px 0 14px; padding: 9px 13px; border-radius: 12px; background: rgba(98, 0, 238, .16); color: #c4b5fd; font-size: 13px; font-weight: 600; line-height: 1.45; }
.sheet-actions.sheet-actions-row { flex-direction: row; }
.sheet-actions-row .btn { flex: 1 1 0; gap: 8px; }
.sheet-actions .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sheet-actions .btn { gap: 8px; }
.sheet-status.is-mine { color: #c4b5fd; background: rgba(98, 0, 238, .14); }
/* форма подарка: фото — миниатюрой в строке со ссылкой, чтобы вся форма помещалась в экран телефона */
.g-top { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.g-top .g-link { flex: 1; min-width: 0; margin: 0; }
.g-thumb-wrap { position: relative; flex-shrink: 0; width: 76px; height: 76px; }
.g-thumb {
  width: 100%; height: 100%; padding: 0; border: none; border-radius: 18px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--fill); color: var(--muted); font: inherit; transition: background .2s, color .2s, transform .12s;
}
.g-thumb:hover { background: var(--fill-2); color: var(--ink); }
.g-thumb:active { transform: scale(.96); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; animation: app-fade .3s ease; }
.g-thumb svg { width: 22px; height: 22px; }
.g-thumb small { font-size: 11.5px; font-weight: 700; }
.g-thumb { position: relative; }
.g-thumb-edit {
  position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(14, 14, 20, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff;
}
.edit-ico {
  display: inline-block; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url('/app/ic-edit.webp') center / contain no-repeat; mask: url('/app/ic-edit.webp') center / contain no-repeat;
}
.ph-prev { display: flex; justify-content: center; margin: 0 0 18px; }
.ph-prev img { width: 168px; height: 168px; border-radius: 24px; object-fit: cover; background: var(--fill); }
/* кнопки формы закреплены внизу шторки: «Сохранить» видно и над клавиатурой */
.sheet-actions.is-sticky { position: sticky; bottom: -1px; z-index: 3; padding: 10px 0 2px; }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }
/* иконка ic_ai приложения: маска, цвет берёт у кнопки */
.ai-ico {
  display: inline-block; width: 18px; height: 18px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url('/app/ic-ai.webp') center / contain no-repeat; mask: url('/app/ic-ai.webp') center / contain no-repeat;
}
.app-form .f textarea { min-height: 0; }
.sheet-actions-row .btn-del { flex: 0 0 56px; padding: 0; background: #dc2626; color: #fff; box-shadow: 0 8px 20px rgba(220, 38, 38, .3); }
.sheet-actions-row .btn-del:hover { background: #ef4444; color: #fff; }
.sheet-actions-row .btn-del svg { width: 20px; height: 20px; }
@media (max-width: 400px) {
  .g-top { gap: 10px; }
  .g-thumb-wrap { width: 70px; height: 70px; }
  .g-link .find-btn { padding: 0 12px; gap: 5px; }
  .app-form .f { margin-bottom: 12px; }
}
/* предупреждение о потолке длины — поверх заголовка шторки, не сдвигая поля; при прокрутке остаётся сверху */
.f-limit-wrap { position: sticky; top: 0; z-index: 8; height: 0; }
.f-limit {
  position: absolute; left: -6px; right: -6px; top: 10px; margin: 0;
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px;
  background: #33270e; color: #fde68a; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  animation: f-limit-in .32s cubic-bezier(.2, .9, .25, 1);
}
.f-limit svg { width: 18px; height: 18px; flex-shrink: 0; color: #fbbf24; }
.f-limit.flash { animation: f-limit-in .32s cubic-bezier(.2, .9, .25, 1), f-limit-nudge .4s ease .05s; }
@keyframes f-limit-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes f-limit-nudge { 0%, 100% { translate: 0; } 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.f.at-limit input, .f.at-limit textarea, .f.at-limit input:focus, .f.at-limit textarea:focus { border-color: #f59e0b; }
.f-count { margin-left: auto; padding-left: 8px; font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }
.f.at-limit .f-count { color: #fbbf24; }
.f { display: block; margin: 0 0 14px; }
.f > .fl { display: flex; align-items: baseline; margin: 0 4px 7px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.f input, .f textarea, .f select {
  width: 100%; box-sizing: border-box; border-radius: 16px; border: 1.5px solid transparent; background: var(--fill); color: var(--ink);
  padding: 13px 15px; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.f textarea { min-height: 86px; resize: vertical; line-height: 1.45; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: #6200EE; background: var(--field-focus); }
.f input::placeholder, .f textarea::placeholder { color: #737a8a; }
.f.err input { border-color: #f87171; }
.f-err { color: #fca5a5; font-size: 13px; margin: -8px 4px 12px; }
.f select { appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 700; text-align: center; }
.f-row { display: flex; gap: 10px; align-items: flex-end; }
.f-row .grow { flex: 1; min-width: 0; }
.f-row .f.cur { width: 88px; flex-shrink: 0; }
.link-row { display: flex; gap: 8px; align-items: stretch; }
.link-row input { flex: 1; min-width: 0; }
.find-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 16px; padding: 0 16px;
  background: #6200EE; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .12s;
}
.find-btn:hover { background: var(--purple-light); }
.find-btn:active { transform: scale(.96); }
.find-btn[disabled] { opacity: .6; cursor: default; }
.find-btn svg { width: 17px; height: 17px; }
.find-btn .wl-spinner, .btn .wl-spinner { width: 16px; height: 16px; border-width: 2px; }
.sheet-note { color: var(--muted); font-size: 13px; line-height: 1.45; margin: -4px 4px 14px; }
.btn-danger-ghost { background: none; color: #f87171; }
.btn-danger-ghost:hover { color: #fca5a5; }
.sheet-actions .btn-danger-ghost, .sheet-actions .btn-ghost { padding: 10px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #ef4444; }

/* переключатели настроек */
.tg-list { background: var(--fill); border-radius: 20px; padding: 4px 16px; margin: 0 0 16px; }
.tg { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-top: 1px solid var(--soft); cursor: pointer; }
.tg:first-child { border-top: none; }
.tg .tx { flex: 1; min-width: 0; }
.tg b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tg small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tg .sw { position: relative; width: 46px; height: 27px; flex-shrink: 0; margin-top: 1px; }
.tg .sw input { position: absolute; z-index: 1; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; margin: 0; cursor: pointer; }
.tg .sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--track); transition: background .2s; pointer-events: none; }
.tg .sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 999px; background: #fff; transition: transform .2s; }
.tg .sw input:checked + i { background: #6200EE; }
.tg .sw input:checked + i::after { transform: translateX(19px); }
.tg .sw input:focus-visible + i { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.tg .tx:has(+ .tip-btn) { flex: 0 1 auto; }
.app-form .tg, .app-form .pf-label, .tip-pop { text-align: left; }
.tg .tip-btn + .sw { margin-left: auto; }
label.tx { cursor: pointer; }
.tg-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.2, .8, .2, 1); }
.tg-more.open { grid-template-rows: 1fr; }
.tg-more-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .25s ease; }
.tg-more.open .tg-more-in { opacity: 1; transition: opacity .35s ease .08s; }
.tg-more-in .tg:first-child { border-top: 1px solid var(--soft); }
/* «?» с подсказкой — пузырь над кнопкой */
.tip-btn {
  flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0 -6px; padding: 0; border: none; border-radius: 999px;
  background: var(--fill-2); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; cursor: pointer;
}
.tip-btn:hover { color: var(--ink); background: var(--hover); }
.tip-pop {
  position: fixed; z-index: 95; max-width: 260px; padding: 10px 12px; border-radius: 12px;
  background: #2a2d3d; color: #e5e7eb; font-size: 12.5px; line-height: 1.45; box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  animation: app-pop .16s ease-out;
}
.tip-pop::after { content: ''; position: absolute; left: calc(var(--ax, 50%) - 6px); bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #2a2d3d; }
.tip-pop.below::after { top: -6px; bottom: auto; border: 6px solid transparent; border-top: 0; border-bottom-color: #2a2d3d; }

.share-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.share-status .dot { width: 8px; height: 8px; border-radius: 999px; background: #6b7280; }
.share-status .dot.on { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.share-text { color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; margin: 0 0 18px; }
.share-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--fill); margin: 0 0 10px; }
.share-link code { flex: 1; min-width: 0; font-family: inherit; font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-link .btn { padding: 9px 16px; font-size: 13.5px; gap: 6px; }
.share-link .btn svg { width: 16px; height: 16px; }
.share-more { display: flex; gap: 10px; margin: 0 0 20px; }
.share-more .btn { flex: 1; gap: 7px; padding: 11px 12px; font-size: 13.5px; }
.share-more .btn svg { width: 16px; height: 16px; }
.text-preview {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--fill); color: var(--ink-2);
  font: 500 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word;
  max-height: 240px; overflow: auto; scrollbar-width: none;
}
.text-preview::-webkit-scrollbar { display: none; }

/* соавторы и приглашение */
.co-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.co-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--fill); }
.co-row img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--fill-2); flex-shrink: 0; }
.co-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-name b { font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-name small { color: var(--muted); font-size: 12px; font-weight: 600; }
.co-remove { flex-shrink: 0; border: none; border-radius: 999px; padding: 8px 12px; background: rgba(248, 113, 113, .12); color: #fca5a5; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.co-remove:hover { background: rgba(248, 113, 113, .2); }
.inv-card { padding: 16px 18px; margin: 0 0 18px; border-radius: 20px; background: rgba(98, 0, 238, .18); }
.inv-owner { display: flex; align-items: center; gap: 10px; }
.inv-owner img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--fill-2); }
/* Готовые аватарки (из /avatars/, прозрачный фон) — без подложки, как в шапке вишлиста */
.co-row img[src*="/avatars/"], .inv-owner img[src*="/avatars/"] { background: none; }
.inv-owner b { font-size: 15px; color: var(--ink); }
.inv-title { margin: 12px 0 6px; font-size: 18px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.inv-meta { margin: 0; display: flex; align-items: center; gap: 6px; color: #c4b5fd; font-size: 13px; font-weight: 600; }
.inv-meta svg { width: 15px; height: 15px; }

.modal-box .btn { width: 100%; }

/* ---------- «Ещё»: шторка с кнопками действий ---------- */
.as-list { display: flex; flex-direction: column; margin: 0 0 12px; padding: 4px; border-radius: 20px; background: var(--fill); }
.as-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: none; border-radius: 16px;
  background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .2s, transform .12s;
}
.as-row:hover { background: var(--fill-2); }
.as-row:active { transform: scale(.98); }
.as-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--fill-2); color: var(--ink); }
.as-ico svg { width: 19px; height: 19px; }
.as-t { flex: 1; min-width: 0; }
.as-row.danger { color: #f87171; }
.as-row.danger .as-ico { background: rgba(220, 38, 38, .14); color: #f87171; }
html.light .as-row.danger, html.light .as-row.danger .as-ico { color: #dc2626; }

/* ---------- обложка вишлиста ---------- */
.cv-preview {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 16px 12px 12px; border-radius: 22px;
  background: radial-gradient(120% 130% at 0% 100%, rgba(111, 0, 255, .24), rgba(111, 0, 255, 0) 62%), var(--fill);
}
.cv-face { flex-shrink: 0; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.cv-face img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(40, 0, 110, .4)); }
.cv-face.is-ava img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; filter: none; }
.cv-face.pop { animation: cv-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cv-pop { 0% { opacity: .3; transform: scale(.55) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
.cv-tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cv-tx b { color: var(--ink); font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.cv-tx small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 400px; margin: 0 auto 18px; }
@media (min-width: 480px) { .cv-grid { gap: 10px; } }
.cv-cell {
  position: relative; aspect-ratio: 1 / 1; padding: 4px; border: none; border-radius: 999px; background: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1);
}
.cv-cell img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
@media (hover: hover) { .cv-cell:hover { transform: scale(1.07); } }
.cv-cell:active { transform: scale(.93); }
/* выбранная: мягкое фиолетовое свечение под картинкой и галочка в углу */
.cv-cell::before { content: ''; position: absolute; inset: 2%; border-radius: 999px; background: radial-gradient(closest-side, rgba(124, 58, 237, .55), rgba(124, 58, 237, 0)); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.cv-cell::after {
  content: ''; position: absolute; z-index: 2; right: 0; top: 0; width: 20px; height: 20px; border-radius: 999px; opacity: 0; transform: scale(.4);
  background: #6200EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 2px var(--dark); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.cv-cell.on::before { opacity: 1; transform: scale(1); }
.cv-cell.on::after { opacity: 1; transform: none; }
.cv-cell.on img { animation: cv-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.cv-ava { padding: 7px; }
.cv-ava img { border-radius: 999px; object-fit: cover; }
.cv-tag {
  position: absolute; z-index: 2; left: 50%; bottom: -3px; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px;
  background: #2a2d3d; color: #fff; font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; pointer-events: none;
}
/* в создании вишлиста — лентой: на телефоне листают пальцем, на компьютере — колесом и стрелками */
.cv-strip-wrap { position: relative; margin: 0 -20px 18px; }
.cv-strip {
  position: relative; display: flex; gap: 6px; padding: 4px 20px 8px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.cv-strip-wrap.at-start .cv-strip { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
.cv-strip-wrap.at-end .cv-strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.cv-strip-wrap.at-start.at-end .cv-strip { -webkit-mask-image: none; mask-image: none; }
.cv-strip::-webkit-scrollbar { display: none; }
.cv-strip .cv-cell { flex: 0 0 60px; width: 60px; scroll-snap-align: center; }
.cv-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cv-arrow {
    position: absolute; z-index: 3; top: 50%; width: 34px; height: 34px; margin-top: -19px; padding: 0; border: none; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; background: var(--pop); color: var(--ink); cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: opacity .2s, transform .15s;
  }
  .cv-arrow svg { width: 18px; height: 18px; }
  .cv-arrow.prev { left: 10px; }
  .cv-arrow.next { right: 10px; }
  .cv-arrow.next svg { transform: rotate(180deg); }
  .cv-arrow:active { transform: scale(.92); }
  .cv-strip-wrap.at-start .cv-arrow.prev, .cv-strip-wrap.at-end .cv-arrow.next { opacity: 0; pointer-events: none; }
}

/* фокус: системная рамка после клика мышью не нужна, с клавиатуры — своё кольцо */
.webapp button:focus:not(:focus-visible), .webapp a:focus:not(:focus-visible) { outline: none; }
.webapp .lp-jump button:focus-visible, .webapp .cv-cell:focus-visible, .webapp .la:focus-visible .la-ico, .webapp .chip:focus-visible,
.webapp .lang-opt:focus-visible, .webapp .tip-btn:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.webapp .la:focus-visible { outline: none; }

/* ---------- переключатель темы: ночь с луной и звёздами ↔ день с солнцем и облаком ---------- */
.theme-tg {
  position: relative; flex-shrink: 0; width: 58px; height: 32px; padding: 0; border: none; border-radius: 999px;
  background: none; cursor: pointer; transition: opacity .3s ease;
}
.theme-tg:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; }
.tt-sky {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  background: linear-gradient(135deg, #140d36 0%, #2e1065 62%, #4c1d95 100%); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .55);
}
.tt-sky::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease;
  background: linear-gradient(135deg, #7dd3fc 0%, #a5b4fc 55%, #f5d0fe 100%); box-shadow: inset 0 1px 4px rgba(30, 20, 80, .25);
}
.tt-star { position: absolute; z-index: 1; width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(255, 255, 255, .9); transition: transform .5s cubic-bezier(.2, .9, .25, 1), opacity .35s ease; }
.tt-star:nth-child(1) { left: 9px; top: 9px; animation: tt-twinkle 2.6s ease-in-out infinite; }
.tt-star:nth-child(2) { left: 17px; top: 19px; width: 2px; height: 2px; animation: tt-twinkle 3.1s ease-in-out -1s infinite; }
.tt-star:nth-child(3) { left: 25px; top: 9px; width: 1.6px; height: 1.6px; animation: tt-twinkle 2.2s ease-in-out -.5s infinite; }
@keyframes tt-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.tt-cloud {
  position: absolute; z-index: 1; right: 7px; top: 14px; width: 17px; height: 7px; border-radius: 6px; background: #fff;
  opacity: 0; transform: translateX(12px); transition: transform .55s cubic-bezier(.2, .9, .25, 1), opacity .35s ease;
}
.tt-cloud::before { content: ''; position: absolute; left: 3px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.tt-cloud::after { content: ''; position: absolute; left: 8px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tt-knob {
  position: absolute; z-index: 2; top: 4px; left: 4px; width: 24px; height: 24px; overflow: hidden; border-radius: 50%;
  background: #ece9f8; box-shadow: inset -3px -3px 0 rgba(60, 40, 120, .14), 0 2px 7px rgba(0, 0, 0, .4);
  transform: translateX(26px) rotate(0deg);
  transition: transform .6s cubic-bezier(.5, 1.45, .4, .95), background .45s ease, box-shadow .45s ease;
}
.tt-knob i { position: absolute; border-radius: 50%; background: #cbc6e0; transition: opacity .3s ease; }
.tt-knob i:nth-child(1) { left: 5px; top: 6px; width: 6px; height: 6px; }
.tt-knob i:nth-child(2) { left: 13px; top: 14px; width: 4px; height: 4px; }
.tt-knob i:nth-child(3) { left: 14px; top: 5px; width: 3px; height: 3px; }
@media (hover: hover) { .theme-tg:hover .tt-knob { box-shadow: inset -3px -3px 0 rgba(60, 40, 120, .14), 0 0 0 4px rgba(236, 233, 248, .12), 0 2px 7px rgba(0, 0, 0, .4); } }
html.light .tt-sky::after { opacity: 1; }
html.light .tt-star { opacity: 0; transform: translateY(7px) scale(.3); animation: none; }
html.light .tt-cloud { opacity: .96; transform: none; }
html.light .tt-knob {
  transform: translateX(0) rotate(-180deg); background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .3), 0 0 14px rgba(251, 191, 36, .8), inset -2px -2px 0 rgba(217, 119, 6, .35);
}
html.light .tt-knob i { opacity: 0; }
/* смена темы на телефоне: цвета плавно перетекают, ничего не двигается (переключатель
   анимируется своими переходами) */
html.theme-fade { transition: background-color .4s ease; }
html.theme-fade body, html.theme-fade body *:not(.theme-tg):not(.theme-tg *),
html.theme-fade body *:not(.theme-tg):not(.theme-tg *)::before, html.theme-fade body *:not(.theme-tg):not(.theme-tg *)::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, stroke .4s ease, box-shadow .4s ease !important;
}
/* смена темы — кругом от переключателя */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* на прокрученном вишлисте шапку занимают аватарки и название */
body.wl-scrolled .nav .theme-tg { opacity: 0; pointer-events: none; }
.webapp .wl-mini { max-width: calc(100% - 110px); }

/* ---------- подвал: что ещё есть в приложении, сторы, юридические страницы ---------- */
.app-foot { padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.af-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .af-in { padding: 0 20px; } }
.af-promo {
  display: flex; align-items: center; gap: 32px; padding: 24px 20px 22px; border-radius: 28px;
  background: radial-gradient(120% 110% at 100% 0%, rgba(111, 0, 255, .3), rgba(111, 0, 255, 0) 60%), var(--fill);
}
@media (min-width: 760px) { .af-promo { padding: 32px 34px 30px; border-radius: 32px; } }
.af-main { flex: 1; min-width: 0; }
.af-promo h2 { margin: 0 0 8px; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.af-text { margin: 0 0 18px; max-width: 560px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.af-perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .af-perks { grid-template-columns: 1fr 1fr; gap: 16px 24px; } }
.af-perks li { display: flex; align-items: center; gap: 12px; }
.af-perks img { flex-shrink: 0; width: 48px; height: 48px; filter: drop-shadow(0 8px 14px rgba(40, 0, 110, .4)); }
.af-perks span { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.af-perks b { color: var(--ink); font-size: 14.5px; font-weight: 700; }
.af-cta { display: flex; width: 100%; justify-content: center; padding: 15px 20px; font-size: 15px; }
@media (min-width: 640px) { .af-cta { display: inline-flex; width: auto; min-width: 280px; } }
.af-qr { display: none; }
/* компьютер: рядом с кнопкой — QR, чтобы поставить приложение на телефон */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .af-qr {
    display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; width: 176px; padding: 14px 14px 12px; border-radius: 22px;
    background: var(--fill-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: center;
  }
  .af-qr img { width: 148px; height: 148px; display: block; }
}
.af-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 22px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.af-legal a { color: var(--muted); text-decoration: none; transition: color .2s; }
.af-legal a:hover { color: var(--ink); }

/* ============================================================== светлая тема
   Класс light у <html> ставит строка в <head> (выбор в localStorage gb-theme).
   Плашки — светлой заливкой без обводок, как в тёмной; фиолетовые карточки,
   стекло поверх фото и плашка снизу остаются тёмными — они на картинке или в цвете бренда */
html.light {
  color-scheme: light;
  --dark: #ffffff; --card: #f3f2f8; --border: #e7e5ef; --text: #16131f; --muted: #6b6880;
  --fill: #efedf7; --fill-2: #e5e2f0; --purple-text: #6d28d9;
}
html.light body.webapp {
  --ink: #16131f; --ink-2: #3f3a4f; --ink-3: #6b6880; --hover: #dedbea; --soft: rgba(30, 20, 60, .06);
  --pop: #ffffff; --track: #d6d3e2; --glass: rgba(243, 242, 248, .86); --field-focus: #ffffff;
  --shadow: 0 18px 44px rgba(30, 20, 60, .16);
}
html.light .nav, html.light .nav::after { background: rgba(255, 255, 255, .86); }
/* знак белыми линиями — на светлом подкладываем тёмный квадрат, как у значка приложения */
html.light .nav .logo { background: #16131f; }
body.webapp .nav .logo { border-radius: 10px; }
html.light .lang-pill:hover, html.light .btn-ghost:hover, html.light .breadcrumbs a:hover,
html.light .wl-layout-btn:hover, html.light .wl-sort-btn:hover { color: var(--ink); }
html.light .idea-body h3, html.light .sheet-panel h2, html.light .sheet-price, html.light .wl-error, html.light .wl-mini-names { color: var(--ink); }
html.light .wl-owner { color: var(--ink-2); }
html.light .wl-avatar-more { background: var(--fill-2); color: var(--ink-2); }
html.light .img-frame { background: linear-gradient(100deg, #efedf5 25%, #f7f6fb 50%, #efedf5 75%); background-size: 200% 100%; }
html.light .img-frame.loaded, html.light .img-frame.img-brand { background: var(--card); }
html.light .idea-media .img-frame, html.light .idea-media .img-frame.loaded, html.light .wl-card .img-frame.loaded { background: transparent; }
html.light .idea-card.is-booked .idea-media img { filter: grayscale(1) opacity(.5); }
html.light .idea-card.is-booked h3, html.light .idea-card.is-booked .price { color: #a19eb3; }
html.light .wl-spinner { border-color: #e4e2ec; border-top-color: var(--purple-light); }
html.light .sheet::before, html.light .modal { background: rgba(22, 16, 44, .4); }
html.light .sheet-panel { box-shadow: 0 -12px 40px rgba(30, 20, 60, .14); }
html.light .modal-box { background: #fff; border: 0; box-shadow: 0 24px 60px rgba(30, 20, 60, .22); }
html.light .wl-sort-menu { background: #fff; border: 0; box-shadow: var(--shadow); }
html.light .wl-sort-menu button { color: var(--ink-2); }
html.light .wl-sort-menu button:hover { background: var(--soft); color: var(--ink); }
html.light .wl-sort-menu button.is-active, html.light .wl-sort-menu button.is-active:hover { background: #6200EE; color: #fff; }
html.light .lp-jump { box-shadow: 0 10px 30px rgba(30, 20, 60, .1); }
html.light .lp-jump button.on { background: var(--ink); color: #fff; }
html.light .lcard-cover { box-shadow: none; }
@media (hover: hover) { html.light .lcard:hover .lcard-cover { box-shadow: 0 18px 40px rgba(30, 20, 60, .16); } }
html.light .cover-empty, html.light .cover-orbit { background: radial-gradient(120% 90% at 50% 100%, rgba(111, 0, 255, .16), rgba(111, 0, 255, 0) 70%), var(--fill); }
html.light .orb { box-shadow: 0 0 0 2px var(--fill), 0 8px 18px rgba(30, 20, 60, .18); }
html.light .orb-icon { filter: drop-shadow(0 12px 20px rgba(77, 0, 196, .24)); }
html.light .hempty { background: radial-gradient(120% 110% at 0% 100%, rgba(111, 0, 255, .2), rgba(111, 0, 255, 0) 62%), #ece8fa; }
html.light .lcard-new .lcard-cover { background: #ece8fa; }
html.light .app-only { background: linear-gradient(120deg, rgba(98, 0, 238, .16), rgba(98, 0, 238, .07)); }
html.light .af-promo { background: radial-gradient(120% 110% at 100% 0%, rgba(111, 0, 255, .14), rgba(111, 0, 255, 0) 60%), #ece8fa; }
html.light .af-perks img, html.light .app-nudge img { filter: drop-shadow(0 8px 14px rgba(77, 0, 196, .2)); }
html.light .app-nudge { background: radial-gradient(120% 140% at 0% 100%, rgba(111, 0, 255, .14), rgba(111, 0, 255, 0) 62%), #ece8fa; }
html.light .app-nudge:hover { background: radial-gradient(120% 140% at 0% 100%, rgba(111, 0, 255, .2), rgba(111, 0, 255, 0) 62%), #e4def8; }
html.light .af-qr { background: #fff; }
html.light .menu-tag { background: rgba(98, 0, 238, .1); color: #5b21b6; }
html.light .tip-pop { background: #16131f; color: #f3f4f6; }
html.light .tip-pop::after { border-top-color: #16131f; }
html.light .tip-pop.below::after { border-top-color: transparent; border-bottom-color: #16131f; }
html.light .cv-tag { background: #16131f; }
html.light .lang-menu { background: #fff; box-shadow: var(--shadow); }
html.light .app-menu.mm { background: rgba(255, 255, 255, .9); box-shadow: 0 18px 44px rgba(30, 20, 60, .18); }
html.light .app-menu.mm a, html.light .app-menu.mm button { color: var(--ink-2); }
html.light .app-menu.mm a:hover, html.light .app-menu.mm button:hover { background: var(--soft); color: var(--ink); }
html.light .app-menu.mm .menu-head { color: var(--muted); }
html.light .app-menu.mm .menu-sep { background: var(--soft); }
html.light .app-menu.mm button.is-active { background: #6200EE; color: #fff; }
html.light .app-menu.mm .danger { color: #dc2626; }
html.light .mm-x { color: var(--ink); }
html.light .mm-x:hover { background: var(--soft); }

html.light .lang-opt { color: var(--ink-2); }
html.light .lang-opt:hover { background: var(--soft); color: var(--ink); }
html.light .lang-opt.is-current { color: var(--ink); }
html.light .lang-wrap.open .lang-pill { color: var(--ink); }
html.light .lang-opt .flag { box-shadow: 0 0 0 1.5px rgba(30, 20, 60, .1); }
html.light .cv-arrow { box-shadow: 0 6px 18px rgba(30, 20, 60, .18); }
html.light .cv-preview { background: radial-gradient(120% 130% at 0% 100%, rgba(111, 0, 255, .12), rgba(111, 0, 255, 0) 62%), var(--fill); }
html.light .cover-art, html.light .hempty-art img, html.light .cv-face img, html.light .wl-cover-icon { filter: drop-shadow(0 12px 20px rgba(77, 0, 196, .22)); }
html.light .cv-cell.on { background: rgba(98, 0, 238, .1); }
html.light .btn-apple { background: #16131f; color: #fff; }
html.light .btn-apple:hover { background: #2b2638; }
html.light .btn-white { background: var(--fill-2); color: var(--ink); }
html.light .btn-white:hover { background: var(--hover); }
html.light .auth-msg { background: rgba(220, 38, 38, .08); color: #b91c1c; }
html.light .acc-hint { color: #b45309; }
html.light .app-menu .danger, html.light .btn-danger-ghost { color: #dc2626; }
html.light .app-menu .danger:hover, html.light .btn-danger-ghost:hover { color: #b91c1c; }
html.light .f-err { color: #dc2626; }
html.light .f.err input { border-color: #ef4444; }
html.light .co-remove { background: rgba(220, 38, 38, .08); color: #dc2626; }
html.light .co-remove:hover { background: rgba(220, 38, 38, .14); }
html.light .chip.is-open { background: rgba(16, 185, 129, .12); color: #047857; }
html.light .chip.is-open:hover { background: rgba(16, 185, 129, .18); }
html.light .chip.is-shared, html.light .chip.static.is-shared:hover { background: rgba(98, 0, 238, .1); color: #5b21b6; }
html.light .chip.is-shared:hover { background: rgba(98, 0, 238, .16); }
html.light .sheet-note-pill, html.light .sheet-status.is-mine { background: rgba(98, 0, 238, .08); color: #5b21b6; }
html.light .inv-card { background: rgba(98, 0, 238, .08); }
html.light .inv-meta { color: #6d28d9; }
html.light .qa-manual:hover { color: #5b21b6; }
html.light .qa-row input::placeholder, html.light .f input::placeholder, html.light .f textarea::placeholder { color: #9d9ab0; }
html.light .f-limit { background: #fff4d6; color: #92400e; box-shadow: 0 14px 34px rgba(146, 64, 14, .16); }
html.light .f-limit svg, html.light .f.at-limit .f-count { color: #d97706; }
html.light .g-thumb-x { background: #16131f; }
html.light .share-status .dot { background: #b8b5c8; }
html.light .add-panel:focus-within { box-shadow: 0 0 0 2px #6200EE; background: #fff; }
