:root {
  --bg: #F3F5F8; --surface: #FFFFFF; --ink: #070B12; --muted: #3A4354; --line: #D5DBE4; --line-soft: #E8ECF1;
  --me: #2B55C8; --me-soft: #E3EAFB; --me-ink: #FFFFFF;
  --them: #1E7A4F; --them-soft: #DDF1E6;
  --violet: #7A45B8; --orange: #B5571A;
  --warn: #9A3B12; --warn-soft: #FBE7DC;
  --soon: #8A5A10; --soon-soft: #F6EBD6;
  --msg-ink: #070B12;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #11151C; --surface: #1A2029; --ink: #F7F9FC; --msg-ink: #FAFBFD; --muted: #C2CAD6; --line: #2E3744; --line-soft: #242C37;
  --me: #7B9DF2; --me-soft: #1F2A45; --me-ink: #0E1218;
  --them: #5CC793; --them-soft: #17301F;
  --violet: #B794E8; --orange: #E8975E;
  --warn: #F0A27A; --warn-soft: #3A2116;
  --soon: #E0AE5E; --soon-soft: #352A17;
  color-scheme: dark; } }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 17px/1.45 var(--font); -webkit-tap-highlight-color: transparent; }
button, select, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--me); outline-offset: 2px; }

.app { height: 100%; max-width: 640px; margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) max(0px, env(safe-area-inset-right, 0px)) 0 max(0px, env(safe-area-inset-left, 0px)); }
.view { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.view.center { justify-content: center; align-items: stretch; gap: 14px; padding: 24px 22px; text-align: center; max-width: 400px; margin: 0 auto; }
.view.center h1, .view.center .h1 { margin: 0; font-size: 24px; }
.view.center p { margin: 0; }
.logo-big { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.err { color: var(--warn); min-height: 1.4em; font-size: 15px; }

.field { width: 100%; min-width: 0; height: 52px; border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 0 18px; font-size: 16px; }
.code { width: 100%; text-align: center; font-size: 26px; letter-spacing: .3em; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; }
.btn { border: 0; border-radius: 14px; padding: 13px 16px; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--me); color: var(--me-ink); }
.btn.soft { background: var(--me-soft); color: var(--me); }
.btn.ghost { background: transparent; color: var(--me); }
.btn.small { padding: 8px 13px; font-size: 14px; border-radius: 99px; min-height: 38px; white-space: nowrap; }
.btn.person { background: var(--surface); border: 1px solid var(--line); font-size: 18px; }

.bar { display: flex; align-items: center; gap: 6px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line-soft); }
#vHome .bar { border-bottom: 0; padding: 14px 14px 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; flex-grow: 1; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: #2B55C8; display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.titles { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.titles b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titles span { font-size: 12px; }

.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.pad { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.hello { padding: 22px 20px 0; }
.hello h1, .hello .h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.hello p { margin: 0; font-size: 16px; }

.tiles { padding: 18px 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; text-align: left; cursor: pointer; }
.tile b { font-size: 16px; font-weight: 600; }
.tile span { font-size: 13px; color: var(--muted); }
.t-ic { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-ic.green { stroke: var(--them); } .t-ic.blue { stroke: var(--me); } .t-ic.violet { stroke: var(--violet); } .t-ic.orange { stroke: var(--orange); }
.tile.soon { min-height: 0; background: transparent; border: 1.5px dashed var(--line); flex-direction: row; align-items: center; justify-content: space-between; cursor: default; padding: 12px 14px; }
.tile.soon b { font-weight: 500; font-size: 15px; color: var(--muted); }
.tile.soon i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--soon); background: var(--soon-soft); padding: 4px 7px; border-radius: 99px; }

.recent { padding: 22px 20px 16px; }
.label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.recent a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.recent a span:last-child { color: var(--muted); font-size: 13px; flex-shrink: 0; }

.live { min-height: 24px; font-size: 15px; color: var(--muted); text-align: center; padding: 2px 16px; }
.talk-end { display: block; margin: 2px auto 0; min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.talk-end[hidden] { display: none; }
.dock { display: flex; align-items: center; gap: 10px; padding: 8px 14px max(18px, env(safe-area-inset-bottom, 0px)); }
.mic { width: 56px; height: 56px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--me); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.mic.big { width: 72px; height: 72px; box-shadow: 0 6px 18px rgba(43, 85, 200, .35); }
.mic svg { width: 26px; height: 26px; fill: none; stroke: var(--me-ink); stroke-width: 2.2; stroke-linecap: round; }
.mic.big svg { width: 30px; height: 30px; }
.mic.listening, .talk.listening { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.15); box-shadow: 0 0 0 8px color-mix(in srgb, var(--me) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mic.listening, .talk.listening { animation: none; outline: 3px solid var(--ink); } }

/* диалог */
.chat { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; border-radius: 18px; padding: 10px 14px; font-size: 17px; font-weight: 500; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--me); color: var(--me-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface); color: var(--msg-ink); border-bottom-left-radius: 4px; }
.msg.bot.thinking { color: var(--muted); }
.msg.err { align-self: stretch; background: var(--warn-soft); color: var(--warn); font-size: 15px; }
.msg-tools { display: flex; gap: 6px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; padding: 8px 12px; border-radius: 99px; cursor: pointer; min-height: 38px; }
.chip.opt { border-color: color-mix(in srgb, var(--me) 35%, transparent); color: var(--me); font-weight: 500; }
.chips .hint { font-size: 13px; color: var(--muted); align-self: center; }
.card { align-self: stretch; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.card .label { margin: 0; }
.card .body { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.card img { width: 100%; border-radius: 12px; display: block; background: var(--line-soft); aspect-ratio: 1; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.act { border: 0; background: var(--line-soft); font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: 10px; cursor: pointer; min-height: 40px; }
.act.main { background: var(--me-soft); color: var(--me); font-weight: 600; }
.mini { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 4px 6px; cursor: pointer; }
.sys { align-self: center; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }

/* переводчик */
.lang { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 2px 6px 2px 10px; }
.lang select { border: 0; background: transparent; font-weight: 600; color: var(--them); padding: 6px 2px; max-width: 130px; }
.empty { margin: auto 8px; text-align: center; color: var(--muted); padding: 24px 12px; }
.empty b { color: var(--ink); display: block; font-size: 19px; margin-bottom: 6px; }
.turn { max-width: 88%; border-radius: 16px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.turn.me { align-self: flex-end; border-bottom-right-radius: 4px; }
.turn.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.turn .src { font-size: 14px; color: var(--muted); }
.turn .dst { font-size: 19px; font-weight: 600; margin-top: 4px; }
.turn.me .dst { color: var(--me); } .turn.them .dst { color: var(--them); }
.turn .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.turn.pending .dst { color: var(--muted); font-weight: 400; font-size: 16px; }
.turn.error { background: var(--warn-soft); border-color: transparent; }
.turn.error .dst { color: var(--warn); font-size: 15px; font-weight: 500; }
.talk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 14px 0; }
.talk { border: 0; border-radius: 22px; padding: 16px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: 17px; touch-action: manipulation; color: var(--me-ink); }
.talk svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.talk small { font-weight: 450; font-size: 13px; }
.talk.me { background: var(--me); } .talk.them { background: var(--them); }

/* память */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.facts li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.facts li span { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.facts li.none { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; }
.note { background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.note b { color: var(--ink); }

/* голос */
.small { font-size: 14px; margin: -8px 0 0; }
.voices { display: flex; flex-direction: column; gap: 8px; }
.voice { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid transparent; border-radius: 14px; padding: 4px 8px 4px 4px; }
.voice.on { border-color: var(--me); }
.voice-pick { flex-grow: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 10px; display: flex; flex-direction: column; cursor: pointer; }
.voice-pick b { font-size: 16px; font-weight: 600; }
.voice-pick span { font-size: 13px; color: var(--muted); }
.voice.on .voice-pick b::after { content: "  ✓"; color: var(--me); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 0; font-weight: 600; cursor: pointer; min-height: 44px; }
.seg button.on { border-color: var(--me); color: var(--me); background: var(--me-soft); }
.voice .mini { white-space: nowrap; }

/* места рядом */
.places { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.place { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.place-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.place-top b { font-size: 16px; font-weight: 600; }
.place .dist { flex-shrink: 0; font-weight: 600; color: var(--them); font-variant-numeric: tabular-nums; }
.place .hours { color: var(--ink); overflow-wrap: anywhere; }
.place .actions { margin-top: 6px; }
.place a.act { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.place a.act.main { color: var(--me); }
.tile.wide { grid-column: span 2; }

.sources { align-self: flex-start; max-width: 100%; font-size: 13px; color: var(--muted); padding: 0 6px; overflow-wrap: anywhere; }
.sources a { color: var(--me); }
.tile.news { min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.tile.news .news-txt { display: flex; flex-direction: column; gap: 2px; }

/* документ */
.docform { gap: 6px; }
.docform .pd-lab { font-size: 14px; font-weight: 600; margin-top: 6px; }
.docform .field { border-radius: 12px; height: 46px; }
.docform textarea.field { height: 80px; padding: 10px 14px; }
.small2 { font-size: 12.5px; margin: 0; }
.pd-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-top: 8px; }
.pd-agree input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.pd-agree a { color: var(--me); }
.docform .btn { margin-top: 6px; }
.docform .err { margin: 0; }

/* поздравление */
.povod img { aspect-ratio: 16 / 9; }
.povod .pv-t { font-size: 17px; }
.pv-texts { display: flex; flex-direction: column; gap: 8px; }
.pv-texts p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

/* план */
.plan-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.plan-when { font-size: 13px; font-weight: 600; color: var(--them); font-variant-numeric: tabular-nums; }
.plan-text { font-size: 15px; overflow-wrap: anywhere; }
.plan-acts { grid-column: 2; display: flex; gap: 4px; margin-left: -6px; }
.plan-row.is-done .plan-text { text-decoration: line-through; color: var(--muted); }

/* ---------- защита от мошенников ---------- */
:root { --danger: #B3261E; --danger-soft: #FCE4E2; --safe: #1E7A4F; --safe-soft: #DDF1E6; }
@media (prefers-color-scheme: dark) { :root { --danger: #FF8A80; --danger-soft: #3A1714; --safe: #5CC793; --safe-soft: #17301F; } }
.guard-tile { display: flex; align-items: center; gap: 14px; width: calc(100% - 40px); margin: 18px 20px 0; padding: 16px; border: 0; border-radius: 18px; background: var(--danger-soft); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.guard-tile svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--danger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guard-tile > span { display: flex; flex-direction: column; gap: 2px; }
.guard-tile b { font-size: 18px; font-weight: 700; color: var(--danger); }
.guard-tile span span { font-size: 14px; color: var(--ink); }
.card.guard { border-width: 2px; }
.guard.g-danger { border-color: var(--danger); background: var(--danger-soft); }
.guard.g-warn { border-color: var(--soon); background: var(--soon-soft); }
.guard.g-safe { border-color: var(--safe); background: var(--safe-soft); }
.g-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.g-danger .g-title { color: var(--danger); } .g-warn .g-title { color: var(--soon); } .g-safe .g-title { color: var(--safe); }
.g-scheme { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.g-say { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.g-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.4; }
.g-link { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; overflow-wrap: anywhere; }
.g-link.danger b { color: var(--danger); } .g-link.official b { color: var(--safe); }
.g-note { margin: 0; font-size: 14px; font-weight: 600; }
.msg.user .shot { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin-bottom: 6px; }
.shot-btn { flex: none; }

/* ---------- видео, песни, разработчику ---------- */
.videos { align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.video { display: flex; gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; color: var(--ink); text-decoration: none; }
.v-thumb { position: relative; flex: none; width: 132px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 1px 5px; border-radius: 4px; }
.v-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v-txt b { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v-txt .muted { font-size: 13px; }
.videos > .act { align-self: flex-start; }
.vplayer { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--surface); border: 2px solid var(--me); border-radius: 14px; }
.vplayer iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; display: block; }
.vplayer b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.vp-row { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.vp-row .muted { margin-right: auto; }
.vp-row a { color: var(--me); font-weight: 600; text-decoration: none; }
.card.song audio { width: 100%; }
.song-lyrics { margin: 0; white-space: pre-line; font-size: 16px; line-height: 1.5; }
.sup-threads { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.sup-thread { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line-soft); }
.sup-thread.on { border-color: var(--me); }
.sup-ts { display: block; margin-top: 4px; font-size: 11px; opacity: .7; }

/* ---------- разбор документа ---------- */
.p-badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.p-ok { background: var(--safe-soft); color: var(--safe); }
.p-careful { background: var(--soon-soft); color: var(--soon); }
.p-danger { background: var(--warn-soft); color: var(--warn); }
.p-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p-num { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.p-num span { font-size: 12px; } .p-num b { font-size: 16px; }
.p-risks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.4; }
.p-risks li { position: relative; padding-left: 18px; }
.p-risks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--soon); }
.p-risks li.high::before { background: var(--warn); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 6px; }
.shots .shot { margin: 0; max-height: 120px; width: 100%; object-fit: cover; }

/* ---------- авиабилеты ---------- */
.f-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.f-day { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.f-day span { font-size: 12px; color: var(--muted); } .f-day b { font-size: 14px; }
.f-day.best { border-color: var(--safe); background: var(--safe-soft); }
.f-day.on { border-color: var(--me); box-shadow: inset 0 0 0 1px var(--me); }
.f-ticket { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--bg); }
.f-top { display: flex; gap: 10px; align-items: center; }
.f-logo { width: 36px; height: 36px; border-radius: 8px; background: #fff; flex: none; }
.f-mid { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.f-price { font-size: 20px; }
.f-ticket .act.main { align-self: flex-start; }

/* сканер */
.scan-text { white-space: pre-wrap; max-height: 320px; overflow: auto; background: var(--line-soft); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.card.scan a.act { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.card.scan a.act.main { color: var(--me); }
.tray-shots { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.tray-shot { position: relative; flex: none; }
.tray-shot img { width: 64px; height: 86px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.tray-shot span { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 6px; }
.act:disabled { opacity: .45; cursor: default; }

/* стартовая страница */
.card.dobi p { white-space: pre-line; font-size: 17px; line-height: 1.45; margin: 0; text-align: left; }
.cap-q { font-size: 16px; font-weight: 500; text-align: left; padding: 0 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.trial-line { margin-top: 4px; }
#vPay a.btn { text-align: center; text-decoration: none; }
.fam-code { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
/* стартовая страница длиннее экрана — листается, начинается сверху */
#vLogin { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); gap: 12px; }
#vLogin > * { flex: none; }
#vLogin .logo-big { width: 56px; height: 56px; border-radius: 14px; }
#vLogin .card.dobi { padding: 12px 16px; }
#vLogin .hero { display: flex; align-items: flex-end; gap: 2px; width: calc(100% + 24px); margin: 0 -12px; }
#vLogin .dobi-full { flex: none; height: 220px; width: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
#vLogin .hero .card.dobi { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 16px 16px 16px 4px; margin-bottom: 40px; }
#vLogin .hero .card.dobi p { font-size: 13px; line-height: 1.32; }
@media (max-width: 360px) { #vLogin .dobi-full { height: 180px; } #vLogin .hero .card.dobi p { font-size: 12px; } }
#vLogin .card.dobi p { font-size: 16px; line-height: 1.35; }
/* Один стартовый экран на телефоне и компьютере. */
#vLogin .hero { display: none; }
.mobile-start { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 8px; text-align: left; }
.mobile-start-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; }
.mobile-start-head picture { align-self: end; height: 126px; overflow: hidden; display: block; }
.mobile-start-head img { width: auto; height: 150px; display: block; transform: translate(-2px, 2px); filter: drop-shadow(0 5px 9px rgba(0,0,0,.14)); }
.mobile-start-name { display: block; margin-bottom: 5px; color: var(--me); font-size: 15px; font-weight: 700; }
#vLogin .mobile-start h1 { margin: 0; font-size: clamp(23px, 6.5vw, 29px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
#vLogin .mobile-start-lead { color: var(--muted); font-size: 16px; line-height: 1.4; }
.mobile-start-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.35; }
.mobile-start-list li { position: relative; padding-left: 27px; }
.mobile-start-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--them-soft); color: var(--them); font-size: 13px; font-weight: 800; }
.mobile-start-actions { display: grid; gap: 9px; }
.mobile-start-actions .btn { display: flex; align-items: center; justify-content: center; text-align: center; }
#vLogin .mobile-start-note { color: var(--muted); font-size: 12.5px; line-height: 1.35; text-align: center; }

@media (max-width: 600px) {
  #vLogin.bz-on .bz-half.bz-cat { padding: 0 16px 32px; min-height: 100vh; }
  #vLogin.bz-on .bz-cat .bz-in { width: 100%; max-width: 100%; min-width: 0; gap: 12px; }
  #vLogin .hero { display: none; }
  .mobile-start { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 8px; text-align: left; }
  .mobile-start-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; }
  .mobile-start-head picture { align-self: end; height: 126px; overflow: hidden; display: block; }
  .mobile-start-head img { width: auto; height: 150px; display: block; transform: translate(-2px, 2px); filter: drop-shadow(0 5px 9px rgba(0,0,0,.14)); }
  .mobile-start-name { display: block; margin-bottom: 5px; color: var(--me); font-size: 15px; font-weight: 700; }
  #vLogin .mobile-start h1 { margin: 0; font-size: clamp(23px, 6.5vw, 29px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
  #vLogin .mobile-start-lead { color: var(--muted); font-size: 16px; line-height: 1.4; }
  .mobile-start-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.35; }
  .mobile-start-list li { position: relative; padding-left: 27px; }
  .mobile-start-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--them-soft); color: var(--them); font-size: 13px; font-weight: 800; }
  .mobile-start-actions { display: grid; gap: 9px; }
  .mobile-start-actions .btn { display: flex; align-items: center; justify-content: center; text-align: center; }
  #vLogin .mobile-start-note { color: var(--muted); font-size: 12.5px; line-height: 1.35; text-align: center; }
  #vLogin #regForm { scroll-margin-top: 14px; }
  #vLogin .tg-start { display: none; }
}

/* витрина на стартовой странице */
.consent { text-align: left; line-height: 1.4; }
.consent a, .card.about a, .site-foot a { color: var(--me); }
.card.about { text-align: left; gap: 8px; }
.about-list { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.4; }
.about-list li { margin: 3px 0; }
.price-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.site-foot { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.site-foot p { margin: 4px 0; }

.scan-pages { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; }
.scan-page { position: relative; flex: none; }
.scan-page img { height: 150px; width: auto; max-width: 220px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.scan-page span { position: absolute; left: 5px; top: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 6px; }

/* ---------- главный экран v29: три кнопки, микрофон, направления ---------- */
:root { --q-green: #1E8A5A; --q-violet: #6B4FD8; --q-orange: #C8661B; --q-red: #C93A3A; --q-blue: var(--me); }
@media (prefers-color-scheme: dark) { :root { --q-green: #5CC793; --q-violet: #B794E8; --q-orange: #E8975E; --q-red: #F08A8A; } }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 14px 0; }
.q { background: var(--surface); border: 0; border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; }
.q svg { width: 28px; height: 28px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q b { font-size: 15px; }
.q small { font-size: 12px; color: var(--muted); }
.mic-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px 12px; text-align: center; }
.mic-zone h1, .mic-zone .h1 { margin: 6px 0 0; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.mic-zone p { margin: 0; font-size: 14.5px; }
.mic-zone .trial-line { margin: 0; }
.mic.hero { width: 92px; height: 92px; box-shadow: 0 8px 26px rgba(43, 85, 200, .38); }
.mic.hero svg { width: 40px; height: 40px; }
.cats { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 0; }
/* обучение: плашка с курсами на главном */
.learn-list { padding: 0; }
.learn-list .cat-bar { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.learn-list .cat-bar .prog { color: var(--q-blue); }
.course-pay { display: flex; flex-direction: column; gap: 10px; }
.course-pay p { margin: 0; }
.course-pay .btn { align-self: flex-start; }
.course-pay .err:empty { display: none; }
.learn-guides { padding: 4px 2px 0; }
.cat-bar { background: var(--surface); border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: var(--ink); text-decoration: none; }
.cat-bar.free { background: transparent; border: 1.5px dashed var(--line); }
.cat-bar .t { flex: 1; min-width: 0; }
.cat-bar .t b { display: block; font-size: 16.5px; }
.cat-bar .t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bar .chev { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.dot svg { width: 22px; height: 22px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dot.c-blue { background: var(--me-soft); } .dot.c-blue svg { stroke: var(--q-blue); }
.dot.c-green { background: color-mix(in srgb, var(--q-green) 14%, var(--surface)); } .dot.c-green svg { stroke: var(--q-green); }
.dot.c-violet { background: color-mix(in srgb, var(--q-violet) 14%, var(--surface)); } .dot.c-violet svg { stroke: var(--q-violet); }
.dot.c-orange { background: color-mix(in srgb, var(--q-orange) 14%, var(--surface)); } .dot.c-orange svg { stroke: var(--q-orange); }
.dot.c-red { background: color-mix(in srgb, var(--q-red) 14%, var(--surface)); } .dot.c-red svg { stroke: var(--q-red); }
.dot.c-gray { background: var(--surface); } .dot.c-gray svg { stroke: var(--muted); }
.dock.tg { gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.dock.tg .clip { color: var(--muted); border-radius: 50%; background: none; border: 0; cursor: pointer; }
.dock.tg .field { height: 46px; }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--me); display: grid; place-items: center; flex: none; cursor: pointer; }
.send svg { width: 20px; height: 20px; fill: var(--me-ink); }
/* страница направления */
.cat-page { padding: 6px 16px 14px; }
.cat-head { display: flex; align-items: center; gap: 12px; padding: 8px 0 12px; }
.cat-head .dot { width: 52px; height: 52px; border-radius: 16px; }
.cat-head .dot svg { width: 28px; height: 28px; }
.cat-head h1, .cat-head .h1 { margin: 0; font-size: 25px; line-height: 1.2; }
.cat-lead { margin: 0 0 14px; font-size: 16.5px; }
.card.can ul { margin: 0; padding-left: 20px; }
.card.can li { margin: 6px 0; font-size: 16px; line-height: 1.4; }
.ask { text-align: center; padding: 22px 8px 4px; }
.ask b { display: block; font-size: 19px; margin-bottom: 4px; }
.ask span { color: var(--muted); font-size: 14.5px; }
.cat-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.cat-bottom .dock { width: 100%; border-top: 0; }

/* оплата */
.trial-note { margin: 10px 16px 0; text-align: center; font-size: 13px; color: var(--muted); }
.trial-note a { color: var(--me); font-weight: 600; }
#vPay { justify-content: flex-start; overflow-y: auto; padding-top: 20px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
#vPay .logo-big { width: 62px; height: 62px; }
.pay-summary { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px 16px; text-align: left; line-height: 1.45; }
.pay-summary p + p { margin-top: 5px !important; color: var(--muted); font-size: 15px; }
.pay-benefits { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; text-align: left; font-size: 15px; line-height: 1.35; }
.pay-benefits li { position: relative; padding-left: 28px; }
.pay-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--them-soft); color: var(--them); font-size: 13px; font-weight: 800; }
.pay-offer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pay-price { font-size: 28px; font-weight: 700; margin: 0; white-space: nowrap; }
.pay-price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.pay-noauto { color: var(--them); font-size: 13px; font-weight: 700; text-align: right; line-height: 1.25; }
@media (max-width: 370px) { .pay-offer { align-items: center; } .pay-price span { display: block; } }
.sub-card { background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sub-state { margin: 0; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 15px; background: var(--soon-soft, #F6EBD6); color: var(--soon, #8A5A10); }
.sub-state.ok { background: var(--them-soft); color: var(--them); }

/* радио */
.radio-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.radio-st { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.radio-st img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.radio-st .r-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.radio-st .r-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-st .r-txt span { font-size: 12px; }
.radio-st .act { white-space: nowrap; }

/* кнопка камеры рядом со скрепкой */
.dock.tg .cam, .dock .shot-btn { flex-shrink: 0; }

/* диктофон */
.quick .q b { font-size: 14px; } .quick .q small { font-size: 11px; }
.rec-zone { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0 6px; }
.rec-btn { width: 108px; height: 108px; border-radius: 50%; border: 6px solid color-mix(in srgb, var(--q-red) 25%, transparent); background: var(--q-red); cursor: pointer; display: grid; place-items: center; }
.rec-btn span { width: 34px; height: 34px; border-radius: 50%; background: #fff; transition: all .2s; }
.rec-btn.on { animation: recp 1.4s infinite; }
.rec-btn.on span { border-radius: 6px; width: 30px; height: 30px; }
@keyframes recp { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--q-red) 18%, transparent); } }
.rec-hint { text-align: center; color: var(--muted); margin: 0; max-width: 300px; }
.rec-text { background: var(--surface); border-radius: 16px; padding: 14px 16px; white-space: pre-wrap; font-size: 16px; line-height: 1.5; max-height: 55vh; overflow-y: auto; }
.rec-text .ts { color: var(--muted); font-size: 12px; }

/* ссылки внутри ответов — видно, что их можно нажать */
.msg.bot a, .card .body a { color: var(--me); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* ---- установка на экран ---- */
.inst-banner { margin: 12px 14px 0; background: var(--me); color: var(--me-ink); border-radius: 16px; padding: 12px 40px 12px 12px; display: flex; gap: 12px; align-items: flex-start; position: relative; }
.inst-ic { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; background: #fff; }
.inst-tx b { display: block; font-size: 15px; }
.inst-tx span { font-size: 13.5px; opacity: .92; display: block; }
.inst-how { display: inline-block; margin-top: 8px; background: var(--me-ink); color: var(--me); border-radius: 10px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.inst-x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--me-ink); opacity: .75; font-size: 16px; cursor: pointer; }
.inst-set { display: block; text-align: center; }
.i-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.i-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--me); color: var(--me-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.i-pic { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.i-pic svg { width: 26px; height: 26px; fill: none; stroke: var(--me); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-warn { background: #FFF4DE; color: #7A4E00; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.i-link { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px; font-size: 15px; }
.i-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-color-scheme: dark) { .i-warn { background: #3A2C10; color: #F3D08A; } }

/* «Пригласить друга» */
.ref-big { margin: 0; font-weight: 700; font-size: 17px; }
.ref-link { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--line-soft); overflow-wrap: anywhere; user-select: all; }
.ref-note { margin: 0; border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600; background: var(--them-soft); color: var(--them); }
#tgOpen { display: block; text-align: center; text-decoration: none; }
.tg-start { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; text-align: center; }
.tg-start .or { color: var(--muted, #7a8494); font-size: 14px; }
.btn.tg { display: flex; align-items: center; justify-content: center; gap: 8px; background: #2AABEE; color: #fff; text-decoration: none; }
.btn.tg svg { width: 20px; height: 20px; }
.tg-start p { margin: 0; }
#meOpen { display: block; text-align: center; text-decoration: none; }
#meBox { margin-top: 8px; }

.start-help { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 6px; text-align: left; }
.sh { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.sh summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.sh summary::-webkit-details-marker { display: none; }
.sh summary::after { content: "+"; color: var(--me); font-weight: 400; font-size: 20px; line-height: 1; }
.sh[open] summary::after { content: "–"; }
.sh p, .sh li { font-size: 15px; line-height: 1.45; margin: 0 0 8px; }
.sh ol, .sh ul { padding-left: 20px; margin: 0 0 10px; }
.sh .btn { margin: 4px 0 16px; }
.sh[open] { padding-bottom: 8px; }
.sh p + p, .sh ol + p { margin-top: 10px; }

/* совет про «Спам» на входе (26.10) */
.spam-tip { background: var(--warn-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; text-align: left; margin: 0; }
.spam-tip:empty { display: none; }
.spam-tip.warn { outline: 2px solid var(--warn); font-weight: 600; }

/* записи уроков: страница курса */
.lessons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.lesson { background: var(--surface); border-radius: 16px; padding: 12px 10px 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.lesson .num { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--bg); color: var(--muted); }
.lesson.done .num { background: color-mix(in srgb, var(--q-green) 16%, var(--surface)); color: var(--q-green); }
.lesson.cur .num, .lesson.next .num { background: color-mix(in srgb, var(--q-blue) 16%, var(--surface)); color: var(--q-blue); }
.lesson .t { flex: 1; min-width: 0; }
.lesson .t b { display: block; font-size: 15.5px; line-height: 1.3; }
.lesson .t .st { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lesson.cur .t .st, .lesson.next .t .st { color: var(--q-blue); }
.lesson.done .t .st { color: var(--q-green); }
.lesson .recs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.lesson .recs button { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; color: var(--q-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lesson .chev { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.lesson.lock { opacity: .7; }
.guide-box { display: flex; flex-direction: column; gap: 10px; }
.guide-box .btn { align-self: flex-start; }
.guide-box .past { background: var(--surface); border-radius: 16px; padding: 2px 14px; }
.guide-box .past a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--ink); text-decoration: none; }
.guide-box .past a:first-child { border-top: 0; }
.guide-box .past a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.guide-box .past a span:last-child { color: var(--muted); font-size: 13px; flex: none; }
/* все разговоры */
.all-link { display: block; padding: 12px 0 0; font-size: 15px; color: var(--q-blue); text-decoration: none; border-top: 1px solid var(--line-soft); }
.hist-page { padding: 8px 16px 20px; }
.hist-q { width: 100%; margin: 4px 0 6px; }
.hist-day { margin: 16px 4px 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hist-group { background: var(--surface); border-radius: 16px; padding: 0 4px 0 14px; }
.hist-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line-soft); }
.hist-row:first-child { border-top: 0; }
.hist-row a { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.hist-row a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hist-row a span:last-child { color: var(--muted); font-size: 13px; flex: none; }
.hist-row .del { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 10px 8px; cursor: pointer; flex: none; }
.hist-row .del.sure { color: var(--q-red); font-weight: 600; }
.hist-empty { color: var(--muted); padding: 18px 4px; }
.hist-courses { display: block; margin: 20px 4px 0; color: var(--q-blue); text-decoration: none; font-size: 15px; }

h2.h1 { font-weight: 700; }
