/* Джарвис — стиль из design/макет-веб-приложения.html (согласован 22.09.2026).
   Только классы: строгая CSP выкидывает атрибут style= (грабли 11.09 и 14.09). */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050b12;
  --bg-deep: #070d15;
  --panel: rgba(8, 20, 32, 0.8);
  --panel-strong: rgba(10, 26, 40, 0.86);
  --bar: rgba(6, 14, 23, 0.9);
  --text: #dceaf5;
  --text-bright: #eaf6ff;
  --text-soft: #cfe3f1;
  --muted: #8fb2c8;
  --muted-2: #7f9cb0;
  --muted-3: #64849a;
  --label: #7fb7d6;
  --title: #9fd8f5;
  --accent: #57cdff;
  --accent-deep: #2ba5dd;
  --accent-ink: #03151f;
  --line: rgba(87, 205, 255, 0.14);
  --line-strong: rgba(87, 205, 255, 0.28);
  --amber: #ffbe5c;
  --amber-ink: #1d1405;
  --green: #4ade80;
  --red: #ff7a7a;
  --grid: rgba(87, 205, 255, 0.045);
  --font: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.6; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- фон: сетка и свечение ---- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 39px 39px;
  overflow: hidden;
}

.backdrop-glow {
  position: absolute;
  left: 50%;
  top: 96px;
  width: 630px;
  height: 630px;
  margin-left: -315px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 170, 235, 0.16) 0%, rgba(5, 11, 18, 0) 62%);
}

/* ---- «реактор»: он же индикатор связи с сервером ---- */

.reactor {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(87, 205, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(60, 170, 235, 0.22);
  transition: box-shadow 0.6s, border-color 0.6s;
}

.reactor-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(87, 205, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor-core {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #bfeeff 0%, #57cdff 38%, #1b6f9e 74%, #0a2438 100%);
  box-shadow: 0 0 46px rgba(87, 205, 255, 0.6);
  color: #04131f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.6s, box-shadow 0.6s;
}

.reactor.online .reactor-core { animation: reactor-breath 4s ease-in-out infinite; }

.reactor.offline { border-color: rgba(143, 178, 200, 0.2); box-shadow: none; }
.reactor.offline .reactor-ring { border-color: rgba(143, 178, 200, 0.25); }
.reactor.offline .reactor-core { filter: grayscale(1) brightness(0.55); box-shadow: none; }

@keyframes reactor-breath {
  0%, 100% { box-shadow: 0 0 46px rgba(87, 205, 255, 0.6); }
  50% { box-shadow: 0 0 64px rgba(87, 205, 255, 0.85); }
}

.reactor-small {
  width: 30px;
  height: 30px;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}
.reactor-small .reactor-core { width: 30px; height: 30px; box-shadow: 0 0 16px rgba(87, 205, 255, 0.5); }

/* ---- уголки-скобки ---- */

.brackets i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(87, 205, 255, 0.55);
  border-style: solid;
  border-width: 0;
}
.brackets i:nth-child(1) { left: 16px; top: 16px; border-left-width: 2px; border-top-width: 2px; }
.brackets i:nth-child(2) { right: 16px; top: 16px; border-right-width: 2px; border-top-width: 2px; }
.brackets i:nth-child(3) { left: 16px; bottom: 16px; border-left-width: 2px; border-bottom-width: 2px; }
.brackets i:nth-child(4) { right: 16px; bottom: 16px; border-right-width: 2px; border-bottom-width: 2px; }

/* ---- кнопки ---- */

.button-primary {
  height: 52px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 0 28px rgba(87, 205, 255, 0.38);
}

.button-ghost {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(87, 205, 255, 0.3);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
}

/* ---- экран входа ---- */

.login {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.login-secure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--label);
}
.login-secure svg { color: var(--accent); }

.login-hero {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.login-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.login-title h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-indent: 0.16em;
  color: var(--text-bright);
}

.login-title p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.login-form {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form label {
  margin-bottom: -6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.login-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text-bright);
  font-size: 17px;
  letter-spacing: 0.22em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form input:focus { border-color: rgba(87, 205, 255, 0.6); box-shadow: 0 0 18px rgba(87, 205, 255, 0.18); }

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 190, 92, 0.4);
  background: rgba(255, 190, 92, 0.08);
  color: #f3e2c8;
  font-size: 13px;
}

.login-or {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--label);
}
.login-or::before, .login-or::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: rgba(87, 205, 255, 0.2);
}

.login-passkey {
  margin-top: 26px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid rgba(87, 205, 255, 0.34);
  background: rgba(10, 26, 40, 0.7);
  color: var(--text-bright);
  font-size: 16px;
  font-weight: 500;
}
.login-passkey svg { color: var(--accent); }

.login-spacer { flex-grow: 1; min-height: 32px; }

.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-3);
}
.login-domain { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }

/* ---- приложение: общее ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.orb {
  border-radius: 50%;
  background: radial-gradient(circle, #bfeeff 0%, #57cdff 42%, #1b6f9e 78%, #0a2438 100%);
  flex-shrink: 0;
  transition: filter 0.6s, box-shadow 0.6s;
}
.orb-30 { width: 30px; height: 30px; box-shadow: 0 0 16px rgba(87, 205, 255, 0.5); }
.orb-38 { width: 38px; height: 38px; box-shadow: 0 0 20px rgba(87, 205, 255, 0.55); }
.orb-52 { width: 52px; height: 52px; box-shadow: 0 0 26px rgba(87, 205, 255, 0.55); }
.app.offline .orb { filter: grayscale(1) brightness(0.55); box-shadow: none; }

.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
}

.main {
  position: relative;
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.side, .cards-side, .desk-header { display: none; }

/* шапка телефона */
.phone-header {
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 18, 0.72);
}
.phone-header-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.phone-brand { font-size: 16px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-bright); }
.phone-status { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-clock { font-size: 12px; color: var(--muted); }
.app.offline .phone-status { color: var(--amber); }

/* разделы */
.view { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; }
.view-page { padding: 18px 16px; overflow-y: auto; }
.page-title { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-bright); }
.settings-block { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.settings-block p { margin: 0; }
.settings-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.11em; color: var(--title); }
.settings-block, .settings-form { max-width: 440px; }
.settings-form label { margin-bottom: -6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.settings-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text-bright);
  font-size: 16px;                  /* меньше 16 — iPhone увеличивает страницу при вводе */
  letter-spacing: 0.18em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-form input:focus { border-color: rgba(87, 205, 255, 0.6); box-shadow: 0 0 18px rgba(87, 205, 255, 0.18); }
.button-line:disabled { opacity: 0.5; }
/* Ключ чужой системы (адрес вебхука): точки вместо знаков, но поле текстовое — в поле-пароль Chrome
   подставил бы сохранённый пароль от самого Джарвиса */
.settings-form input.secret-input { letter-spacing: 0; font-size: 16px; -webkit-text-security: disc; }
.settings-form input.secret-input::placeholder { color: var(--muted-3); -webkit-text-security: none; }
.settings-form input.plain-input { letter-spacing: 0; }
.settings-form input.plain-input::placeholder { color: var(--muted-3); }
/* подключения к системам компании: Битрикс24, база знаний */
.connect-fields { display: flex; flex-direction: column; gap: 12px; }
.connect-status { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-help { font-size: 12px; line-height: 1.55; color: var(--muted); }
.settings-help summary { cursor: pointer; color: var(--accent); }
.settings-help ol { margin: 10px 0; padding-left: 20px; }
.settings-help li { margin-bottom: 6px; }
.settings-help p { margin-top: 8px; }

.icon-button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--accent);
}
.icon-button:disabled { opacity: 0.35; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.chip[aria-pressed="true"] { border-color: rgba(87, 205, 255, 0.55); background: rgba(87, 205, 255, 0.14); color: var(--text-bright); }

/* разделы телефона в настройке: на компьютере они в меню слева */
.button-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
@media (min-width: 1100px) { .phone-only { display: none; } }

/* профиль и память */
.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text-bright);
  font-size: 16px;
  outline: none;
}
.search input:focus { border-color: rgba(87, 205, 255, 0.6); }
.memory-hint { margin: 10px 0 16px; font-size: 12px; line-height: 1.5; max-width: 560px; }
#memory-list, #memory-note { max-width: 760px; }
.memory-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.memory-group .settings-title { margin-bottom: 4px; }
.memory-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(87, 205, 255, 0.14);
  background: var(--panel);
  color: var(--text);
  text-align: left;
}
.memory-name { font-size: 14px; color: #e4f1fa; }
.memory-sub { font-size: 11px; line-height: 1.4; color: #7f9cb0; overflow-wrap: anywhere; }
.memory-title { flex-grow: 1; font-size: 15px; color: var(--text-bright); overflow-wrap: anywhere; }
#memory-info { margin: 0 0 10px; font-size: 12px; }
.memory-text {
  width: 100%;
  min-height: 55vh;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 23, 0.7);
  color: var(--text);
  font: 14px/1.55 var(--font);
  resize: vertical;
  outline: none;
}
.memory-text.editing { border-color: rgba(87, 205, 255, 0.55); background: var(--panel-strong); font-size: 16px; }

/* Мак: снимок экрана и редактор команд */
.shot { margin: 16px 0; max-width: 760px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-strong); }
.shot figcaption { margin-top: 6px; font-size: 12px; }
.commands-block { margin-top: 18px; max-width: 560px; }
#commands-list { display: flex; flex-direction: column; gap: 6px; }
#commands-list > .button-line { margin-bottom: 10px; }
.memory-item.off .memory-name { color: #7f96a8; }
.command-form { max-width: 560px; }
.settings-form textarea, .settings-form select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text-bright);
  font: 16px/1.45 var(--font);
  outline: none;
}
.settings-form select { height: 46px; padding: 0 12px; }
.settings-form select:disabled { opacity: 0.6; }
.settings-form textarea:focus, .settings-form select:focus { border-color: rgba(87, 205, 255, 0.6); }
.settings-form label.check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text); }
.settings-form label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.button-danger { border-color: rgba(255, 190, 92, 0.45); background: transparent; color: var(--amber); }

/* журнал «услышал → сделал» */
.journal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.journal-day { flex-grow: 1; text-align: center; font-size: 14px; color: var(--text-bright); letter-spacing: 0.04em; }
.journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.journal-item { padding: 10px 0 11px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.journal-head { display: flex; align-items: baseline; gap: 10px; font-size: 11px; letter-spacing: 0.06em; }
.journal-time { color: var(--accent); }
.journal-kind { text-transform: uppercase; color: var(--title); }
.journal-where { margin-left: auto; color: var(--muted); }
.journal-title { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-detail { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.kind-utterance .journal-title { color: var(--text-bright); }
.kind-system .journal-title, .kind-system .journal-kind { color: var(--muted); }
.journal-item.failed .journal-kind, .journal-item.failed .journal-detail { color: var(--amber); }

.button-line {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(87, 205, 255, 0.3);
  background: rgba(87, 205, 255, 0.08);
  color: var(--text);
  font-size: 14px;
}

/* ---- полосы прокрутки в стиль (на компьютере системные — серые) ---- */

.scroll, .view-page, .cards-side { scrollbar-width: thin; scrollbar-color: rgba(87, 205, 255, 0.25) transparent; }
.scroll::-webkit-scrollbar, .view-page::-webkit-scrollbar, .cards-side::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb, .view-page::-webkit-scrollbar-thumb, .cards-side::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(87, 205, 255, 0.25);
}

/* ---- лента ---- */

.scroll {
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.feed, .feed-drafts { display: flex; flex-direction: column; gap: 11px; }
.feed-drafts:empty { display: none; }

.feed-more {
  align-self: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 20, 32, 0.8);
  color: var(--label);
  font-size: 12px;
}

.feed-empty { margin: 24px 8px; text-align: center; font-size: 13px; color: var(--muted-2); }

.feed-day {
  align-self: center;
  margin: 6px 0 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.msg { display: flex; flex-direction: column; gap: 6px; max-width: 76%; }
.msg-owner { align-self: flex-end; align-items: flex-end; max-width: 70%; }
.msg-jarvis { align-self: flex-start; }

.bubble {
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg-owner .bubble {
  border-radius: 14px 14px 4px 14px;
  background: rgba(87, 205, 255, 0.14);
  border: 1px solid rgba(87, 205, 255, 0.26);
  color: var(--text);
}
.msg-jarvis .bubble {
  border-radius: 14px 14px 14px 4px;
  background: rgba(10, 26, 40, 0.88);
  border: 1px solid rgba(87, 205, 255, 0.18);
  color: var(--text-soft);
}
.msg-failed .bubble { border-color: rgba(255, 190, 92, 0.4); }
.msg-notify .bubble { border-color: rgba(87, 205, 255, 0.34); background: rgba(12, 34, 52, 0.9); }
.bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg-picture { width: min(76%, 420px); }
.msg-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(87, 205, 255, 0.18);
  background: rgba(10, 26, 40, 0.88);
}
.msg-save { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 3px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.play {
  width: 26px;
  height: 26px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(87, 205, 255, 0.35);
  background: rgba(87, 205, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play.playing { background: var(--accent); color: var(--accent-ink); }

/* черновик: Джарвис пишет */
.msg-draft .bubble:empty::before { content: "Джарвис думает"; color: var(--muted-2); }
.msg-draft .bubble::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* подтверждение: янтарная карточка */
.confirm {
  align-self: flex-start;
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 190, 92, 0.08);
  border: 1px solid rgba(255, 190, 92, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirm-text { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.5; color: #f3e2c8; }
.confirm-text svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); }
.confirm-actions { display: flex; gap: 10px; }
.confirm-yes, .confirm-no { flex: 1; height: 38px; padding: 0 14px; border-radius: 9px; font-size: 14px; }
.confirm-yes { border: none; background: var(--amber); color: var(--amber-ink); font-weight: 600; }
.confirm-no { border: 1px solid rgba(255, 190, 92, 0.45); background: transparent; color: #f3e2c8; }
.confirm-state { padding-left: 30px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #d9b378; }
.confirm.done { opacity: 0.72; }

/* ---- строка вопроса и кнопка «Говорить» ---- */

.composer {
  flex-shrink: 0;
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--bar);
}

.composer-field { position: relative; flex-grow: 1; min-width: 0; }

.composer input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(87, 205, 255, 0.24);
  background: rgba(9, 22, 35, 0.9);
  color: var(--text-bright);
  font-size: 15px;
  outline: none;
}
.composer input:focus { border-color: rgba(87, 205, 255, 0.55); }
.composer input::placeholder { color: var(--muted-2); }

.composer-send {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: rgba(87, 205, 255, 0.16);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.talk {
  width: 72px;
  height: 72px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid rgba(87, 205, 255, 0.32);
  background: linear-gradient(180deg, #6fd6ff 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 0 36px rgba(87, 205, 255, 0.6);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.talk-icon { width: 28px; height: 28px; }
.talk-label { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; }
.talk.recording { background: linear-gradient(180deg, #ffd48a 0%, #f0a53a 100%); border-color: rgba(255, 190, 92, 0.5);
  box-shadow: 0 0 44px rgba(255, 190, 92, 0.7); animation: talk-pulse 1.2s ease-in-out infinite; }
.talk.busy { opacity: 0.7; }
@keyframes talk-pulse { 50% { transform: scale(1.06); } }

/* ---- нижнее меню телефона ---- */

.tabbar {
  height: calc(70px + env(safe-area-inset-bottom));
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  background: rgba(6, 14, 23, 0.94);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  font-size: 11px;
  color: var(--muted-2);
}
.tabbar a.active { color: var(--accent); }
.tabbar a { position: relative; }
.tabbar a .new-dot { position: absolute; top: -1px; left: 50%; margin-left: 9px; }    /* у значка, справа сверху */

/* ---- карточки ---- */

.cards { display: flex; flex-direction: column; gap: 11px; }
.cards:empty { display: none; }
.cards.cards-side { display: none; }          /* правая колонка — только на компьютере (ниже) */
.cards-inline { margin-top: 14px; }
.cards-page { max-width: 560px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(87, 205, 255, 0.18);
  border-radius: 14px;
  background: var(--panel);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--title); }
.card-count { font-size: 12px; color: var(--label); }
.card-hint { font-size: 11px; color: var(--muted); }
.card-note { margin: 0; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.card-empty { font-size: 13px; line-height: 1.5; color: var(--muted); }
.card-state { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.04em; }
.card-state.ok { color: var(--green); }
.card-state.warn { color: var(--amber); }
.dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.dot.ok { color: var(--green); }
.dot.warn { color: var(--amber); }
.card-buttons { display: flex; gap: 8px; }
.card-buttons .button-line { flex: 1 1 0; min-width: 0; font-size: 13px; }

.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.task { display: flex; align-items: center; gap: 10px; }
.task-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(87, 205, 255, 0.45);
  background: transparent;
}
.task-check[aria-checked="true"] {
  border-color: rgba(87, 205, 255, 0.6);
  background: rgba(87, 205, 255, 0.85) url("/icons/check.svg") center / 13px no-repeat;
}
.task-text { flex-grow: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.task.done .task-text { color: #7f96a8; text-decoration: line-through; }
.task-time { font-size: 12px; color: var(--accent); }
.task-time.late { color: var(--amber); }
.task.done .task-time { color: #7f96a8; }

.usage-row { display: flex; align-items: center; gap: 10px; }
.usage-name { width: 86px; flex-shrink: 0; font-size: 13px; color: #a9c2d4; }
.usage-text { flex-grow: 1; font-size: 13px; color: var(--muted); }
.usage-value { font-size: 12px; color: var(--text-soft); white-space: nowrap; }
.usage-value.ok { color: var(--green); }
.bar { flex-grow: 1; height: 7px; border-radius: 4px; background: rgba(87, 205, 255, 0.12); overflow: hidden; }
.bar-fill { display: block; height: 7px; background: var(--accent); }
.usage-row.warn .bar-fill { background: var(--amber); }
.usage-row.warn .usage-value, .card-note.warn { color: var(--amber); }

.systems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.system { display: flex; align-items: center; gap: 10px; }
.system-name { flex-grow: 1; font-size: 14px; }
.system-value { font-size: 12px; color: var(--muted); }
.system-value.warn { color: #d9b378; }

.card-weather { flex-direction: row; align-items: center; justify-content: space-between; }
.weather-text { display: flex; flex-direction: column; gap: 4px; }
.weather-city { font-size: 14px; color: #e4f1fa; }
.weather-sky { font-size: 12px; color: var(--muted); }
.weather-temp { font-size: 30px; font-weight: 600; color: var(--text-bright); }

/* голос в настройке */
.settings-panel { display: flex; flex-direction: column; gap: 14px; padding: 14px 15px; border: 1px solid rgba(87, 205, 255, 0.18); border-radius: 14px; background: var(--panel); }
.settings-row { display: flex; align-items: center; gap: 12px; }
.button-small { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(87, 205, 255, 0.3); background: transparent; color: var(--accent); font-size: 13px; }
.button-small:disabled { opacity: 0.45; }
.settings-range { display: flex; flex-direction: column; gap: 8px; }
.settings-range label { font-size: 12px; color: var(--muted); }
.settings-range label span { color: var(--text-bright); }
.settings-range input { width: 100%; accent-color: var(--accent); }
.settings-range p { margin: 0; }

/* переключатели «что показывать» */
.settings-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.settings-head .muted { font-size: 11px; }
.switches { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(87, 205, 255, 0.18); border-radius: 14px; background: var(--panel); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid rgba(87, 205, 255, 0.1); }
.switch-row:last-child { border-bottom: none; }
.switch-text { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; }
.switch-name { font-size: 14px; color: #e4f1fa; }
.switch-hint { font-size: 11px; color: #7f9cb0; }
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(87, 205, 255, 0.08);
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7f9cb0;
  transition: transform 0.2s, background 0.2s;
}
.switch[aria-checked="true"] { background: rgba(87, 205, 255, 0.35); border-color: rgba(87, 205, 255, 0.6); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--text-bright); }

/* ---- всплывающее сообщение ---- */

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(170px + env(safe-area-inset-bottom));
  max-width: min(92vw, 420px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 190, 92, 0.4);
  background: rgba(24, 20, 12, 0.96);
  color: #f3e2c8;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ---- умения (макет design/макет-умения.html, согласован 08.10.2026) ---- */

.new-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* «Другие разделы» в настройке телефона */
.section-rows { display: flex; flex-direction: column; gap: 6px; }
.section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font-size: 14px;
  color: var(--text);
}
.section-go { margin-left: auto; font-size: 16px; color: var(--muted-3); }

.skills-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.skills-head .page-title { margin: 0; }
.skills-lead { margin: 0; font-size: 13px; }
.journal-bar.skills-topbar { display: none; }      /* «‹ Файлы» — только на телефоне, когда открыта тема */

.sk-label { margin: 0 0 9px; font-size: 10px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
.sk-box { position: relative; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.sk-corners { border-color: var(--line-strong); box-shadow: 0 0 24px rgba(87, 205, 255, 0.07); }
.sk-corners::before, .sk-corners::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); pointer-events: none; }
.sk-corners::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.sk-corners::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.sk-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}
.sk-tag.is-warn { border-color: rgba(255, 190, 92, 0.5); color: var(--amber); }

.skills-news-box { margin-bottom: 18px; }
.sk-news { display: flex; flex-direction: column; gap: 8px; }
.sk-news-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; }
.sk-news-item:not(:first-child):not(.is-new) { display: none; }    /* на телефоне — новое, а если нового нет, последнее */
.sk-news-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; color: inherit; }
.sk-news-text b { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--text-bright); }
.sk-news-brief { font-size: 12px; line-height: 1.5; color: var(--muted); }

.sk-topic { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; font-size: 13px; color: var(--text); }
.sk-topic.is-off { color: var(--muted-3); }
.sk-count { margin-left: auto; font-size: 11px; color: var(--muted-3); }
.sk-topic .sk-tag { margin-left: auto; }

.sk-note { margin: 0 0 12px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.sk-skill { margin-bottom: 6px; }
.sk-skill-head { display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 11px 14px; border: 0; background: transparent; text-align: left; }
.sk-skill-title { font-size: 13px; font-weight: 600; color: var(--text-bright); }
.sk-skill-brief { font-size: 12px; line-height: 1.5; color: var(--muted); }
.sk-skill.is-open .sk-skill-head { padding: 16px 16px 6px; }
.sk-skill.is-open .sk-skill-title { font-size: 16px; }
.sk-skill.is-open .sk-skill-brief { display: none; }
.sk-skill-body { padding: 0 16px 16px; }
.sk-skill-body .sk-label { margin: 0 0 7px; }
.sk-what { margin: 0 0 14px; max-width: 640px; font-size: 13px; line-height: 1.55; color: var(--text); }
.sk-say { list-style: none; margin: 0 0 14px; padding: 0; }
.sk-say li { margin-bottom: 5px; padding: 7px 11px; border-left: 2px solid var(--accent); background: rgba(87, 205, 255, 0.05); font-size: 13px; line-height: 1.5; color: var(--text-bright); }
.sk-know { margin: 0 0 16px; max-width: 640px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.sk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sk-since { margin-left: auto; font-size: 11px; letter-spacing: 0.06em; color: var(--muted-3); }

/* сообщение о новом умении в ленте: «Расскажи» и «Позже» */
.offer-actions { display: flex; gap: 9px; }
.offer-tell, .offer-later {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.offer-tell { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 0 22px rgba(87, 205, 255, 0.35); }
.offer-later { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); }

/* «прочитать вслух»: круглая кнопка у строки и у новости, большая — в раскрытом умении */
.play.sk-play { width: 34px; height: 34px; }
.sk-skill { display: flex; flex-wrap: wrap; align-items: center; }
.sk-skill-head { flex: 1 1 0; min-width: 0; }
.sk-skill-body { flex: 0 0 100%; }
.sk-skill > .sk-play { margin-right: 14px; }
.sk-skill.is-open > .sk-play { display: none; }
.sk-read {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 22px rgba(87, 205, 255, 0.35);
}
.sk-bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.sk-bars i { width: 3px; border-radius: 2px; background: currentColor; animation: sk-bar 0.8s ease-in-out infinite; }
.sk-bars i:nth-child(1) { height: 6px; }
.sk-bars i:nth-child(2) { height: 14px; animation-delay: -0.2s; }
.sk-bars i:nth-child(3) { height: 9px; animation-delay: -0.45s; }
.sk-bars i:nth-child(4) { height: 12px; animation-delay: -0.6s; }
@keyframes sk-bar { 50% { transform: scaleY(0.35); } }
.sk-reading { flex: 1 1 140px; max-width: 260px; }
.sk-reading span { display: block; margin-bottom: 5px; font-size: 11px; color: var(--muted); }
.sk-progress { height: 2px; overflow: hidden; border-radius: 1px; background: var(--line); }
.sk-progress i { display: block; width: 36%; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: sk-run 1.6s ease-in-out infinite; }
@keyframes sk-run { from { transform: translateX(-100%); } to { transform: translateX(280%); } }

/* телефон: сначала новое и темы, по нажатию на тему — её умения */
@media (max-width: 1099px) {
  .view-skills[data-mode="home"] .skills-list { display: none; }
  .view-skills[data-mode="topic"] .skills-head,
  .view-skills[data-mode="topic"] .skills-news-box,
  .view-skills[data-mode="topic"] .skills-topics,
  .view-skills[data-mode="topic"] #skills-topic-title { display: none; }
  .view-skills[data-mode="topic"] .journal-bar.skills-topbar { display: flex; }
}

/* компьютер и окно на Маке: новое в ряд, темы слева, умения темы справа; карточки справа уступают место */
@media (min-width: 1100px) {
  .app.on-skills .cards.cards-side { display: none; }
  .view-skills > * { max-width: 1010px; }
  .skills-news-box { margin-bottom: 24px; }
  .sk-news { flex-direction: row; gap: 12px; }
  .sk-news-item { flex: 1 1 0; min-width: 0; padding: 13px 14px; }
  .sk-news-item:not(:first-child):not(.is-new) { display: flex; }
  .skills-cols { display: flex; align-items: flex-start; gap: 22px; }
  .skills-topics { width: 268px; flex-shrink: 0; }
  .skills-list { flex: 1 1 0; min-width: 0; }
  .sk-topic.is-here { border-color: var(--line-strong); background: rgba(87, 205, 255, 0.08); color: var(--text-bright); }
  .side-nav a .new-dot { margin-left: auto; }
  .sk-skill.is-open .sk-skill-head { padding: 18px 20px 6px; }
  .sk-skill-body { padding: 0 20px 20px; }
  .sk-read { flex: 0 0 auto; height: 36px; }
}

/* ---- компьютер: три колонки ---- */

@media (min-width: 1100px) {
  .backdrop { background-size: 48px 48px; }
  .backdrop-glow { left: 420px; top: -180px; width: 720px; height: 720px; margin-left: 0;
    background: radial-gradient(circle, rgba(60, 170, 235, 0.16) 0%, rgba(5, 11, 18, 0) 64%); }

  .phone-header, .tabbar, .cards-inline { display: none; }
  .side, .cards-side, .desk-header { display: flex; }

  .side {
    width: 236px;
    flex-shrink: 0;
    flex-direction: column;
    padding: 26px 18px 22px;
    border-right: 1px solid var(--line);
    background: rgba(6, 14, 23, 0.72);
  }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px;
    font-size: 18px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-bright); }
  .side-nav { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
  .side-nav a {
    height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #a9c2d4;
    font-size: 15px;
  }
  .side-nav a:hover { background: rgba(87, 205, 255, 0.06); }
  .side-nav a.active { background: rgba(87, 205, 255, 0.14); border-color: rgba(87, 205, 255, 0.3); color: var(--text-bright); }
  .side-nav a.active svg { color: var(--accent); }
  .side-spacer { flex-grow: 1; }
  .side-user { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; gap: 11px; }
  .side-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(87, 205, 255, 0.4);
    display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--title); }
  .side-user-text { display: flex; flex-direction: column; min-width: 0; }
  .side-user-text span:first-child { font-size: 13px; color: #e4f1fa; }
  .side-user-text span:last-child { font-size: 11px; color: var(--muted-2); }

  .main { padding: 24px 30px 26px; }

  .desk-header {
    flex-shrink: 0;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(87, 205, 255, 0.12);
  }
  .desk-orb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(87, 205, 255, 0.3);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 34px rgba(60, 170, 235, 0.3); }
  .desk-header-text { flex-grow: 1; display: flex; flex-direction: column; gap: 7px; }
  .desk-title { font-size: 20px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-bright); }

  .pill { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08);
    font-size: 12px; color: #8ee5ad; white-space: nowrap; }
  .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
  .app.offline .pill { border-color: rgba(255, 190, 92, 0.4); background: rgba(255, 190, 92, 0.08); color: #f3d6a6; }
  .app.offline .pill-dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

  .view-page { padding: 22px 0; }

  .scroll { padding: 22px 0; gap: 16px; }
  .feed, .feed-drafts { gap: 16px; }
  .msg { max-width: 560px; gap: 8px; }
  .msg-owner { max-width: 460px; }
  .bubble { padding: 13px 17px; font-size: 15px; line-height: 1.55; }
  .msg-owner .bubble { border-radius: 16px 16px 5px 16px; }
  .msg-jarvis .bubble { border-radius: 16px 16px 16px 5px; color: #d7e8f5; }
  .msg-meta { gap: 10px; padding: 0 4px; font-size: 11px; letter-spacing: 0.04em; }
  .play { width: 30px; height: 30px; }
  .confirm { max-width: 560px; padding: 15px 17px; border-radius: 16px 16px 16px 5px; }
  .confirm-text { font-size: 15px; }
  .confirm-actions { padding-left: 30px; }
  .confirm-yes, .confirm-no { flex: none; padding: 0 20px; }

  .composer {
    height: 58px;
    padding: 0 8px 0 20px;
    border: 1px solid rgba(87, 205, 255, 0.24);
    border-radius: 14px;
    background: rgba(8, 20, 32, 0.86);
  }
  .composer input { height: 40px; padding: 0 44px 0 0; border: none; background: transparent; }
  .composer-send { right: 0; width: 34px; height: 34px; margin-top: -17px; }
  .talk { width: 42px; height: 42px; border: none; box-shadow: 0 0 20px rgba(87, 205, 255, 0.45);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%); }
  .talk-icon { width: 19px; height: 19px; }
  .talk-label { display: none; }

  .cards-side {
    width: 422px;
    flex-shrink: 0;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 26px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: rgba(6, 14, 23, 0.6);
  }
  .cards.cards-side, .cards-side:empty { display: flex; }

  .toast { bottom: 110px; }
}

/* волна «говорю / думаю» на компьютере */
.wave { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: rgba(87, 205, 255, 0.55); transform-origin: bottom; }
.wave i:nth-child(1) { height: 9px; }
.wave i:nth-child(2) { height: 19px; background: rgba(87, 205, 255, 0.75); }
.wave i:nth-child(3) { height: 26px; background: var(--accent); }
.wave i:nth-child(4) { height: 14px; background: rgba(87, 205, 255, 0.7); }
.wave i:nth-child(5) { height: 22px; background: var(--accent); }
.wave i:nth-child(6) { height: 8px; }
.wave i:nth-child(7) { height: 17px; background: rgba(87, 205, 255, 0.7); }
.wave i:nth-child(8) { height: 11px; }
.wave i:nth-child(9) { height: 21px; background: var(--accent); }
.wave i:nth-child(10) { height: 7px; background: rgba(87, 205, 255, 0.45); }
.wave.active i { animation: wave 0.9s ease-in-out infinite; }
.wave.active i:nth-child(2n) { animation-delay: -0.3s; }
.wave.active i:nth-child(3n) { animation-delay: -0.6s; }
@keyframes wave { 50% { transform: scaleY(0.35); } }
.app.offline .wave i { background: rgba(143, 178, 200, 0.3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
