/* Все цвета и размеры — в переменных ниже: чтобы перекрасить приложение, меняй только их. */
:root {
  --bg: #f6f2ee;
  --surface: #ffffff;
  --surface-2: #efe9e3;
  --text: #1f1a17;
  --hint: #857a72;
  --accent: #e8743b;
  --accent-soft: #fbe5d8;
  --accent-text: #ffffff;
  --danger: #c8412f;
  --ok: #2f8f5b;
  --line: rgba(31, 26, 23, .08);
  --shadow: 0 6px 24px rgba(60, 35, 20, .08);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: lamun-off) {
  :root {
    --bg: #171412; --surface: #221e1b; --surface-2: #2d2824; --text: #f3ece6; --hint: #a39a92;
    --accent: #f08a52; --accent-soft: #3d2a1f; --line: rgba(255, 255, 255, .08);
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font); }
body { min-height: 100vh; }
[hidden] { display: none !important; }
main { padding: calc(12px + env(safe-area-inset-top)) 16px 104px; max-width: 560px; margin: 0 auto; min-height: 100vh; }
h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 12px; letter-spacing: -.01em; }
h2 { font-size: 19px; line-height: 1.2; margin: 22px 0 10px; }  /* 17.10: внутреннее < внешнего — строки заголовка плотнее отступа после него */
h3 { font-size: 17px; line-height: 1.25; margin: 0 0 4px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.hint { color: var(--hint); font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; }
.loading { padding: 38vh 0; text-align: center; color: var(--hint); }

/* шапка экрана */
.topbar { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 6px; }
.topbar .title { flex: 1; font-weight: 700; font-size: 18px; }
.iconbtn { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: 18px; position: relative; box-shadow: var(--shadow); }
.dot { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.back { background: none; padding: 8px 0; min-height: 40px; color: var(--accent); font-weight: 600; }

/* кнопки */
button { font: inherit; border: 0; cursor: pointer; border-radius: 14px; padding: 13px 18px; min-height: 48px;
  background: var(--surface); color: var(--text); }
button:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-text); font-weight: 600; width: 100%; }
.btn-soft { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
/* второстепенное действие рядом с основным: залитое, но бледнее (журнал PWA, №43) */
.btn-pale { background: var(--surface-2); color: var(--hint); font-weight: 600; }
.btn-danger { background: transparent; color: var(--danger); }
.btn-line { background: var(--surface); border: 1.5px solid var(--line); width: 100%; font-weight: 600; }  /* 17.10: жирным, как все кнопки (Алёна) */
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.chipbtn { padding: 8px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; background: var(--surface-2); }

.box { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.segmented { display: flex; background: var(--surface); border-radius: 14px; padding: 4px; margin-bottom: 14px; box-shadow: var(--shadow); }
.segmented button { flex: 1; min-height: 40px; padding: 8px; background: transparent; border-radius: 10px; font-size: 15px; }
.segmented button.on { background: var(--accent); color: var(--accent-text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px;
  min-height: 40px; font-size: 15px; }
/* 14.10: выбранный чипс — один вид везде (интересы, пол, причины): персиковый фон, тонкая обводка тоном от персикового — так же едва заметна, как у белых */
.chip.on { border-color: var(--chip-on-line); background: var(--accent-soft); color: var(--accent); font-weight: 600; }  /* едва заметная, тоном от персикового */
.tag { display: inline-block; background: var(--surface-2); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--hint); }
.tag.ok { background: #e3f3ea; color: var(--ok); }
.tag.warn { background: var(--accent-soft); color: var(--accent); }
.tag.bad { background: #f8e1dd; color: var(--danger); }

/* лента */
.marks { display: flex; justify-content: space-between; align-items: center; margin: -4px 2px 10px; font-size: 14px; color: var(--hint); }
.deck { position: relative; height: clamp(300px, calc(100vh - 360px), 520px); height: clamp(300px, calc(100dvh - 360px), 520px); margin-bottom: 14px; }
.card { position: absolute; inset: 0; background: var(--surface); border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); touch-action: pan-y; user-select: none;
  transition: transform .25s ease, opacity .25s ease; overflow: hidden; }
.card.static { position: relative; inset: auto; min-height: 320px; }
.card.dragging { transition: none; }
.card > * { flex-shrink: 0; }  /* текст не сжимаем — при нехватке места сжимается обложка и описание */
.card .tag { align-self: flex-start; margin-bottom: 14px; }
.card h1 { margin-top: 0; }
.card .meta { color: var(--hint); margin-bottom: 6px; line-height: 1.3; }  /* 17.10: внутреннее < внешнего: перенос адреса плотнее отступа между строками */
.card .desc { margin-top: 12px; min-height: 0; flex: 0 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.card .foot { flex-shrink: 0; padding-top: 10px; margin-top: auto; color: var(--hint); font-size: 14px; }
.stamp { position: absolute; top: 22px; font-weight: 800; font-size: 20px; padding: 4px 12px; border-radius: 10px;
  border: 3px solid; opacity: 0; transform: rotate(-12deg); pointer-events: none; }
.stamp.yes { right: 22px; color: var(--accent); }
.stamp.no { left: 22px; color: var(--hint); transform: rotate(12deg); }
.actions { display: flex; justify-content: center; gap: 40px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--hint); }
.round { width: 66px; height: 66px; border-radius: 50%; font-size: 24px; padding: 0; box-shadow: var(--shadow); }
.round.yes { background: var(--accent); color: var(--accent-text); }

/* люди */
.plate { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--text);
  border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.plate b { color: var(--accent); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }
.avatar.sm { width: 36px; height: 36px; font-size: 17px; }
.avatar.xs { width: 28px; height: 28px; font-size: 14px; margin-left: -6px; border: 2px solid var(--surface); }
.avatars { display: flex; padding-left: 6px; }
.quote { font-style: italic; margin-top: 10px; }
.menu-dots { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 50%; background: var(--surface-2); font-size: 18px; }
.plist .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist .item:last-child { border-bottom: 0; }
.plist .grow { flex: 1; min-width: 0; }
.plist .name { font-weight: 600; }

/* встречи */
.meeting .members { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.note { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.note.accent { background: var(--accent-soft); }
.meeting .row button { padding: 10px; min-height: 44px; font-size: 15px; background: var(--surface-2); }
.meeting .row button.btn-primary { background: var(--accent); }
.unread { display: inline-block; background: var(--danger); color: #fff; border-radius: 9px; font-size: 11px;
  padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* чат */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-text); }
.msg .who { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.msg .t { font-size: 11px; opacity: .6; text-align: right; margin-top: 2px; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); }
.composer .inner { max-width: 528px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { min-height: 44px; height: 44px; max-height: max(44px, 33vh); max-height: max(44px, 33dvh); min-width: 0; resize: none; padding: 11px 14px; line-height: 20px; overflow-y: hidden; white-space: pre-wrap; scrollbar-width: none; }
.composer textarea::-webkit-scrollbar { display: none; }
.composer textarea::placeholder { white-space: nowrap; overflow: visible; }
.composer button { flex: 0 0 44px; align-self: flex-end; width: 44px; height: 44px; min-height: 44px; max-height: 44px; padding: 0; }

/* формы */
label { display: block; font-size: 14px; color: var(--hint); margin: 14px 0 6px; }
input, textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
.counter { text-align: right; font-size: 12px; color: var(--hint); margin-top: 4px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toggle input { -webkit-appearance: none; appearance: none; flex: none; width: 28px; height: 28px; min-height: 0;
  padding: 0; margin: 0; border-radius: 50%; border: 2px solid rgba(133, 122, 114, .45); background: var(--surface);
  cursor: pointer; transition: background-color .15s, border-color .15s; }
.toggle input:checked { border-color: var(--accent); background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
  center / 18px no-repeat; }
.toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rules { padding-left: 38px !important; }
.rules li { margin-bottom: 8px; padding-left: 4px; }
.avpick { display: flex; flex-wrap: wrap; gap: 8px; }
.avpick button { width: 48px; height: 48px; min-height: 48px; padding: 0; font-size: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid transparent; }
.avpick button.on { border-color: var(--accent); background: var(--accent-soft); }

/* вход */
.logo { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); margin: 14vh 0 4px; }
/* 15.10: Яндекс ID — по гайду Яндекса: чёрная кнопка с логотипом «Я», чтобы не спорить с оранжевой */
.btn-ya { background: #000; color: #fff; font-weight: 600; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-ya .ya-logo { width: 24px; height: 24px; border-radius: 50%; background: #fc3f1d; color: #fff; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; text-box: none; }
.btn-vk { background: #0077ff; color: #fff; font-weight: 600; width: 100%; }
.code-input { letter-spacing: .4em; font-size: 22px; text-align: center; }

.empty { text-align: center; padding: 34px 10px; }
.empty .big { font-size: 44px; margin-bottom: 8px; }

nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface);
  border-top: 1px solid var(--line); padding: 2px 6px calc(2px + env(safe-area-inset-bottom)); z-index: 5; }
nav .inner { display: flex; width: 100%; max-width: 560px; margin: 0 auto; }
nav button { flex: 1; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--hint); padding: 5px 6px 3px; min-height: 46px; border-radius: 12px; }
nav button .ico { font-size: 20px; line-height: 1; height: 24px; display: flex; align-items: center; justify-content: center; }  /* одна высота у всех иконок, подписи на одной линии */
nav button.on { color: var(--accent); font-weight: 600; }

#toast { position: fixed; left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); background: var(--text);
  color: var(--bg); padding: 12px 16px; border-radius: 14px; z-index: 30; max-width: 528px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
#toast .msg-t { flex: 1; }
#toast button { background: transparent; color: var(--accent); font-weight: 700; min-height: 32px; padding: 4px 6px; }
#sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 20; display: flex; align-items: flex-end; }
#sheet .panel { background: var(--bg); width: 100%; max-width: 560px; margin: 0 auto; border-radius: 22px 22px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.n-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); font-size: 19px; line-height: 1; color: var(--hint); }
.notif.good .n-ico { background: var(--accent-soft); color: var(--accent); }
.notif.soon .n-ico { background: #fde8c8; }
.n-body { flex: 1; min-width: 0; }
.n-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.ntext { color: var(--hint); margin: 2px 0 4px; overflow-wrap: anywhere; }
.notif.unread-n .ntext { color: var(--text); }
/* предупреждения модератора — отдельным цветом, чтобы не терялись */
.notif.warn { background: #fdecea; border-radius: 14px; padding: 14px 12px; margin: 8px 0; border-bottom: 0; }
.notif.warn .n-ico { background: #fbd5d0; }
.notif.warn .n-title { color: #b3261e; }
@media (prefers-color-scheme: lamun-off) {
  .notif.warn { background: #3a201d; } .notif.warn .n-ico { background: #5a2a24; } .notif.warn .n-title { color: #ff8a80; }
  .notif.soon .n-ico { background: #4a3a1e; }
}
/* модерация: плитки статистики — число крупно, подпись мелко, одной высоты, без тяжёлой тени */
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat div { background: var(--surface); border-radius: 14px; padding: 12px 12px 10px; font-size: 13px; line-height: 1.25; color: var(--hint);
  min-height: 72px; display: flex; flex-direction: column; justify-content: space-between; }
.stat b { display: block; font-size: 22px; line-height: 1.1; color: var(--text); margin-bottom: 6px; }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 6px; }
.card .desc.more { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* версия 0.2 */
/* журнал PWA, №7, версия 0.3: как в Яндекс Про — выбранный чип залит, с крестиком «убрать» */
/* 14.10: выбранные интересы — мягкие (персиковый фон, оранжевый текст), чтобы не спорили с переключателем и главной кнопкой */
.chips.multi .chip.on { background: var(--accent-soft); border-color: var(--chip-on-line); color: var(--accent); }
.chips.multi .chip.on::after { content: "✕"; margin-left: 8px; font-size: .85em; opacity: .9; }
.segmented.tabs3 button { font-size: 14px; padding: 8px 4px; }
.segmented .n { opacity: .7; font-weight: 400; margin-left: 3px; }
.meeting { position: relative; }
.meeting .menu-dots { top: 10px; right: 10px; }
.meeting h3 { padding-right: 44px; }
.members .avatars .avatar { cursor: pointer; }
.chat .who { cursor: pointer; }
.msg { -webkit-touch-callout: none; }
.msg.pressed { opacity: .6; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.source { margin-top: 10px; font-size: 12px; color: var(--hint); opacity: .8; }
.source a { color: inherit; }
.pick-day { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }

/* 0.3: фото человека и картинки события (журнал PWA, №22–23) */
.avatar.photo { overflow: hidden; padding: 0; background: var(--surface-2); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-actions { margin-top: 12px; gap: 24px; }  /* «Убрать фото» — кнопка без фона, отступ больше, чтобы не липла к «Сменить фото» */
.photo-actions button { flex: none; }
.card .cover { flex: 0 1 168px; min-height: 0; position: relative; margin: -22px -22px 14px; border-radius: 24px 24px 0 0; overflow: hidden; background: var(--surface-2); }
.card.static .cover { flex-basis: 200px; height: 200px; }
.cover.ph { display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--accent-soft)); }
.cover.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.cover.gallery img.on.ld { opacity: 1; }
/* обложка ещё грузится — подложка переливается, как скелетон; загрузилась — анимация стоп */
.cover.gallery { background: linear-gradient(90deg, var(--surface-2) 25%, var(--sk-hi) 45%, var(--surface-2) 65%); background-size: 300% 100%;
  animation: sk 1.3s ease-in-out infinite; }
.cover.gallery:has(img.ld) { animation: none; background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .cover.gallery { animation: none; } }
.cover .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.cover .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .3); }
.cover .dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--surface-2); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; line-height: 24px; }
button.thumb.add { min-height: 0; padding: 0; border: 2px dashed rgba(133, 122, 114, .45); background: transparent; color: var(--hint); font-size: 28px; }

/* пустая лента: второстепенные действия — спокойный сгруппированный список, как в настройках iOS (журнал PWA, №32) */
.cells { margin-top: 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-align: left; }
.row-cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; margin: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--text); text-align: left; font: inherit; font-weight: 400; cursor: pointer; }
.row-cell + .row-cell { border-top: 1px solid var(--line); }
a.row-cell { text-decoration: none; }
.help-line { margin-top: 16px; }
.row-cell:active { background: var(--surface-2); }
.rc-ico { flex: none; width: 28px; display: flex; align-items: center; justify-content: center; color: var(--hint); font-size: 17px; }
.rc-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.rc-text b { font-weight: 500; font-size: 15px; }
.rc-text span { color: var(--hint); font-size: 13px; line-height: 1.3; }
.rc-chev { flex: none; color: var(--hint); opacity: .6; font-size: 20px; line-height: 1; }
nav button .ico.me { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); }
nav button .ico.me img { width: 100%; height: 100%; object-fit: cover; display: block; }
nav button.on .ico.me { box-shadow: 0 0 0 2px var(--accent); }
/* невысокие экраны (iPhone SE): карточка компактнее, чтобы всё помещалось без обрезки */
@media (max-height: 700px) {
  .card { padding: 18px; }
  .card .cover { margin: -18px -18px 12px; }
  .card h1 { font-size: 22px; margin-bottom: 8px; }
  .card .tag { margin-bottom: 10px; }
}

/* свёрнутая оценка встречи (журнал PWA, №42) */
.note.rated { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0 0 0 4px; min-height: 0; margin-left: auto; color: var(--accent); font: inherit; font-weight: 600; box-shadow: none; width: auto; }

/* карточка во «Встречах» открывается нажатием (журнал PWA, №43) */
.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap .chev { color: var(--hint); opacity: .6; font-weight: 400; margin-left: 6px; }
.tap:active h3 { opacity: .7; }

/* экран ошибки загрузки и плашка «нет интернета» (журнал PWA, №56) */
.err-screen { text-align: center; padding: 48px 16px 24px; }
.err-screen svg { width: 132px; height: auto; margin: 0 auto 12px; display: block; }
.err-screen h2 { margin: 8px 0 6px; }
.err-screen p { max-width: 300px; margin: 0 auto 22px; }
.netbar { position: sticky; top: 0; z-index: 60; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px;
  background: #3a3330; color: #fff; font-size: 13px; text-align: center; }

/* журнал PWA, №58: вкладки «Встреч» — чипсы; компактный список «Хочу пойти»; плашка «Компания» */
.tabchips { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabchips::-webkit-scrollbar { display: none; }
.tabchips button { flex: none; white-space: nowrap; min-height: 36px; padding: 7px 11px; border-radius: 999px; font-size: 14px;
  background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.tabchips button.on { background: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent) inset; } /* №58: только цвет, размер как у остальных */
.tabchips .n { opacity: .75; margin-left: 4px; font-weight: inherit; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; }
.lmain { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.lthumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.ltext { flex: 1; min-width: 0; }
.ltitle { font-weight: 700; font-size: 16px; line-height: 1.25; }
.lstatus { margin-top: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lstatus.ok, .ctitle.ok { color: var(--ok); }
.lico { flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px; line-height: 1; cursor: pointer; }
.lico.heart { background: var(--accent-soft); color: var(--accent); }
.lico.ok { background: var(--ok-soft); color: var(--ok); }
.cpanel { margin-top: 12px; }
.cpanel .ctitle { font-weight: 700; font-size: 16px; }
.cpanel .members { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 14px; }
.cpanel .hint.small { margin-top: 6px; }
.cpanel .stack { margin-top: 14px; }
:root { --ok-soft: #e3f1e7; }
@media (prefers-color-scheme: lamun-off) { :root { --ok-soft: #1f3327; } }

/* журнал PWA, №60: «Для кого» — метка в карточке события рядом с категорией; зафиксированный выбор пола/возраста */
.card .tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; flex-shrink: 0; }
.card .tagrow .tag { margin: 0; }
.chip[disabled] { opacity: .45; cursor: default; }

/* журнал PWA, №61: карточка в ленте — обложка всегда 16:9 (под неё режем и свои картинки, и афиши из Timepad/KudaGo),
   название не больше трёх строк, описание обрезается без прокрутки; если что-то не влезло — «Подробнее ›» */
.card .cover { flex: none; aspect-ratio: 16 / 9; height: auto; }
.card:not(.static) .cover { max-height: 36%; }  /* на невысоких экранах обложка ниже (обрезается по краям), текст важнее */
.card.static .cover { flex-basis: auto; height: auto; }
.card:not(.static) h1 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:not(.static) .desc { overflow: hidden; }
.card .more-link { align-self: flex-start; background: none; border: 0; box-shadow: none; width: auto; min-height: 0;
  padding: 4px 0 0; color: var(--accent); font: inherit; font-weight: 600; font-size: 15px; }
.card .more-link[hidden] { display: none; }
@media (max-height: 700px) {  /* iPhone SE и подобные: карточка ниже — название в две строки, обложка ниже */
  .card:not(.static) h1 { -webkit-line-clamp: 2; }
  .card:not(.static) .cover { max-height: 30%; }
  .card:not(.static) .foot { display: none; }
}
/* журнал PWA, №61: заголовок события спокойнее — 26 px съедали полкарточки */
.card h1 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
@media (max-height: 700px) { .card h1 { font-size: 19px; } }

/* журнал PWA, №61: текст карточки — в своём блоке, который обрезается; нижняя строка всегда видна целиком,
   с отступом, в одну строку, справа «Читать полностью ›» */
.card .cbody { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.card.static .cbody { overflow: visible; }
.card .foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; margin-top: 0; }
.card .foot .ftext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .foot .more-link { flex: none; padding: 0; font-size: 14px; }
@media (max-height: 700px) { .card:not(.static) .foot { display: flex; } }
.card .cbody > * { flex-shrink: 0; }
.card .cbody > .desc { flex: 0 1 auto; min-height: 0; }

/* журнал PWA, №61: «Читать полностью» — шторка снизу; текст листается, ✕ / ♥ закреплены внизу */
#sheet .panel.evpanel { padding: 0; display: flex; flex-direction: column; max-height: 92vh; overflow: hidden; }
.evpanel .grab { flex: none; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0;
  background: rgba(120, 110, 100, .35); }
.evpanel .evscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 12px; }
.evpanel .card.flat { box-shadow: none; }
.evpanel .evbar { flex: none; display: flex; justify-content: center; gap: 40px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); }
.evpanel .evbar .round { width: 58px; height: 58px; font-size: 22px; }
/* №61: кнопки в шторке не на отдельной полосе — висят поверх текста, текст уходит под них с мягким растворением */
#sheet .panel.evpanel { position: relative; }
.evpanel .evscroll { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.evpanel .evbar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 0; padding-top: 28px;
  background: linear-gradient(to bottom, transparent, var(--bg) 45%); pointer-events: none; }
.evpanel .evbar .act { pointer-events: auto; }

/* №61, вариант А: шторка без двойной рамки — обложка во всю ширину, текст прямо на шторке, ручка поверх картинки,
   кнопки как в ленте */
#sheet .panel.evpanel { background: var(--surface); }
.evpanel .evscroll { padding: 0 0 calc(130px + env(safe-area-inset-bottom)); }
.evpanel .card.flat { padding: 0 20px; border-radius: 0; background: transparent; min-height: 0; box-shadow: none; }
.evpanel .card.flat .cover { margin: 0 -20px 16px; border-radius: 0; }
.evpanel .grab { position: absolute; top: 8px; left: 50%; margin: 0 0 0 -20px; z-index: 2;
  background: rgba(255, 255, 255, .85); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.evpanel .evbar { background: linear-gradient(to bottom, transparent, var(--surface) 45%); }
.evpanel .evbar .round { width: 66px; height: 66px; font-size: 24px; }
/* №61: карточка в ленте выше — под кнопками было пустое место; в описание помещается больше строк */
.deck { height: clamp(300px, calc(100vh - 315px), 600px); height: clamp(300px, calc(100dvh - 315px), 600px); }
.card:not(.static) .desc { margin-top: 8px; }
@media (max-height: 700px) { .card:not(.static) .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* №61: ✕ / ♥ в ленте закреплены на одной высоте над нижним меню, никогда не уходят под него */
.actions.pinned { position: fixed; left: 0; right: 0; bottom: calc(var(--navh, 72px) + 12px); z-index: 5; }

/* №62: точка на значке «Встречи» — там что-то ждёт ответа */
nav button .ico { position: relative; }
nav .navdot { position: absolute; top: -1px; right: -5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
nav .navdot { top: 4px; right: -11px; width: 8px; height: 8px; box-shadow: none; }
nav .navdot { top: 1px; right: -3px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--surface); }

/* №61, правки с телефона Алёны:
   — экран ленты не прокручивается целиком (как сайт) — всё помещается в экран, как в приложениях;
   — обложка всегда во всю ширину карточки: высота 16:9 от ширины, но не больше 36% карточки (Safari сужал картинку);
   — строка «Подробнее и билеты» ближе к описанию, чтобы влезали две целые строки */
body.noscroll { position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; }
.card:not(.static) .cover { aspect-ratio: auto; width: auto; align-self: stretch;
  height: min(calc((min(100vw, 560px) - 32px) * .5625), 36%); max-height: none; }
@media (max-height: 700px) { .card:not(.static) .cover { height: min(calc((min(100vw, 560px) - 32px) * .5625), 30%); } }
.card:not(.static) .source { margin-top: 6px; }
/* №61: плотнее заголовок и строки дат/адреса — в описание влезает больше целых строк */
.card h1 { line-height: 1.15; }
.card:not(.static) .meta { margin-bottom: 5px; }
.card:not(.static) .tagrow { margin-bottom: 10px; }

/* №63: «Встречи» — тот же переключатель, что в ленте; подписи в одну строку */
.segmented.tabs3 button { white-space: nowrap; font-size: 14px; padding: 8px 4px; }
.segmented .n { opacity: .75; font-weight: inherit; margin-left: 4px; }
/* №58: строки «Хочу пойти» одной высоты — заголовок максимум в 2 строки, по этой высоте и все карточки */
.ltitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lrow { box-sizing: border-box; height: 108px; }
.ltext .hint.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* сердечко оптически выше центра — опускаем на 2 px во всех круглых кнопках ♥ */
.round.yes, .lico.heart { padding-top: 3px; line-height: 1; }

/* №63: правила сервиса и галочка о правах на картинки */
.rules-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }  /* 15.10: ссылки — оранжевые, как везде */
.consent { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; font-size: 14px; color: var(--text); cursor: pointer; }
.consent[hidden] { display: none; }
/* галочка согласия — тот же круглый вид, что у переключателей в профиле (на iPhone был белый квадрат) */
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0;
  border-radius: 50%; border: 2px solid rgba(133, 122, 114, .45); background: var(--surface); cursor: pointer; transition: background-color .15s, border-color .15s; }
.consent input:checked { border-color: var(--accent); background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
  center / 16px no-repeat; }
.consent.need input { border-color: var(--danger); }
.consent.need span { color: var(--danger); }
/* чат: фото автора сообщения, если загружено (раньше всегда показывался значок-смайлик) */
.msg .who { display: flex; align-items: center; gap: 5px; }
.msg .who-ph { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }

/* №65, версия 0.7: «Встречи» — строки одной высоты; плашка «Компания»; «Не состоялось» */
.lrow { height: 120px; }
.lstatus.accent { color: var(--accent); }
.lstatus.grey { color: var(--hint); font-weight: 400; }
.lico.ok { position: relative; }
.lico .cnt { position: absolute; top: -4px; right: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface); box-sizing: border-box; }
.lico.x { background: var(--surface-2); color: var(--hint); font-size: 16px; }
.lrow.gone { background: var(--surface); }
.lrow.leaving { opacity: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease; }
.lrow.gone .lthumb { filter: grayscale(1); opacity: .6; }
.lrow.gone .ltitle { color: var(--hint); -webkit-line-clamp: 2; }
.lrow.gone .hint { opacity: .85; }
.lreason.ok { color: var(--hint); }
.lreason { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--danger); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h2.sect { margin: 22px 2px 10px; font-size: 16px; color: var(--hint); }
.gone-cover { margin: 0 0 12px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.gone-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .7; display: block; }
.gone-reason { background: #f8e1dd; color: var(--danger); font-weight: 700; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }

.cpanel { position: relative; }
.cpanel .menu-dots { top: 10px; right: 10px; width: 36px; height: 36px; min-height: 36px; }
.cpanel .ctitle { padding-right: 44px; }
.cpanel .ctitle.now { color: var(--ok); display: flex; align-items: center; gap: 8px; }
/* «Идёт сейчас» — зелёным, кружок слегка пульсирует */
.livedot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none;
  box-shadow: 0 0 0 0 rgba(47, 143, 91, .45); animation: livepulse 1.8s ease-out infinite; }
.lstatus.live { color: var(--ok); display: flex; align-items: center; gap: 6px; overflow: visible; } /* пульсация выходит за границы строки */
.lstatus .livedot { width: 8px; height: 8px; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(47, 143, 91, .45); } 70% { box-shadow: 0 0 0 7px rgba(47, 143, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 143, 91, 0); } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }
.arow { display: flex; align-items: center; margin-top: 12px; padding-left: 6px; cursor: pointer; }
.astack { display: flex; align-items: center; }
.avatar.ar { width: 34px; height: 34px; font-size: 15px; margin-left: -6px; border: 2px solid var(--surface); box-sizing: border-box; flex: none; }
.avatar.ar.more { background: var(--surface-2); color: var(--hint); font-size: 12px; font-weight: 700; letter-spacing: -.5px; text-indent: -2px; }
.addp { width: 30px; height: 30px; min-height: 0; padding: 0; margin: 0 2px 0 6px; border-radius: 50%; flex: none;
  background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; box-shadow: none; }
.arow-chev { margin-left: auto; color: var(--hint); font-size: 24px; line-height: 1; padding: 0 2px 0 10px; }
.cpanel .ccap { margin-top: 8px; }
.quiet-link { background: none; border: 0; box-shadow: none; color: var(--accent); font-weight: 500; font-size: 15px; min-height: 40px; width: 100%; padding: 6px 0; }
.quiet-link.grey { color: var(--hint); font-weight: 400; font-size: 14px; margin-top: 10px; }
.btn-a { display: block; text-decoration: none; }
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shead h2 { margin: 0; }
.okmark { color: var(--ok); font-size: 13px; font-weight: 600; white-space: nowrap; }
.optico { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none;
  display: flex; align-items: center; justify-content: center; }
.plist .rc-chev { color: var(--hint); font-size: 20px; }

/* «Хотят пойти»: шапка, общие интересы, карточка «Пока это все» */
.ph-title { margin: 4px 0 2px; }
.ph-sub { margin: 0 0 12px; }
.card .ichips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card .ichips .tag { margin: 0; }
.endcard { text-align: center; padding: 34px 22px 20px; }
.endcard .endico { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.endcard h2 { margin: 0 0 8px; }
.endcard .hint { margin: 0 0 18px; }
@media (prefers-color-scheme: lamun-off) { .gone-reason { background: #3a2420; } }
/* шторка «Компания»: «✓ иду» в одну колонку — место под «›» есть и у своей строки */
.plist .item .okmark { margin-left: auto; }
.plist .item .rc-chev { width: 14px; text-align: right; flex: none; }

/* №67: автор поменял время или место — бледная тёплая плашка, тёмный заголовок с оранжевой точкой (вариант А3) */
.chplate { background: #faf7f4; border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
/* с плашкой переноса ⋯ встаёт в строку заголовка компании, а не над плашкой */
.cpanel.haschange .menu-dots { position: static; float: right; margin: -6px -4px 0 8px; }
.chtitle { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.chdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.chline { margin-top: 4px; font-size: 15px; }
.chline s { color: var(--hint); }
.chbtns { margin-top: 12px; gap: 8px; }
.chbtns button { min-height: 44px; }
@media (prefers-color-scheme: lamun-off) { .chplate { background: #2a2521; } }
/* форма правки: какие поля увидят все, и как было */
.seeall { color: var(--accent); font-size: 12px; font-weight: 600; margin-left: 6px; }
.hint.was { margin-top: 4px; }
/* №66: обложка при создании */
.thumb[data-pick] { cursor: pointer; }
.coverbadge { position: absolute; left: 4px; right: 4px; bottom: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 6px; text-align: center; padding: 2px 0; pointer-events: none; }
/* «Мои»: кнопки по размеру текста, а не во всю ширину (замечание Алёны, 12.10) */
.minibtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.minibtns button { width: auto; min-height: 38px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
/* «Пока это все»: тот же зелёный «человек +», что в плашке компании — одна иконка «позвать» */
.endcard .endico { background: var(--ok-soft); color: var(--ok); }
/* «Иду» / «Не смогу» в плашке переноса — пониже обычных кнопок (замечание Алёны, 12.10) */
.chbtns button { min-height: 40px; padding: 8px 12px; font-size: 16px; }
.cpanel .ctitle { padding-right: 0; }

/* Кнопки-ссылки без фона: над текстом и под ним — одинаковое расстояние (замечание Алёны, 12.10).
   Зона нажатия остаётся 40 px за счёт отрицательных отступов. */
.quiet-link, .quiet-link.grey { min-height: 0; padding: 10px 0; line-height: 1.3; margin: -4px 0 -10px; }
.endcard .quiet-link { margin: 0 0 -10px; }
.stack > .btn-ghost:last-child { min-height: 0; padding: 10px 0; line-height: 1.3; margin: 0 0 -10px; }

/* №68: карточка человека в «Хотят пойти» */
.card.person { padding: 0; overflow: hidden; }
.card.person .phero { flex: 1 1 auto; min-height: 110px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fbe9dd, #f6d9c6); display: flex; align-items: center; justify-content: center; }
.card.person .phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.person .phero span { font-size: clamp(56px, 16vh, 110px); line-height: 1; font-weight: 700; color: var(--accent); }
.card.person .phero .menu-dots { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .88); }
.card.person .pbody { flex: none; padding: 14px 18px 18px; }
.card.person h1 { margin: 0 0 2px; font-size: 24px; }
.card.person .pabout { font-size: 16px; line-height: 1.4; margin: 10px 0 12px; }
.card.person .ichips { margin-top: 0; }
@media (prefers-color-scheme: lamun-off) { .card.person .phero { background: linear-gradient(160deg, #3a2a20, #2e231c); } }
/* №69: ⋯ на обложке события (и на фото человека) — полупрозрачный круг */
.card .evdots { position: absolute; top: 12px; right: 12px; z-index: 3; }
.card .evdots, .card.person .phero .menu-dots { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* №72: аватарки-иллюстрации */
.avatar.art { background: var(--surface-2); }
.avpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.avpick button { width: 100%; height: auto; aspect-ratio: 1; min-height: 0; padding: 0; border-radius: 50%; overflow: hidden;
  border: 0; background: var(--surface-2); box-shadow: 0 0 0 0 var(--accent); transition: box-shadow .12s; }
.avpick button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avpick button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }

/* №74: карточка участника в шторке — без кнопок-негатива, ⋯ в углу */
#sheet .panel.pspanel { position: relative; }
#sheet .psdots { position: absolute; top: 14px; right: 14px; background: var(--surface-2); }
#sheet .psheet { text-align: center; }
#sheet .psheet .psav { display: flex; justify-content: center; }
#sheet .psheet .psav .avatar { width: 96px; height: 96px; font-size: 40px; }
#sheet .psheet h2 { margin: 10px 0 2px; }
#sheet .pabout { font-size: 16px; line-height: 1.4; margin: 14px 0 12px; }
#sheet .ichips { display: flex; flex-wrap: wrap; gap: 6px; }
#sheet .ichips .tag { margin: 0; }

/* №76: шапка шторок причин */
#sheet .rshead { align-items: center; gap: 12px; flex: none; margin-bottom: 12px; }
#sheet .rsev { border-radius: 10px; }

/* №77: закреплённая шапка чата */
.chathead { position: sticky; top: 0; z-index: 5; background: var(--bg);
  margin: calc(-12px - env(safe-area-inset-top)) -16px 8px; padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
  box-shadow: 0 1px 0 var(--line); }
.chathead .ch-title { font-size: 20px; line-height: 1.25; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chathead .ch-sub { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* макет: станции метро под адресом */
.card .metro { display:flex; flex-wrap:wrap; gap:4px 12px; margin:2px 0 8px 0; }
.card .mst { display:inline-flex; align-items:center; gap:5px; font-size:14px; color:var(--hint); }
.card .mst i { width:16px; height:16px; border-radius:50%; color:#fff; font-style:normal; font-size:10px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; line-height:1; }

/* №83: интересы в карточке «Хотят пойти» — не больше N строк, последний чипс «+N» */
.ichips.lim { overflow: hidden; }
.ichips .tag.more { background: var(--line); color: var(--text); cursor: pointer; }
.card .ilink { display: block; border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }

/* профиль: «Выйти» — серая, «Удалить мои данные» — без фона; отступ от нижнего меню */
.profout { margin: 8px 0 24px; }
.profout > button { flex: 1; white-space: nowrap; }

/* №90: «Фото на проверке» — компактные кнопки */
.phact { margin-top: 10px; }
.phact > button { min-height: 40px; padding: 8px 14px; font-size: 15px; flex: 1; }

/* №91: экран события — главная кнопка закреплена над нижним меню на всю ширину (как «Откликнуться» в hh) */
.evpin { position: fixed; left: 0; right: 0; bottom: var(--navh, 72px); z-index: 5; max-width: 560px; margin: 0 auto;
  padding: 12px 16px; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 20px rgba(60, 40, 25, .08); }
.evpin .btn-a { display: block; }
body.evpage main { padding-bottom: calc(104px + 72px); }
body.evpage .cpanel .online-dup { display: none; }  /* «ссылку пришлём за 15 минут» уже написано в карточке */

/* модерация: строка с разбивкой оценок под плитками */
.rates { margin: 10px 2px 0; }
.rates .bad { color: var(--danger); font-weight: 600; }

/* модерация: свой фон и пометка под заголовком */
body.adminpage { --bg: #d5e0ec; --surface-2: #c8d5e3; }  /* плашки и серые кнопки в модерации — холодные, под фон */
body.adminpage, body.adminpage main { background: var(--bg); }
.modbadge { margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: #3b5b7a; }
@media (prefers-color-scheme: lamun-off) { body.adminpage { --bg: #161b21; --surface-2: #232b34; } .modbadge { color: #8fb0cf; } }

/* полоса под часами и батареей: при прокрутке текст не залезает под строку состояния iPhone */
body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 30; }

/* №95: «Сегодня» / «Завтра» / «Последние дни» — спокойная оранжевая метка перед категорией */
.cover { position: relative; }
.cover .tag.soon { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--ok); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }  /* зелёная: оранжевая теряется на наших тёплых обложках */

/* №96: шапка (назад, заголовок, 🛡, 🔔) закреплена сверху, как в приложениях; тень — только когда страницу прокрутили */
.topbar { position: sticky; top: 0; z-index: 6; background: var(--bg);
  margin: calc(-12px - env(safe-area-inset-top)) -16px 6px; padding: calc(12px + env(safe-area-inset-top)) 16px 6px;
  transition: box-shadow .15s; }
/* при прокрутке шапка — плашка цвета фона со скруглёнными нижними углами и мягкой тенью */
body.scrolled .topbar { background: var(--bg); border-radius: 0 0 24px 24px; box-shadow: 0 6px 20px rgba(60, 40, 25, .08); }
.topbar { transition: box-shadow .15s, background-color .15s, border-radius .15s; }
body .chathead .topbar { position: static; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }  /* без второй плашки внутри шапки чата */
/* №96: на экранах входа и знакомства шапка — это одна кнопка «← Назад»; её тоже закрепляем */
#app > .back { position: sticky; top: 0; z-index: 6; display: block; width: calc(100% + 32px); text-align: left; border-radius: 0;
  background: var(--bg); margin: calc(-12px - env(safe-area-inset-top)) -16px 6px; padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
  min-height: 0; transition: box-shadow .15s; }
body.scrolled #app > .back { background: var(--bg); border-radius: 0 0 24px 24px; box-shadow: 0 6px 20px rgba(60, 40, 25, .08); }

/* шапка чата — та же плашка со скруглением снизу */
.chathead { background: var(--bg); border-radius: 0 0 24px 24px; box-shadow: 0 6px 20px rgba(60, 40, 25, .08); }
/* полоса под часами — цвета фона, как и шапка */

/* №97: закреплённая кнопка онбординга — та же белая плашка со скруглением сверху, что и на экране события */
.obpin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-width: 560px; margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: 0 -6px 20px rgba(60, 40, 25, .08); }
.obpin .stack { margin: 0; }
body.obpage main { padding-bottom: 150px; }

/* №98: «С кем остаться на связи?» — аватары с + / ✓; оранжевая — ждём ответ, зелёная — взаимно */
.stayrow { display: flex; flex-wrap: wrap; gap: 12px 6px; }
.stay { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; min-height: 0; padding: 0;
  background: none; border: 0; box-shadow: none; color: var(--text); font: inherit; }
.stay .stav { position: relative; display: block; }
.stay .avatar { width: 60px; height: 60px; font-size: 24px; }
.stay i { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(40, 25, 15, .18); }
.stay i svg { width: 12px; height: 12px; display: block; }
.stay.wait .avatar { outline: 3px solid var(--accent); outline-offset: 2px; }
.stay.wait i { background: var(--accent); color: #fff; }
.stay.mutual .avatar { outline: 3px solid var(--ok); outline-offset: 2px; }
.stay.mutual i { background: var(--ok); color: #fff; }
.stay b { font-size: 14px; font-weight: 600; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay .stst { font-size: 11px; line-height: 1.2; min-height: 13px; color: var(--hint); }
.stay.mutual .stst { color: var(--ok); font-weight: 600; }
#sheet .shhead { align-items: center; gap: 12px; }
#sheet .shhead .name { font-weight: 700; font-size: 17px; }
/* «Мои контакты»: группы «Видят» / «Не видят» */
.grouphead { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 6px; }
.plist .item .toggle { flex: none; }
/* аватарки контактов на карточке перед «Хотят пойти» */
.card .foot .friends { flex: none; display: flex; align-items: center; padding: 0 0 0 6px; margin-right: -2px; min-height: 0; width: auto;
  background: none; border: 0; box-shadow: none; }
.card .foot .friends .avatar.xs { width: 24px; height: 24px; margin-left: -8px; border: 2px solid var(--surface); }
.card .foot .friends .fmore { margin-left: -8px; box-sizing: border-box; width: 24px; height: 24px; flex: none; padding: 0; border-radius: 50%; letter-spacing: -.3px; background: var(--surface-2);
  border: 2px solid var(--surface); font-size: 11px; font-weight: 700; color: var(--hint); display: grid; place-items: center; }
#sheet .panel:has(.fhead) { padding-top: 0; }
#sheet .fhead { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 20px 0 8px; }
/* №101: событие отменили — компания и чат остаются на сутки */
.gonesub { color: var(--accent); font-weight: 600; }
.msg-sys { text-align: center; margin: 14px 0; }
.msg-sys > div { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; max-width: 300px; padding: 10px 16px;
  border-radius: 16px; background: var(--accent-soft); font-size: 14px; line-height: 1.4; }
.msg-sys span { color: var(--hint); }
.msg-sys.plain { margin: 10px 0; font-size: 13px; }
.msg-sys .link-btn { margin-top: 4px; font-weight: 600; align-self: center; width: auto; text-align: center; }
.msg-sys .link-btn { margin: 4px auto 0 !important; padding: 0; }

/* №102: свои сообщения — шалфей; компактные «пузыри»: время в конце последней строки */
.chat { gap: 6px; }
.msg { padding: 6px 10px 6px 12px; border-radius: 14px; font-size: 16px; line-height: 1.35; }
.msg.me { background: #e3ecdf; color: #1f2a1c; box-shadow: var(--shadow); }
.msg .who { margin-bottom: 0; }
.msg .t { float: right; margin: 6px 0 -4px 10px; line-height: 1; font-size: 11px; opacity: .55; }
@media (prefers-color-scheme: lamun-off) { .msg.me { background: #2e3b2c; color: #e4eee0; } }
/* №102: служебное «Время/место встречи изменилось» с ответом */
.msg-sys.wide > div { width: 100%; max-width: 320px; box-sizing: border-box; }
.msg-sys .chg { color: var(--text); }
.msg-sys .chg s { color: var(--hint); }
.msg-sys .chans { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.msg-sys .chans .ask { color: var(--text); margin-top: 8px; }
.msg-sys .chans .row { display: flex; gap: 8px; margin-top: 8px; align-self: stretch; }
.msg-sys .chans .row button { flex: 1; min-height: 34px; padding: 6px 12px; font-size: 15px; border-radius: 12px; }
.msg-sys .chans .btn-pale { background: var(--surface); }
.msg-sys .chans > span:only-child { margin-top: 6px; color: var(--hint); }
/* №104: скелетоны экранов — появляются, только если загрузка дольше 0,3 сек */
:root { --sk-card: #faf7f3; --sk-hi: #f4eee8; }
@media (prefers-color-scheme: lamun-off) { :root { --sk-card: #1d1916; --sk-hi: #36302b; } }
.skwrap { animation: skin .25s ease-out .3s both; }
@keyframes skin { from { opacity: 0; } to { opacity: 1; } }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--sk-hi) 45%, var(--surface-2) 65%); background-size: 300% 100%;
  animation: sk 1.3s ease-in-out infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skc { background: var(--sk-card); border-radius: 24px; box-shadow: 0 1px 3px rgba(60, 40, 20, .05); overflow: hidden; }
.skrow { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 12px; border-radius: var(--radius); }
.skcircles { display: flex; justify-content: center; gap: 44px; margin-top: 18px; }
.skchat { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .skwrap { animation: none; } }

/* №106: цвета тревожных плашек. Розовый — сорвалось (отклонили, отменили, не собралась, предупреждение);
   персиковый — изменилось, нужен ответ (перенос времени или места) */
.lstatus.bad, .gonesub.bad { color: var(--danger); }
.msg-sys.bad > div { background: #fdecea; }
.msg-sys.bad b { color: #b3261e; }
.chplate { background: var(--accent-soft); }
.chplate .btn-pale { background: rgba(255, 255, 255, .55); color: #9a4a1f; }
.notif.chg { background: var(--accent-soft); border-radius: 14px; padding: 14px 12px; margin: 8px 0; border-bottom: 0; }
.notif.chg .n-ico { background: #f7d3bd; }
.notif.chg .n-title { color: var(--accent); }
@media (prefers-color-scheme: lamun-off) {
  .msg-sys.bad > div { background: #3a201d; } .msg-sys.bad b { color: #ff8a80; }
  .notif.chg .n-ico { background: #5a3a28; }
}
/* №106: списки — своя стрелка вместо системной: на iPhone она наезжала на текст и стояла не по центру */
select { -webkit-appearance: none; appearance: none; padding-right: 42px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23857a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 14px; }
@media (prefers-color-scheme: lamun-off) {
  select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23a39a92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5l4 4 4-4'/%3E%3C/svg%3E"); }
}

/* №106: в розовой и персиковой плашке — один цветовой тон и контрастный текст (без серого и без оранжевой ссылки на розовом) */
.msg-sys.bad > div { color: #5c2f29; }
.msg-sys.bad span { color: #5c2f29; }
.msg-sys.bad .link-btn { color: #b3261e; }
.notif.warn .ntext { color: #5c2f29; }
.notif.warn .hint { color: #8f5a52; }
.notif.chg .ntext { color: #5a3420; }
.notif.chg .hint { color: #94603f; }
@media (prefers-color-scheme: lamun-off) {
  .msg-sys.bad > div, .msg-sys.bad span, .notif.warn .ntext { color: #f3d6d2; }
  .msg-sys.bad .link-btn { color: #ff8a80; }
  .notif.warn .hint { color: #c79a93; }
  .notif.chg .ntext { color: #f3dccd; } .notif.chg .hint { color: #c9a088; }
}
/* непрочитанное в чате — просто точка, без числа */
.lico .cnt { width: 12px; height: 12px; top: -1px; right: -1px; font-size: 0; border: 2px solid var(--surface); }
/* заголовок отмены — красный, как в уведомлениях */
.msg-sys.bad .link-btn { color: var(--text); }
@media (prefers-color-scheme: lamun-off) { .msg-sys.bad .link-btn { color: var(--text); } }
/* «Похожие события» — кнопка на всю ширину плашки: тёмно-розовая с белым текстом, в паре с «Иду» в плашке переноса */
.msg-sys .simbtn { align-self: stretch; margin-top: 10px; min-height: 34px; padding: 6px 12px; font-size: 15px; border-radius: 12px;
  color: #fff; font-weight: 600; }  /* фон — var(--bad-btn) ниже; цвет временный, подобрать (бэклог) */

/* кнопки в служебных плашках: полезное действие — темнее плашки («Иду», «Похожие события»),
   нежелательное — светлее («Не смогу»); текст в тон плашки */
.msg-sys .chans .btn-pale { background: rgba(255, 255, 255, .55); color: #9a4a1f; }
@media (prefers-color-scheme: lamun-off) { .msg-sys .chans .btn-pale { background: rgba(255, 255, 255, .08); color: #f0b48f; } }
/* №106: текст в кнопках — по центру между линией заглавных и базовой линией (а не по всей высоте строки со
   свисающими элементами): на iPhone текст оптически сидел ниже центра. Где браузер не умеет — как раньше */
@supports (text-box: trim-both ex alphabetic) {
  .btn-primary, .btn-soft, .btn-pale, .btn-ghost, .btn-line, .btn-danger, .segmented button, .chipbtn, .msg-sys button,
  .chbtns button, .phact button { text-box: trim-both ex alphabetic; }
}
/* №106: «сорвалось» — один тёплый красный #c43a2c на заголовке, мелком тексте и кнопке;
   розовый фон плашек сдвинут в тёплую сторону, чтобы не спорил с красным */
:root { --bad-ink: #c43a2c; --bad-small: #c43a2c; --bad-btn: #cb4a3c; }
@media (prefers-color-scheme: lamun-off) { :root { --bad-ink: #ff8a80; --bad-small: #ff8a80; --bad-btn: #b83a30; } }
.msg-sys.bad b, .notif.warn .n-title { color: var(--bad-ink); }
.gonesub.bad, .lstatus.bad, .lreason, .tag.bad { color: var(--bad-small); }
.msg-sys .simbtn { background: var(--bad-btn); }  /* кнопка чуть бледнее заголовка; белый текст: контраст 4,6:1 */
.msg-sys.bad > div, .notif.warn { background: #fcebe4; }
.notif.warn .n-ico { background: #f8d6cb; }
/* №109: события по источникам в модерации */
.srcbox { margin-top: 16px; }
.srct { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.srct th { font-weight: 500; color: var(--hint); font-size: 12px; line-height: 1.25; text-align: right; vertical-align: bottom; padding: 4px 6px 6px 8px; }
.srct td { text-align: right; padding: 9px 6px 9px 6px; border: 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.srct td:first-child, .srct th:first-child { text-align: left; padding-left: 0; }
.srct tr.tot td { font-weight: 700; }
/* плашки статистики в модерации — ниже: меньше отступы, число и подпись ближе */
.stat div { padding: 8px 12px 7px; min-height: 0; }
.stat b { margin-bottom: 2px; }
/* №110: номер версии — только в модерации */
.appver-adm { margin: 2px 0 0; }

/* уведомления модератору: переключатель «Пользователь / Модератор», точка — новое на соседней вкладке */
.segmented button { position: relative; }
.segdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }
.segmented button.on .segdot { background: #fff; }

/* перенос встречи компанией: текстовая кнопка «Перенести» у даты в карточке события */
.meta.mwhen { display: flex; align-items: baseline; gap: 8px; }
.meta.mwhen .link-btn { margin-left: auto; font-size: inherit; flex: none; }
.ch-subrow { display: flex; align-items: baseline; gap: 10px; }
.ch-subrow .ch-sub { flex: 1; min-width: 0; }

.meta.mwhen { align-items: center; }
.mvico { flex: none; margin-left: auto; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); box-shadow: none; }

/* иконки шапки: линии цвета акцента; вариант Б — на персиковом круге, как иконка переноса */
.iconbtn.ico { color: var(--accent); }
.iconbtn.ico.soft { background: var(--accent-soft); box-shadow: none; }
/* точка непрочитанного — обводка цветом круга, касается купола колокольчика справа сверху */
.iconbtn.ico.soft .dot { border-color: var(--accent-soft); top: 6px; right: 8px; width: 10px; height: 10px; }

/* значки уведомлений — линейные иконки: цвет линии по типу плашки */
.notif .n-ico svg { display: block; }
.notif.soon .n-ico { color: #b5651d; }
.notif.warn .n-ico { color: var(--bad-ink); }
.notif.chg .n-ico { color: var(--accent); }
body.adminpage .notif .n-ico { color: #3b5b7a; }

/* поиск в «Найти» */
.sfield { position: relative; margin: 4px 0 14px; }
.sfield input { width: 100%; padding-left: 44px; padding-right: 40px; border-radius: 14px; }
.sfield .sico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hint); display: flex; }
.sfield .sclear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; min-height: 0; padding: 0;
  border-radius: 50%; background: var(--surface-2); color: var(--hint); box-shadow: none; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }  /* 17.10: крестик — SVG по центру круга (символ ✕ сидел выше) */
.sfield .sclear[hidden] { display: none; }
.sfield .sclear svg { display: block; }
.shint { margin: 4px 2px; }
.scount { margin: 0 2px 10px; }
.sempty p { margin: 0 0 8px; }
.sempty .btn-soft { margin-top: 10px; }
input[type=search]::-webkit-search-cancel-button { display: none; }

/* щит модерации в шапке — серо-голубой, как экран модерации */
.iconbtn.ico.mod { background: #dfe7ef; color: #3b5b7a; }
body.adminpage .iconbtn.ico.mod { background: #cdd9e5; }
@media (prefers-color-scheme: lamun-off) { .iconbtn.ico.mod { background: #232b34; color: #8fb0cf; } }
.scount.stitle { margin-top: 18px; }

/* модератору на странице события — жалобы на него, серо-голубым, как модерация */
.modplate { background: #d5e0ec; box-shadow: none; }
.modplate .mptitle { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #3b5b7a; margin-bottom: 8px; }
.modplate .note { background: #fff; }
.mrep + .mrep { margin-top: 6px; }
.evlink { color: inherit; text-decoration: none; }
@media (prefers-color-scheme: lamun-off) { .modplate { background: #1d242c; } .modplate .mptitle { color: #8fb0cf; } .modplate .note { background: #161b21; } }

/* кнопки модератора — в цвет щита: «Оставить» светло-голубая, главное действие в шторке — синяя */
.btn-mod { background: #dfe7ef; color: #3b5b7a; font-weight: 600; box-shadow: none; }
.btn-modmain { background: #3b5b7a; color: #fff; font-weight: 600; box-shadow: none; }
.note.mrlight { background: #f1f4f8; }
@media (prefers-color-scheme: lamun-off) { .btn-mod { background: #232b34; color: #8fb0cf; } .btn-modmain { background: #5d81a6; }
  .note.mrlight { background: #1d242c; } }

#sheet .panel.modpanel { background: #d5e0ec; }
#sheet .panel.modpanel .note { background: #f1f4f8; }
@media (prefers-color-scheme: lamun-off) { #sheet .panel.modpanel { background: #161b21; } #sheet .panel.modpanel .note { background: #1d242c; } }
.ownst .golink { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; text-decoration: none; }

:root { --chip-on-line: rgba(232, 116, 59, .16); }
@media (prefers-color-scheme: lamun-off) { :root { --chip-on-line: rgba(240, 138, 82, .28); } }

/* «Вернуть» в ленте: маленькая кнопка слева от ✕; справа такой же пустой слот, чтобы ✕ и ♥ остались по центру */
.actions .act.undo { width: 56px; justify-content: center; align-self: flex-start; height: 66px; }  /* без подписи: иконка по центру высоты ✕ */
.actions:has(.act.undo) { gap: 22px; }
.round.back { width: 46px; height: 46px; color: var(--hint); display: grid; place-items: center; margin-bottom: 0; }

/* 14.10: ✕ / ♥ на странице события — на той же высоте, что в ленте; длинный текст уходит под мягкую подложку */
.actions.pinned.evacts { bottom: var(--navh, 72px); padding: 28px 0 12px; max-width: 560px; margin: 0 auto;
  background: none; pointer-events: none; }  /* 24.10: без подложки — на фоне со свечением давала полосу (Алёна) */
.actions.pinned.evacts .round { pointer-events: auto; }
/* 14.10: карточка на странице события той же высоты, что в ленте (низ на одной линии над ✕ / ♥); длинная растёт и листается */
body.evcard #card { min-height: calc(78px + clamp(300px, calc(100vh - 315px), 600px)); min-height: calc(78px + clamp(300px, calc(100dvh - 315px), 600px));
  display: flex; flex-direction: column; }
body.evcard #card .foot { margin-top: auto; }
/* постоянные компании регулярных событий во «Встречах» */
.wtag { display: inline-block; background: #e3f3ea; color: var(--ok); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
h2.sect.first { margin-top: 4px; }
.mtext a { color: inherit; text-decoration: underline; word-break: break-all; }
#ichips .golink { display: block; background: none; border: 0; padding: 0; margin-top: 14px; min-height: 0; width: auto; color: var(--accent); font-weight: 600; font-size: 15px; text-align: left; }
/* пропуск недели: «Получится прийти» — текстовая кнопка внутри плашки; над и под «Выйти из компании» поровну */
.skipnote #skipback { display: block; padding: 0; margin: 8px 0 0; text-align: left; }
.cpanel .note.skipnote { margin-bottom: 0; }
.cpanel .skipnote + .stack { margin-top: 6px; }
/* 15.10: отметки «мне есть 18» и согласие на данные на экране правил */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; cursor: pointer; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; border-width: 1.5px; border-color: rgba(133, 122, 114, .32); }
.consent > span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.consent .hint { margin: 0; }
.consent .ctitle-c { font-weight: 500; }  /* отметки — обычным текстом, не заголовком */
/* 15.10: в подписи отметки строки ближе друг к другу, чем подпись к пояснению под ней */
.consent .ctitle-c { line-height: 1.3; }
.consent > span { gap: 6px; }

/* 16.10: плашка «Событие отменили» над карточкой отменённого события */
.gone-reason.evgone { margin: 4px 0 12px; }
.card.faded .cover img { filter: grayscale(1); opacity: .7; }
.card.faded h1 { color: var(--hint); }
.cpanel .ctitle.past { color: var(--hint); }
.iconbtn.ico.mod .dot { border-color: #dfe7ef; top: 6px; right: 8px; width: 10px; height: 10px; }
body.adminpage .iconbtn.ico.mod .dot { border-color: #cdd9e5; }
@media (prefers-color-scheme: lamun-off) { .iconbtn.ico.mod .dot { border-color: #232b34; } }
/* 16.10: долгое нажатие на картинку в iOS «поднимает» саму картинку — без скругления, квадратом. В интерфейсе картинки не сохраняем и не тянем */
img { -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
button img { pointer-events: none; }
/* WebKit при нажатии выносит картинку в отдельный слой, и overflow:hidden у круглой кнопки её больше не обрезает — скругляем саму картинку */
.avpick button img, .avatar img, .ico.me img { border-radius: 50%; }
.avpick button { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
/* 16.10: подсказка про VPN под скелетоном, если экран грузится дольше 4 секунд */
.slowhint { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px; font-size: 15px; line-height: 1.4;
  animation: slowin .3s ease; }
.slowhint .sh-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #f7d3bd; color: var(--accent); }  /* тёмно-персиковый круг — как у значков на персиковых плашках уведомлений */
@media (prefers-color-scheme: lamun-off) { .slowhint .sh-ico { background: #5a3a28; } }
@keyframes slowin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* 16.10: «Здесь уже собираются» — горизонтальная лента (Хочу пойти, «События закончились»), карточка-подборка в ленте, плашка новичку */
.selx { margin: 18px 0 8px; text-align: left; }
.selx-kick { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 2px; }
.selx-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 2px; }
.selx-h b { font-size: 18px; }
.selx-sub { margin: 0 0 10px; color: var(--hint); font-size: 13.5px; }
.selx-row { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 20px; }
.selx-row::-webkit-scrollbar { display: none; }
.empty .selx-row { margin: 0 -26px; padding: 4px 26px 20px; }
.selx-it { flex: none; width: 156px; display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--surface); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); color: var(--text); min-height: 0; font: inherit; }
.selx-it img.cov { width: 100%; height: 58px; object-fit: cover; display: block; border-radius: 0; }
.selx-it .t { flex: 1; display: flex; flex-direction: column; padding: 8px 10px 10px; }
.selx-it .tt { font-weight: 700; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.selx-it .w { color: var(--hint); font-size: 12px; margin-top: 3px; }
.selx-it .who { margin-top: auto; padding-top: 6px; }
.who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.who .avs { display: flex; } .who .avatar { width: 22px; height: 22px; margin-left: -6px; border: 2px solid var(--surface); font-size: 11px; }
.who .avatar:first-child { margin-left: 0; }
.card.selwrap { padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.selcard { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 18px 16px 14px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.selcard .k { font-size: 13px; color: var(--hint); }
.selcard h2 { margin: 4px 0 4px; font-size: 22px; }
.selcard .sub { color: var(--hint); margin: 0 0 12px; font-size: 14px; }
.selcard .rows { display: flex; flex-direction: column; gap: 8px; }
.selcard .r { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 16px; padding: 8px 10px; text-align: left;
  color: var(--text); min-height: 0; font: inherit; width: 100%; }
.selcard .r img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.selcard .rt { display: flex; flex-direction: column; min-width: 0; }
.selcard .r .tt { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.selcard .r .w { color: var(--hint); font-size: 13px; margin: 2px 0 4px; }
.selcard .r .chev { margin-left: auto; color: var(--hint); font-size: 22px; }
.selcard .who .avatar { border-color: var(--surface-2); }
.badge-sob { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.94);
  border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; font-weight: 600; color: var(--ok); }
.badge-sob .avs { display: flex; } .badge-sob .avatar { width: 24px; height: 24px; margin-left: -7px; border: 2px solid #fff; }
.badge-sob .avatar:first-child { margin-left: 0; }
.badge-sob .avatar img { position: static !important; inset: auto !important; width: 100% !important; height: 100% !important; opacity: 1 !important; }
/* «События закончились»: место под маскота (пока пустое) */
.endfind { padding-top: 8px; } .endfind .mascot { width: 132px; height: 132px; margin: 0 auto 6px; }
.endfind h2 { margin-top: 4px; } .endfind p { margin-top: 4px; }
/* статистика модератора: свёрнутые блоки с воронкой */
.statfold { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; min-height: 0; background: none; text-align: left; color: var(--text); font: inherit; }
.statfold .grow { flex: 1; display: flex; flex-direction: column; } .statfold .mini { color: var(--hint); font-size: 13px; margin-top: 2px; }
.statfold .chev { color: var(--hint); font-size: 20px; transition: transform .2s; } .fold.open .statfold .chev { transform: rotate(90deg); }
.funnel { margin-top: 10px; } .funnel .fr { display: grid; grid-template-columns: 118px 1fr 64px; align-items: center; gap: 8px; margin: 7px 0; font-size: 13.5px; }
.funnel .bar { height: 10px; border-radius: 6px; background: #c9d6e3; overflow: hidden; } .funnel .bar i { display: block; height: 100%; background: #3b5b7a; border-radius: 6px; }
.funnel .n { text-align: right; font-variant-numeric: tabular-nums; } .funnel .n span { color: var(--hint); font-size: 12px; }
.cmpnote { font-size: 13px; color: var(--hint); margin-top: 8px; }
@media (prefers-color-scheme: lamun-off) { .badge-sob { background: rgba(30,26,23,.92); } .badge-sob .avatar { border-color: #1e1a17; } .funnel .bar { background: #2b3540; } .funnel .bar i { background: #8fb0cf; } }
.card .foot .ftext.ok { color: var(--ok); font-weight: 600; }

/* 16.10: экран «Хотят пойти» — ссылка на всех желающих под заголовком */
.ph-all { display:block; margin: -6px 0 12px; padding: 0; font-weight: 600; color: var(--accent); }
/* 16.10: «о себе» в карточке человека — не больше трёх строк, чтобы интересы и кнопки помещались и на маленьком экране */
.card.person .pabout { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-height: 700px) { .card.person .pabout { -webkit-line-clamp: 1; } .ph-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.card.person .pmore { display:block; margin: -8px 0 10px; padding: 0; font-size: 15px; }
.msg-sys .simbtn.nextbtn { background: var(--accent); color: #fff; }  /* 16.10: «Есть следующая дата» — как «Иду» в персиковой плашке: полезное действие темнее плашки (№106) */
.nextplate { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; font-size: 14px; }  /* 16.10 */
.nextplate span { color: var(--hint); }
.nextplate { line-height: 1.3; gap: 0; }
.nextplate .link-btn { margin: 4px 0 0; padding: 0; font-size: 14px; line-height: 1.3; min-height: 0; }
/* 16.10: стрелка «Дальше» в белом круге — по центру (Алёна: была выше) */
.round:has(> svg) { display: grid; place-items: center; }
.round > svg { display: block; transform: translateY(1px); }
/* 16.10: места у организатора и подсказка от V (кружок с буквой — пока нет маскота) */
.seats { color: #c43a2c; }
.seathint { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 14px; line-height: 1.35; text-align: left; }
.vbadge { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.seathint a, .vmsg .vlink { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }
.vmsg { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.vmsg .msg { max-width: 280px; }
/* 16.10: «Передумать» — как «Не смогу» в плашке изменения (№106), но не в .chans (его заполняет ответ на перенос) */
.msg-sys .mvrow { align-self: stretch; display: flex; margin-top: 8px; }
.msg-sys .mvrow button { flex: 1; min-height: 34px; padding: 6px 12px; font-size: 15px; border-radius: 12px; background: rgba(255, 255, 255, .55); color: #9a4a1f; }
@media (prefers-color-scheme: lamun-off) { .msg-sys .mvrow button { background: rgba(255, 255, 255, .08); color: #f0b48f; } }
/* 16.10: плашка с кнопкой внизу — под кнопкой столько же, сколько по бокам (16px) */
.msg-sys > div:has(> .simbtn:last-child), .msg-sys > div:has(> .mvrow:last-child), .msg-sys > div:has(> .chans:last-child .row) { padding-bottom: 16px; }
/* 16.10: сообщение V — ссылка «Купить билет» чуть дальше от текста и от низа */
.vmsg .vlink { margin-top: 8px; }
.vmsg .msg { padding-bottom: 10px; }

/* 17.10, автосбор: внизу две кнопки — «Собрать компанию сейчас» и «Не собирать компанию» */
.evpin.two { display: flex; flex-direction: column; gap: 8px; }
body.evpage.pin2 main { padding-bottom: calc(160px + 72px); }
/* 17.10: режим события иконкой — ноутбук «Онлайн», дома «В городе» */
.mico { width: 16px; height: 16px; flex: none; display: block; }
.segmented button[data-m] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.segmented button[data-m] .mico { width: 17px; height: 17px; }
.tagrow .tag, .mlab { display: inline-flex; align-items: center; gap: 5px; }
.tagrow .tag .mico, .mlab .mico { width: 15px; height: 15px; }
.mline { display: flex; align-items: center; gap: 7px; margin-top: 5px; min-width: 0; }
.mline .lstatus, .mline .lreason { margin-top: 0; min-width: 0; }
.mdot { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft, #fbe3d6); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mdot .mico { width: 15px; height: 15px; }
.lrow.gone .mdot { background: color-mix(in srgb, var(--hint) 16%, transparent); color: var(--hint); }
.lico.sheart { background: color-mix(in srgb, var(--hint) 12%, transparent); color: var(--hint); font-size: 20px; padding-top: 2px; }
/* 17.10: группы во «Встречах» — «В городе» / «Не выходя из дома» */
.mgroup { margin: 18px 4px 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.tabs3 + .mgroup, .segmented + .mgroup { margin-top: 6px; }
/* 17.10: внутреннее меньше внешнего — строки заголовка плотнее, чем отступ от заголовка до даты */
.ltitle { line-height: 1.2; }
.ltext .ltitle + .hint { margin-top: 4px; }
.mline { margin-top: 6px; }
.mgroup .mfound { font-weight: 400; color: var(--hint); }
.smore { width: 100%; margin: 2px 0 6px; }
h1 .mfound { font-weight: 400; color: var(--hint); }
/* 17.10: во всех шторках первая строка — 32 px от верхнего края (было 20+22=42; 24 — мало) (Алёна) */
#sheet .panel:not(.evpanel) { padding-top: 32px; }
#sheet .panel:has(> .gone-cover:first-child) { padding-top: 16px; }  /* сверху картинка — отступ ровно как по бокам, 16 (Алёна) */
#sheet .panel:not(.evpanel) > :first-child:not(.psdots):not(.grab):not(.gone-cover),
#sheet .panel:not(.evpanel) > .psdots:first-child + *,
#sheet .panel:not(.evpanel) > .grab:first-child + * { margin-top: 0 !important; }
#sheet .hint { line-height: 1.3; }
#sheet .hint + .hint { margin-top: 4px; }
/* 17.10: причина на серых карточках («Отменено тобой», «Прошло», «Компания не собралась») — как статус в «Компаниях»: обычным серым (Алёна) */
.lreason, .lreason.ok { font-size: 13px; font-weight: 400; color: var(--hint); }
.stack > [hidden] { display: none !important; }
/* 17.10: времена выставки — белым списком, как в iOS (вариант C, Алёна) */
.slist { background: var(--surface); border-radius: 14px; overflow: hidden; }
#sheet .slist { background: var(--surface-2); border-radius: 12px; }  /* 24.10: на белой шторке — серый список (Алёна) */
.slrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  background: transparent; border-radius: 0; color: var(--text); text-align: left; font-weight: 600; box-shadow: none; }
.slrow + .slrow { border-top: 0; position: relative; }
.slrow + .slrow::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line); }  /* 24.10: линия с отступом с двух сторон (Алёна) */
.slrow .slwho { color: var(--hint); font-weight: 400; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.slrow .slchev { color: var(--hint); opacity: .6; font-size: 20px; line-height: 1; font-weight: 400; }
.slrow.slall { color: var(--accent); }
.slrow.slall .slchev { color: var(--accent); opacity: 1; }
/* 17.10: прозрачная кнопка («Отмена», «Не сейчас»…) — та же кнопка, что оранжевая, только без фона:
   та же высота 48, те же поля и отступ 10 между кнопками в стопке; не прижимается к соседней кнопке и к краю (Алёна) */
.btn-ghost, .stack > .btn-ghost:last-child, .quiet-link, .quiet-link.grey {
  min-height: 48px; padding: 13px 18px; margin: 0; line-height: inherit; font-weight: 600; font-size: inherit; width: 100%; }
.quiet-link.grey { font-weight: 400; color: var(--hint); }
/* кнопка, а под ней стопка кнопок в другом блоке — тот же отступ 10, как внутри стопки */
button + .stack { margin-top: 10px; }
/* 17.10: в ряду (.row) кнопка без фона не растягивается на 100% — иначе «Убрать фото» и «Удалить профиль» вылезали за карточку (Алёна) */
.row > .btn-ghost, .row > .quiet-link { width: auto; }
/* 17.10: текст во всех больших кнопках одинаковый — 16 px, жирный 600 (оранжевая, персиковая, белая, бледная, прозрачная) (Алёна) */
.btn-primary, .btn-soft, .btn-line, .btn-pale, .btn-ghost, .btn-danger, .stack > .btn-ghost:last-child { font-size: 16px; font-weight: 600; }
/* 17.10: выбор дня и часа — день шире, время уже: «вс, 18 октября» целиком, без «октябр…» (Алёна) */
.row.slpick > :first-child { flex: 1.6; }
.row.slpick > :last-child { flex: 1; }
.row.slpick select { padding-right: 34px; background-position: right 12px center; }


/* ================= lamun · новый дизайн (макеты 81–90) — слой поверх старых стилей ================= */
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: rgba(14, 38, 57, .06); --text: #0E2639; --hint: rgba(14, 38, 57, .6);
  --accent: #FF6A24; --accent-soft: #FFE2D1; --accent-text: #FFFFFF; --ok: #1F9254; --ok-soft: rgba(31, 146, 84, .12);
  --danger: #C8412F; --line: rgba(14, 38, 57, .08); --chip-on-line: transparent; --sk-hi: #FFFFFF;
  --shadow: 0 12px 32px -8px rgba(14, 38, 57, .08); --shadow-sm: 0 6px 18px -6px rgba(14, 38, 57, .07);
  --radius: 20px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 500; }
body.lamun::after { content: ""; position: fixed; left: -120px; bottom: 40px; width: 380px; height: 300px; border-radius: 50%;
  background: #E3ECF6; filter: blur(90px); z-index: -1; pointer-events: none; }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.18; }
a { color: var(--accent); }
.hint { color: var(--hint); }

/* шапка: «Ты куда?» крупно, иконки — персиковые круги с мандариновым контуром */
.topbar { min-height: 48px; margin: 4px 0 8px; }
.topbar .title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.iconbtn, .iconbtn.soft { width: 40px; height: 40px; min-height: 40px; background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.iconbtn .dot { top: 8px; right: 9px; width: 9px; height: 9px; background: var(--accent); border: 2px solid var(--accent-soft); }
.iconbtn.mod { background: #E8EEF5; color: #5B7590; }
.back { color: var(--text); font-weight: 600; font-size: 17px; }

/* кнопки */
button { font-family: var(--font); font-weight: 700; border-radius: 999px; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; min-height: 52px; }
.btn-primary:disabled { background: rgba(14, 38, 57, .12); color: rgba(14, 38, 57, .45); opacity: 1; }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-radius: 999px; }
.btn-pale { background: var(--surface-2); color: var(--text); border-radius: 999px; }
.btn-line { background: var(--surface); border: 0; box-shadow: var(--shadow-sm); border-radius: 999px; color: var(--text); }
.btn-ghost { color: var(--hint); }
.btn-ya { border-radius: 999px; min-height: 52px; background: #000; }

/* переключатель «В городе / Не выходя из дома» — типографикой, активный в белой плашке */
.modes { display: flex; gap: 4px; margin: 0 -4px 12px; }
.modes button { min-height: 36px; padding: 0 14px; background: transparent; color: rgba(14, 38, 57, .5); font-size: 15px; font-weight: 600; }
.modes button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-sm); }
.segmented { background: transparent; box-shadow: none; padding: 0; gap: 4px; justify-content: flex-start; }
.segmented button, .segmented.tabs3 button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; color: rgba(14, 38, 57, .5); font-weight: 600; font-size: 15px; }
.segmented button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow-sm); }
.segmented .n { color: inherit; opacity: .55; font-weight: 700; font-size: 13px; }
.segmented button.on .n { color: var(--accent); opacity: 1; }

/* карточка события */
.card { border-radius: 32px; padding: 0 18px 16px; box-shadow: 0 12px 32px -8px rgba(14, 38, 57, .08); }
.card .cover, .card:not(.static) .cover { margin: 0 -18px 12px; border-radius: 32px 32px 0 0; }
.card .tagrow { gap: 6px; margin-bottom: 10px; }
.tag { background: rgba(14, 38, 57, .06); color: rgba(14, 38, 57, .7); font-size: 12px; font-weight: 600; padding: 5px 10px; }
.tag.soon { background: rgba(31, 146, 84, .12); color: var(--ok); font-weight: 700; }
.tag.warn { background: var(--accent-soft); color: var(--accent); }
.card h1 { font-size: 19px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.card .meta { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.card .meta.soft, .card .meta + .meta { color: rgba(14, 38, 57, .65); font-weight: 500; }
.mi { flex: none; width: 16px; height: 16px; margin-top: 1px; color: rgba(14, 38, 57, .55); display: inline-flex; }
.mi svg { width: 100%; height: 100%; }
.card .desc { color: var(--text); font-size: 14px; line-height: 1.3; margin-top: 10px; }
.source { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: rgba(14, 38, 57, .5); opacity: 1; }
.source a { text-decoration: none; }
.source .mi { width: 13px; height: 13px; margin: 0; color: inherit; }
.card .foot { color: rgba(14, 38, 57, .55); font-weight: 700; font-size: 14px; }
.card .foot .ftext.ok { color: var(--ok); }
.card .foot .more-link { color: rgba(14, 38, 57, .7); font-weight: 700; background: none; }
.lenni-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #F6F6F9; flex: none; }
.lenni-av img { width: 140%; height: 140%; object-fit: cover; object-position: 50% 12%; margin: -2px 0 0 -20%; }
.menu-dots { background: rgba(255, 255, 255, .85); color: var(--text); }
.stamp.yes { color: var(--accent); }

/* слои под карточкой — как в 81 */
/* следующая карточка — под текущей, чуть меньше; когда верхнюю тянут или она улетает, встаёт на место */
.card.ghost { pointer-events: none; transform: translateY(12px) scale(.95); transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 4px 14px -4px rgba(14, 38, 57, .12); }
.card.ghost .stamp { display: none; }
.deck:has(.card.dragging) .card.ghost, .deck:has(#card[style*="translate"]) .card.ghost { transform: none; }

/* кнопки ленты: «Вернуть» — серый круг, «Не моё» — белая плашка, «Хочу пойти» — мандариновая */
.actions.pinned { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 16px; }
.lbtn { height: 54px; min-height: 54px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 700; padding: 0 22px; }
.lbtn span { line-height: 1; transform: translateY(.5px); }
.lbtn.undo { width: 54px; padding: 0; background: rgba(14, 38, 56, .06); color: rgba(14, 38, 57, .6); flex: none; }
.lbtn.undo:disabled { opacity: .45; }
.lbtn.no { background: var(--surface); color: var(--text); box-shadow: var(--shadow); flex: 0 0 auto; padding: 0 20px 0 16px; }

.lbtn.yes { background: var(--accent); color: #fff; flex: 1 1 auto; max-width: 220px; padding: 0 18px; }
.lbtn { white-space: nowrap; }
body.scrolled .topbar { background: rgba(246, 247, 249, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: none; border-radius: 0; }

/* нижнее меню — стекло, активная вкладка мандариновая и заливкой */
nav { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-top: 0; box-shadow: none; }
nav button { color: rgba(14, 38, 57, .45); font-size: 10px; font-weight: 600; background: transparent; }
nav button.on { color: var(--accent); font-weight: 700; }
nav button .ico { height: 24px; }
nav button .ico svg { display: block; }
nav button.on .ico .fillon { fill: currentColor; }
nav button.on .ico .cut { fill: #fff; }
nav button.on .ico rect, nav button.on .ico circle:not(.fillon) { stroke-width: 2; }
nav .navdot { background: var(--accent); }

/* чипсы: выбранный — персиковый, мандариновый текст */
.chip { background: var(--surface); border: 0; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--text); }
.chip.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; box-shadow: none; }
.chip:disabled { opacity: 1; background: rgba(14, 38, 57, .05); color: rgba(14, 38, 57, .4); box-shadow: none; }
input, textarea, select { border: 0; background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 16px; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-sm); }
.toggle input:checked { background-color: var(--accent); border-color: var(--accent); }

/* блоки, строки, шторки */
.box { border-radius: 20px; box-shadow: var(--shadow-sm); }
.lrow { border-radius: 20px; height: 100px; padding: 16px; gap: 14px; }
.lthumb { width: 64px; height: 64px; border-radius: 14px; }
.ltitle { font-size: 15px; font-weight: 700; line-height: 1.18; -webkit-line-clamp: 2; }  /* 23.10: длинное название — в две строки (Алёна) */
.lstatus { font-size: 13px; }
.lstatus.grey { color: rgba(14, 38, 57, .55); font-weight: 600; }
.lico { width: 36px; height: 36px; background: var(--accent-soft); color: var(--accent); }
.lico.ok { background: var(--ok-soft); color: var(--ok); }  /* 27.10 (Алёна): иконка чата — зелёная, «компания есть» */
.lico.x { background: rgba(14, 38, 57, .05); color: rgba(14, 38, 57, .45); }
.lrow.gone { background: rgba(255, 255, 255, .55); box-shadow: none; }
.lrow.gone .lthumb { filter: grayscale(1); opacity: .6; }
h2.sect { font-size: 20px; margin: 22px 4px 12px; }
.cells { border: 0; border-radius: 20px; box-shadow: var(--shadow-sm); }
.row-cell + .row-cell { border-top: 0; }
#sheet { background: rgba(14, 38, 57, .32); }
#sheet .panel { background: var(--surface); border-radius: 28px 28px 0 0; }
.note { background: rgba(14, 38, 57, .04); border-radius: 14px; }
.note.accent { background: var(--accent-soft); }
.plist .item { border-bottom: 0; }
.avatar { background: var(--accent-soft); color: var(--accent); }

/* чат: чужие — белые, свои — персиковые; поле ввода на стекле */
.msg { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 11px 14px; font-size: 15px; }
.msg.me { background: var(--accent-soft); color: var(--text); box-shadow: none; }
.msg .who { color: rgba(14, 38, 57, .7); font-size: 13px; }
.composer { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.composer textarea { border-radius: 22px; background: rgba(14, 38, 57, .05); box-shadow: none; }
.composer button { width: 44px; min-width: 44px; padding: 0; border-radius: 50%; background: var(--accent); color: #fff; }

/* экран входа (88) */
.login2 { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 9vh; }
.l2-lenni { width: 160px; height: auto; }
.l2-q { font-size: 34px; letter-spacing: -.03em; margin: 14px 0 0; }
.l2-txt { color: var(--hint); font-size: 15px; line-height: 1.5; margin: 12px 8px 0; text-wrap: pretty; }
.l2-txt b { color: var(--text); }
.l2-btns { width: 100%; margin-top: auto; padding-top: 28px; }
.l2-btns .btn-a { display: block; }
.l2-fine { margin: 14px 0 0; }
.login2 .help-line { margin-top: 4px; }

/* заставка: вариант 2 «Точка как метка на карте» */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .4s ease-out; }
.splash.out { opacity: 0; pointer-events: none; }
.sp-word { font: 800 56px/1 var(--font); letter-spacing: -.04em; color: var(--text); display: flex; align-items: baseline; }
.sp-l { animation: sp-in .5s cubic-bezier(.16, 1, .3, 1) both; }
.sp-dot { position: relative; display: inline-block; width: .2em; height: .2em; margin-left: .06em; background: var(--accent); border-radius: 2px;
  animation: sp-drop .6s cubic-bezier(.3, 1.5, .55, 1) .35s both; }
.sp-dot i { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
  transform: translate(-50%, -50%); animation: sp-ring .9s ease-out .85s both; }
@keyframes sp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sp-drop { from { transform: translateY(-260px); } to { transform: none; } }
@keyframes sp-ring { 0% { opacity: .7; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(9); } }
#app > * { animation: none; }
body.lamun main { animation: l-rise .55s cubic-bezier(.33, 1, .68, 1) both; }
@keyframes l-rise { from { opacity: 0; transform: translate3d(0, 4px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } body.lamun main { animation: none; } }

/* пустые состояния: вместо эмодзи — Ленни, кнопка персиковая (90/4) */
.empty .big { font-size: 0; width: 132px; height: 152px; margin: 0 auto 12px; background: url(/static/new/lenni-map.webp) center bottom / contain no-repeat; }
.empty .btn-primary { background: var(--accent-soft); color: var(--accent); width: auto; padding: 0 28px; }
.empty p { color: var(--hint); }
body.obpage main { padding-top: calc(48px + env(safe-area-inset-top)); }
.obpin { background: linear-gradient(to bottom, rgba(246, 247, 249, 0), var(--bg) 35%); box-shadow: none; border-radius: 0; }

/* кнопки ленты — внутри нижнего меню, прямо над ним */
nav > .actions.pinned { position: absolute; left: 0; right: 0; bottom: calc(100% + 12px); z-index: 1; max-width: 560px; margin: 0 auto; }
nav .actions .lbtn { flex-direction: row; gap: 8px; font-size: 16px; font-weight: 700; height: 54px; min-height: 54px; }
nav .actions .lbtn.undo { flex: none; width: 54px; padding: 0; background: rgba(14, 38, 56, .06); color: rgba(14, 38, 57, .6); }
nav .actions .lbtn.no { flex: 0 0 auto; padding: 0 20px 0 16px; background: var(--surface); color: var(--text); }
nav .actions .lbtn.yes { flex: 1 1 auto; max-width: 220px; padding: 0 18px; background: var(--accent); color: #fff; }
nav .actions .lbtn svg { flex: none; }
/* заголовки разделов в списках — один размер: «В городе», «Не выходя из дома», «Прошли», «Не состоялось» (22.10, Алёна) */
h2.sect, h3.mgroup { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--text); margin: 24px 4px 12px; }
h2.sect.first, .tabs3 + h3.mgroup, .segmented + h3.mgroup { margin-top: 8px; }

/* вход: настоящий логотип Яндекса; Ленни крупнее, блок с текстом — по центру свободного места (22.10) */
.btn-ya svg.ya-logo { width: 24px; height: 24px; flex: none; background: none; border-radius: 50%; }
.login2 { padding-top: 0; }
.l2-lenni { width: 196px; margin-top: auto; }
.l2-txt { align-self: stretch; text-wrap: wrap; }
.l2-btns { margin-top: auto; }
/* голубой свет снизу у кнопок (79/3): фон — у html, body прозрачный, иначе фон body перекрывал свет */
html { background: var(--bg); }
body, body.lamun { background: transparent; }
body.lamun::after { z-index: 0; opacity: 1; }
#app { position: relative; z-index: 1; }
/* вход: за Ленни — мягкий оранжевый перелив */
.l2-hero { position: relative; margin-top: auto; display: grid; place-items: center; isolation: isolate; }
.l2-hero .l2-lenni { margin-top: 0; position: relative; z-index: 1; }


/* вход: «северное сияние» — светлые ленты за Ленни, заметно текут и переливаются; ниже статус-бара, с мягкими краями */
.login2 { position: relative; }
.l2-aurora { position: absolute; left: -16px; right: -16px; top: calc(6vh + env(safe-area-inset-top)); height: 40vh; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent); }
.l2-aurora i { position: absolute; left: -50%; width: 200%; height: 22%; border-radius: 50%; filter: blur(20px); opacity: .75;
  background: linear-gradient(90deg, transparent 5%, #D6E4F6 22%, #B9D0F0 40%, #E3ECF8 58%, #C6DAF3 74%, #E6EEF9 88%, transparent 96%);
  background-size: 200% 100%; animation: l2-aur 7s ease-in-out infinite alternate, l2-flow 9s linear infinite; }
.l2-aurora i:nth-child(1) { top: 22%; }
.l2-aurora i:nth-child(2) { top: 40%; height: 16%; opacity: .6; animation-duration: 6s, 7s; animation-delay: -3s, -2s;
  background-image: linear-gradient(90deg, transparent 8%, #DCE8F8 26%, #C3D7F2 46%, #ADC8EE 64%, #DCE7F7 82%, transparent 95%); }
.l2-aurora i:nth-child(3) { top: 56%; height: 14%; opacity: .5; animation-duration: 8s, 11s; animation-delay: -5s, -6s; }
.l2-aurora i:nth-child(4) { top: 10%; height: 12%; opacity: .55; animation-duration: 5.5s, 8s; animation-delay: -1s, -4s;
  background-image: linear-gradient(90deg, transparent 15%, #C3D7F2 40%, #E8EFF9 62%, #CADCF4 80%, transparent 92%); }
@keyframes l2-aur {
  0% { transform: translateX(-14%) rotate(-12deg) skewX(-24deg) scaleY(.7); }
  50% { transform: translateX(6%) rotate(-2deg) skewX(16deg) scaleY(1.45); }
  100% { transform: translateX(16%) rotate(-9deg) skewX(-10deg) scaleY(.9); } }
@keyframes l2-flow { to { background-position: -200% 0; } }
.login2 > *:not(.l2-aurora) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .l2-aurora i { animation: none; } }

/* ---------- профиль (87) и аватарки в знакомстве (86/4) ---------- */
main > label { display: block; font-size: 17px; font-weight: 700; color: var(--text); margin: 26px 4px 10px; }
.pcard { padding: 18px; border-radius: 24px; }
.pc-top { display: flex; align-items: center; gap: 16px; }
#avwrap .avatar { width: 72px; height: 72px; font-size: 30px; }
.pc-name { flex: 1; min-width: 0; }
.pc-name label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--hint); }
.pc-name input { background: var(--bg); box-shadow: none; height: 44px; min-height: 44px; border-radius: 12px; font-weight: 600; }
.pc-hint { margin: 18px 0 0; }
.pc-del { min-height: 0; padding: 10px 0 0; font-size: 14px; }
.avpick.scroll { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; margin: 10px -18px 0; padding: 4px 18px; scrollbar-width: none; }
.avpick.scroll::-webkit-scrollbar { display: none; }
.avpick.scroll button { flex: none; width: 54px; height: 54px; }
.avpick .avplus { background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.avpick .avplus img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avpick .avplus.busy { opacity: .5; }
.segmented.city2 { background: rgba(14, 38, 57, .06); padding: 3px; border-radius: 999px; box-shadow: none; }
.segmented.city2 button { flex: 1; min-height: 40px; }
.ihint { margin: -2px 4px 12px; }
.chips.multi .chip.on { background: var(--accent-soft); color: var(--accent); }
.avpick:not(.scroll) { grid-template-columns: repeat(5, 1fr); gap: 12px; }  /* знакомство: «+» и 14 аватарок — 5×3, как в 86/4 */
.l2-txt { font-size: 18px; line-height: 1.4; margin-top: 12px; }
/* кнопки «Не моё / Хочу пойти» везде — плашками, как в ленте (82/4) */
.evpanel .evbar { display: flex; justify-content: center; align-items: center; gap: 8px; padding-left: 16px; padding-right: 16px; }
.evbar .lbtn, .actions .lbtn { box-shadow: none; }
.evbar .lbtn.no, .actions .lbtn.no { box-shadow: 0 6px 18px -6px rgba(14, 38, 57, .12); }
.actions.pinned { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 16px; }
.lbtn.yes svg { flex: none; }
/* шторка «Всё о событии» (82/4): скруглённый верх, грабер, афиша с полями и скруглением */
#sheet .panel.evpanel { border-radius: 28px 28px 0 0; overflow: hidden; }
.evpanel .grab { background: rgba(14, 38, 57, .18); width: 36px; height: 5px; top: 6px; }
.evpanel .card.flat { padding: 0 18px; }
.evpanel .card.flat .cover { margin: 22px 0 14px; border-radius: 24px; overflow: hidden; }
/* плашка о работах сверху (как у банков): белая, «i» в персиковом кружке, можно скрыть */
#notice { position: fixed; z-index: 40; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: min(358px, calc(100% - 32px)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: 22px; background: #fff;
  box-shadow: 0 12px 32px -8px rgba(14, 38, 57, .22); animation: nt-in .45s cubic-bezier(.22, 1, .36, 1) both; transition: opacity .25s, translate .25s; }
#notice.out { opacity: 0; translate: -50% -12px; }
#notice .nt-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font: 800 16px/1 var(--font); }
#notice .nt-text { flex: 1; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--text); }
#notice .nt-x { flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(14, 38, 57, .05); color: rgba(14, 38, 57, .45); font-size: 12px; }
@keyframes nt-in { from { opacity: 0; translate: -50% -14px; } to { opacity: 1; translate: -50% 0; } }
/* сердце в кружке — svg 17px строго по центру (оптически +0.5px вниз), колокольчик чуть выше центра */
.lico.heart, .lico.sheart { padding: 0; line-height: 0; display: grid; place-items: center; }
.lico svg { width: 17px; height: 17px; transform: translateY(.5px); }
.lico.sheart { background: rgba(14, 38, 57, .05); color: rgba(14, 38, 57, .45); }
#bell svg { transform: translateY(-1px); }
.pc-del { display: block; margin: 6px 0 0; padding: 6px 0 0; color: var(--hint); font-weight: 600; text-align: left; }

/* низ карточки: «Будь первым» и «Всё о событии» на одной линии; крестик «Не моё» — цветом текста */
.card .foot { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.card .foot .ftext { line-height: 1.2; }
.card .foot .more-link { min-height: 0; height: auto; padding: 0; line-height: 1.2; display: inline-flex; align-items: center; align-self: center; }
.lbtn.no svg, nav .actions .lbtn.no svg { color: var(--text); }
.lbtn span { transform: none; line-height: 1.2; }
.lbtn svg { display: block; }
/* «назад» — шеврон и подпись, тёмным, как в iOS-навигации (82/10) */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; padding: 8px 6px 8px 0; min-height: 40px; background: none; }
.back .bk { flex: none; }
/* чат (90/5–6): шапка без плашки, крупный заголовок; сообщения сервиса — белой карточкой с кружком «l.» */
.chathead { background: rgba(246, 247, 249, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: none; border-radius: 0; }
.chathead .ch-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.18; }
.chathead .ch-sub { font-size: 14px; font-weight: 600; color: var(--hint); }
.vbadge { background: var(--accent-soft) !important; color: var(--accent) !important; font-weight: 800 !important; letter-spacing: -.02em; }
.msg-sys > div { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); }
.msg-sys.bad > div { background: var(--accent-soft); }
.msg-sys .chans .row button { border-radius: 999px; min-height: 40px; }
.msg-sys .chans .btn-pale { background: rgba(14, 38, 57, .06); color: var(--text); }
#notice { padding: 12px 18px 12px 14px; cursor: pointer; }
#notice .nt-text { text-align: left; }

/* правило: текст в кнопках, чипсах и плашках центрируем по высоте прописных (cap height), как leading trim в Figma.
   text-box обрезает строку по верху прописных и базовой линии — тогда флекс ставит буквы ровно по центру */
.lbtn span, .btn-primary, .btn-soft, .btn-pale, .btn-line, .btn-ghost, .modes button, .segmented button, .chip, .tag, nav button { text-box: trim-both ex alphabetic; }
.btn-ya span, .btn-ya { text-box: trim-both ex alphabetic; }
.tag { padding: 7.5px 10px; line-height: 1.2; }
.lbtn span { line-height: 1.2; }
.lbtn svg { width: 18px; height: 18px; }
.lbtn.yes svg { width: 22px; height: 22px; }

/* обложка уже в кэше — без проявления */
.cover.gallery img.now { transition: none; }
/* подсказка про регистрацию/билет: иконка билета в персиковом круге */
.seathint { align-items: flex-start; }
.seathint .sh-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.seathint .sh-ico svg { width: 16px; height: 16px; }

/* пока грузится следующая карточка — пустая подложка, чтобы снизу не пропадал «хвостик» стопки */
.card.ghost.blank { position: absolute; inset: 0; }
/* «…» у следующей карточки виден сразу — не появляется рывком, когда она становится верхней */

/* lamun: скелетоны — холодные серые, как фон нового дизайна */
:root { --sk-card: #FFFFFF; --sk-hi: #F7F8FA; }
.sk { background: linear-gradient(90deg, #ECEFF3 25%, var(--sk-hi) 45%, #ECEFF3 65%); background-size: 300% 100%; }
.skc { border-radius: 24px; box-shadow: 0 12px 32px -8px rgba(14, 38, 57, .08); }
.skrow { border-radius: 24px; padding: 16px; gap: 14px; margin-bottom: 10px; }
.skev { border-radius: 32px; }
.skev .skcover { height: 200px; border-radius: 0; }
.card.skcard { pointer-events: none; }
.card.skcard .cover.sk { border-radius: 32px 32px 0 0; }
.card.skcard .tagrow { display: flex; gap: 6px; margin-bottom: 14px; }
.card.skcard .skfoot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.card.skcard .cbody { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
nav > .actions.pinned.skwrap { pointer-events: none; }
/* lamun: подсказка про VPN — белая плашка сверху, иконка в персиковом круге (как плашка о работах) */
.slowhint { position: fixed; z-index: 39; left: 50%; top: calc(10px + env(safe-area-inset-top)); translate: -50% 0; width: min(358px, calc(100% - 32px));
  margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 22px; background: #fff; color: var(--text);
  box-shadow: 0 12px 32px -8px rgba(14, 38, 57, .22); animation: nt-in .45s cubic-bezier(.22, 1, .36, 1) both; text-align: left; }
.slowhint .sh-ico { width: 30px; height: 30px; background: var(--accent-soft); color: var(--accent); }
.slowhint .sh-ico svg { width: 17px; height: 17px; }
.slowhint .sh-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.slowhint .sh-text b { font-weight: 700; }
.slowhint .sh-text span { color: var(--hint); font-weight: 500; }

/* плашка о работах — того же размера и вида, что подсказка про VPN */
#notice { padding: 12px 18px 12px 14px; }
#notice .nt-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; font-weight: 500; }
#notice .nt-text b { font-weight: 700; }
#notice .nt-text span { color: var(--hint); }
/* обложка события в шторке «…» — скруглённый квадрат, как в списках «Встреч»: картинка повторяет форму рамки, фон по углам не торчит */
#sheet .rsev { width: 48px; height: 48px; border-radius: 14px; background: none; }
#sheet .rsev img { border-radius: inherit; }

/* сердце в кружке: у сердца визуальный центр выше середины рамки — поднимаем, а не опускаем */
.lico svg { transform: translateY(-.75px); }
/* кнопка с иконкой внутри текста («Мои ♥ — «Хочу пойти»»): текст по высоте заглавных, сердце по центру */
.ibtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ibtn span { text-box: trim-both ex alphabetic; }
.ibtn svg { width: 15px; height: 15px; flex: none; transform: translateY(-.5px); }

/* выбор в форме (город в профиле, «В городе / Не выходя из дома» при создании) — один вид: серая дорожка, белый выбранный сегмент на всю ширину.
   Переключение экранов (лента, «Встречи», уведомления) — отдельные пилюли-вкладки, как раньше */
.segmented.pick { background: rgba(14, 38, 57, .06); padding: 3px; gap: 0; border-radius: 999px; box-shadow: none; margin-bottom: 14px; }
.segmented.pick button { flex: 1; min-height: 40px; padding: 0 8px; color: rgba(14, 38, 57, .5); }
.segmented.pick button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* кнопки: текст в span.tx, кнопка центрирует его флексом, span обрезан по высоте заглавных (работает и в Safari на iPhone) */
.btn-primary, .btn-soft, .btn-pale, .btn-line, .btn-ghost, .btn-danger, .btn-mod { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; text-box: none; }
.btn-primary > .tx, .btn-soft > .tx, .btn-pale > .tx, .btn-line > .tx, .btn-ghost > .tx, .btn-danger > .tx, .btn-mod > .tx { text-box: trim-both ex alphabetic; }
.elenni { display: block; width: 140px; height: auto; margin: 0 auto 4px; }
/* выбранное отличаем фоном и цветом, а не весом: вес одинаковый в обоих состояниях, чтобы текст не «раздувался» и соседи не сдвигались */
.chip, .chip.on, .chips.multi .chip.on,
.modes button, .modes button.on,
.segmented button, .segmented button.on, .segmented.tabs3 button,
nav button, nav button.on { font-weight: 600; }
/* строки в профиле («Мои контакты», «Правила сервиса») — по макету жирные */
.rc-text b { font-weight: 700; }

/* обе плашки сверху — одной высоты: два ряда текста, одинаковые отступы */
#notice, .slowhint { min-height: 64px; box-sizing: border-box; }
/* «+ картинка»: пунктир того же цвета, что и плюс */
button.thumb.add { border-color: currentColor; }
/* все абрикосовые (мягкие) кнопки — одного начертания с главными: 700 */
.btn-soft, .empty .btn-primary, .btn-soft.ibtn { font-weight: 700; }
/* «Мои ♥ — «Хочу пойти»»: у иконки сердца свои поля внутри, поэтому зазор меньше */
.ibtn { gap: 3px; }

/* ✕ в кружке на серых карточках — иконкой, ровно по центру (символ шрифта сидел ниже) */
.lico.x { padding: 0; line-height: 0; display: grid; place-items: center; }
.lico.x svg { width: 20px; height: 20px; transform: none; }
/* 30.10: оптический вес рядом с поиском, фильтром и колокольчиком; размеры и маска точки прежние. */
.lico.ok svg { stroke-width: 2.5; }
.lico.x svg path { stroke-width: 1.45; }
/* согласия в онбординге: пояснение обычным весом (наследовало 700 от подписи поля) */
.consent .hint { font-weight: 500; }
/* 23.10: чипсы — как кнопки: текст в span.tx, центр по высоте прописных; ✕ — иконкой, крупнее и по центру строки */
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-box: normal; line-height: 1.2; }
.chip > .tx { text-box: trim-both ex alphabetic; }
.chips.multi .chip.on::after { content: ""; margin: 0 -2px 0 0; width: 14px; height: 14px; flex: none; opacity: 1;
  background: currentColor; font-size: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* 23.10: «Назад» в онбординге и входе — как в шапке: стрелка и слово с промежутком 8px (display:block убивал gap) */
#app > .back { display: flex; align-items: center; gap: 8px; }
/* 23.10: обе плашки сверху — во всю ширину контента (как карточки), а не 358px: на больших iPhone они были уже экрана */
#notice, .slowhint { width: calc(min(100vw, 560px) - 32px); }
/* 23.10: заголовок экрана, «Назад» и круглые кнопки — по общему краю с карточками и полями (были на 16px внутри) */
main > .topbar, #app > .topbar { margin-left: -16px; margin-right: -16px; }
/* 23.10: точка у колокольчика садится на его плечо и перекрывает дугу целиком до разрыва — без огрызка линии */
#bell .dot { box-sizing: border-box; width: 11px; height: 11px; top: 7px; right: 9.5px; border-width: 2px; }
/* 23.10: «⋯» в шторке события — от угла обложки (12px), как в карточке ленты, а не от края шторки */
.evpanel .card.flat .evdots { top: 34px; right: 30px; }
/* 23.10 (макет 91, вариант 7): «Можно присоединиться» в ленте — белая карточка с тёплым верхом, белые плитки одной высоты;
   «Подборка недели» — без цвета, плитки на фоне экрана */
.selcard { background: linear-gradient(180deg, #FFECE1 0%, #FFFFFF 20%); padding: 20px 10px 12px; }
.selcard .k, .digest .k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 14px; }
.selcard .k { color: var(--accent); padding: 0 8px; }
.selcard h2 { padding: 0 8px; margin: 4px 0 14px; font-size: 22px; font-weight: 800; }
.selcard .rows, .digest .rows { display: flex; flex-direction: column; gap: 8px; }
.selcard .r, .digest .r { display: flex; align-items: center; gap: 12px; height: 104px; flex: none; padding: 0 12px 0 12px; border-radius: 18px;
  background: #fff; text-align: left; color: var(--text); min-height: 0; }
.selcard .r { box-shadow: 0 1px 3px rgba(14, 38, 57, .08); }
.digest .r { box-shadow: var(--shadow-sm); }
.selcard .r img, .digest .r img { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; flex: none; }
.selcard .rt, .digest .rt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.selcard .r .tt, .digest .r .tt { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.selcard .r .w, .digest .r .w { color: var(--hint); font-size: 13px; line-height: 17px; margin: 2px 0 4px; }
.selcard .r .w2, .digest .r .w2 { color: rgba(14, 38, 57, .45); font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selcard .r .chev, .digest .r .chev { margin-left: auto; color: rgba(14, 38, 57, .35); font-size: 22px; flex: none; }
.selcard .who .avatar, .digest .who .avatar { border-color: #fff; }
.digest .k { color: var(--hint); margin-top: 6px; }
.digest h1 { margin: 4px 0 4px; }
.digest .sub { color: var(--hint); font-size: 14px; margin: 0 0 16px; }
/* «Дальше» под карточкой — белая кнопка по центру, не мандариновая */
.lbtn.selnext, nav .actions .lbtn.selnext { flex: 0 0 auto; padding: 0 28px; background: #fff; color: var(--text); box-shadow: 0 6px 18px -6px rgba(14, 38, 57, .12); font-weight: 700; }
.who .avs:empty { display: none; }
/* 23.10: точка у «Встреч» без белого кольца — на полупрозрачном меню кольцо было видно. Вместо кольца вырезаем иконку под точкой */
nav .navdot { box-shadow: none; }
nav .ico:has(.navdot) svg { -webkit-mask: radial-gradient(circle at calc(100% - 1.5px) 4.5px, transparent 6.5px, #000 7px);
  mask: radial-gradient(circle at calc(100% - 1.5px) 4.5px, transparent 6.5px, #000 7px); }
/* 23.10: эмодзи 🗓 📍 💻 📺 заменили на наши линейные иконки — строка «иконка + текст» */
.iline { display: flex; gap: 6px; align-items: flex-start; }
.note .iline { margin-bottom: 4px; }
.iline .mi { width: 15px; height: 15px; margin-top: 2px; }
.meta.mwhen .mi { margin-top: 0; }
/* 23.10: появление экрана не оставляет transform у main после анимации — иначе закреплённые кнопки (.evpin «Открыть чат»)
   прикреплялись к низу страницы, а не к экрану, и уезжали за край */
body.lamun main { animation-fill-mode: backwards; }
/* 23.10 (Алёна): текст в кнопках, чипсах, вкладках и плашках центрируем по высоте строчных (x-height), а не заглавных —
   строчных в словах больше, по ним глаз и читает центр. Правило: «trim-both ex alphabetic» везде, где элемент выглядит как кнопка */
/* 23.10: точка непрочитанного у чата во «Встречах» — на плече облачка, как у колокольчика:
   без белого кольца (на плашке оно косило, как в меню), облачко под точкой вырезано */
.lico .cnt { border: 0; width: 7px; height: 7px; top: 8.5px; right: 10.2px; box-sizing: border-box; }
.lico:has(.cnt) svg { -webkit-mask: radial-gradient(circle at 12.8px 3.25px, transparent 5px, #000 5.5px); mask: radial-gradient(circle at 12.8px 3.25px, transparent 5px, #000 5.5px); }

/* 23.10: текст в кнопках центрируем по строчным (ex), а иконку — по середине между верхом прописных и базовой линией,
   иначе рядом с «Не моё» / «Хочу пойти» она проседает. Сдвиг = (высота прописных − высота строчных) / 2 ≈ 0.09em */
.lbtn:not(.undo) > svg, .ibtn > svg,
:is(.btn-primary, .btn-soft, .btn-pale, .btn-line, .btn-ghost, .btn-danger, .btn-mod) > svg { translate: 0 -0.09em; }

/* 23.10: служебные сообщения в чате — от Ленни (аватарка маскота вместо кружка «l.»), как в ленте */
.vbadge.lenni { background: #F6F6F9 !important; overflow: hidden; display: block; }
.vbadge.lenni img { width: 140%; height: 140%; object-fit: cover; object-position: 50% 12%; margin: -2px 0 0 -20%; display: block; }

/* 23.10: ♥ в тексте — иконкой фирменного цвета; ⋯ — иконкой по центру кружка */
.ih { width: .95em; height: .86em; vertical-align: -.06em; color: inherit; display: inline; }
.menu-dots .dots-i { display: block; margin: auto; }
.menu-dots { display: inline-flex; align-items: center; justify-content: center; }

/* 23.10: кнопки внутри плашек и сообщений чата — 15 px (обычные — 16); строки «Было / Теперь» */
.chbtns button, .msg-sys .chans .row button, .msg-sys .simbtn, .msg-sys .mvrow button, .meeting .row button { font-size: 15px; }
.chline { color: var(--text); }

/* 24.10: все кнопки одной жирности — 700 (Алёна) */
.btn-primary, .btn-soft, .btn-pale, .btn-line, .btn-ghost, .btn-danger, .btn-mod, .btn-modmain, .btn-ya, .msg-sys .simbtn, .chbtns button, .msg-sys .chans .row button, .meeting .row button, .lbtn { font-weight: 700; }
/* 24.10: модерация — фон синее и темнее, шапка того же цвета (Алёна) */
body.adminpage .topbar, body.adminpage.scrolled .topbar { background: rgba(213, 224, 236, .92); }
body.adminpage .iconbtn.ico.mod { display: none; }  /* 24.10: в модерации щит не нужен — мы уже там (Алёна) */
.sday { margin: 20px 0 8px; font-size: 14px; }  /* 24.10: день — подпись группы, как «Уже собираются» (Алёна) */
.empty.endfind { padding-left: 0; padding-right: 0; }  /* 24.10: кнопки, список и лента — по краю 16, как везде (Алёна) */
.empty.endfind .selx-row { margin: 0 -16px; padding: 4px 16px 20px; }
.selcard h2 { margin: 4px 0 2px; } .selcard .sub { padding: 0 8px; margin: 0 0 14px; }  /* 24.10: без надзаголовка капсом (Алёна) */
/* 24.10: внутреннее < внешнее — заголовок с подписью вместе, до карточек 16, от блока выше 32 (Алёна) */
.selx { margin-top: 32px; } .selx-h { margin: 0 0 2px; } .selx-sub { margin: 0 0 12px; }
.selcard .sub { margin-bottom: 16px; }
.selx-it img.cov { height: 104px; }  /* 24.10: обложка крупнее — карточка вытянутая (Алёна) */
.selx-h b { line-height: 22px; } .selx-sub { line-height: 18px; margin: 0 0 16px; }  /* 24.10: подпись прижата к заголовку, до карточек 20 */

/* ================= 24.10 · перенос макетов (Алёна) ================= */
/* красный — один на всё: #CC3333 на #FFE6E6 */
:root { --danger: #CC3333; --bad-ink: #CC3333; --bad-small: #CC3333; --bad-btn: #CC3333; --bad-soft: #FFE6E6; }
.tag.bad, .gone-reason { background: var(--bad-soft); color: var(--danger); }
.seats { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }

/* скругления: карточка ленты 32, шторка 28, блок на экране 20, поле 16, вложенное 12, кнопки и чипсы — капсула */
.box, .cells, .note, .notice, .slowhint { border-radius: 20px; }
input, textarea, select, .sfield input { border-radius: 16px; }
.box .note, .box .seathint, .box .chplate, .box .contact-hint, .cpanel .note, .seathint, .nextplate, #sheet .gone-reason, #sheet .note, #sheet .box,
.selcard .r, .digest .r, .slist, #sheet .slist { border-radius: 12px; }
.digest .r { border-radius: 20px; }

/* шторки: на белом — серые кнопки и поля без тени; отступы внутреннее < внешнее */
#sheet .btn-line, #sheet .btn-pale { background: var(--surface-2); box-shadow: none; border: 0; color: var(--text); }
/* 30.10: фон только на скруглённых полях; прямоугольные обёртки даты/времени прозрачны. */
#sheet input, #sheet textarea, #sheet select { background: var(--surface-2); box-shadow: none; }
#sheet .panel > h2 { margin-bottom: 4px; }
#sheet .panel > h2 + p, #sheet .panel > h2 + .hint { margin-top: 0; }
#sheet .panel .stack { margin-top: 20px; }
#sheet .panel { padding-bottom: calc(54px + env(safe-area-inset-bottom) * 0); }

/* чат: свои сообщения зелёные, служебные плашки серые без тени, одна оранжевая кнопка */
.msg.me { background: #E4F3EA; color: var(--text); box-shadow: none; }
.msg-sys > div, .msg-sys.bad > div { background: var(--surface-2); box-shadow: none; border-radius: 20px; color: var(--text); }
.msg-sys b, .msg-sys.bad b { color: var(--text); }
.msg-sys span, .msg-sys.bad span { color: var(--hint); }
.msg-sys .simbtn, .msg-sys .simbtn.nextbtn { background: var(--accent); color: #fff; border-radius: 12px; }
.msg-sys .chans .btn-pale, .msg-sys .mvrow button { background: var(--surface); color: var(--text); border-radius: 12px; }
.msg-sys .chans .row button { border-radius: 12px; }
.msg-sys.plain > div, .msg-sys.plain { background: none; }

/* шапка при прокрутке: скругление снизу и мягкая тень */
body.scrolled .topbar { border-radius: 0 0 24px 24px; box-shadow: 0 6px 20px -6px rgba(14, 38, 57, .08); }
body.adminpage.scrolled .topbar { background: rgba(213, 224, 236, .92); }

/* меню снизу: неактивные пункты 60% */
nav button:not(.on) { color: rgba(14, 38, 57, .6); }

/* правила: номера оранжевые жирные */
.rules li::marker { color: var(--accent); font-weight: 800; }

/* подпись сразу после заголовка — вплотную, следующий блок через 20 */
h1 + .hint, h2 + .hint, h1 + p.hint, h2 + p.hint { margin-top: 2px; }
/* чекбоксы согласия: 22 px, тонкая обводка; нажимается вся строка (label) — зона больше 44 */
.consent input { width: 22px; height: 22px; border-width: 1.5px; border-color: rgba(14, 38, 57, .3); }
.consent input:checked { background-size: 14px; }
.consent { min-height: 44px; align-items: center; }
/* фото в профиле: «Убрать фото» — крестик на углу фото, зона нажатия 44 */
.avbox { position: relative; display: inline-block; flex: none; }
.phx { position: absolute; right: -6px; bottom: -6px; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: none; box-shadow: none;
  display: grid; place-items: end end; color: var(--text); }
.phx svg { box-sizing: content-box; width: 10px; height: 10px; padding: 6px; border-radius: 50%; background: #EDEFF2; border: 2px solid #fff; margin: 0 4px 4px 0; }
/* тосты: успех — зелёный, ошибка — розовый; иконка в кружке на тон темнее */
#toast { background: #E4F3EA; color: var(--text); border-radius: 18px; padding: 12px 14px; gap: 10px; box-shadow: 0 8px 24px -8px rgba(14, 38, 57, .18); font-size: 15px; font-weight: 600; }
#toast .t-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #C6E6D2; color: var(--ok); font-weight: 800; }
#toast .t-ico svg { width: 13px; height: 13px; }
#toast.err { background: #FFE6E6; }
#toast.err .t-ico { background: #F7C9C9; color: var(--danger); }
#toast button { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
/* уведомления: розовая плашка только у важных (отмена, перенос), у остальных — серая иконка */
.notif .n-ico, .notif.good .n-ico, .notif.soon .n-ico { background: var(--surface-2); color: rgba(14, 38, 57, .6); }
.notif.warn, .notif.chg { background: var(--bad-soft); border-radius: 20px; padding: 14px 12px; margin: 8px 0; border-bottom: 0; }
.notif.warn .n-ico, .notif.chg .n-ico { background: #F7C9C9; color: var(--danger); }
.notif.warn .n-title, .notif.chg .n-title { color: var(--danger); }
.notif.warn .ntext, .notif.chg .ntext { color: var(--text); }
.notif.warn .hint, .notif.chg .hint { color: var(--hint); }
/* шторка «Когда тебе удобно?»: времена — карточки со скроллом вбок, последняя «Ещё N ›» */
.slchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 0 16px; }
.slchips::-webkit-scrollbar { display: none; }
.slchip { flex: none; width: 140px; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 14px 12px; border-radius: 16px;
  background: var(--surface-2); color: var(--text); box-shadow: none; text-align: left; font-weight: 500; }
.slchip b { font-size: 20px; font-weight: 800; line-height: 26px; }
.slchip span { font-size: 15px; color: var(--hint); line-height: 20px; white-space: nowrap; }
.slchip span i { font-style: normal; font-weight: 600; color: var(--text); }
.slchip.on { background: var(--accent-soft); }
.slchip.on b, .slchip.on span i { color: var(--accent); }
.slchip.slmore { width: 96px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.slpick.dim select { opacity: .45; }
/* пустой поиск: Ленни крупно, рубрики чипсами, «Не нашлось нужного?» + персиковая кнопка */
.sempty { padding: 16px 0 0; }
.sempty .elenni { width: 140px; height: auto; display: block; margin: 0 auto 12px; }
.sempty h3 { font-size: 17px; margin: 0 0 2px; }
.sempty .scats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 24px; }
.sempty .sask { margin: 0 0 8px; }
.scats .chip, .scatrow .chip { background: var(--surface); box-shadow: var(--shadow-sm); }
.scats .chip.on, .scatrow .chip.on { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.scatrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 16px 16px 16px; }
.scatrow::-webkit-scrollbar { display: none; }
.scatrow .chip { flex: none; white-space: nowrap; }
#prop.golink { display: block; background: none; border: 0; box-shadow: none; padding: 0; margin-top: 10px; min-height: 0; width: auto; color: var(--accent); font-weight: 600; font-size: 15px; text-align: left; }
.chplate { background: var(--surface-2); } .chplate .btn-pale { background: var(--surface); color: var(--text); }  /* 24.10: плашка переноса — серая, «Не смогу» белая (Алёна) */
.seathint { padding: 12px; } .seathint .sh-ico { margin-top: 0; }
.msg-sys .simbtn, .msg-sys .simbtn.nextbtn, .msg-sys button.simbtn { color: #fff !important; }
.btn-danger { background: var(--danger) !important; color: #fff !important; border-radius: 999px; min-height: 52px; }
/* шторка участника: общие интересы — обычные чипсы 15 px */
#sheet .pspanel .ichips .tag { font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 18px; }
#sheet .pspanel .hint.small { font-size: 14px; }
#sheet .pspanel .ichips .tag { min-height: 36px; display: inline-flex; align-items: center; }
#sheet .pspanel .ichips.lim { max-height: none; }
/* 24.10: приветствие гостя — как вход, но без кнопок: Ленни и текст по центру экрана (Алёна) */
.login2.gwelcome .l2-hero { margin-top: auto; align-self: stretch; }
.login2.gwelcome .l2-txt { margin-bottom: auto; padding-bottom: 6vh; }
/* 24.10: Android-приложение — логотип уже на месте после системной заставки, только круги от квадрата (Алёна) */
.splash.twa .sp-l, .splash.twa .sp-dot { animation: none; }
.splash.twa .sp-dot i { animation-delay: .25s; }
/* 24.10: шторки жалобы и блокировки — как в макетах: аватар человека круглый 48 (как обложка события), причины — серые чипсы без тени на белой шторке (Алёна) */
#sheet .rshead .avatar.sm { width: 48px; height: 48px; flex: none; }
#sheet .reasons .chip:not(.on) { background: var(--surface-2); box-shadow: none; }
/* 24.10: «Отправить код ещё раз» — как в макете, отступ от кнопки */
#again { margin-top: 16px; }
#again .golink { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; width: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ===== 3.0 · поверхности и скругления (макеты «✅ В приложении 3.0», 24.10) =====
   Шкала: лента 32 · шторка 28 · карточки и блоки 20 · вложенное 12 · внутри вложенного 8 · капсулы 999.
   Край карточки — обводка 1 px #E1E8EF (outline рисуется поверх обложки, как Stroke Inside в Figma). */
:root {
  --r-feed: 32px; --r-sheet: 28px; --r-block: 20px; --r-nest: 12px; --r-inner: 8px;
  --edge: #E1E8EF;
  --sh-main: 0 5px 16px rgba(14, 38, 57, .08);
  --sh-light: 0 2px 6px rgba(14, 38, 57, .04);
  --sh-white: 0 2px 6px rgba(14, 38, 57, .045);
  --sh-tab: 0 2px 6px rgba(14, 38, 57, .035);
}
.lamun .card:not(.static):not(.flat):not(.ghost), .lamun .skev, .lamun .card.skcard {
  border-radius: var(--r-feed); outline: 1px solid var(--edge); outline-offset: -1px; box-shadow: var(--sh-main); }
.lamun .card.ghost { border-radius: var(--r-feed); outline: 1px solid var(--edge); outline-offset: -1px; box-shadow: var(--sh-light); }
.lamun .card.static:not(.flat) { border-radius: var(--r-block); outline: 1px solid var(--edge); outline-offset: -1px; box-shadow: var(--sh-main); }
.lamun .card.static:not(.flat) .cover { border-radius: var(--r-block) var(--r-block) 0 0; }
.lamun .box, .lamun .lrow:not(.gone), .lamun .pcard, .lamun .skrow, .lamun .skc:not(.skev), .lamun .selcard {
  border-radius: var(--r-block); outline: 1px solid var(--edge); outline-offset: -1px; box-shadow: var(--sh-light); }
.lamun .modplate { outline: 0; }
/* вложенное в блок: 12, от края блока 8 (20 − 8 = 12), текст остаётся на месте */
.lamun .cpanel .chplate, .lamun .cpanel .note, .lamun .cpanel .seathint {
  border-radius: var(--r-nest); margin-left: -8px; margin-right: -8px; padding-left: 20px; padding-right: 20px; box-shadow: none; outline: 0; }
.lamun .cpanel > .chplate:first-child { margin-top: -8px; padding-top: 20px; }
/* плашка-информер на фоне экрана — уровень блока (20); внутри карточки, блока или шторки — вложенная (12) */
.lamun .note { border-radius: var(--r-block); }
.lamun :is(.box, .cpanel, .pcard, .card, .selcard, #sheet .panel) .note,
.lamun .gone-reason, .lamun .gone-cover, .lamun .selcard .r, .lamun .lthumb { border-radius: var(--r-nest); }
.lamun .note .contact-hint, .lamun .note .chint { border-radius: var(--r-inner); }
/* поля внутри шторок и блоков — 12 (28 − 16 и 20 − 8); на фоне экрана — 16 */
.lamun #sheet input, .lamun #sheet textarea, .lamun #sheet select, .lamun #sheet .slchip, .lamun .pcard input { border-radius: var(--r-nest); }
#sheet .panel { border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
/* белые кнопки и чипсы — обводка и лёгкая тень; выбранная вкладка — только тень */
.lamun .chip:not(.on) { outline: 1px solid var(--edge); outline-offset: -1px; box-shadow: var(--sh-white); border-color: transparent; }
.lamun #sheet .chip:not(.on), .lamun #sheet .reasons .chip:not(.on) { outline: 0; box-shadow: none; }
.lamun .modes button.on, .lamun .segmented button.on { box-shadow: var(--sh-tab); }
/* главная оранжевая кнопка — плоская, без свечения */
.lamun .btn-primary { box-shadow: none; }
/* 24.10: крестик «Не моё» — по центру строчных (как ×), а не по середине прописных: рядом с «моё» он смотрелся выше текста */
.lbtn.no > svg, nav .actions .lbtn.no > svg { translate: 0 0; }
/* 24.10: многодетальные иконки серым — непрозрачный цвет + прозрачность на всю иконку целиком.
   Иначе каждая линия полупрозрачная сама по себе и на пересечениях темнеет (стрелка «Вернуть», календарь). */
.meta .mi svg, .lbtn.undo svg, nav button:not(.on) .ico svg, .rc-ico svg { color: #0E2639; }
.meta .mi svg { opacity: .55; }
.lbtn.undo svg, nav button:not(.on) .ico svg, .rc-ico svg { opacity: .6; }
/* 24.10: информер об ошибке/отказе — фон как у наших ошибок #FFE6E6, текст тёмный */
.lamun .note.bad { background: var(--bad-soft); color: var(--text); }
/* 25.10: как оранжевый информер — жирная первая формулировка, дальше обычный текст; красного внутри абзаца нет (Алёна) */

/* ===== 24.10 · шкала отступов (как у скруглений) =====
   поверхность (карточка, блок, шторка, информер на фоне) — поля 16 ·
   плашка внутри поверхности — на 8 от края, поля 12 · плашка с текстом внутри плашки — тоже 12, скругление 8 */
.lamun .card:not(.person):not(.selwrap):not(.flat) { padding-left: 16px; padding-right: 16px; }
.lamun .card:not(.flat) .cover { margin-left: -16px; margin-right: -16px; }
.lamun .evpanel .card.flat { padding-left: 16px; padding-right: 16px; }
.lamun .card.person .pbody { padding-left: 16px; padding-right: 16px; }
.lamun .note { padding: 16px; }
.lamun :is(.box, .cpanel, .pcard, .card, .selcard, #sheet .panel) .note,
.lamun .cpanel .chplate, .lamun .seathint { padding: 12px; }
.lamun .cpanel > .chplate:first-child { padding-top: 12px; }
.lamun .notif.warn, .lamun .notif.chg { padding: 16px; }
/* плашка с текстом внутри плашки — поля 12 (8 тесно для абзаца), скругление 8; 8 — только для мелочи: чипсы, теги */
.lamun .note .note, .lamun .chplate .note { padding: 12px; border-radius: var(--r-inner); }
.lamun .slowhint, .lamun #notice { padding: 16px; }
/* 25.10: «Позвать в компанию» — зелёным, как всё про людей и общение («+ Позвать», компания, чат); список на 16 под подписью */
.lamun .optico { background: var(--ok-soft); color: var(--ok); }
.lamun .plist.invl { margin-top: 0; }
/* 25.10: «Подробнее и билеты: Timepad ↗» — нажимается вся строка, а не только название; область нажатия шире строки */
.lamun a.source { position: relative; width: fit-content; text-decoration: none; color: rgba(14, 38, 57, .5); -webkit-tap-highlight-color: transparent; }
.lamun a.source::after { content: ""; position: absolute; inset: -10px -8px; }
.lamun a.source:active { opacity: .6; }

/* ===== 25.10 · новая карточка компании (макеты 4.0, вариант Б) ===== */
.lamun .ctitle.ok { color: var(--text); }
.lamun .chead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lamun .chead .ccount { font-size: 16px; font-weight: 700; color: #5F6E7B; flex: none; }
.lamun .invpill { flex: none; height: 34px; min-height: 34px; width: auto; padding: 0 12px; margin: 0 0 0 8px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; box-shadow: none; outline: 0; }
.lamun .arow { padding-left: 0; }
.lamun .arow .avatar.ar { box-shadow: 0 0 0 2px var(--surface); }
.lamun .btn-quiet { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 4px; padding: 0;
  background: none; box-shadow: none; outline: 0; color: #5F6E7B; font-size: 15px; font-weight: 600; }
.lamun .seathint { align-items: flex-start; gap: 12px; }
.lamun .seathint .sh-t { display: block; font-weight: 700; font-size: 14px; line-height: 18px; color: var(--text); }
.lamun .seathint .sh-b { display: block; margin-top: 2px; font-size: 13px; line-height: 17px; color: #5F6E7B; font-weight: 500; }
.lamun .seathint a { margin-top: 6px; font-weight: 600; }
.lamun .evpin.two .btn-soft { background: var(--accent-soft); color: var(--accent); }
/* 25.10: повторяющееся необратимое действие в списке (модерация) — тихая красная ссылка; красная кнопка — только в шторке подтверждения */
.lamun .btn-quiet.danger { color: var(--danger); justify-content: flex-start; width: auto; margin: 4px 0 -10px; }
/* 25.10: строка «аватарки + Хотят пойти» — центр по высоте заглавных, а не по строке: на любом шрифте и размере текст встаёт по центру аватарок (Алёна) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.card .foot .ftext { text-box: trim-both cap alphabetic; }
.card .foot .ftext { line-height: 1.2; padding: 6px 0; margin: -6px 0; }  /* поля — чтобы overflow не срезал «й» и хвосты букв */
/* 25.10: «+N» — сплошной серый: полупрозрачный --surface-2 просвечивал аватарку под ним (Алёна) */
.card .foot .friends .fmore { background: #F1F2F3; }
/* 25.10: шторка «Из твоих контактов» — сверху 32, как у остальных шторок (было 32 панели + 20 шапки) */
#sheet .panel:not(.evpanel):has(.fhead) { padding-top: 0; }
#sheet .fhead { padding-top: 32px; }

/* 25.10: новый Ленни — морда в кружках занимает весь кружок; реакция выглядывает снизу справа (Алёна) */
.lenni-av img, .vbadge.lenni img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 50% 30%; }
.lreact { position: fixed; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 150px); width: 132px; height: 132px; z-index: 60; pointer-events: none;
  animation: lreact-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.lreact img { width: 100%; height: 100%; display: block; }
.lreact.out { animation: lreact-out .35s ease-in both; }
@keyframes lreact-in { from { transform: translateY(40px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lreact-out { to { transform: translateY(30px) scale(.9); opacity: 0; } }


/* 26.10: правило — от лап Ленни до первой строки текста 24 px на всех пустых экранах (Алёна) */
.empty .elenni, .sempty .elenni { margin-bottom: 24px; }
.empty .elenni + * { margin-top: 0; }

/* 26.10: Ленни выглядывает из-за меню с репликой (макет G). Реплика 14/19 Medium, действие SemiBold оранжевым;
   крестик — как очистка поиска (32, затемнение 6% на белом); Ленни 120 px, видна верхняя часть (Алёна) */
.lhint { position: fixed; left: 0; right: 0; height: 0; z-index: 15; pointer-events: none; max-width: 560px; margin: 0 auto; }
.lhint > * { pointer-events: auto; }
/* окно 58 px над меню стоит на месте, едет только картинка внутри — Ленни выходит из-за меню и уходит за него (Алёна) */
.lh-lenni { position: absolute; right: 4px; bottom: 0; width: 120px; height: 58px; overflow: hidden; cursor: pointer; }
.lh-lenni img { display: block; width: 120px; height: auto; animation: lh-up .45s cubic-bezier(.2,.8,.2,1) both; }
.lh-bubble { position: absolute; right: 106px; bottom: 44px; max-width: 220px; min-height: 0; padding: 10px 14px; border-radius: 20px;
  background: #fff; color: var(--text); font-family: inherit; font-size: 14px; line-height: 19px; font-weight: 500; text-align: left;
  box-shadow: 0 6px 18px rgba(14, 38, 57, .14); animation: lh-pop .3s .35s cubic-bezier(.2,.8,.2,1) both; transform-origin: 100% 100%; }
.lh-bubble b { font-weight: 600; color: var(--accent); }
.lh-tail { position: absolute; right: -6px; bottom: -4px; }
.lh-bubble { padding-right: 34px; cursor: pointer; }
.lh-x { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: transparent; color: var(--hint); }  /* внутри облачка (Алёна) */
.lh-x::before { content: ""; position: absolute; inset: -12px; }  /* зона нажатия 44 */
.lhint.out .lh-lenni img { animation: lh-down .3s ease-in both; }
.lhint.out .lh-bubble { animation: lh-fade .2s ease-in both; }
@keyframes lh-up { from { transform: translateY(58px); } to { transform: none; } }
@keyframes lh-down { to { transform: translateY(58px); } }
@keyframes lh-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes lh-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lh-lenni img, .lh-bubble { animation: none; } }

/* 28.10 (6.0, Алёна): заголовки экранов строчными — вес Bold вместо ExtraBold; крупное «ты куда?» на приветствии остаётся ExtraBold */
.topbar .title, h1 { font-weight: 700; }
h1.l2-q { font-weight: 800; }

/* 28.10 (Алёна): галочка согласия — по центру первой строки (между верхом прописных и базовой линией), а не всего блока */
.consent { align-items: flex-start; }
.consent input { margin-top: -1px; }
/* 28.10 v116: кнопки шторки «всё о событии» снова нажимаются (полоса pointer-events:none, а включали только старый .act); «не моё» — серая, как все кнопки на шторках */
.evpanel .evbar .lbtn { pointer-events: auto; }
.evpanel .evbar .lbtn.no { background: var(--surface-2); color: var(--text); box-shadow: none; }
/* 28.10 v117: белая подложка под кнопками шторки выше — растворение заканчивается до верха кнопок, серая «не моё» не просвечивает */
.evpanel .evbar { padding-top: 40px; background: linear-gradient(to bottom, transparent 0, var(--surface) 32px); }
/* 28.10 v118: заставка «06 · Падение» (артефакт «Заставка lamun») — слово проявляется, билет падает на своё место с лёгким наклоном, приземляется с отдачей, от него расходится волна */
.sp-logo { display: block; width: 180px; height: auto; overflow: visible; color: var(--text); }
.sp-w { fill: currentColor; animation: fadeUpSp .42s cubic-bezier(.2, .7, .3, 1) both; }
.sp-t { fill: var(--accent); }
.sp-wave { fill: var(--accent); opacity: 0; }
.sp-fall, .sp-tilt, .sp-t, .sp-wave { transform-box: fill-box; transform-origin: center; }
.sp-fall { animation: spFall .6s cubic-bezier(.33, .02, .5, 1) .3s both; }
.sp-tilt { animation: spTilt .9s cubic-bezier(.3, .7, .35, 1) .3s both; }
.sp-t { animation: spLand .46s cubic-bezier(.3, 1.15, .4, 1) .92s both; }
.sp-wave { animation: spWave .6s cubic-bezier(.2, .7, .3, 1) .92s forwards; }
@keyframes fadeUpSp { from { opacity: 0; transform: translateY(8px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes spFall { 0% { opacity: 0; transform: translateY(-360%); } 14% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes spTilt { 0% { transform: rotate(-7deg); } 62% { transform: rotate(2.5deg); } 100% { transform: rotate(0deg); } }
@keyframes spLand { 0% { transform: scale(1.07, .93); } 40% { transform: scale(.97, 1.03); } 100% { transform: scale(1, 1); } }
@keyframes spWave { 0% { opacity: .32; transform: scale(.7); } 100% { opacity: 0; transform: scale(2.4); } }
/* Android-приложение: логотип уже стоит на месте после системной заставки — только волна от билета */
.splash.twa .sp-w, .splash.twa .sp-fall, .splash.twa .sp-tilt, .splash.twa .sp-t { animation: none; }
.splash.twa .sp-wave { animation-delay: .25s; }
/* 28.10 v118: новый логотип (Figma «logo lamun-fin», 1289:4203) — заставка как в макете «Гость · Заставка»: 183 px по центру; приветствие онбординга — тот же логотип вместо оранжевого текста, в ширину прежнего слова */
.sp-logo { width: 183px; }
.logo .sp-logo { width: 116px; }
.logo .sp-w, .logo .sp-fall, .logo .sp-tilt, .logo .sp-t { animation: none; }
.logo .sp-wave { display: none; }
/* 28.10 v121: на странице события описание — не отдельный блок с прокруткой: страница листается пальцем в любом месте карточки.
   Раньше .desc с overflow:auto + overscroll-behavior:contain «забирал» жест, и на Андроиде страница не листалась (тестер) */
body.evpage #card .desc, body.evcard #card .desc { overflow: visible; overscroll-behavior: auto; flex: none; max-height: none;
  -webkit-mask-image: none; mask-image: none; }
body.evpage #card .cbody, body.evcard #card .cbody { overflow: visible; }
/* 28.10 v122: кнопки «не моё / хочу пойти» на странице события снова нажимаются — полоса pointer-events:none, а включали только старые .round */
.actions.pinned.evacts .lbtn { pointer-events: auto; }
/* 28.10 v123: кнопки страницы события теперь живут внутри меню (как в ленте) — ставим их над меню с тем же зазором 12, а не на меню */
nav > .actions.pinned.evacts { bottom: calc(100% + 12px); padding: 0 16px; }

/* v124 · №197 «Фильтр «когда успеваешь» в ленте»: точка как у колокольчика */
#flt .dot { box-sizing: border-box; width: 11px; height: 11px; top: 7px; right: 9.5px; border-width: 2px; }
#sheet .panel .chips + label { margin-top: 20px; }
#sheet .chips.when .chip:not(.on) { background: var(--surface-2); box-shadow: none; }  /* как причины жалобы */

/* 30.10: принято — одинаковая высота строки даты с переносом встречи и без. */
.card .date-meta{position:relative;margin-bottom:10px}.card .date-meta.mwhen{padding-right:44px}.card .date-meta.mwhen .mvico{position:absolute;right:0;top:calc((1em * 1.35 - 36px) / 2);margin:0}.card .date-meta>span:not(.mi){min-width:0}

/* 31.10: назначенные сеансы и выбор времени своей компании */
#sheet .panel.slot-panel { display:flex; flex-direction:column; overflow:hidden; max-height:88dvh; padding:32px 16px calc(20px + env(safe-area-inset-bottom)); background:var(--surface); }
.slot-panel > h2, .slot-panel > .hint { flex:none; }
.slot-panel .slot-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:16px; margin-top:16px; }
.slot-panel label { display:block; margin:16px 0 8px; color:var(--hint); font-size:14px; }
.slot-day-field { position:relative; }
.slot-day-field select { width:100%; height:48px; padding:0 44px 0 14px; border:0; border-radius:12px; appearance:none; -webkit-appearance:none; background:var(--surface-2); color:var(--text); }
.slot-chevron { position:absolute; width:14px; height:14px; right:16px; top:17px; pointer-events:none; background:currentColor; color:var(--text); clip-path:polygon(8% 24%,50% 66%,92% 24%,100% 33%,50% 84%,0 33%); }
.slot-date-context { margin:0 0 16px; font-weight:600; }
.slot-times { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 12px; }
.slot-time { min-height:48px; border:0; border-radius:12px; padding:8px 2px; background:var(--surface-2); color:var(--text); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:16px; font-weight:700; }
.slot-time:has(span) { min-height:60px; }
.slot-time span { font-size:12px; font-weight:500; line-height:16px; white-space:nowrap; }
.slot-time[aria-pressed="true"] { color:var(--accent); background:var(--accent-soft); }
.slot-single-time { min-height:48px; padding:12px 14px; border-radius:12px; background:var(--surface-2); width:max-content; min-width:108px; }
.slot-footer { flex:none; display:flex; flex-direction:column; gap:10px; padding-top:12px; }
.slot-footer > button { width:100%; display:flex; align-items:center; justify-content:center; text-align:center; margin:0; }
.slot-footer > .btn-ghost { height:48px; min-height:48px; padding:0; color:var(--hint); }
.slot-footer > .btn-line { border:0; background:var(--surface-2); color:var(--text); min-height:48px; }
.slot-footer > .btn-primary:disabled { background:var(--surface-2); color:var(--hint); opacity:1; }
/* Крестик занимает реальную область 44 × 44; значок остаётся 20 × 20. */
.lh-bubble { padding-right:44px; }
.lh-x { width:44px; height:44px; top:0; right:0; border-radius:12px; }
.lh-x::before { content:none; }
.lh-x svg { width:10px; height:10px; flex:none; }

/* 31.10: круглая отметка — отдельный контрол, общие поля шторки её не перекрашивают.
   22 px как в UI; зона пальца 44 px. Семантика checkbox: повторное нажатие снимает выбор. */
.lamun .toggle-control {
  display: inline-grid; place-items: center; flex: 0 0 44px;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; margin: 0; cursor: pointer;
}
.lamun .toggle input[type="checkbox"],
.lamun #sheet .toggle input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  flex: none; width: 22px; min-width: 22px; max-width: 22px;
  height: 22px; min-height: 22px; max-height: 22px; padding: 0; margin: 0;
  border-radius: 50%; border: 1.5px solid rgba(14, 38, 57, .3);
  background: var(--surface); box-shadow: none; cursor: pointer;
}
.lamun .toggle input[type="checkbox"]:checked,
.lamun #sheet .toggle input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  box-shadow: none;
}
.lamun .toggle input[type="checkbox"]:focus,
.lamun #sheet .toggle input[type="checkbox"]:focus { box-shadow: none; }
.lamun .toggle input[type="checkbox"]:focus-visible,
.lamun #sheet .toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
