/* ═══════════════════════════════════════════════════════════════════════════
   ГдеСвои v2 — «Мессенджер 2026»
   Токены → каркас → экран входа → чат → люди/личные → профиль → шторки → мелочи
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #f4f5f6;
  --bg-2: #e9ebee;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --surface-3: #e6e9ed;
  --line: rgba(15, 18, 22, .09);
  --line-2: rgba(15, 18, 22, .14);
  --text: #0f1216;
  --text-2: #353c49;
  --muted: #545f73;
  --faint: #8a94a7;
  --brand: #123fe2;
  --brand-2: #f92689;
  --brand-ink: #0a267e;
  --brand-soft: #dfe8fb;
  --mine-1: #2459f0;
  --mine-2: #0f37c0;
  --mine-text: #ffffff;
  --other: #ffffff;
  --mention: #f7f0e5;
  --mention-line: #d99716;
  --ok: #169b73;
  --away: #d99716;
  --danger: #c35240;
  --ai: #8164d5;
  --shadow-1: 0 1px 2px rgba(15, 35, 70, .06), 0 1px 1px rgba(15, 35, 70, .04);
  --shadow-2: 0 8px 24px -8px rgba(15, 35, 70, .18), 0 2px 6px rgba(15, 35, 70, .06);
  --shadow-3: 0 24px 60px -16px rgba(15, 35, 70, .35);
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --rail: 280px;
  --aside: 300px;
  --top: 60px;
  --tab: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1216;
  --bg-2: #13171c;
  --surface: #1a1e25;
  --surface-2: #242932;
  --surface-3: #2e343f;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f5f6;
  --text-2: #d3d7dd;
  --muted: #8a94a7;
  --faint: #647189;
  --brand: #4c7bee;
  --brand-2: #fe76a7;
  --brand-ink: #bdd1fa;
  --brand-soft: rgba(76, 123, 238, .16);
  --mine-1: #2d5ceb;
  --mine-2: #0f37c0;
  --other: #242932;
  --mention: rgba(217, 151, 22, .14);
  --ai: #9f8ee2;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-3: 0 30px 70px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.45 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand); text-decoration: none; }
img { display: block; max-width: 100%; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i.s { width: 18px; height: 18px; }
.i.xs { width: 15px; height: 15px; }
.i.f { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

/* ── Кнопки и поля ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r-m); font-weight: 650; font-size: 15px;
  background: var(--surface-2); color: var(--text); transition: transform .12s var(--ease), background .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, var(--mine-1), var(--mine-2)); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-2);
  transition: background .15s, color .15s, transform .12s var(--ease); position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.linkish { color: var(--brand); font-weight: 600; }
.linkish:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-m); border: 1.5px solid var(--line-2);
  background: var(--surface); transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--muted); }
.err { font-size: 13.5px; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); padding: 10px 14px; border-radius: 12px; }
.ok-note { font-size: 13.5px; color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); padding: 10px 14px; border-radius: 12px; }

/* ── Аватары и бейджи ────────────────────────────────────────────────────── */
.ava {
  --s: 40px; --c: #64748b;
  width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0; position: relative;
  display: grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .4); color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c));
  user-select: none;
}
/* фото всегда ровно по кругу: абсолютно поверх, обрезается по центру */
.ava { overflow: visible; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.ava .dot { z-index: 1; }
.ava.ai { background: linear-gradient(140deg, #8b80ff, #5b4ce0); }
.ava .dot { position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--surface); }
.ava .dot.away { background: var(--away); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2px; background: var(--brand-soft); color: var(--brand); }
.badge.ai { background: color-mix(in srgb, var(--ai) 16%, transparent); color: var(--ai); }
.badge.mod { background: color-mix(in srgb, #0ea5e9 16%, transparent); color: #0284c7; }
.badge.admin { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff;
  font-size: 11.5px; font-weight: 750; display: inline-grid; place-items: center; line-height: 1;
}

/* ═══ Каркас ═════════════════════════════════════════════════════════════ */
#app { height: 100dvh; height: 100vh; }
@supports (height: 100dvh) { #app { height: 100dvh; } }
.shell { display: grid; grid-template-columns: var(--rail) 1fr; height: 100%; }
.shell.with-aside { grid-template-columns: var(--rail) 1fr var(--aside); }

.rail {
  display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 14px 14px; gap: 6px; min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.city-pill {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-m);
  background: var(--surface-2); transition: background .15s; text-align: left; margin-bottom: 10px;
}
.city-pill:hover { background: var(--surface-3); }
.city-pill .pin { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.city-pill b { display: block; font-size: 15px; }
.city-pill small { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2);
  font-weight: 600; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav a .count { margin-left: auto; }
.rail .spacer { flex: 1; }
.invite-card {
  border-radius: var(--r-l); padding: 16px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #367eff 0%, transparent 55%), linear-gradient(150deg, #123fe2, #0929b2);
}
.invite-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.invite-card p { margin: 0 0 12px; font-size: 13px; opacity: .85; line-height: 1.4; }
.invite-card .btn { height: 38px; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); font-size: 14px; }
.invite-card .btn:hover { background: rgba(255, 255, 255, .26); }
.rail-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 0; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--bg); }
.topbar {
  height: var(--top); flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); position: relative; z-index: 5;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 750; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.topbar .title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.topbar .title.tap { cursor: pointer; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: live 2.4s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.m-only { display: none; }

.aside { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.aside-head { height: var(--top); display: flex; align-items: center; padding: 0 18px; font-weight: 750; border-bottom: 1px solid var(--line); gap: 8px; }
.aside-head small { color: var(--muted); font-weight: 600; }
.aside .people { padding: 8px; overflow-y: auto; flex: 1; }

.tabbar { display: none; }

/* ═══ Мобильная раскладка ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .shell, .shell.with-aside { grid-template-columns: 1fr; }
  .rail, .aside { display: none; }
  .m-only { display: inline-grid; }
  .main { padding-bottom: calc(var(--tab) + var(--safe-b)); }
  .main.no-tabs { padding-bottom: 0; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.5) blur(18px); border-top: 1px solid var(--line);
  }
  .tabbar.hide { display: none; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); position: relative; }
  .tabbar a .i { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a.on .i { stroke-width: 2.2; }
  .tabbar a .count { position: absolute; top: 6px; left: calc(50% + 6px); }
  .topbar { padding: 0 6px 0 12px; }
}

/* ═══ Экран входа ════════════════════════════════════════════════════════ */
.auth { position: fixed; inset: 0; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.auth-bg .bg-top { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.auth-bg .bg-top b { font-weight: 800; }
.auth-bg .bg-top .chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); }
.bots { flex: 1; overflow: hidden; padding: 20px max(20px, calc(50% - 360px)); display: flex; flex-direction: column; gap: 14px; mask-image: linear-gradient(transparent, #000 18%); }
.bot-row { display: flex; gap: 10px; align-items: flex-end; max-width: 520px; }
.bot-row:nth-child(3n) { align-self: flex-end; flex-direction: row-reverse; }
.bot-row:nth-child(3n) .bot-msg { background: linear-gradient(180deg, var(--mine-1), var(--mine-2)); color: #fff; border-radius: 18px 18px 6px 18px; }
.bot-row:nth-child(3n) .bot-name, .bot-row:nth-child(3n) .bot-quote { display: none; }
.bot-row.in { animation: rise .45s var(--ease) both; }
.bot-row .ava { --s: 32px; }
.bot-msg { background: var(--other); padding: 8px 13px 9px; border-radius: 18px 18px 18px 6px; box-shadow: var(--shadow-1); font-size: 14px; }
.bot-name { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.bot-name time { color: var(--faint); font-weight: 500; margin-left: 8px; }
.bot-quote { border-left: 2.5px solid var(--c); padding: 3px 8px; margin: 2px 0 5px; background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--muted); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-quote b { display: block; color: var(--c); font-size: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(2.5px); }
.auth-scroll { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 24px 16px calc(24px + var(--safe-b)); }
.auth-card {
  margin: auto; width: 100%; max-width: 420px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  padding: 28px 26px 22px; animation: rise .5s var(--ease) both;
}
.auth-logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 20px; }
.auth-logo img { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-2); margin-bottom: 8px; }
.auth-logo h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; font-weight: 800; }
.auth-logo p { margin: 0; color: var(--muted); font-size: 14.5px; }
.live-strip { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 30px; padding: 7px 14px; margin: 0 auto 18px; width: fit-content; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 18px; }
.seg button { height: 40px; border-radius: 11px; font-weight: 650; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.form { display: flex; flex-direction: column; gap: 14px; }
.city-field { position: relative; }
.city-field .select { padding-left: 44px; }
.city-field .pin { position: absolute; left: 14px; top: 14px; color: var(--brand); pointer-events: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.legal { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.code-input { letter-spacing: 8px; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.auth-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: 13px; }

/* Подпись (как у Словоплёта) */
.sign { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); opacity: .65; transition: opacity .25s; }
.sign:hover { opacity: 1; }
.sign i { width: 3px; height: 3px; border-radius: 50%; background: var(--brand); }
.sign a { color: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; padding-bottom: 1px; }
.sign a:hover { color: var(--text); background-size: 100% 1px; }

/* ═══ Чат ════════════════════════════════════════════════════════════════ */
.promo-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); }
.promo-bar .ic { display: flex; color: var(--brand); flex: 0 0 auto; }
.promo-bar .t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.promo-bar .go { flex: 0 0 auto; padding: 7px 13px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.promo-bar .go:hover { filter: brightness(1.08); }
.promo-bar .x { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border-radius: 9px; }
.promo-bar .x:hover { color: var(--text); background: var(--surface-2); }
.ai-typing { display: flex; align-items: center; gap: 8px; padding: 2px 16px 12px; color: var(--muted); font-size: 13px; }
.ai-typing b { color: var(--text-2); font-weight: 650; }
.ai-typing .dots { display: inline-flex; gap: 3px; }
.ai-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: ai-dot 1.2s infinite ease-in-out; }
.ai-typing .dots i:nth-child(2) { animation-delay: .15s; }
.ai-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.feed { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 0 8px; scroll-behavior: auto; overscroll-behavior: contain; }
.feed-inner { max-width: 820px; margin: 0 auto; padding: 0 14px; display: flex; flex-direction: column; }
.loader { display: flex; justify-content: center; padding: 14px; color: var(--muted); font-size: 13px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.day-sep { align-self: center; margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); padding: 4px 12px; border-radius: 20px; position: sticky; top: 6px; z-index: 2; backdrop-filter: blur(8px); }
.sys { align-self: center; margin: 6px 0; font-size: 12.5px; color: var(--muted); background: var(--surface-2); padding: 5px 12px; border-radius: 20px; text-align: center; max-width: 90%; transition: opacity 2s; }
.sys.fade { opacity: 0; }
.welcome { align-self: center; text-align: center; max-width: 380px; margin: 30px auto 18px; color: var(--muted); }
.welcome .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--brand-soft); color: var(--brand); }
.welcome h3 { margin: 0 0 6px; color: var(--text); font-size: 18px; }
.welcome p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }

.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 2px; position: relative; }
.msg.first { margin-top: 10px; }
.msg .ava { --s: 34px; cursor: pointer; }
.msg .ava-gap { width: 34px; flex-shrink: 0; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .ava, .msg.mine .ava-gap { display: none; }
.bubble-col { display: flex; flex-direction: column; max-width: min(78%, 560px); min-width: 0; }
.msg.mine .bubble-col { align-items: flex-end; }
.who { font-size: 12.5px; font-weight: 700; margin: 0 0 3px 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bubble {
  position: relative; padding: 8px 12px 7px; border-radius: 18px; background: var(--other); box-shadow: var(--shadow-1);
  overflow-wrap: anywhere; white-space: pre-wrap; font-size: 15px; line-height: 1.42; transition: transform .15s var(--ease);
}
.msg:not(.mine) .bubble { border-bottom-left-radius: 6px; }
.msg:not(.mine):not(.last) .bubble { border-bottom-left-radius: 18px; border-top-left-radius: 6px; }
.msg:not(.mine).first:not(.last) .bubble { border-top-left-radius: 18px; border-bottom-left-radius: 6px; }
.msg.mine .bubble { background: linear-gradient(180deg, var(--mine-1), var(--mine-2)); color: var(--mine-text); border-bottom-right-radius: 6px; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.msg.mention .bubble { background: var(--mention); box-shadow: inset 3px 0 0 var(--mention-line), var(--shadow-1); }
.msg.ai .bubble { box-shadow: inset 3px 0 0 var(--ai), var(--shadow-1); }
.msg.pm .bubble { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--away) 60%, transparent), var(--shadow-1); }
.bubble .meta { float: right; margin: 6px 0 -3px 10px; font-size: 11px; color: var(--faint); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.msg.mine .bubble .meta { color: rgba(255, 255, 255, .75); }
.bubble .at { color: var(--brand); font-weight: 650; }
.msg.mine .bubble .at { color: #fff; }
.bubble .pm-tag { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #b45309; margin-bottom: 3px; }
.msg.mine .bubble .pm-tag { color: #ffe3a8; }
.media { margin: 2px -8px 4px; border-radius: 14px; overflow: hidden; cursor: zoom-in; max-width: 320px; background: var(--surface-2); }
.media img { width: 100%; max-height: 360px; object-fit: cover; }
.media video { width: 100%; max-height: 360px; display: block; }
.attach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 2px -4px 4px; border-radius: 12px; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; }
.attach .i { width: 28px; height: 28px; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 13px; font-size: 13px; background: var(--surface); border: 1px solid var(--line-2); transition: transform .12s var(--ease); }
.react:active { transform: scale(.9); }
.react.me { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand); font-weight: 700; }
.react b { font-size: 12px; font-weight: 700; }
.msg-tools { position: absolute; top: -14px; display: none; gap: 2px; padding: 3px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); z-index: 3; }
.msg .msg-tools { right: 0; }
@media (hover: hover) and (min-width: 901px) { .msg:hover .msg-tools { display: flex; } }
.msg-tools button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--text-2); }
.msg-tools button:hover { background: var(--surface-2); }
.msg-tools .t-reply { width: auto; display: flex; align-items: center; gap: 5px; padding: 0 12px 0 9px; border-radius: 16px; font-size: 13px; font-weight: 650; color: var(--brand); }
.msg-tools .t-reply:hover { background: var(--brand-soft); }
.who:hover { text-decoration: underline; }
.msg-reply { display: none; position: relative; flex-shrink: 0; align-self: flex-end; width: 30px; height: 30px; border-radius: 50%; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.msg-reply::after { content: ''; position: absolute; inset: -8px; }
.msg-reply:active { background: var(--brand-soft); color: var(--brand); }
@media (hover: none), (max-width: 900px) { .msg-reply { display: grid; } }
.msg { touch-action: pan-y; transition: transform .2s var(--ease); }
.msg.swiping { transition: none; }
.swipe-hint { position: absolute; right: -46px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background .15s, color .15s, transform .15s var(--ease); }
.msg.armed .swipe-hint { background: var(--brand); color: #fff; transform: scale(1.12); }
.msg.flash .bubble { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { transform: scale(1.03); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); } }

.to-bottom {
  position: absolute; right: 18px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); color: var(--text-2); z-index: 6;
  transition: opacity .2s, transform .2s var(--ease);
}
.to-bottom.hide { opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; }
.to-bottom .count { position: absolute; top: -6px; right: -4px; background: var(--brand); }

.composer-wrap { flex-shrink: 0; padding: 8px 12px 12px; background: linear-gradient(transparent, var(--bg) 30%); position: relative; z-index: 4; }
@media (max-width: 900px) { .composer-wrap { padding-bottom: 8px; } }
.composer-note { max-width: 820px; margin: 0 auto 6px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; box-shadow: var(--shadow-1); }
.composer-note .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-note b { color: var(--brand); }
.composer-note.warn { background: color-mix(in srgb, #0ea5e9 10%, var(--surface)); }
.composer-note .thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.composer {
  max-width: 820px; margin: 0 auto; display: flex; align-items: flex-end; gap: 4px; padding: 5px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); transition: border-color .2s;
}
.composer:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.composer textarea {
  flex: 1; border: 0; outline: none; background: transparent; resize: none; padding: 10px 6px; max-height: 160px; min-height: 42px;
  line-height: 1.45; font-size: 15.5px;
}
.composer .icon-btn { width: 42px; height: 42px; color: var(--muted); }
.send-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--mine-1), var(--mine-2)); transition: transform .15s var(--ease), opacity .2s; flex-shrink: 0; }
.send-btn:disabled { opacity: .4; }
.send-btn:not(:disabled):active { transform: scale(.9); }
.composer.locked { opacity: .65; }

.emoji-pop { position: absolute; bottom: calc(100% - 4px); left: 12px; transform-origin: var(--tip, 50%) 100%; width: min(340px, calc(100vw - 24px)); padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-3); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; z-index: 30; animation: rise .2s var(--ease); }
.emoji-pop button { height: 38px; border-radius: 10px; font-size: 22px; }
.emoji-pop button:hover { background: var(--surface-2); }
.drop-hint { position: absolute; inset: 10px; border: 2.5px dashed var(--brand); border-radius: 22px; background: color-mix(in srgb, var(--brand) 8%, transparent); display: none; place-items: center; font-weight: 700; color: var(--brand); z-index: 40; pointer-events: none; }
.drop-hint.on { display: grid; }

/* ═══ Списки: люди, диалоги ═════════════════════════════════════════════ */
.page { flex: 1; overflow-y: auto; }
.page-inner { max-width: 760px; margin: 0 auto; padding: 14px 14px 28px; }
.search { position: relative; margin-bottom: 12px; }
.search .i { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.search .input { padding-left: 44px; height: 48px; border-radius: 24px; background: var(--surface); }
.group-title { font-size: 12.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 16px 6px 6px; display: flex; gap: 8px; align-items: center; }
.list { background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; transition: background .15s; position: relative; }
.item + .item::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--line); }
.item:hover { background: var(--surface-2); }
.item .ava { --s: 42px; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: flex; align-items: center; gap: 6px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t small.unread { color: var(--text); font-weight: 600; }
.item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--faint); }
.aside .item { border-radius: 12px; }
.aside .item + .item::before { display: none; }
.item.person { cursor: pointer; }
.row-acts { display: flex; gap: 2px; flex-shrink: 0; }
.row-acts button { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.row-acts button:hover, .row-acts button:active { background: var(--brand-soft); color: var(--brand); }
@media (hover: hover) { .aside .row-acts { visibility: hidden; } .aside .item:hover .row-acts, .aside .item:focus-within .row-acts { visibility: visible; } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--brand-soft); color: var(--brand); }
.empty .big .i { width: 32px; height: 32px; }
.empty h3 { margin: 0 0 6px; color: var(--text); }
.empty p { margin: 0 auto 16px; max-width: 340px; line-height: 1.5; font-size: 14px; }

/* ═══ Профиль ════════════════════════════════════════════════════════════ */
.prof-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.prof-cover { height: 120px; background: radial-gradient(120% 160% at 90% -20%, color-mix(in srgb, var(--c) 70%, #fff) 0%, transparent 60%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #0a267e)); }
.prof-body { padding: 0 20px 20px; margin-top: -48px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.prof-body .ava { --s: 104px; border: 4px solid var(--surface); box-shadow: var(--shadow-2); }
.prof-body .ava .dot { border-width: 4px; }
.prof-body h2 { margin: 12px 0 2px; font-size: 22px; letter-spacing: -.4px; display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.prof-body .seen { color: var(--muted); font-size: 13.5px; }
.prof-body .seen.on { color: var(--ok); font-weight: 600; }
.prof-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.prof-actions .btn { height: 44px; }
.like-btn.on { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.like-btn.on .i { fill: currentColor; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 20px; letter-spacing: -.3px; }
.stat small { color: var(--muted); font-size: 12.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.card .bio { white-space: pre-wrap; line-height: 1.55; color: var(--text-2); margin: 0; }
.facts { display: flex; flex-direction: column; gap: 10px; }
.facts div { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.facts .i { color: var(--muted); }
.menu-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; margin-bottom: 14px; }
.menu-list > * { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; color: var(--text); font-weight: 550; position: relative; }
.menu-list > * + *::before { content: ''; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--line); }
.menu-list > *:hover { background: var(--surface-2); }
.menu-list .i:first-child { color: var(--brand); }
.menu-list .end { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.menu-list .danger, .menu-list .danger .i:first-child { color: var(--danger); }
.menu-list.compact > * { padding: 11px 14px; font-size: 14.5px; }
.menu-list.compact > * + *::before { left: 46px; }
.tiles { display: flex; gap: 8px; margin-bottom: 12px; }
.tiles button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 650; transition: background .15s, transform .12s var(--ease); }
.tiles button .i { color: var(--brand); }
.tiles button:hover { background: var(--brand-soft); }
.tiles button:active { transform: scale(.95); }
.tiles button.main { background: var(--brand-soft); color: var(--brand); }
.tiles button.danger, .tiles button.danger .i { color: var(--danger); }
.person-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 2px 4px 12px; text-align: left; color: var(--text); }
.person-head .ava { --s: 56px; }
.person-head .t { flex: 1; min-width: 0; }
.person-head b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-head small { color: var(--muted); font-size: 13px; }
.person-head > .i:last-child { color: var(--faint); }
.menu-pop { position: fixed; z-index: 110; width: 336px; max-height: calc(100vh - 20px); overflow-y: auto; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); animation: rise .14s var(--ease); }
.menu-pop .quote { display: none; }
.menu-pop .react-bar { padding: 3px; margin-bottom: 8px; border-radius: 16px; }
.menu-pop .react-bar button { height: 36px; border-radius: 12px; font-size: 20px; }
.menu-pop .tiles { margin-bottom: 8px; gap: 6px; }
.menu-pop .tiles button { font-size: 12px; }
.menu-pop .tiles:last-child, .menu-pop .menu-list:last-child { margin-bottom: 0; }
.menu-pop .menu-list { border: 0; border-radius: 12px; }
.sheet .quote { max-height: 76px; }
.theme-switch { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 12px; margin-left: auto; }
.theme-switch button { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.theme-switch button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transition: transform .15s var(--ease); }
.swatches button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* ═══ Шторки (bottom sheet на телефоне, окно на компьютере) ═════════════ */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-shade { position: absolute; inset: 0; background: rgba(5, 12, 25, .45); backdrop-filter: blur(3px); animation: fade .2s; }
.sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--surface);
  border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); box-shadow: var(--shadow-3); animation: sheetUp .35s var(--ease);
}
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 19px; flex: 1; letter-spacing: -.3px; }
.sheet-wrap.closing .sheet { animation: sheetDown .22s var(--ease) forwards; }
.sheet-wrap.closing .sheet-shade { animation: fade .22s reverse forwards; }
@media (min-width: 640px) {
  .sheet-wrap { align-items: center; padding: 20px; }
  .sheet { border-radius: 26px; padding-bottom: 22px; animation: pop .3s var(--ease); }
  .sheet::before { display: none; }
  .sheet-wrap.closing .sheet { animation: fade .18s reverse forwards; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.sheet .doc { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.sheet .doc h2, .sheet .doc h3 { color: var(--text); }

.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 8px 0; border-radius: 14px; }
.share-grid a:hover, .share-grid button:hover { background: var(--surface-2); }
.share-grid .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.share-grid .ic .i { width: 26px; height: 26px; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface-2); margin-top: 6px; }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text-2); }
.invite-hero { text-align: center; padding: 6px 0 4px; }
.invite-hero .big { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #367eff, #123fe2 64%, #0929b2); box-shadow: var(--shadow-2); }
.invite-hero .big .i { width: 36px; height: 36px; }
.invite-hero h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.4px; }
.invite-hero p { margin: 0 auto; max-width: 360px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.invited { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 20px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-size: 13px; font-weight: 700; }

.city-list { display: flex; flex-direction: column; gap: 6px; max-height: 56dvh; overflow-y: auto; }
.city-list button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 600; text-align: left; }
.city-list button:hover { background: var(--surface-3); }
.city-list button.on { background: var(--brand-soft); color: var(--brand); }
.city-list small { margin-left: auto; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.city-list small .live { animation: none; }

.react-bar { display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: var(--surface-2); border-radius: 22px; margin-bottom: 12px; }
.react-bar button { flex: 1; height: 46px; border-radius: 16px; font-size: 26px; transition: transform .12s var(--ease), background .15s; }
.react-bar button:hover { background: var(--surface); }
.react-bar button:active { transform: scale(.85); }
.react-bar button.me { background: var(--brand-soft); }
.quote { padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; color: var(--text-2); margin-bottom: 12px; max-height: 120px; overflow: hidden; white-space: pre-wrap; }
.quote b { display: block; font-size: 12.5px; color: var(--brand); margin-bottom: 2px; }
.dur { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.dur button { height: 38px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-weight: 650; font-size: 14px; }
.dur button:hover { background: var(--surface-3); }

/* ═══ Тосты, баннеры, лайтбокс ══════════════════════════════════════════ */
#toasts { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 440px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-3); animation: toastIn .35s var(--ease); max-width: 100%; }
[data-theme="dark"] .toast { background: #e8eef8; color: #0f172a; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
.toast.out { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 150; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3); font-size: 13px; color: var(--text-2); animation: rise .4s var(--ease); }
.cookie a { color: var(--brand); }
/* внутри чата плашка сверху, под шапкой: не закрывает поле ввода и нижнее меню */
.cookie.in-app-shell { top: calc(var(--top) + 10px); bottom: auto; z-index: 90; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .9); display: grid; place-items: center; animation: fade .2s; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 92dvh; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255, 255, 255, .12); }
.overlay-msg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(5, 12, 25, .6); backdrop-filter: blur(6px); padding: 20px; }
.overlay-msg .card { max-width: 380px; text-align: center; padding: 28px 24px; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Средние экраны: колонка «Люди» убирается, список — в разделе «Люди» */
@media (min-width: 901px) and (max-width: 1240px) {
  .shell.with-aside { grid-template-columns: var(--rail) 1fr; }
  .aside { display: none; }
}

/* Кнопка «вниз» всегда над полем ввода (на телефоне — ещё и над нижним меню) */
.to-bottom { bottom: 100px; }
@media (max-width: 900px) {
  .main .to-bottom { bottom: calc(var(--tab) + var(--safe-b) + 84px); }
  .main.no-tabs .to-bottom { bottom: 92px; }
}
.rail-foot .sign { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 2px; }
.rail-foot .sign i { display: none; }

/* ═══ Цветовые схемы (data-scheme) × режим (data-theme) ═══════════════════ */
[data-scheme="aurora"] { --brand: #0d9488; --brand-2: #7c3aed; --mine-1: #14b8a6; --mine-2: #6d28d9; --brand-soft: #dff5f1; --bg: #f1f7f7; --surface-2: #eaf3f3; }
[data-scheme="aurora"][data-theme="dark"] { --brand: #2dd4bf; --brand-2: #a78bfa; --mine-1: #0f9f8f; --mine-2: #6d28d9; --brand-soft: rgba(45, 212, 191, .14); --bg: #06151a; --bg-2: #081c22; --surface: #0c2027; --surface-2: #112a33; --surface-3: #173540; }
[data-scheme="sunset"] { --brand: #ea580c; --brand-2: #db2777; --mine-1: #f97316; --mine-2: #db2777; --brand-soft: #ffeadc; --bg: #fbf5f2; --surface-2: #f8eee8; --mention: #fff1e0; }
[data-scheme="sunset"][data-theme="dark"] { --brand: #fb923c; --brand-2: #f472b6; --mine-1: #ea580c; --mine-2: #be185d; --brand-soft: rgba(251, 146, 60, .15); --bg: #170c0e; --bg-2: #1d0f12; --surface: #221316; --surface-2: #2c1a1e; --surface-3: #3a2228; }
[data-scheme="matcha"] { --brand: #3f8f2f; --brand-2: #84cc16; --mine-1: #4d9a37; --mine-2: #2f7a23; --brand-soft: #e6f3df; --bg: #f3f7f1; --surface-2: #ebf2e7; }
[data-scheme="matcha"][data-theme="dark"] { --brand: #6fcf55; --brand-2: #bef264; --mine-1: #3f8f2f; --mine-2: #2b6a20; --brand-soft: rgba(111, 207, 85, .14); --bg: #0a130b; --bg-2: #0d180e; --surface: #111e12; --surface-2: #172818; --surface-3: #1f3420; }
[data-scheme="caramel"] { --brand: #b45309; --brand-2: #d97706; --mine-1: #c2690f; --mine-2: #9a4a08; --brand-soft: #f8ead7; --bg: #f9f5ef; --surface-2: #f3ece2; --other: #fffdf9; }
[data-scheme="caramel"][data-theme="dark"] { --brand: #f0a64a; --brand-2: #fbbf24; --mine-1: #b45309; --mine-2: #854006; --brand-soft: rgba(240, 166, 74, .15); --bg: #14100b; --bg-2: #19140e; --surface: #1e1811; --surface-2: #282017; --surface-3: #342a1e; --other: #282017; }
[data-scheme="lavender"] { --brand: #7c3aed; --brand-2: #c026d3; --mine-1: #8b5cf6; --mine-2: #6d28d9; --brand-soft: #efe7fe; --bg: #f6f3fc; --surface-2: #efeaf9; }
[data-scheme="lavender"][data-theme="dark"] { --brand: #a78bfa; --brand-2: #e879f9; --mine-1: #7c3aed; --mine-2: #5b21b6; --brand-soft: rgba(167, 139, 250, .15); --bg: #0f0b1a; --bg-2: #130e21; --surface: #181126; --surface-2: #211934; --surface-3: #2b2142; }
[data-scheme="graphite"] { --brand: #334155; --brand-2: #64748b; --mine-1: #3f4b5e; --mine-2: #1e293b; --brand-soft: #e8ebf0; --bg: #f3f4f6; --surface-2: #eceef2; }
[data-scheme="graphite"][data-theme="dark"] { --brand: #cbd5e1; --brand-2: #94a3b8; --mine-1: #3b4658; --mine-2: #273142; --brand-soft: rgba(203, 213, 225, .12); --bg: #0c0d10; --bg-2: #101114; --surface: #15171b; --surface-2: #1c1f25; --surface-3: #252931; }
[data-scheme="graphite"][data-theme="dark"] .btn.primary, [data-scheme="graphite"][data-theme="dark"] .send-btn { color: #fff; }

/* ═══ Правый верхний угол ════════════════════════════════════════════════ */
.top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.top-actions .icon-btn { width: 40px; height: 40px; }
.top-actions .icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; border: 2px solid var(--surface); }
.top-actions .me-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-left: 4px; transition: transform .12s var(--ease); }
.top-actions .me-btn:active { transform: scale(.92); }
.top-actions .me-btn .ava { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--brand) 55%, transparent); }
.d-only { display: inline-grid; }
@media (max-width: 900px) { .d-only { display: none !important; } }
@media (max-width: 380px) { .top-actions .icon-btn { width: 36px; } }

/* Схемы в шторке */
.schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.scheme { border-radius: 18px; padding: 10px; background: var(--surface-2); border: 2px solid transparent; text-align: left; transition: transform .15s var(--ease), border-color .2s; }
.scheme:hover { transform: translateY(-2px); }
.scheme.on { border-color: var(--brand); }
.scheme .pv { height: 70px; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; margin-bottom: 8px; position: relative; overflow: hidden; }
.scheme .pv i { display: block; height: 14px; border-radius: 7px; }
.scheme .pv i.o { width: 62%; background: #fff; }
.scheme .pv i.m { width: 54%; align-self: flex-end; }
.scheme b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.scheme small { display: block; color: var(--muted); font-size: 12px; }
.mode-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.mode-row .theme-switch { margin: 0; background: var(--surface); }

/* Рейтинг */
.lb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.lb-tabs button { height: 38px; border-radius: 10px; font-weight: 650; font-size: 13.5px; color: var(--muted); }
.lb-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin: 6px 0 14px; }
.podium a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); min-width: 0; }
.podium .stand { width: 100%; border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.podium .p1 .stand { height: 74px; background: linear-gradient(180deg, #fbbf24, #d97706); }
.podium .p2 .stand { height: 56px; background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.podium .p3 .stand { height: 44px; background: linear-gradient(180deg, #fdba74, #c2410c); }
.podium b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium small { color: var(--muted); font-size: 12px; margin-top: -4px; }
.lb-list .item .pos { width: 26px; text-align: center; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-list .item.me { background: var(--brand-soft); }
.lb-list .item .score { font-weight: 750; color: var(--brand); font-variant-numeric: tabular-nums; }
.tips { display: flex; flex-direction: column; gap: 12px; }
.tips div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.tips .k-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.tips b { color: var(--text); }
.quick-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.quick-head b { display: block; font-size: 17px; }
.quick-head small { color: var(--muted); }
.mention-item .t small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Дата между днями — обычная плашка, не наезжает на сообщения при прокрутке */
.day-sep { position: static; }

/* ═══ Живые сцены профиля ═════════════════════════════════════════════════ */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene * { transform-box: fill-box; }
.sc-tw { animation: scTw 3.4s ease-in-out infinite; }
.sc-tw.slow { animation-duration: 7s; }
.sc-pulse { transform-origin: center; animation: scPulse 5s ease-in-out infinite; }
.sc-drift { animation: scDrift 40s ease-in-out infinite alternate; }
.sc-float { animation: scFloat 5s ease-in-out infinite; }
.sc-float.slow { animation-duration: 8s; }
.sc-wave { animation: scWave 7s linear infinite; }
.sc-wave.rev { animation-direction: reverse; animation-duration: 10s; }
.sc-aur { transform-origin: center; animation: scAur 9s ease-in-out infinite alternate; }
.sc-aur.b { animation-duration: 13s; animation-delay: -3s; }
.sc-aur.c { animation-duration: 11s; animation-delay: -6s; }
.sc-bridge.l { transform-origin: left bottom; animation: scBridgeL 9s ease-in-out infinite alternate; }
.sc-bridge.r { transform-origin: right bottom; animation: scBridgeR 9s ease-in-out infinite alternate; }
.sc-sway { transform-origin: bottom; animation: scSway 4s ease-in-out infinite alternate; }
.sc-cable { animation: scCable 16s ease-in-out infinite alternate; }
.sc-cable-h { animation: scCableH 14s linear infinite; }
.sc-car { animation: scCar 11s linear infinite; }
.sc-walk { animation: scWalk 18s ease-in-out infinite alternate; }
.sc-snow { animation: scSnow 8s linear infinite; }
.sc-heart { animation: scHeart 7s ease-in-out infinite; opacity: 0; }
.sc-meteor { animation: scMeteor 7s ease-in infinite; }
@keyframes scTw { 50% { opacity: .25; } }
@keyframes scPulse { 50% { transform: scale(1.12); } }
@keyframes scDrift { to { transform: translateX(46px); } }
@keyframes scFloat { 50% { transform: translateY(-5px); } }
@keyframes scWave { to { transform: translateX(40px); } }
@keyframes scAur { to { transform: translateX(26px) skewX(-7deg) scaleY(1.14); opacity: .2; } }
@keyframes scBridgeL { 0%, 25% { transform: rotate(0); } 75%, 100% { transform: rotate(-58deg); } }
@keyframes scBridgeR { 0%, 25% { transform: rotate(0); } 75%, 100% { transform: rotate(58deg); } }
@keyframes scSway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes scCable { from { transform: translate(190px, 106px); } to { transform: translate(385px, 165px); } }
@keyframes scCableH { from { transform: translateX(-20px); } to { transform: translateX(420px); } }
@keyframes scCar { from { transform: translateX(-60px); } to { transform: translateX(430px); } }
@keyframes scWalk { from { transform: translateX(-120px); } to { transform: translateX(150px); } }
@keyframes scSnow { to { transform: translateY(320px); } }
@keyframes scHeart { 0% { opacity: 0; transform: translateY(40px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1.1); } }
@keyframes scMeteor { 0%, 62% { transform: translate(450px, 10px); opacity: 0; } 66% { opacity: 1; } 84% { transform: translate(120px, 150px); opacity: 1; } 88%, 100% { transform: translate(90px, 165px); opacity: 0; } }
.still .scene *, .scene.still * { animation: none !important; }

/* ═══ Профиль-витрина ═════════════════════════════════════════════════════ */
#prof { max-width: 580px; }
.ava .emo { font-size: calc(var(--s) * .56); line-height: 1; }
.hero-photo, .hero-scene { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); margin-bottom: 12px; color: #fff; }
.hero-photo { aspect-ratio: 4 / 5; max-height: 74vh; width: 100%; }
.hero-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; cursor: zoom-in; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; top: 2px; left: 14px; right: 14px; display: flex; gap: 5px; }
.hero-dots i { flex: 1; height: 3px; padding: 8px 0; border-radius: 2px; background: rgba(255, 255, 255, .4); background-clip: content-box; cursor: pointer; }
.hero-dots i.on { background: #fff; background-clip: content-box; }
.hero-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: none; place-items: center; color: #fff; background: rgba(10, 16, 30, .5); backdrop-filter: blur(8px); opacity: 0; transition: opacity .15s, background .15s; }
.hero-nav.prev { left: 12px; }
.hero-nav.prev .i { transform: rotate(180deg); }
.hero-nav.next { right: 12px; }
.hero-nav:hover { background: rgba(10, 16, 30, .75); }
.hero-nav:disabled { display: none !important; }
@media (hover: hover) { .hero-nav { display: grid; } .hero-photo:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; } }
.hero-btn { position: absolute; top: 20px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10, 16, 30, .4); backdrop-filter: blur(8px); z-index: 2; }
.hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; background: linear-gradient(transparent, rgba(5, 10, 22, .78)); pointer-events: none; }
.hero-info h2 { margin: 0 0 4px; font-size: 27px; letter-spacing: -.5px; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.hero-info .age { font-weight: 500; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.hero-meta .seen { color: inherit; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hero-meta .pl { display: inline-flex; align-items: center; gap: 4px; }
.hero-scene { height: 340px; }
.hero-center { position: absolute; left: 0; right: 0; top: 54px; display: flex; justify-content: center; }
.hero-center .ava { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), var(--shadow-3); }
.prof-actions.wide { display: flex; gap: 8px; margin: 0 0 12px; justify-content: stretch; }
.prof-actions.wide .btn { height: 48px; }
.mutual { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; margin-bottom: 12px; border-radius: 14px; background: color-mix(in srgb, #ec4899 13%, transparent); color: #db2777; font-weight: 700; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 15px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.tag.goal { background: var(--brand-soft); color: var(--brand); }

/* Редактор: фото, эмодзи, фон */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 9px; }
.ph.add { border: 1.5px dashed var(--line-2); align-content: center; gap: 4px; }
.ph.add small { font-size: 12px; }
.ep-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ep-row b { display: block; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 164px; overflow-y: auto; padding: 2px; }
.emoji-grid button { height: 44px; border-radius: 12px; font-size: 23px; background: var(--surface-2); font-weight: 700; }
.emoji-grid button.on { box-shadow: 0 0 0 2px var(--brand); background: var(--brand-soft); }
.scene-pick { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--surface-2); text-align: left; font-weight: 600; width: 100%; }
.sp-pv { position: relative; display: block; width: 64px; height: 44px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.scene-grid button { font-size: 12.5px; text-align: center; padding: 4px; border-radius: 12px; }
.scene-grid button.on { box-shadow: 0 0 0 2px var(--brand); }
.scene-grid .sp-pv { width: 100%; height: 70px; margin-bottom: 5px; }
.scene-grid b { font-weight: 600; }
.still .sc-cable, .still .sc-cable-h, .still .sc-car, .still .sc-meteor, .still .sc-walk, .still .sc-heart { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sc-cable, .sc-cable-h, .sc-car, .sc-meteor, .sc-heart { visibility: hidden; } }

/* Выбор области */
.crop { position: relative; overflow: hidden; border-radius: 16px; background: #000; touch-action: none; cursor: grab; user-select: none; width: 100%; max-width: 420px; margin: 0 auto; }
.crop img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); border-radius: 16px; }
.crop.round .crop-frame { border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .85); }
.ph-preview { margin-bottom: 12px; display: flex; justify-content: center; }
.ph-preview img { max-height: 40vh; border-radius: 16px; }

/* Формы и знакомства */
.dur button.sel { background: var(--brand); color: #fff; }
.chips-int button { height: 34px; padding: 0 12px; font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.dating-hero { text-align: center; padding: 8px 10px 16px; }
.dating-hero .big { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #fb7185, #db2777); box-shadow: var(--shadow-2); }
.dating-hero .big .i { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.dating-hero h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.4px; }
.dating-hero p { margin: 0 auto; max-width: 420px; color: var(--muted); line-height: 1.5; }
.tip-line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--brand-soft); font-size: 14px; }
.dating-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.seg-t { flex: 1; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg-t button { height: 38px; border-radius: 10px; font-weight: 650; color: var(--muted); }
.seg-t button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.d-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--surface-2); color: #fff; }
.d-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.d-card:hover > img { transform: scale(1.03); }
.d-ava { position: absolute; left: 0; right: 0; top: 22%; display: flex; justify-content: center; }
.d-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 11px 10px; background: linear-gradient(transparent, rgba(5, 10, 22, .8)); display: block; }
.d-info b { display: flex; align-items: center; gap: 6px; font-size: 15.5px; }
.d-info small { display: block; font-size: 12px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-d { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.d-like { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10, 16, 30, .42); backdrop-filter: blur(6px); z-index: 2; transition: transform .15s var(--ease); }
.d-like:active { transform: scale(.85); }
.d-like.on { background: #ec4899; }
.d-like.on .i { fill: currentColor; }
@media (max-width: 900px) { .tabbar a { font-size: 10.5px; } }

/* Текст страницы до запуска интерфейса (для поисковиков и без JavaScript) */
.seo-pre { max-width: 640px; margin: 0 auto; padding: 40px 20px; color: var(--text); }
.seo-pre h1 { font-size: 26px; margin: 0 0 12px; }
.seo-pre h2 { font-size: 18px; margin: 22px 0 8px; }
.seo-pre p, .seo-pre li { color: var(--text-2); }
.seo-pre a { color: var(--brand); }
.seo-cities { columns: 2; padding-left: 18px; }

/* ── Внутри приложения для Android: без подсветки нажатий, выделения интерфейса и «резинки» ── */
html.in-app { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
html.in-app body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
html.in-app input, html.in-app textarea, html.in-app [contenteditable], html.in-app .doc, html.in-app .bio { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
