/* Чат «Мини-мозг»: боковая панель, лента, композер, приборы, поповеры, модальные окна, сравнение */
html, body { height: 100%; }
body.app { overflow: hidden; }
.shell { display: grid; grid-template-columns: 292px minmax(0, 1fr); height: 100vh; height: 100dvh; }

/* ---------- боковая панель ---------- */
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); border-right: 1px solid var(--line); padding-top: var(--safe-t); }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.sb-head .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.sb-head .brand img { border-radius: 8px; }
.sb-head .brand .display { font-size: 14px; letter-spacing: .06em; white-space: nowrap; }
#sb-close, #sb-open { display: none; }
.sb-new { margin: 4px 14px 10px; justify-content: flex-start; padding-left: 14px; }
.sb-search { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 0 12px; height: 38px; border-radius: var(--r); border: 1px solid var(--line); color: var(--text-3); font-size: 14px; text-align: left; transition: border-color .15s, color .15s; }
.sb-search span { flex: 1; }
.sb-search:hover { border-color: var(--line-2); color: var(--text-2); }
kbd { font: 500 11px/1 var(--font-mono); padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-3); }
.sb-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; overscroll-behavior: contain; }
.conv-group { padding: 14px 10px 6px; }
.conv { position: relative; display: flex; align-items: center; border-radius: var(--r-sm); }
.conv-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 38px 0 10px; border-radius: var(--r-sm); text-align: left; color: var(--text-2); font-size: 14.5px; -webkit-tap-highlight-color: transparent; }
.conv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .pin { color: var(--accent-ink); }
.conv:hover .conv-open { background: var(--surface-3); color: var(--text); }
.conv.active .conv-open { background: var(--accent-dim); color: var(--text); box-shadow: inset 2px 0 0 var(--accent-ink); }
.conv .more { position: absolute; right: 4px; opacity: 0; transition: opacity .15s; }
.conv:hover .more, .conv.active .more, .conv:focus-within .more { opacity: 1; }
.conv .rename { height: 36px; min-height: 0; font-size: 14px; }
.sb-empty { padding: 16px 12px; color: var(--text-3); font-size: 14px; }
.sb-foot { border-top: 1px solid var(--line); padding: 12px 14px calc(12px + var(--safe-b)); display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ava { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--font-ui); background: var(--accent-dim); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.me-t { display: grid; min-width: 0; line-height: 1.25; }
.me-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-btns { display: flex; gap: 4px; }
.guest { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.guest-t { font-size: 14px; } .guest-t .mono { color: var(--text-3); font-size: 12px; }
.guest-bar { height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; } .guest-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.guest-s { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.guest-a { display: flex; gap: 8px; }
.scrim { display: none; }

/* ---------- верхняя панель ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--bg); }
.topbar { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 18px 10px; border-bottom: 1px solid var(--line); min-height: 58px; }
.tabs { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); flex: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .18s, color .18s; -webkit-tap-highlight-color: transparent; }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: var(--surface-3); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chat-title { flex: 1; min-width: 0; font: 600 15px/1.2 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; padding: 6px 8px; border-radius: var(--r-sm); }
.chat-title:hover { background: var(--surface-2); }
.chat-title.draft { color: var(--text-3); font-weight: 500; cursor: default; }
.title-edit { height: 34px; min-height: 0; padding: 0 10px; font-weight: 600; }
.tb-right { display: flex; align-items: center; gap: 6px; flex: none; }
.tb-chip { height: 34px; padding: 0 10px 0 12px; gap: 8px; font: 500 13px/1 var(--font-ui); color: var(--text); max-width: 220px; cursor: pointer; transition: border-color .15s, background .15s; }
.tb-chip:hover { border-color: var(--text-3); background: var(--surface-2); }
.tb-chip[aria-expanded='true'] { border-color: var(--accent-line); background: var(--accent-dim); }
.chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meters { display: flex; align-items: center; gap: 22px; padding: 7px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.meters::-webkit-scrollbar { display: none; }
.meter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.meter-v { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text); }
#m-state-v { font: 500 12.5px var(--font-mono); color: var(--text-2); }
.bar { width: 64px; height: 5px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); transition: width .6s var(--ease), background .3s; }
.bar i.warm { background: #FFC857; box-shadow: none; } .bar i.hot { background: var(--danger); box-shadow: none; }
#m-ctx { margin-left: auto; }

/* ---------- лента ---------- */
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 20px 8px; overscroll-behavior: contain; scroll-behavior: auto; }
.msg { max-width: 760px; margin: 0 auto 20px; position: relative; }
.msg-in { animation: msg-in .34s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bubble { max-width: min(88%, 620px); padding: 10px 15px; border-radius: 16px 16px 4px 16px; background: var(--surface-3); border: 1px solid var(--line); }
.bubble-t { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; }
.msg-ai .msg-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-ink); border: 1px solid var(--accent-line); flex: none; }
.who { font: 500 12px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.msg-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); font-size: 14.5px; background: var(--surface); animation: fade .25s ease; }
.msg-status .st-t { flex: 1; min-width: 160px; }
.st-bar { width: 100%; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; } .st-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .6s var(--ease); }
.msg-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.msg-meta { font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; }
.msg-error { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--danger); background: var(--danger-dim); color: var(--text); width: 100%; }
.msg-error > .ico { color: var(--danger); margin-top: 2px; }
.msg-error p { margin-bottom: 10px; font-size: 14.5px; }
.msg-acts { display: flex; gap: 2px; margin-top: 2px; opacity: 0; transition: opacity .15s; min-height: 32px; }
.msg-user .msg-acts { margin-top: 0; }
.msg:hover .msg-acts, .msg:focus-within .msg-acts, .msg:last-of-type .msg-acts { opacity: 1; }
.act { color: var(--text-3); } .act:hover { color: var(--text); }
.act.on { color: var(--accent-ink); background: var(--accent-dim); } .act.done { color: var(--accent-ink); }
.feed-end { height: 8px; }
.edit-box { width: min(100%, 620px); display: grid; gap: 8px; }
.edit-ta { width: 100%; resize: vertical; min-height: 64px; max-height: 240px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--surface); outline: none; font-size: 16px; line-height: 1.5; box-shadow: 0 0 0 3px var(--accent-dim); }
.edit-note { font-size: 12.5px; color: var(--text-3); }
.edit-row { display: flex; gap: 8px; justify-content: flex-end; }
.to-bottom { position: absolute; left: 50%; bottom: 116px; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); z-index: 5; animation: fade .2s ease; }

/* пустая лента */
.empty { max-width: 640px; margin: 0 auto; padding: clamp(8px, 4vh, 40px) 0 24px; display: grid; justify-items: center; text-align: center; gap: 12px; }
.empty-img { width: min(300px, 70%); height: auto; aspect-ratio: 3 / 2; object-fit: contain; margin-bottom: -6px; filter: drop-shadow(0 12px 28px var(--accent-glow)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.empty h2 { font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -.03em; }
.empty-sub { color: var(--text-2); max-width: 46ch; }
.starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 12px; text-align: left; }
.starter { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; text-align: left; padding: 14px 16px; min-height: 64px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text-2); font-size: 14.5px; line-height: 1.4; transition: border-color .18s, background .18s, color .18s, transform .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.starter:hover { border-color: var(--accent-line); background: var(--accent-dim); color: var(--text); transform: translateY(-1px); }
.starter .ico { color: var(--accent-ink); margin-top: 2px; }
.empty-tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--text-3); font-size: 13.5px; text-align: left; max-width: 56ch; }
.empty-tip .ico { margin-top: 2px; color: var(--accent-ink); }
.empty-tip b { color: var(--text-2); font-weight: 600; }

/* ---------- композер ---------- */
.composer-wrap { padding: 8px 20px calc(14px + var(--safe-b)); }
.composer { max-width: 760px; margin: 0 auto; padding: 10px 10px 8px 16px; background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.composer:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-dim); }
.composer textarea { display: block; width: 100%; min-height: 28px; max-height: 200px; resize: none; background: none; border: 0; outline: none; color: var(--text); font-size: 16px; line-height: 1.5; padding: 4px 0; }
.composer textarea::placeholder { color: var(--text-3); }
.composer-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.hint-small { flex: 1; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counter { font-size: 12px; color: var(--text-3); } .counter.warn { color: var(--danger); }
.send { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); transition: transform .15s var(--ease), box-shadow .2s, opacity .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.send:hover:not(:disabled) { box-shadow: 0 0 0 4px var(--accent-glow); }
.send:active:not(:disabled) { transform: scale(.94); }
.send:disabled { opacity: .35; cursor: default; }
.send.stop { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.send.stop .ico { fill: currentColor; }

/* ---------- поповеры ---------- */
.popover { position: fixed; z-index: 130; width: 400px; max-width: calc(100vw - 24px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); animation: pop-in .18s var(--ease); overscroll-behavior: contain; }
.popover.out { opacity: 0; transition: opacity .12s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.pop-personas { width: 340px; } .pop-menu { width: 210px; }
.pop-head { display: grid; gap: 4px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.pop-note { font-size: 12.5px; color: var(--text-3); }
.opts { display: grid; padding: 6px; }
.opt { display: grid; gap: 3px; text-align: left; padding: 11px 12px; border-radius: 10px; transition: background .12s; -webkit-tap-highlight-color: transparent; }
.opt:hover, .opt:focus-visible { background: var(--surface-3); }
.opt[aria-selected='true'] { background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
.opt-main { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .opt-main b { font-weight: 600; font-size: 14.5px; }
.opt-main .tag { margin-left: 6px; }
.opt-blurb { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.opt-meta { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.opt-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.opt-help { margin: 6px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; background: var(--code-bg); }
.cmd code { font: 500 13px var(--font-mono); color: var(--text); overflow-x: auto; white-space: nowrap; }
.menu { display: grid; padding: 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); color: var(--text); }
.menu-item.danger { color: var(--danger); } .menu-item.danger:hover { background: var(--danger-dim); }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); }
.tag.acc { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-dim); }

/* ---------- модальные: память, настройки, поиск, подтверждение ---------- */
.modal-wrap.out { opacity: 0; transition: opacity .12s; }
.muted { color: var(--text-2); } .small { font-size: 13px; }
.confirm { display: grid; gap: 18px; } .confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.memory { display: grid; gap: 14px; }
.note-count { display: flex; justify-content: space-between; align-items: baseline; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); min-height: 48px; animation: fade .2s ease; }
.note .input { min-height: 38px; }
.note-t { flex: 1; overflow-wrap: anywhere; font-size: 15px; } .note-a { display: flex; gap: 2px; flex: none; }
.note-empty { padding: 18px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14.5px; }
.note-form { display: flex; gap: 10px; } .note-form .input { flex: 1; }
.settings { display: grid; gap: 26px; }
.settings h3 { font: 600 12px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.settings section { display: grid; gap: 4px; }
.row-between { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14.5px; } .row-between .mono { color: var(--accent-ink); font-size: 13px; }
.ranges { padding: 8px 0 4px; }
input[type='range'] { width: 100%; accent-color: var(--accent-ink); height: 28px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); min-height: 36px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-ink); }
.segs { display: inline-flex; padding: 3px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); width: fit-content; }
.seg { height: 36px; padding: 0 18px; border-radius: 7px; font-size: 14.5px; color: var(--text-2); }
.seg[aria-pressed='true'] { background: var(--surface-3); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.acct { display: grid; gap: 12px; } .acct .row { display: flex; gap: 10px; flex-wrap: wrap; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; align-items: center; font-size: 14.5px; } .keys dd { margin: 0; color: var(--text-2); }
.pal-in { margin-bottom: 10px; }
.pal-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; display: grid; gap: 2px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 46px; border-radius: 9px; cursor: pointer; color: var(--text-2); }
.pal-item.on { background: var(--accent-dim); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pal-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pal-s { font-size: 12px; color: var(--text-3); }
.pal-empty { padding: 18px; text-align: center; color: var(--text-3); }

/* ---------- сравнение ---------- */
.cmp-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 20px 8px; display: grid; align-content: start; gap: 16px; }
.cmp-scroll > * { width: 100%; max-width: 1100px; margin-inline: auto; }
.cmp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmp-q { padding: 12px 16px; border-left: 2px solid var(--accent-ink); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; color: var(--text); }
.cmp-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 0; } .cmp-empty h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; } .cmp-empty p { color: var(--text-2); max-width: 46ch; }
.cmp-empty .starters { max-width: 760px; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cmp-col { padding: 16px 18px 14px; min-height: 180px; display: grid; gap: 12px; align-content: start; }
.cmp-col.err { border-color: var(--danger); }
.cmp-head { display: flex; align-items: center; gap: 10px; } .cmp-name { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-state { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); }
.cmp-body { min-height: 80px; } .cmp-meta { font-size: 11.5px; color: var(--text-3); } .cmp-err { color: var(--danger); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) { .hint-small { display: none; } .chat-title { display: none; } .tb-right { margin-left: auto; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  #sb-close, #sb-open { display: inline-grid; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(86vw, 330px); transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow); }
  .shell.drawer-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 80; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(3px); }
  .shell.drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { flex-wrap: wrap; gap: 8px 10px; padding-inline: 12px; }
  .tb-right { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tb-right::-webkit-scrollbar { display: none; }
  .tabs { margin-right: auto; }
  .meters { padding-inline: 14px; gap: 14px; }
  .meter .bar { width: 38px; }
  .meter .label { font-size: 10px; }
  #m-ctx { margin-left: 0; }
  .feed { padding: 18px 14px 6px; }
  .composer-wrap { padding: 6px 12px calc(10px + var(--safe-b)); }
  .to-bottom { bottom: 104px; }
  .cmp-cols { grid-template-columns: 1fr; }
  .cmp-scroll { padding-inline: 14px; }
  .popover { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100% !important; max-width: none; max-height: 78vh !important; border-radius: 18px 18px 0 0; padding-bottom: var(--safe-b); animation: sheet-in .26s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .pop-menu { border-radius: 18px 18px 0 0; }
}
@media (max-width: 560px) {
  .starters { grid-template-columns: 1fr; }
  .tab { padding: 0 11px; }
  .note-form { flex-direction: column; }
  .bubble { max-width: 94%; }
  .conv .more { opacity: 1; }
  .msg-acts { opacity: 1; }
}
@media (hover: none) { .msg-acts, .conv .more { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .empty-img { animation: none; } }

@media (pointer: coarse) {
  .conv-open { height: 46px; }
  .tb-chip { height: 44px; }
  .tab { height: 40px; }
  .menu-item, .pal-item { height: 46px; }
  .composer textarea { font-size: 16px; }
  .seg { height: 44px; }
}
