/* Приложение ассистента. Значения — паспорт бренда moy-ii (_shared/design/brands/moy-ii.md): ночь сайта, градиент,
   Unbounded только крупно, Manrope — всё остальное, текст сообщений ≥ 16 px. Тема одна — ночь сайта (Виталий 29.10: светлая по настройке телефона читалась как «старый дизайн»). */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #0b0f3a;
  --bg-deep: #070a2b;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.18);
  --fg: #f2f3ff;
  --muted: #b3b6dc;
  --accent-ink: #a99bff;
  --mint: #7ee0b5;
  --warn-bg: rgba(255, 196, 92, 0.14);
  --warn-fg: #ffd58a;
  --danger: #ff9a9a;
  --me-a: #3864d8;
  --me-b: #6d48d6;
  --brand: linear-gradient(135deg, #4d8cf6, #6860da 55%, #7a4cc9);
  --radius: 20px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
#app { height: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid #c29bff; outline-offset: 2px; }

.screen { height: 100%; }
.screen-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  text-align: center;
}
.mark { border-radius: 24px; }
/* Заставка: планета, тонкая полоса загрузки, одна строка — пока не собран чат. */
.boot { gap: 20px; }
.boot-mark { animation: breathe 2.4s ease-in-out infinite; box-shadow: 0 0 0 1px var(--line); }
/* Полоса с настоящим прогрессом: заполняется по шагам загрузки, а не бегает по кругу (Виталий 29.10). */
/* По центру стоит сама полоса, цифра — справа от неё, вне центровки. */
.boot-progress { position: relative; }
.boot-bar { width: 180px; height: 6px; border-radius: 3px; background: var(--surface-strong); overflow: hidden; }
.boot-bar span { display: block; width: 5%; height: 100%; border-radius: 3px; background: var(--brand); transition: width 0.45s ease-out; }
.boot-pct { position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%; font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--fg); }
.boot-text { margin: 0; color: var(--fg); font-size: 16px; font-weight: 600; }
.boot-slow { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.boot-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 44px; }
/* Место под «медленно» и кнопки держим заранее: когда они появляются, знак и полоса не прыгают вверх. */
.boot-slow[hidden] { display: block !important; visibility: hidden; }
.boot-actions[hidden] { display: flex !important; visibility: hidden; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: 0.92; } }
#s-chat { animation: appear 0.25s ease-out; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.title { font: 600 24px/1.25 var(--display); margin: 4px 0 0; text-wrap: balance; letter-spacing: -0.01em; }
.lead { margin: 0; color: var(--muted); max-width: 32ch; }
.fine { font-size: 13px; color: var(--muted); max-width: 36ch; margin: 8px 0 0; text-wrap: pretty; }
.fine a { white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form { width: 100%; max-width: 380px; padding: 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.label { font-weight: 600; font-size: 15px; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-deep); color: var(--fg); font: 500 17px var(--font);
}
.input-code { font: 600 26px/1 var(--display); letter-spacing: 0.18em; text-align: center; }
.input:focus-visible, .field:focus-visible { outline: none; border-color: #c29bff; box-shadow: 0 0 0 3px rgba(194, 155, 255, 0.25); }
/* Картинка на весь экран внутри приложения: из установленного приложения в браузер не выкидываем. */
.viewer { position: fixed; inset: 0; z-index: 30; background: rgba(4, 6, 24, 0.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.viewer-x { position: absolute; top: calc(env(safe-area-inset-top) + 8px); right: 8px; color: #fff; background: rgba(255, 255, 255, 0.12); font-size: 18px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.error { margin: 0; font-size: 14px; color: var(--danger); }
.btn { min-height: 52px; border-radius: 14px; border: 0; padding: 0 20px; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--me-a), var(--me-b)); color: #fff; }
.btn-primary[disabled] { opacity: 0.6; }
.btn-ghost { background: transparent; color: var(--muted); }

/* --- чат --- */
.chat { display: flex; flex-direction: column; height: 100%; }
.bar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 8px) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
}
.ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); flex: none; }
.bar-text { flex: 1; min-width: 0; }
/* Имя ассистента целиком: до двух строк, а не обрезка на полуслове. */
.bar-name { font-weight: 700; font-size: 16px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.bar-status { font-size: 13px; color: var(--mint); }
.bar-status.off { color: var(--muted); }

.icon-btn {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent;
  border-radius: 50%; cursor: pointer; color: var(--muted); fill: currentColor;
}
.icon-btn svg { fill: currentColor; }
.icon-btn.small { min-width: 36px; min-height: 36px; font-size: 14px; }
.icon-btn.round { background: var(--surface-strong); color: var(--fg); }
.icon-btn.send { background: linear-gradient(135deg, var(--me-a), var(--me-b)); color: #fff; }
.link-btn { border: 0; background: none; color: var(--accent-ink); font-weight: 700; cursor: pointer; padding: 8px; min-height: 44px; }
.link-btn:disabled { color: var(--muted); font-weight: 600; cursor: default; font-variant-numeric: tabular-nums; } /* «Новый код через 0:45» — видно, что пока не нажать */

.notice {
  display: flex; align-items: center; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: var(--surface-strong); font-size: 14px;
}
.notice > span { flex: 1; }
.notice-warn { background: var(--warn-bg); color: var(--warn-fg); }

.feed {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  display: flex; flex-direction: column;
}
.more { align-self: center; }
#msgs { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.day { align-self: center; font-size: 13px; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 2px 10px; margin: 8px 0 4px; }

.msg { max-width: min(86%, 560px); display: flex; flex-direction: column; gap: 6px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.bot { align-self: flex-start; align-items: flex-start; }
.bubble {
  padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  line-height: 1.45; text-wrap: pretty;
}
.msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: linear-gradient(135deg, var(--me-a), var(--me-b)); color: #fff; border-bottom-right-radius: 6px; }
.msg.me .bubble a { color: #fff; }
.bubble pre, .bubble code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.bubble pre { margin: 4px 0; padding: 8px; background: var(--bg-deep); border-radius: 10px; overflow-x: auto; white-space: pre; }
.bubble blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--accent-ink); }
.spoiler { background: var(--muted); color: transparent; border-radius: 4px; cursor: pointer; }
.spoiler.open { background: none; color: inherit; }
.meta { font-size: 12px; color: var(--muted); padding: 0 6px; }
.meta.fail { color: var(--danger); }
/* Место под картинку заранее: пока грузится, лента не прыгает. */
.photo:not(.ready) { min-height: 200px; min-width: 200px; }
.photo { display: block; max-width: 100%; max-height: 60vh; border-radius: 16px; background: var(--surface); }
.file {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; max-width: 100%;
}
.file-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; flex: none; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 13px; color: var(--muted); }
.voice {
  display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%;
  padding: 8px 14px 8px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.msg.me .voice { background: linear-gradient(135deg, var(--me-a), var(--me-b)); border-color: transparent; color: #fff; }
.voice-play {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, var(--me-a), var(--me-b)); color: #fff;
}
.msg.me .voice-play { background: rgba(255, 255, 255, 0.22); }
.voice-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.msg.me .voice-bar { background: rgba(255, 255, 255, 0.3); }
.voice-fill { width: 0; height: 100%; background: var(--accent-ink); border-radius: 2px; }
.msg.me .voice-fill { background: #fff; }
.transcript {
  max-width: 100%; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Расшифровка своего голосового — продолжение своего пузыря, а не реплика ассистента. */
.msg.me .transcript { background: linear-gradient(135deg, var(--me-a), var(--me-b)); color: rgba(255, 255, 255, 0.92); border: 0; margin-top: -4px; border-top-right-radius: 6px; }
.voice-time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 34px; text-align: right; }
.msg.me .voice-time { color: rgba(255, 255, 255, 0.85); }
.buttons { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.buttons-row { display: flex; gap: 6px; }
.buttons-row > * { flex: 1; }
.kb {
  min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-strong);
  color: var(--fg); font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; text-decoration: none;
  display: grid; place-items: center;
}
.kb:active { transform: scale(0.98); }
.kb[disabled] { opacity: 0.55; }

.empty { margin: auto; text-align: center; color: var(--muted); max-width: 30ch; text-wrap: pretty; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty img { border-radius: 18px; margin-bottom: 8px; }
.empty p { margin: 0; }
.empty b { color: var(--fg); }

.typing { align-self: flex-start; color: var(--muted); font-size: 14px; padding: 6px 4px; display: flex; align-items: center; gap: 3px; }
.typing b { font-weight: 400; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; margin-right: 6px; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.composer, .rec {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--bg-deep); border-top: 1px solid var(--line);
}
.field {
  flex: 1; min-height: 44px; max-height: 40vh; resize: none; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font: 400 16px/1.4 var(--font);
}
.rec { align-items: center; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; animation: dot 1s infinite; }
.rec-time { font: 600 16px var(--display); font-variant-numeric: tabular-nums; min-width: 48px; }
.rec-label { flex: 1; font-size: 14px; color: var(--muted); }

.sheet {
  position: fixed; inset: 0; background: rgba(4, 6, 24, 0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 20;
  padding: 0 max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.sheet-card {
  width: 100%; max-width: 460px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 22px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.sheet-card p { margin: 0 8px 8px; color: var(--muted); }
.sheet-title { font: 600 18px/1.3 var(--display); margin: 8px 8px 0; }
.sheet-item { min-height: 52px; border: 0; border-radius: 14px; background: var(--surface); font-weight: 600; cursor: pointer; text-align: left; padding: 0 16px; }
.sheet-item.muted { background: transparent; color: var(--muted); text-align: center; }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-quiet { background: var(--surface-strong); color: var(--fg); }

/* Короткое сообщение поверх экрана: над нижней панелью, не сдвигает ленту. */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 40;
  width: max-content; max-width: min(92vw, 440px); padding: 12px 16px; border-radius: 16px;
  background: #1b2170; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 15px; line-height: 1.4; text-wrap: pretty;
}

/* --- экран состояния: нет сети, сбой, ошибка --- */
.state .lead { max-width: 34ch; text-wrap: pretty; }
.state-btn { width: 100%; max-width: 320px; }

/* --- кабинет: списки с линией, как «шаги» на сайте (паспорт moy-ii), а не стена карточек --- */
.cab { display: flex; flex-direction: column; height: 100%; }
.cab-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.cab-sec { padding: 20px 0; border-bottom: 1px solid var(--line); max-width: 640px; margin-inline: auto; }
.cab-sec:last-child { border-bottom: 0; }
.cab-h { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.cab-count { font-size: 13px; font-weight: 700; color: var(--fg); background: var(--surface-strong); border-radius: 10px; padding: 0 8px; line-height: 20px; }
.cab-count:empty { display: none; }
.cab-big { margin: 0; font: 600 21px/1.3 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.cab-line { margin: 0 0 12px; text-wrap: pretty; }
.cab-note { margin: 6px 0 10px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.cab-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cab-actions:not(:has(:not([hidden]))) { display: none; }
.cab-empty { margin: 0; color: var(--muted); text-wrap: pretty; }
.cab-list { list-style: none; margin: 0; padding: 0; }
.cab-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cab-item:first-child { border-top: 0; }
.cab-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cab-item-title { overflow-wrap: anywhere; white-space: pre-wrap; text-wrap: pretty; }
.cab-item-title.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.cab-item-title.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cab-item-sub { font-size: 13px; color: var(--muted); }
.cab-act {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
}
.cab-act.armed { border-color: var(--danger); color: var(--danger); }
.cab-file { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--fg); text-decoration: none; min-height: 44px; }
.cab-file-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: cover; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 0 0 1px var(--line);
}

/* --- живой голосовой разговор: один центральный образ — шар-ядро сайта (паспорт moy-ii, «Живой голос») --- */
.call {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 20px) max(20px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 24px) max(20px, env(safe-area-inset-left));
  background: radial-gradient(120% 70% at 50% 40%, #1b2170 0%, var(--bg) 60%, var(--bg-deep) 100%);
  text-align: center;
}
.call-top { display: flex; flex-direction: column; gap: 2px; }
.call-name { font: 600 20px/1.3 var(--display); text-wrap: balance; }
.call-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.call-core { position: relative; width: min(74vw, 46vh, 340px); aspect-ratio: 1; --lvl: 0; }
.call-core .orb__shadow { position: absolute; left: 50%; top: 53%; width: 96%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16) 62%, transparent); }
.call-core .orb__halo { position: absolute; left: 50%; top: 50%; width: 94%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22) 58%, rgba(255, 255, 255, 0.08) 74%, rgba(255, 255, 255, 0)); transition: opacity 0.4s; opacity: 0.5; }
.call-core .orb {
  position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 36% 30%, #cfe6ff 0%, #74aeff 14%, #5647e4 42%, #2a1996 70%, #110950 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), inset 12px 16px 30px rgba(255, 255, 255, 0.32), inset -26px -36px 70px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(255, 255, 255, 0.1);
  scale: calc(1 + var(--lvl) * 0.06); transition: scale 0.18s ease-out, filter 0.4s;
}
.call-core .orb__blob { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(22px); mix-blend-mode: screen; opacity: 0.55; }
.call-core .orb__blob--a { left: -8%; top: 44%; background: #ff5fd2; }
.call-core .orb__blob--b { left: 46%; top: -6%; background: #39d9ff; }
.call-core .orb__blob--c { left: 30%; top: 40%; width: 50%; background: #7a5cff; }
.call-core .orb__swirl { position: absolute; inset: -18%; border-radius: 50%; background: conic-gradient(from 0deg, #4fe6ff, #3a5bff 22%, #ff6fd8 46%, #7a4cff 70%, #4fe6ff); filter: blur(26px); opacity: 0.8; mix-blend-mode: screen; animation: spin 48s linear infinite; }
.call-core .orb__swirl--2 { inset: 6%; background: conic-gradient(from 120deg, rgba(255,255,255,0), rgba(255,255,255,0.9) 12%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 55%, #9ff3ff 66%, rgba(255,255,255,0) 80%); filter: blur(16px); opacity: 0.45; animation-duration: 70s; animation-direction: reverse; }
.call-core .orb__blade { position: absolute; left: 8%; right: 8%; top: 52%; height: 12%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(closest-side, #ffffff, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0)); filter: blur(3px); opacity: 0.8; animation: bladeCalm 9s ease-in-out infinite; }
.call-core .orb__gloss { position: absolute; left: 17%; top: 7%; width: 44%; height: 26%; border-radius: 50%; rotate: -24deg; background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)); filter: blur(3px); }
.call-core .orbit { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); }
.call-core .orbit--1 { width: 104%; margin: -52% 0 0 -52%; transform: rotate(-18deg) rotateX(74deg); }
.call-core .orbit--2 { width: 84%; margin: -42% 0 0 -42%; transform: rotate(32deg) rotateX(70deg); border-style: dashed; border-color: rgba(255, 255, 255, 0.5); }
.call-core .orbit--front { clip-path: inset(50% -12% -12% -12%); }
.call-core .orbit i { position: absolute; inset: -1.5px; border-radius: 50%; }
.call-core .orbit i::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bladeCalm { 0%, 100% { scale: 0.8 1; opacity: 0.7; } 50% { scale: 1 1.15; opacity: 0.85; } }
@keyframes blade { 0%, 100% { scale: 0.55 1; opacity: 0.75; } 30% { scale: 1 1.5; opacity: 1; } 55% { scale: 0.7 0.8; opacity: 0.85; } 78% { scale: 0.95 1.3; opacity: 1; } }
/* Состояния различаются движением и подписью, не цветом одним: слушает — шар дышит голосом человека;
   думает — перелив быстрее; говорит — «лезвие» света, как на сайте; соединяю и конец — приглушённо. */
#s-call[data-state="ready"] .orb__halo, #s-call[data-state="listening"] .orb__halo { opacity: calc(0.45 + var(--lvl) * 0.55); }
#s-call[data-state="thinking"] .orb__swirl { animation-duration: 7s; }
#s-call[data-state="thinking"] .orb__swirl--2 { animation-duration: 11s; }
#s-call[data-state="speaking"] .orb__blade { animation: blade 2.6s ease-in-out infinite; opacity: 1; }
#s-call[data-state="speaking"] .orb__halo { opacity: 0.85; }
#s-call[data-state="connecting"] .orb, #s-call[data-state="ended"] .orb { filter: saturate(0.55) brightness(0.8); }
#s-call[data-state="ended"] .orb__swirl, #s-call[data-state="ended"] .orb__blade { animation-play-state: paused; }
.call-state { margin: 0; font: 600 22px/1.3 var(--display); text-wrap: balance; max-width: 26ch; }
#s-call[data-state="ended"] .call-state { font: 500 17px/1.45 var(--font); max-width: 34ch; text-wrap: pretty; }
.call-line {
  margin: 0; min-height: 3em; max-width: 34ch; color: var(--muted); font-size: 16px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty;
}
.call-actions { display: flex; gap: 40px; justify-content: center; align-items: flex-start; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: var(--fg); font-size: 14px; cursor: pointer; min-width: 88px; }
.call-btn-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-strong); }
.call-btn.on .call-btn-ic { background: #f2f3ff; color: var(--bg); }
.call-end .call-btn-ic { background: #e5484d; color: #fff; }
/* Разговор окончен: кнопка ведёт в чат — обычная, без красного «сбросить» и с другим значком. */
.call.ended .call-end .call-btn-ic { background: linear-gradient(135deg, var(--me-a), var(--me-b)); }
.call.ended .call-end .call-btn-ic svg { display: none; }
.call.ended .call-end .call-btn-ic::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H10l-4.5 4v-4h0A1.5 1.5 0 0 1 4 14.5z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H10l-4.5 4v-4h0A1.5 1.5 0 0 1 4 14.5z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* --- голосовой разговор в ленте: карточка, расшифровка по нажатию --- */
.call-card {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 4px; border-radius: 18px; border-bottom-left-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); min-width: 240px;
}
.call-card-title { font-weight: 700; }
.call-card-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 2px; }
.call-card-sub { font-size: 14px; color: var(--muted); }
.call-card-sub:empty { display: none; }
.call-card-more { align-self: flex-start; padding-left: 0; }
.call-card-text { font-size: 15px; }

/* --- «Поделиться → Ассистенту» --- */
.share-list { list-style: none; margin: 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; overflow-wrap: anywhere; }
.share-text { margin: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .typing span, .rec-dot, .boot-mark, #s-chat { animation: none; }
  .boot-bar span { transition: none; }
  /* Звонок: движения нет, состояние — подписью. */
  .call-core .orb__swirl, .call-core .orb__blade, #s-call[data-state] .orb__blade, #s-call[data-state] .orb__swirl { animation: none; }
  .call-core .orb { scale: 1; transition: none; }
}

/* Этап 2 (30.10.2026): экран «Как ассистент готовит ответы», жалоба на ответ, удаление аккаунта. */
/* Экран выше телефона (360×640 и меньше, крупный шрифт в системе): по центру без «safe» верх карточки уходил за край
   и не прокручивался — заголовок пропадал. Карточка центруется полями auto: есть место — по центру, нет — от верха. */
.consent { overflow-y: auto; justify-content: flex-start; }
/* То же для входа и экранов состояния (форма кода с подсказкой «SMS не пришла?» + клавиатура). Где «safe» не знают — остаётся center. */
.screen-center:not(.consent) { justify-content: safe center; }
.consent-card { padding: 22px 20px; max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; margin-block: auto; flex: none; }
.consent-card p { margin: 0; color: var(--muted); text-wrap: pretty; }
.consent-card p b { color: var(--fg); font-weight: 700; }
.consent-card .btn-primary { margin-top: 6px; }
.consent-card .fine { max-width: none; }
.consent-title { font: 600 21px/1.3 var(--display); margin: 0 0 4px; }
.consent-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.consent-list b { color: var(--fg); font-weight: 700; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 14px; background: var(--surface); font-weight: 600; cursor: pointer; }
/* Свой кружок: системный в тёмной схеме — серая заливка, читался как «выключено». */
.radio input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid var(--muted); background: transparent; display: grid; place-items: center; cursor: pointer; }
.radio input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-ink); scale: 0; transition: scale 0.12s ease-out; }
.radio input:checked { border-color: var(--accent-ink); }
.radio input:checked::before { scale: 1; }
.radio:has(input:checked) { background: var(--surface-strong); }
.radio:has(input:focus-visible) { outline: 2px solid #c29bff; outline-offset: 2px; }
.radio input:focus-visible { outline: none; }
/* Комментарий жалобы: многострочное поле — не «пилюля» поля чата, края вровень с вариантами. */
#report-comment { margin: 0; border-radius: 14px; min-height: 76px; }
.btn-danger { background: rgba(255, 154, 154, 0.16); color: var(--danger); border: 1px solid rgba(255, 154, 154, 0.45); }
.btn.danger { color: var(--danger); }
.sheet-card p b { color: var(--fg); font-weight: 700; }
/* «···» под ответом ассистента — жалоба на ответ. Видом не громче времени (тот же цвет, 20 px высоты, строка не растёт),
   а палец попадает в 44×44: зона касания — невидимый ::before поверх полей. */
.meta { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.meta-more {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 20px; padding: 0 0 2px; margin: 0;
  border: 0; border-radius: 8px; background: none; color: var(--muted); font: 700 15px/1 var(--font); letter-spacing: 1px; cursor: pointer;
}
.meta-more::before { content: ""; position: absolute; inset: -12px -6px; }
.meta-more:hover, .meta-more:active { background: var(--surface-strong); color: var(--fg); }
a.sheet-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--fg); }
/* Документ откроется в браузере, а не внутри приложения: значок «наружу» справа. */
a.sheet-item[target="_blank"]::after {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* «О сервисе»: реквизиты строками «подпись — значение», а не абзацем. */
.about-req { margin: 0 8px 8px; display: grid; gap: 6px; font-size: 15px; }
.about-req > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.about-req dt { color: var(--muted); }
.about-req dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
/* Планшет и компьютер: лента и поле ввода — колонкой ~760 px по центру, как кабинет (ревью скриншотов магазинов, 30.10). */
@media (min-width: 820px) {
  #msgs, .feed > .more, #typing { width: 100%; max-width: 760px; margin-inline: auto; }
  .composer { width: 100%; max-width: 784px; margin-inline: auto; }
}

/* Кабинет → «Ассистент без приложения» и переключатель «Показывать ответ в уведомлении» (03.11.2026) */
.cab-switch { display: flex; align-items: flex-start; gap: 16px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); cursor: pointer; }
.cab-switch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cab-switch-title { font-weight: 600; }
.cab-switch .cab-note { margin: 0; }
.cab-switch input {
  appearance: none; flex: none; width: 52px; height: 32px; margin: 2px 0 0; border-radius: 16px; position: relative; cursor: pointer;
  background: var(--surface-strong); border: 1px solid var(--line); transition: background 0.15s ease-out;
}
.cab-switch input::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted);
  transition: translate 0.15s ease-out, background 0.15s ease-out;
}
.cab-switch input:checked { background: linear-gradient(135deg, var(--me-a), var(--me-b)); border-color: transparent; }
.cab-switch input:checked::before { translate: 20px 0; background: #fff; }
.cab-switch input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.cab-switch input:disabled { opacity: 0.5; }
.cab-steps { margin: 4px 0 6px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; text-wrap: pretty; }
.cab-steps b { font-weight: 600; }
.cab-phrase { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }

/* --- живые карточки рабочего пространства «Команда» в переписке (webapp-cards.js) --- */
.msg.bot:has(.tcard) { max-width: min(94%, 560px); width: 100%; }
.tcard {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-bottom-left-radius: 6px;
  padding: 14px 6px 6px 16px; display: flex; flex-direction: column; gap: 2px;
}
.tcard-head { display: flex; align-items: flex-start; gap: 8px; padding-right: 4px; }
.tcard-titles { flex: 1; min-width: 0; }
.tcard-title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.tcard-sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.tcard-full { min-width: 44px; min-height: 44px; margin: -8px -4px 0 0; }
.tcard-empty { margin: 8px 10px 10px 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.tcard-group { margin: 12px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tcard-list { list-style: none; margin: 0; padding: 0; }
.trow { display: grid; grid-template-columns: auto 1fr; align-items: start; border-top: 1px solid var(--line); padding: 4px 0; transition: opacity 0.25s; }
.trow:first-child { border-top: 0; }
.trow-check {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: transparent; cursor: pointer; padding: 0; margin-left: -8px;
}
.trow-check::before { content: ""; grid-area: 1 / 1; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); }
.trow-check svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.trow-check:active::before { background: var(--surface-strong); }
.trow.gone .trow-check::before, .trow.is-done .trow-check::before { background: var(--mint); border-color: var(--mint); }
.trow.gone .trow-check, .trow.is-done .trow-check { color: var(--bg-deep); }
.trow.gone .trow-title, .trow.is-done .trow-title { text-decoration: line-through; color: var(--muted); }
.trow.busy { opacity: 0.6; pointer-events: none; }
.trow-main {
  grid-column: 2; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; text-align: left; border: 0; background: none; padding: 8px 6px 8px 0;
  min-height: 44px; color: inherit; cursor: default; align-content: center;
}
button.trow-main { cursor: pointer; }
.trow:not(:has(.trow-check)) .trow-main { grid-column: 1 / -1; }
.trow-title { grid-column: 1; font-size: 16px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.trow-meta { grid-column: 1; font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.trow-note { grid-column: 1; font-size: 14px; line-height: 1.4; color: var(--muted); }
.trow.tone-late .trow-note { color: var(--warn-fg); }
.trow-next { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--muted); display: grid; }
.trow-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 10px 0; }
.trow-btn {
  min-height: 44px; padding: 0 12px; flex: 1 1 auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-strong); color: var(--fg);
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.trow-btn.primary { background: linear-gradient(135deg, var(--me-a), var(--me-b)); border-color: transparent; color: #fff; flex: 0 0 auto; }
.trow-btn.quiet { background: transparent; border-color: var(--line); color: var(--muted); flex: 0 0 auto; }
.trow-btn:active { transform: scale(0.98); }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 4px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.tcard-stamp { border: 0; background: none; color: var(--muted); font-size: 13px; min-height: 44px; padding: 0 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tcard-stamp svg { width: 16px; height: 16px; }
.tcard-open { white-space: nowrap; }

.toast-act { margin-left: 8px; border: 0; background: none; color: var(--accent-ink); font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 8px; cursor: pointer; }
.toast:has(.toast-act) { padding: 4px 8px 4px 16px; display: flex; align-items: center; }

/* --- «Открыть систему»: рабочее пространство на весь экран --- */
.team { display: flex; flex-direction: column; height: 100%; }
.team-stage { position: relative; flex: 1; min-height: 0; background: var(--bg-deep); }
.team-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg-deep); }
.team-state {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: var(--bg); text-align: center; color: var(--muted);
}
.team-state p { margin: 0; max-width: 32ch; text-wrap: pretty; }
.team-spaces { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.team-space { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 16px; text-align: left; }
.team-space:disabled { opacity: .6; }
.team-space-name { font-weight: 700; color: var(--fg); }
.team-space-sub { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .trow { transition: none; } .kb:active, .trow-btn:active { transform: none; } }
/* Кабинет → «Siri на iPhone»: ключ для «Быстрых команд» и инструкция с готовыми значениями (04.11.2026) */
.cab-siri { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cab-sub-h { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cab-key { margin: 12px 0 4px; }
.cab-siri-steps { margin-top: 14px; gap: 12px; }
.cab-val { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cab-val code {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font: 500 14px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); overflow-wrap: anywhere; user-select: all;
}
.cab-val code.secret { border-color: var(--accent-ink); }
.cab-val .cab-act { flex: none; }
.cab-val-label { font-size: 13px; color: var(--muted); }
.cab-fields { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* Режим embed=1 (чат внутри панели «Команда»): без меню и выхода. */
html.embed #b-menu, html.embed #menu { display: none !important; }
/* Поток помощника проекта: только переписка (в новом окне тоже). */
html.thread #b-menu, html.thread #menu { display: none !important; }

/* Экран «Не пришёл код» */
.nocode-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; text-wrap: pretty; }

/* Вход звонком: номер крупно, таймер, состояния */
.lc-num { display: block; text-align: center; font: 700 clamp(26px, 8vw, 34px)/1.2 var(--display); letter-spacing: 0.01em; color: var(--fg); text-decoration: none; padding: 8px 0; overflow-wrap: anywhere; }
a.lc-num[href] { color: var(--accent-ink); }
.lc-state { margin: 0; text-align: center; font-weight: 600; color: var(--mint); }
.lc-lost { color: var(--warn-fg); }
a.btn { text-decoration: none; display: flex; align-items: center; justify-content: center; }
.lc-tap { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.hint-center { text-align: center; }
/* Экран входа: основная кнопка и мелкая ссылка (порядок задаёт app.js по устройству); кнопки ≥ 48 px */
#f-phone .link-btn { align-self: center; }
.sms-fail { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--warn-bg); }
.sms-fail-text { margin: 0; font-weight: 700; color: var(--warn-fg); }
.sms-fail .btn { min-height: 52px; }

/* «Мои пространства»: проверка «я человек» перед кодом, карточки пространств, подтверждение первого входа */
.captcha { display: flex; flex-direction: column; gap: 8px; }
.captcha-check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-deep); cursor: pointer; font-weight: 600; font-size: 15px; }
.captcha-check input { width: 22px; height: 22px; accent-color: #6d48d6; flex: none; }
.captcha-check:focus-within { border-color: #c29bff; box-shadow: 0 0 0 3px rgba(194, 155, 255, 0.25); }
.screen-center.spaces { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sp-wrap { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; text-align: left; padding-bottom: 8px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-block { display: flex; flex-direction: column; gap: 10px; }
.sp-h { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.sp-card { width: 100%; min-height: 64px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.sp-card:hover { background: var(--surface-strong); }
.sp-card[disabled] { opacity: 0.6; cursor: default; }
.sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-name { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.sp-sub { font-size: 14px; color: var(--muted); }
.sp-badge { flex: none; font-size: 12px; font-weight: 700; color: var(--mint); border: 1px solid rgba(126, 224, 181, 0.45); border-radius: 999px; padding: 2px 10px; }
.sp-arrow { flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.sp-invite { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sp-invite .btn { min-height: 48px; }
.sp-empty { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sp-dialog-back { position: fixed; inset: 0; z-index: 40; background: rgba(4, 6, 24, 0.8); display: grid; place-items: center; padding: 20px; }
.sp-dialog { width: 100%; max-width: 380px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-deep); }
.sp-dialog p { margin: 0; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.sp-dialog .sp-d-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.sp-dialog .sp-d-title:focus { outline: none; }
.sp-dialog .sp-d-name { font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sp-dialog .sp-d-role { color: var(--muted); font-size: 16px; }
.sp-dialog .sp-c-text { font-weight: 600; overflow-wrap: anywhere; }
.sp-dialog .sp-c-text:focus { outline: none; }
.sp-inv-hint { margin: 0; }
.sp-lead-sub { font-size: 14px; margin-top: -8px; }
