/* Личный сайт: вариант «Белочка» (по этикетке и белочке AMADOMIO; ДИЗАЙН, предложение 19.10.2026). Было: «Уютный дом» (ДИЗАЙН, 19.10.2026; владелец: «оставляем два варианта, светлый и тёмный»).
   Тема выбирается кнопкой .theme-btn (светлая / тёмная), без подстройки под время суток. Цвета — только токены ниже. */
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url(/s/fonts/nunito-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url(/s/fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FCEFE0; --surface: #FFFAF4; --ink: #1F2B3D; --muted: #6B5D52; --line: #F0D9C0;
  --accent: #D9651F; --accent-grad: linear-gradient(180deg, #F28A3C, #C85A18); --accent-text: #A84A15; --on-accent: #FFFFFF; --accent-soft: #FFE1C9;
  --mine: #DCEEFA; --field: #F7E3CE; --rec: #D2483A; --danger: #B3261E; --overlay: rgba(31, 43, 61, .45);
  --peach: #FFD3B0; --mint: #D6EFC4; --sun: #FFE6A3; --blue: #2F86C4; --wave: #F9C99A; --wave2: #FFE2C4;
  --shadow: 0 6px 18px rgba(170, 90, 30, .14); --btn-soft: #FFFAF4;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #221A15; --surface: #2E241D; --ink: #F7EBDD; --muted: #C4B2A1; --line: #3F3128;
    --accent: #F59A4A; --accent-grad: linear-gradient(180deg, #F7A65A, #E9792E); --accent-text: #FFB27A; --on-accent: #2A1608; --accent-soft: #4A2F1F;
    --mine: #1F3A52; --field: #362A22; --rec: #FF8A73; --danger: #FF9C8A; --overlay: rgba(0, 0, 0, .6);
    --peach: #5A3826; --mint: #2F4426; --sun: #4D4026; --blue: #6DB6E8; --wave: #4A2E1E; --wave2: #33241A;
    --shadow: 0 6px 18px rgba(0, 0, 0, .4); --btn-soft: #4A3F37;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #221A15; --surface: #2E241D; --ink: #F7EBDD; --muted: #C4B2A1; --line: #3F3128;
    --accent: #F59A4A; --accent-grad: linear-gradient(180deg, #F7A65A, #E9792E); --accent-text: #FFB27A; --on-accent: #2A1608; --accent-soft: #4A2F1F;
    --mine: #1F3A52; --field: #362A22; --rec: #FF8A73; --danger: #FF9C8A; --overlay: rgba(0, 0, 0, .6);
    --peach: #5A3826; --mint: #2F4426; --sun: #4D4026; --blue: #6DB6E8; --wave: #4A2E1E; --wave2: #33241A;
    --shadow: 0 6px 18px rgba(0, 0, 0, .4); --btn-soft: #4A3F37;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font);
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
#app { height: 100dvh; max-width: 720px; margin: 0 auto; }
.screen { height: 100%; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }

.btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent);
  font-size: 18px; font-weight: 600; }
.btn-primary svg { width: 22px; height: 22px; }
.btn-primary:disabled { opacity: .6; }
.btn-soft { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--field);
  font-size: 17px; font-weight: 500; }
.hint { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); text-align: center; }
.hint.err { color: var(--danger); }

/* вход */
.login { justify-content: space-between; padding: max(56px, env(safe-area-inset-top)) 28px max(36px, env(safe-area-inset-bottom)); }
.login-top { display: flex; flex-direction: column; gap: 10px; }
.brand { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--accent-text); }
.login-h { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; }
.login-sub { margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.face { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--accent-text); }
.face svg { width: 132px; height: 132px; padding: 34px; border-radius: 36px; background: var(--accent-soft); }
.face-cap { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.login-bottom { display: flex; flex-direction: column; gap: 14px; }

/* список */
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.list-head h1 { margin: 0; font-size: 28px; font-weight: 700; }
.avatar { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--accent-soft);
  color: var(--accent-text); font-size: 17px; font-weight: 600; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; margin: 4px 20px 8px; padding: 0 14px;
  border-radius: 12px; background: var(--field); color: var(--muted); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }
.chats { flex: 1; overflow-y: auto; padding: 0 12px; -webkit-overflow-scrolling: touch; }
.chat-row { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; }
.chat-row .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.chat-row .t { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .w { flex: none; font-size: 14px; color: var(--muted); }
.chat-row .l { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .live { color: var(--accent-text); font-weight: 500; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 16px; }
.list-foot { padding: 12px 20px 20px; }

/* разговор */
.chat-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.icon-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted); border-radius: 22px; }
.icon-btn.accent { color: var(--accent-text); }
.icon-btn svg { width: 24px; height: 24px; }
.chat-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px;
  -webkit-overflow-scrolling: touch; }
.msg { max-width: 88%; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.msg.me .bubble { background: var(--mine); border-radius: 20px 20px 6px 20px; padding: 11px 15px; white-space: pre-wrap; }
.msg.me .meta { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.msg.me .meta svg { width: 13px; height: 13px; }
.msg.ai { align-self: flex-start; max-width: 94%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px 20px 20px 6px; padding: 12px 16px; }
.msg.ai > :first-child { margin-top: 0; } .msg.ai > :last-child { margin-bottom: 0; }
.msg.ai p, .msg.ai ul, .msg.ai ol, .msg.ai pre, .msg.ai .tbl, .msg.ai blockquote { margin: 0 0 10px; }
.msg.ai ul, .msg.ai ol { padding-left: 22px; }
.msg.ai li { margin: 2px 0; }
.msg.ai h1, .msg.ai h2, .msg.ai h3, .msg.ai h4 { margin: 14px 0 6px; font-size: 17px; line-height: 1.3; }
.msg.ai a { color: var(--accent-text); }
.msg.ai code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: var(--field); padding: 1px 5px; border-radius: 5px; }
.msg.ai pre { background: var(--field); padding: 10px 12px; border-radius: 10px; overflow-x: auto; }
.msg.ai pre code { background: none; padding: 0; }
.msg.ai blockquote { border-left: 3px solid var(--line); padding-left: 10px; color: var(--muted); }
.msg.ai hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.tbl { overflow-x: auto; }
.tbl table { border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--accent-text); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.msg .err { color: var(--danger); font-size: 14px; }
.actions { align-self: flex-start; display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-text); font-size: 15px;
  font-weight: 500; text-decoration: none; }
.chip svg { width: 16px; height: 16px; }
.files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.files img { max-width: 160px; max-height: 160px; border-radius: 12px; object-fit: cover; }

.attached { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 12px 0; }
.att { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 0 6px 0 12px;
  border-radius: 18px; background: var(--field); font-size: 14px; }
.att span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.att button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.round { flex: none; width: 48px; height: 48px; border-radius: 24px; border: 0; display: flex; align-items: center; justify-content: center; }
.round svg { width: 22px; height: 22px; }
.round.soft { background: var(--field); color: var(--muted); }
.round.accent-bg { background: var(--accent); color: var(--on-accent); }
.round.stop { background: var(--ink); color: var(--bg); }
.field { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: 24px; background: var(--field); }
.field textarea { width: 100%; border: 0; background: transparent; outline: none; resize: none; font-size: 16px;
  line-height: 1.4; padding: 12px 0; max-height: 160px; color: var(--ink); }
::placeholder { color: var(--muted); opacity: 1; }

/* нижние окна */
.backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 720px; margin: 0 auto; z-index: 11; background: var(--surface);
  border-radius: 28px 28px 0 0; padding: 12px 16px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px;
  animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 10px; }
.sheet h2 { margin: 0 6px 8px; font-size: 20px; font-weight: 700; }
.sheet-body { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.row-btn { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 10px; border: 0; border-radius: 16px;
  background: transparent; text-align: left; }
.row-btn:active { background: var(--field); }
.row-btn .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; }
.row-btn .ic svg { width: 22px; height: 22px; }
.row-btn .tt { display: flex; flex-direction: column; gap: 2px; }
.row-btn b { font-size: 17px; font-weight: 600; }
.row-btn small { font-size: 14px; color: var(--muted); }
.row-btn.danger b, .row-btn.danger .ic { color: var(--danger); }
.sheet input[type=text] { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); font-size: 17px; outline: none; }

/* диктовка */
.rec-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 0; }
.rec-head b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.rec-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--rec); animation: blink 1.2s infinite; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.wave { height: 64px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent); transition: height .08s; }
.rec-note { margin: 0 6px; font-size: 14px; color: var(--muted); text-align: center; }
.two { display: flex; gap: 12px; }
.two > * { flex: 1; }
.btn-line { min-height: 56px; border-radius: 16px; border: 1px solid var(--line); background: transparent; font-size: 17px; font-weight: 500; color: var(--muted); }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 20; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 15px; }

/* «Уютный дом»: мягкие формы, тени, цветные кружки */
.btn-primary, .btn-soft, .btn-line { border-radius: 999px; }
.btn-primary { font-weight: 700; box-shadow: var(--shadow); }
.login { background:
  radial-gradient(220px 220px at 100% 4%, var(--peach), transparent 70%),
  radial-gradient(240px 240px at -10% 70%, var(--mint), transparent 70%),
  radial-gradient(150px 150px at 85% 62%, var(--sun), transparent 70%), var(--bg); }
.brand { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; }
.brand::before { content: ""; width: 12px; height: 12px; background: var(--accent); border-radius: 0 100% 0 100%; }
.login-h { font-weight: 800; }
.face svg { border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 10px var(--accent-soft), var(--shadow); }
.list-head h1 { font-weight: 800; }
.avatar { background: linear-gradient(135deg, var(--peach), var(--mint)); color: var(--ink); font-weight: 700; }
.search { border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.chats { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 8px; }
.chat-row { position: relative; min-width: 0; padding: 13px 14px 13px 64px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.chat-row::before { content: ""; position: absolute; left: 14px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: var(--mint); }
.chat-row:nth-child(3n+2)::before { background: var(--peach); }
.chat-row:nth-child(3n+3)::before { background: var(--sun); }
/* значок «разговор» в кружке: облачко с хвостиком, линией в цвет текста (один на все строки; значок по теме — задача ДОМЕНа) */
.chat-row::after { content: ""; position: absolute; left: 24px; top: 50%; width: 18px; height: 14px; margin-top: -8px;
  border: 2px solid var(--ink); border-radius: 7px 7px 7px 2px; opacity: .75; }
.chat-row .t { flex: 1; min-width: 0; font-weight: 700; }
.chat-row .l { display: block; max-width: 100%; min-width: 0; padding-right: 2px; }
.chat-row .live { font-weight: 700; }
.chat-head { border-bottom: 0; }
.chat-title { font-weight: 700; }
.msg.me .bubble { border-radius: 22px 22px 8px 22px; }
.msg.ai { border: 0; border-radius: 22px 22px 22px 8px; box-shadow: var(--shadow); }
.chip { border: 0; background: var(--accent-soft); font-weight: 600; }
.composer { border-top: 0; }
.field { background: var(--surface); box-shadow: var(--shadow); }
.round.accent-bg { box-shadow: var(--shadow); }
.row-btn .ic { border-radius: 50%; }
.row-btn:nth-child(2) .ic { background: var(--peach); color: var(--ink); }
.row-btn:nth-child(3) .ic { background: var(--sun); color: var(--ink); }
.row-btn b, .sheet h2 { font-weight: 700; }
.sheet h2 { font-weight: 800; }

/* кнопка выбора темы (ставит ДОМЕН в шапку списка, рядом с .avatar): солнце в тёмной теме, луна в светлой */
.list-head .head-right { display: flex; align-items: center; gap: 10px; }
.list-head .avatar { flex: none; }
.theme-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow); }
.theme-btn svg { width: 22px; height: 22px; }
.theme-btn:focus-visible, .avatar:focus-visible, .btn-primary:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .face svg { animation: breathe 3.6s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(1.04); } }
}

/* компьютер и планшет: окно приложения по центру, вход и нижние окна — по центру экрана (ДИЗАЙН, 19.10.2026) */
@media (min-width: 760px) {
  #app { max-width: 860px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

  .login { justify-content: center; gap: 56px; max-width: 480px; margin: 0 auto; padding: 48px 32px; }
  .login-h { font-size: 40px; }

  .list-head { padding: 28px 32px 14px; }
  .search { margin: 4px 32px 10px; }
  .chats { padding: 0 22px; }
  .list-foot { padding: 14px 32px 28px; }
  .list-foot .btn-primary { width: auto; min-width: 280px; margin: 0 auto; padding: 0 28px; }

  .chat-head { padding: 10px 18px; }
  .msgs { padding: 24px 32px; }
  .msg.me { max-width: min(78%, 600px); }
  .msg.ai { max-width: min(88%, 680px); }
  .attached { padding: 10px 32px 0; }
  .composer { padding: 12px 24px 20px; }

  .sheet { top: 0; bottom: 0; height: max-content; max-width: 480px; margin: auto; border-radius: 24px;
    padding: 20px 20px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
  .grip { display: none; }
  .toast { bottom: 32px; }
}

/* мышь: подсветка под курсором */
@media (hover: hover) {
  .chat-row:hover, .row-btn:hover { background: var(--field); }
  .icon-btn:hover { background: var(--field); }
  .chip:hover { border-color: var(--accent-text); }
  .btn-primary:hover:not(:disabled), .round.accent-bg:hover { filter: brightness(1.08); }
  .btn-soft:hover, .btn-line:hover { filter: brightness(.96); }
}

/* шапка списка и значки по теме разговора (разметку ставит app.js — ДОМЕН, 19.10.2026) */
.head-left { min-width: 0; display: flex; flex-direction: column; }
.hello { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row:has(.ic)::before, .chat-row:has(.ic)::after { display: none; }
.chat-row .ic { position: absolute; left: 14px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--ink); }
.chat-row .ic svg { width: 20px; height: 20px; }
.chat-row .ic[data-topic="gift"] { background: var(--peach); }
.chat-row .ic[data-topic="food"] { background: var(--sun); }
.chat-row .ic[data-topic="letter"] { background: var(--mint); }

/* объёмные значки-белочки (PNG, icons/; подключил ДОМЕН 19.10.2026): без плоских подложек */
.ico { display: block; object-fit: contain; }
.face img { width: 150px; height: 150px; }
@media (prefers-reduced-motion: no-preference) { .face img { animation: breathe 3.6s ease-in-out infinite; } }
.chat-row .ic:has(img), .chat-row .ic[data-topic]:has(img) { background: transparent; }
.chat-row .ic img { width: 40px; height: 40px; }
.row-btn:nth-child(n) .ic:has(img) { background: transparent; }
.row-btn .ic img { width: 42px; height: 42px; }
.round img { width: 28px; height: 28px; }
[data-mic] img { width: 30px; height: 30px; }
.theme-btn img { width: 30px; height: 30px; }
/* микрофон: рыжий значок на зелёном круге темнел — круг светлый, как у кнопки темы; «Отправить» остаётся зелёной (кремовая стрелка) */
.round.accent-bg[data-mic], .round.soft:has(img) { background: var(--btn-soft); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }


/* ===== «Белочка»: как этикетка AMADOMIO — бежевый фон, тёмно-синие жирные заголовки, оранжевые «таблетки», листья, косынка в горошек ===== */
html, body { background-color: var(--bg); }
body { background-image: radial-gradient(circle at 105% -5%, var(--wave) 0, var(--wave) 30%, transparent 30.5%),
  radial-gradient(circle at -15% 105%, var(--wave2) 0, var(--wave2) 34%, transparent 34.5%);
  background-repeat: no-repeat; background-attachment: fixed; }
.screen { background: transparent; }
.btn-primary, .round.accent-bg[data-send] { background: var(--accent-grad); color: var(--on-accent);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), var(--shadow); }
.btn-primary { font-weight: 800; letter-spacing: .01em; }
.login-h, .list-head h1 { color: var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.login-h { font-size: 36px; }
.list-head h1 { font-size: 22px; white-space: nowrap; }
.head-left { flex: 1 1 0; min-width: 0; }
.list-head .head-right { flex: none; }
.brand { align-self: flex-start; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: var(--accent-grad); color: var(--on-accent);
  font-size: 13px; font-weight: 800; box-shadow: var(--shadow); }
.brand::before { background: var(--on-accent); }
.login { background-image: url(/s/icons/leaf.webp), url(/s/icons/leaf.webp), radial-gradient(circle at 50% 135%, var(--wave) 0, var(--wave) 38%, transparent 38.5%);
  background-repeat: no-repeat; background-position: right -18px top 52%, left -22px top 30%, center;
  background-size: 86px 86px, 70px 70px, auto; }
.list-head { position: relative; }
.list-head::after { content: ""; position: absolute; right: 112px; top: 2px; width: 34px; height: 34px;
  background: url(/s/icons/leaf.webp) no-repeat center / contain; transform: rotate(-20deg); pointer-events: none; }
.hello { color: var(--accent-text); font-weight: 700; }
.search { background: var(--surface); border: 1.5px solid var(--line); }
.chat-row { background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.chat-row .t { color: var(--ink); font-weight: 800; }
.chat-head { background: transparent; }
.chat-title { font-weight: 800; }
.msg.ai { background: var(--surface); border: 1.5px solid var(--line); }
.msg.me .bubble { background: var(--mine); }
.chip { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.field { background: var(--surface); border: 1.5px solid var(--line); }
.composer { background: transparent; }
.sheet { background: var(--surface); }
.sheet h2 { font-weight: 900; text-transform: uppercase; font-size: 19px; }
.theme-btn { background: var(--btn-soft); border: 1.5px solid var(--line); }
.avatar { background: var(--accent-grad); color: var(--on-accent); font-weight: 800; }

/* правки ЗАМа 19.10: «Надиктовать» — главная кнопка, залитая; приветствие читаемое; плашка не у края */
.round.accent-bg[data-mic] { background: var(--accent-grad); border: 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), var(--shadow); }
[data-mic] img { width: 32px; height: 32px; }
.hello { color: var(--ink); font-size: 15px; font-weight: 700; }
.brand { margin-top: 14px; }

/* остальные значки-белочки (назад, ⋯, поиск, +, стоп, карандаш, корзина, выход, скачать; ДИЗАЙН 19.10.2026) — размеры под <img class="ico"> */
.icon-btn img { width: 26px; height: 26px; }
.search img { width: 22px; height: 22px; flex: none; }
.btn-primary img { width: 24px; height: 24px; }
.round.stop img { width: 22px; height: 22px; }
.chip img { width: 18px; height: 18px; }
.msg.me .meta img { width: 15px; height: 15px; }
