/* Your Bunny Wrote — стиль Cyberpunk, как в Android-приложении (ui/Theme.kt).
   Палитра: коралловый — основной, светлый циан — действия и данные, жёлтый — метки.
   Шрифты (OFL): Tektur — интерфейс, Exo 2 — текст, JetBrains Mono — служебное. */

@font-face { font-family: 'Tektur'; src: url('/fonts/tektur.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('/fonts/exo2.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('/fonts/exo2_italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains_mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --c-bg: #0A0709;
  --c-bg2: #110A0C;
  --c-panel: #170D10;
  --c-panel2: #231418;
  --c-field: #0D090B;
  --c-line: #3A1B1E;
  --c-coral: #E55D51;
  --c-coral-dark: #2A110F;
  --c-coral-dim: #843630;
  --c-cyan: #8AF0FC;
  --c-cyan-dark: #0A1B1F;
  --c-cyan-dim: #4E7E84;
  --c-yellow: #F0E448;
  --c-yellow-dim: #4A421A;
  --c-red: #FF3355;
  --c-green: #5EF2A6;
  --c-text: #EAE4E4;
  --c-muted: #AE9696;
  --c-dim: #726060;
  --ui: 'Tektur', system-ui, sans-serif;
  --body: 'Exo 2', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--c-bg); color: var(--c-text); overscroll-behavior: none; }
body {
  font: 400 14px/20px var(--body);
  letter-spacing: .25px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
img { display: block; }
ol { margin: 0; padding-left: 20px; }

/* Фон: светлые строки развёртки через 3 px и красноватое свечение сверху. */
.cyber-bg {
  background-color: var(--c-bg);
  background-image:
    repeating-linear-gradient(to bottom, rgba(255, 110, 100, .035) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, #180C0F 0, rgba(10, 7, 9, 0) 460px);
  background-size: 100% 3px, 100% 100%;
  background-repeat: repeat, no-repeat;
}

/* Срезанные углы (CutCornerShape) с рамкой поверх содержимого.
   --tl/--tr/--br/--bl — размер среза, --bw/--bc — рамка, --bg — заливка. */
.cut {
  --tl: 0px; --tr: 0px; --br: 0px; --bl: 0px; --bw: 1px; --bc: transparent; --bg: transparent;
  position: relative;
  background: var(--bg);
  clip-path: polygon(var(--tl) 0, calc(100% - var(--tr)) 0, 100% var(--tr), 100% calc(100% - var(--br)),
    calc(100% - var(--br)) 100%, var(--bl) 100%, 0 calc(100% - var(--bl)), 0 var(--tl));
}
.cut::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: var(--bw) solid var(--bc);
  background:
    linear-gradient(to bottom right, transparent 50%, var(--bc) calc(50% + .4px), var(--bc) calc(50% + var(--bw)), transparent calc(50% + var(--bw) + .4px)) top left / var(--tl) var(--tl) no-repeat border-box,
    linear-gradient(to bottom left, transparent 50%, var(--bc) calc(50% + .4px), var(--bc) calc(50% + var(--bw)), transparent calc(50% + var(--bw) + .4px)) top right / var(--tr) var(--tr) no-repeat border-box,
    linear-gradient(to top left, transparent 50%, var(--bc) calc(50% + .4px), var(--bc) calc(50% + var(--bw)), transparent calc(50% + var(--bw) + .4px)) bottom right / var(--br) var(--br) no-repeat border-box,
    linear-gradient(to top right, transparent 50%, var(--bc) calc(50% + .4px), var(--bc) calc(50% + var(--bw)), transparent calc(50% + var(--bw) + .4px)) bottom left / var(--bl) var(--bl) no-repeat border-box;
}

/* ---------------------------------------------------------------- типографика (Material 3 + Theme.kt) */
.display { font: 800 36px/44px var(--ui); letter-spacing: 6px; }
.headline-small { font: 700 24px/32px var(--ui); letter-spacing: .6px; }
.title-large { font: 600 22px/28px var(--ui); letter-spacing: .6px; }
.title-medium { font: 500 16px/24px var(--ui); letter-spacing: .4px; }
.title-small { font: 500 14px/20px var(--ui); letter-spacing: .4px; }
.body-large { font: 400 16px/24px var(--body); letter-spacing: .5px; }
.body-medium { font: 400 14px/20px var(--body); letter-spacing: .25px; }
.body-small { font: 400 12px/16px var(--body); letter-spacing: .4px; }
.label-large { font: 600 14px/20px var(--ui); letter-spacing: 1.2px; }
.label-medium { font: 500 12px/16px var(--ui); letter-spacing: 1px; }
.label-small { font: 500 11px/16px var(--ui); letter-spacing: .8px; }
.mono-small { font: 400 11px/16px var(--mono); letter-spacing: .3px; }
.mono-medium { font: 400 13px/18px var(--mono); letter-spacing: 0; }
.italic { font-style: italic; }
.pre { white-space: pre; }
.ellipsis.pre { white-space: pre; }
.center { text-align: center; }
.yellow { color: var(--c-yellow); }
.coral { color: var(--c-coral); }
.coral-dim { color: var(--c-coral-dim); }
.dim { color: var(--c-dim); }
.cyan { color: var(--c-cyan); }
.red { color: var(--c-red); }
.green { color: var(--c-green); }
.muted { color: var(--c-muted); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flex1 { flex: 1; }
.min0 { min-width: 0; }
.pad14 { padding: 14px; }
.hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.plain-btn { padding: 8px; }

.glitch {
  color: var(--c-coral);
  text-shadow: 1px 0 rgba(240, 228, 72, .35), -1px 0 rgba(138, 240, 252, .4), 0 2px 6px rgba(229, 93, 81, .25);
}
/* Логотип: раз в 3 секунды — киберпанковский глитч (сдвиг полос и цветовых каналов). */
.glitch-anim { position: relative; display: inline-block; animation: glitch-main 3s infinite steps(1, end); }
.glitch-anim::before, .glitch-anim::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none; opacity: 0; text-shadow: none;
}
.glitch-anim::before { color: var(--c-cyan); animation: glitch-a 3s infinite steps(1, end); }
.glitch-anim::after { color: var(--c-yellow); animation: glitch-b 3s infinite steps(1, end); }
@keyframes glitch-main {
  0%, 86% { transform: none; filter: none; }
  87% { transform: translate(-2px, 0) skewX(-8deg); }
  89% { transform: translate(3px, 0); filter: brightness(1.4); }
  91% { transform: translate(-1px, 1px) skewX(6deg); }
  93% { transform: translate(2px, -1px); filter: none; }
  95% { transform: translate(-3px, 0); }
  97%, 100% { transform: none; filter: none; }
}
@keyframes glitch-a {
  0%, 86% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  87% { opacity: .9; transform: translate(-5px, 0); clip-path: inset(8% 0 62% 0); }
  89% { transform: translate(6px, 0); clip-path: inset(55% 0 20% 0); }
  91% { transform: translate(-4px, 0); clip-path: inset(30% 0 45% 0); }
  93% { transform: translate(5px, 0); clip-path: inset(72% 0 6% 0); }
  95% { transform: translate(-6px, 0); clip-path: inset(0 0 78% 0); }
  97%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-b {
  0%, 86% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  87% { opacity: .85; transform: translate(5px, 0); clip-path: inset(60% 0 12% 0); }
  89% { transform: translate(-6px, 0); clip-path: inset(15% 0 60% 0); }
  91% { transform: translate(4px, 0); clip-path: inset(80% 0 2% 0); }
  93% { transform: translate(-5px, 0); clip-path: inset(40% 0 38% 0); }
  95% { transform: translate(3px, 0); clip-path: inset(22% 0 55% 0); }
  97%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch-anim, .glitch-anim::before, .glitch-anim::after { animation: none; }
}
.logo-text { font: 800 28px/36px var(--ui); letter-spacing: 2px; white-space: nowrap; }

.icon { display: block; flex: none; }
.icon-btn {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.icon-btn:active { background: rgba(255, 255, 255, .08); }

.spinner {
  display: inline-block; flex: none;
  border: 2px solid; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- каркас */
#app {
  position: fixed; left: 0; right: 0; top: 0;
  height: var(--app-h, 100%);
  overflow: hidden;
}
@media (min-width: 720px) {
  #app { max-width: 560px; margin: 0 auto; border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); }
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.screen.hidden { visibility: hidden; pointer-events: none; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.list-bottom { height: calc(12px + var(--sab)); flex: none; }
.center-abs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }

/* Верхняя панель: жёлтая линия с «вырезом», заголовок капсом и строка статуса. */
.topbar { flex: none; background: rgba(12, 7, 9, .96); padding-top: var(--sat); position: relative; z-index: 5; }
.topbar-row { height: 60px; display: flex; align-items: center; padding: 0 6px; }
.topbar-gap { width: 10px; flex: none; }
.topbar-leading { margin-right: 10px; flex: none; }
.topbar-titles { flex: 1; min-width: 0; }
.topbar-title {
  font: 700 19px/24px var(--ui); letter-spacing: .8px; text-transform: uppercase;
  color: var(--c-coral); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title.glitch-anim { overflow: visible; }
.topbar-actions { display: flex; align-items: center; flex: none; }
.topbar-line { height: 1px; background: var(--c-line); }
.topbar-notch { margin-left: 12px; width: 180px; height: 3px; background: var(--c-coral); }

/* ---------------------------------------------------------------- элементы */
.avatar { flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-family: var(--ui); font-weight: 700; line-height: 1; letter-spacing: 0; }
.online-dot {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: 12px; height: 12px; background: var(--c-green); border: 2px solid var(--c-bg);
}
/* Галочка у аватарки: пользователь у вас в друзьях. */
.friend-badge {
  position: absolute; right: -3px; top: -3px; z-index: 3;
  width: 16px; height: 16px; background: var(--c-cyan); border: 2px solid var(--c-bg);
  display: flex; align-items: center; justify-content: center; color: var(--c-bg);
}
.friend-badge .icon { width: 12px; height: 12px; }
.tag {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  padding: 1px 6px; font: 700 11px/16px var(--mono); letter-spacing: .3px;
}
/* Метка в стиле референса: цветной текст в тонкой рамке. */
.tag-outline { display: inline-flex; align-items: center; flex: none; padding: 0 6px; font: 500 13px/20px var(--mono); border: 1px solid; }
.section-label { display: flex; align-items: center; white-space: pre; }
.panel { display: flex; flex-direction: column; }
.panel.clickable { cursor: pointer; }
.btn {
  height: 50px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
}
.btn:active:not(:disabled) { --bg: var(--press) !important; }
.text-btn { padding: 10px 12px; min-height: 40px; border-radius: 20px; white-space: nowrap; }
.text-btn:active { background: rgba(255, 255, 255, .07); }

.banner { margin: 4px 10px; }
.banner-body { padding: 10px 14px; }
.banner-actions { display: flex; justify-content: flex-end; margin: 4px -8px -6px 0; }
.call-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-width: 0; }
.update-banner { display: flex; align-items: center; gap: 12px; padding: 14px; }
.setup-card { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.setup-row { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.setup-later { display: flex; justify-content: flex-end; margin-right: -8px; }
.hint { width: 100%; }
.hint-body { padding: 10px 14px; }
.hint-body .icon, .help-list .icon { display: inline-block; vertical-align: -3px; }

/* Поле ввода (OutlinedTextField): подпись поднимается на рамку. */
.field { position: relative; width: 100%; --accent: var(--c-coral); }
.field-box { height: 56px; display: flex; align-items: center; }
.field input {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 16px; color: var(--c-text); caret-color: var(--accent);
  font: 400 16px/24px var(--body); letter-spacing: .5px;
}
.field.mono input { font: 400 16px/24px var(--mono); letter-spacing: 2px; }
.field input::placeholder { color: var(--c-muted); opacity: 1; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #120B0D inset; -webkit-text-fill-color: var(--c-text); }
.field-label {
  position: absolute; left: 16px; top: 28px; transform: translateY(-50%); z-index: 3;
  font: 500 15px/20px var(--ui); letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-dim);
  pointer-events: none; white-space: nowrap; transition: top .15s, font-size .15s, left .15s, color .15s;
}
.field.floated .field-label {
  top: 0; left: 12px; padding: 0 4px; font-size: 11px; line-height: 16px; letter-spacing: 1px;
  background: linear-gradient(to bottom, var(--c-bg) 50%, #0F0A0C 50%);
}
.field.floated.focused .field-label { background: linear-gradient(to bottom, var(--c-bg) 50%, #120B0D 50%); color: var(--accent); }
.field-support { padding: 4px 16px 0; color: var(--c-muted); }

/* Диалог (AlertDialog). */
.scrim {
  position: fixed; inset: 0; z-index: 50; padding: 24px;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
  animation: fade .15s;
}
.dialog { width: 100%; max-width: 440px; max-height: 84%; display: flex; flex-direction: column; padding: 24px 0 16px; }
.dialog-title { padding: 0 24px 16px; font: 600 22px/28px var(--ui); letter-spacing: .6px; }
.dialog-body { padding: 0 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; -webkit-user-select: text; user-select: text; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 4px; padding: 16px 12px 0; }
.help-list { display: flex; flex-direction: column; gap: 6px; }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(96px + var(--sab)); max-width: calc(100% - 40px); padding: 10px 16px;
  animation: fade .2s;
}
.notice {
  position: fixed; left: 10px; right: 10px; top: calc(var(--sat) + 8px); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  animation: drop .2s ease-out;
}
@media (min-width: 720px) { .notice { max-width: 540px; margin: 0 auto; } }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }

/* ---------------------------------------------------------------- вход */
.auth-scroll { flex: 1; overflow-y: auto; display: flex; -webkit-overflow-scrolling: touch; }
.auth-col {
  margin: auto; width: 100%; max-width: 440px;
  padding: calc(16px + var(--sat)) 22px calc(16px + var(--sab));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.emblem { width: 150px; height: auto; }
.landing-logo { width: 200px; height: auto; }
.auth-tabs { display: flex; width: 100%; margin-top: 4px; }
.auth-tab { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 6px; color: var(--c-muted); }
.auth-tab-line { display: block; width: 100%; height: 1px; margin-top: 12px; background: var(--c-line); }
.auth-tab.active { color: var(--c-coral); }
.auth-tab.active .auth-tab-line { height: 3px; margin-top: 10px; background: var(--c-coral); }
.avatar-pick { width: 100%; display: flex; align-items: center; padding: 4px 0; cursor: pointer; }
.avatar-pick-box { width: 64px; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar-pick-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick-text { flex: 1; margin-left: 14px; min-width: 0; }
.server-line { padding: 8px; }

/* ---------------------------------------------------------------- список чатов */
.list { display: flex; flex-direction: column; }
.empty { padding: 32px; display: flex; justify-content: center; }
.chat-row { flex: none; display: flex; align-items: center; height: 72px; margin: 3px 10px; cursor: pointer; }
.chat-row:active { filter: brightness(1.25); }
.chat-row-bar { width: 3px; align-self: stretch; flex: none; }
.chat-row-avatar { position: relative; flex: none; }
.chat-row-main { flex: 1; min-width: 0; margin: 0 12px; }
.chat-row-top { display: flex; align-items: center; gap: 6px; }
.chat-row-bottom { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.chat-row-bottom .tag { margin-left: 2px; }

/* ---------------------------------------------------------------- чат */
.chat-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.chat-empty {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.msgs {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; flex-direction: column-reverse; padding: 8px 10px;
}
.day-header { display: flex; align-items: center; padding: 10px 24px; flex: none; }
.day-line { flex: 1; height: 1px; background: var(--c-line); }
.msg-row { display: flex; padding: 3px 0; flex: none; }
.msg-row.mine { justify-content: flex-end; }
.bubble { min-width: 72px; max-width: min(310px, 86%); padding: 7px 10px 5px 12px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; }
.call-record { display: flex; justify-content: center; padding: 5px 0; flex: none; }
.call-record-box { display: inline-flex; align-items: center; padding: 6px 12px; }
.call-record-box .body-small { margin: 0 8px 0 6px; }
.input-bar { flex: none; background: rgba(12, 7, 9, .97); border-top: 1px solid var(--c-line); padding: 8px 8px calc(8px + var(--sab)); }
.kbd .input-bar { padding-bottom: 8px; }
.input-row { display: flex; align-items: flex-end; gap: 8px; }
.input-box { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; }
.input-box textarea {
  width: 100%; resize: none; border: 0; outline: 0; background: transparent; display: block;
  padding: 16px; max-height: 176px; overflow-y: auto; color: var(--c-text); caret-color: var(--c-cyan);
  font: 400 16px/24px var(--body); letter-spacing: .5px;
}
.input-box textarea::placeholder { color: var(--c-muted); opacity: 1; }
.send-btn { width: 52px; height: 52px; flex: none; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.safety-code { font: 400 20px/28px var(--mono); letter-spacing: 1px; color: var(--c-cyan); white-space: pre; -webkit-user-select: text; user-select: text; }
.device { display: flex; flex-direction: column; }
.device-list { display: flex; flex-direction: column; gap: 8px; }
.legacy-mark { color: var(--c-red); margin-bottom: 2px; }

/* ---------------------------------------------------------------- настройки */
.settings { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.settings > * { flex: none; }
.profile { display: flex; align-items: center; gap: 14px; padding: 14px; }
.profile-avatar { position: relative; flex: none; }
.quality-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.checkbox { width: 16px; height: 16px; border: 1px solid; padding: 3px; flex: none; }
.checkbox span { display: block; width: 100%; height: 100%; }
.info-lines { display: flex; flex-direction: column; gap: 4px; }
.info-line { display: flex; }

/* ---------------------------------------------------------------- звонок */
.call { position: absolute; inset: 0; z-index: 30; overflow: hidden; }
.call-center {
  position: absolute; left: 24px; right: 24px; top: calc(var(--sat) + 56px);
  display: flex; flex-direction: column; align-items: center;
}
.call-avatar { position: relative; width: 164px; height: 164px; margin: 22px 0; display: flex; align-items: center; justify-content: center; }
.call-frame { position: absolute; inset: 0; }
.pulse-frame::after { animation: pulse .9s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .25; } to { opacity: 1; } }
.call-name { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.call-status { margin-top: 8px; font-size: 16px; letter-spacing: 1px; }
.remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-video-title {
  position: absolute; top: calc(var(--sat) + 16px); left: 60px; max-width: calc(100% - 200px);
  background: rgba(10, 7, 9, .55); padding: 6px 10px;
}
.local-video { position: absolute; top: calc(var(--sat) + 12px); right: 12px; width: 108px; height: 160px; z-index: 4; overflow: hidden; }
.local-video-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.mirror { transform: scaleX(-1); }
.call-minimize { position: absolute; top: calc(var(--sat) + 8px); left: 4px; z-index: 5; }
.call-bottom {
  position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 36px); z-index: 5;
  display: flex; flex-direction: column; align-items: center;
}
.call-actions, .call-toggles { width: 100%; display: flex; justify-content: space-evenly; }
.call-toggles { padding: 0 12px; margin-bottom: 28px; }
.action-btn, .toggle-btn { display: flex; flex-direction: column; align-items: center; }
.action-btn button { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.action-btn span { margin-top: 8px; }
.toggle-btn button { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.toggle-btn span { margin-top: 6px; white-space: nowrap; }
.action-btn button:active, .toggle-btn button:active { filter: brightness(.85); }
.call-spacer { height: 96px; }

/* ---------------------------------------------------------------- страница установки (HTTP) */
.landing-body { min-height: 100%; -webkit-user-select: text; user-select: text; }
.landing { max-width: 560px; margin: 0 auto; padding: calc(24px + var(--sat)) 16px calc(24px + var(--sab)); display: flex; flex-direction: column; gap: 14px; }
.landing-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
.landing section { display: flex; flex-direction: column; gap: 8px; }
.landing .first { order: -1; }
.landing .landing-head { order: -2; }
.landing .panel { --tr: 12px; --bl: 12px; --bc: var(--c-line); --bg: rgba(23, 13, 16, .92); }
.landing .btn { --tr: 12px; --bl: 12px; --bc: var(--c-coral); --bg: var(--c-coral); --press: rgba(229, 93, 81, .8); color: var(--c-bg); width: 100%; }
.landing .btn span, .landing .btn { font: 700 14px/20px var(--ui); letter-spacing: 1.6px; text-transform: uppercase; }
.landing .btn.outline { --bg: transparent; --press: rgba(138, 240, 252, .12); }
.landing .btn.outline.cyan { --bc: var(--c-cyan-dim); color: var(--c-cyan); }
.landing .btn.pulse::after { animation: pulse .9s ease-in-out infinite alternate; --bc: var(--c-cyan); --bw: 2px; }
.os-buttons { display: flex; flex-direction: column; gap: 12px; }
.landing .os-btn { height: 60px; --bg: transparent; --bc: var(--c-coral-dim); color: var(--c-coral); font-size: 16px; letter-spacing: 2px; --press: rgba(229, 93, 81, .15); }
.landing .os-btn.active { --bg: var(--c-coral); --bc: var(--c-coral); color: var(--c-bg); }
.step { display: flex; gap: 14px; padding: 14px; }
.step + .step { border-top: 1px solid var(--c-line); }
.step-num { font: 800 22px/28px var(--ui); color: var(--c-coral); flex: none; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-body ol { color: var(--c-text); display: flex; flex-direction: column; gap: 4px; }
.step-body p { margin: 0; }
.fp { word-break: break-all; }

/* ---------------------------------------------------------------- друзья, поиск, профиль */
.avatar-wrap { position: relative; flex: none; }
.topbar-titles.clickable, .topbar-leading { cursor: pointer; }
.list-header { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px; flex: none; }
.list-header-mark { color: var(--c-coral); font-size: 13px; line-height: 16px; }
.list-header-text { font: 700 15px/20px var(--ui); letter-spacing: 3px; color: var(--c-coral); white-space: nowrap; }
.list-header-count { font: 400 15px/20px var(--ui); letter-spacing: 1px; color: var(--c-muted); }
.list-header-line { flex: 1; height: 1px; background: var(--c-line); }
.search-row { display: flex; gap: 8px; padding: 10px 10px 4px; flex: none; }
.search-box { flex: 1; min-width: 0; height: 52px; display: flex; align-items: center; }
.search-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px;
  color: var(--c-text); caret-color: var(--c-coral); font: 500 16px/20px var(--ui); letter-spacing: 1px;
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: var(--c-dim); opacity: 1; letter-spacing: 1.6px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 40px; height: 100%; color: var(--c-muted); font: 400 24px/1 var(--ui); }
.search-action { flex: none; margin-right: 12px; }
.search-result { height: 64px; }
.btn.small { height: 34px; padding: 0 12px; }
.profile-card { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.friend-lines { display: flex; flex-direction: column; gap: 4px; }
.profile-buttons { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.bot-empty-img { width: 120px; height: auto; margin-bottom: 6px; }
.chat-row-avatar { margin-left: 9px; }
.landing .os-section[hidden] { display: none !important; }
