/* Стили экрана телефона (index.html, разметку листов рисует app.js): тёмная тема с «матовым стеклом», облик сверху,
   микрофон снизу, листы снизу (.sheet). Классы и id — договорённость с app.js; состояния тоже ставит он:
   #mic.on/.busy, .sheet.on, body.radio-on, #who.low, а переменные --pc/--pcg (цвет персонажа) и --p (ползунок) — style.
   Шрифты — свои файлы в fonts/ (лицензии OFL рядом): приложение работает и без сети. */
@font-face { font-family: "Manrope"; font-weight: 400; src: url(fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 500; src: url(fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; src: url(fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 600; src: url(fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 700; src: url(fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Unbounded"; font-weight: 600; src: url(fonts/unbounded-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; src: url(fonts/unbounded-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #0a0a0f; --ink: #F4F4F6; --muted: rgba(255,255,255,.64); --dim: rgba(255,255,255,.44); --accent: #8B8CF7;
  --brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --frost: rgba(255,255,255,.085); --frost-hi: rgba(255,255,255,.15); --field: rgba(0,0,0,.28);
  --glass-line: rgba(255,255,255,.13);   /* тонкая светлая кромка «матового стекла» */
  --good: #4BE3A1; --bad: #FF6B8A; --pc: #8A9BFF;
  --safe-b: env(safe-area-inset-bottom, 0px);   /* полоса жестов внизу — панель и листы не уходят под неё */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden;
  font: 15px/1.45 "Manrope", system-ui, sans-serif; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); -webkit-user-select: text; user-select: text; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* фон — фирменный, как на сайте IA9 и в облаке; поверх — лёгкое свечение цвета персонажа вокруг облика (--pcg) */
#scene { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 40% at 50% 28%, var(--pcg, rgba(193,235,255,.08)), transparent 70%),
              radial-gradient(130% 90% at 15% 95%, rgba(120,119,198,.26) 0%, transparent 60%),
              radial-gradient(120% 80% at 90% 5%, rgba(193,235,255,.2) 0%, transparent 60%),
              linear-gradient(160deg, #11121a 0%, #1b1d30 45%, #262038 75%, #33203a 100%);
  background-position: 0 0; background-repeat: repeat;   /* без background-attachment: fixed — слой и так неподвижен, а на Android «fixed» перерисовывал фон при прокрутке (№93) */
  transition: background 1s; }

/* тема («Ещё» → «Оформление») — фон из skins.css (тот же, что у виджета); нет файла тем — фон выше */
body[class*="skin-"] #scene { background: var(--skin-bg); }

#top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 12px 12px 6px; }
#top .sp { flex: 1; min-width: 0; display: flex; justify-content: center; }
/* радио играет — плашка под пластинкой (в верхней строке ей не хватало места и она наезжала на кнопки): название,
   эквалайзер, пауза и выключить; .paused — пауза, .wait — подключается. Под ней — подсказка: голосом радио
   управляется после нажатия на микрофон (телефон не слушает имя постоянно) */
#radiobox { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: calc(100% - 32px); margin-top: 12px; flex: none; }
#radiobox[hidden] { display: none; }
/* таймер с обратным отсчётом (как у Алисы): под обликом — строка на таймер, крупные цифры, круг-прогресс, ✕ */
#tmrs { display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100% - 32px)); margin-top: 12px; flex: none; }
#tmrs[hidden] { display: none; }
#tmrs .tr { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(126,232,250,.14), rgba(139,140,247,.13)); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
#tmrs .tr.end { background: linear-gradient(135deg, rgba(255,201,120,.24), rgba(255,143,168,.18)); }
#tmrs svg.pg { width: 42px; height: 42px; flex: none; transform: rotate(-90deg); }
#tmrs svg.pg circle { fill: none; stroke-width: 3.4; }
#tmrs svg.pg .bg { stroke: rgba(255,255,255,.12); }
#tmrs svg.pg .fg { stroke: #7EE8FA; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
#tmrs .tr.end svg.pg .fg { stroke: #FFC978; }
#tmrs .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#tmrs .tt b { font: 600 34px/1.05 "Unbounded", "Manrope", sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
#tmrs .tt span { font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tmrs .x { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); color: var(--ink); }
#tmrs .x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; fill: none; }
body.light #tmrs .tr { background: linear-gradient(135deg, rgba(40,170,200,.14), rgba(90,100,230,.12)); }
body.light #tmrs svg.pg .bg { stroke: rgba(0,0,0,.1); } body.light #tmrs svg.pg .fg { stroke: #1aa3c4; } body.light #tmrs .x { background: rgba(0,0,0,.06); }
#rchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 38px; padding: 0 4px 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); box-shadow: 0 8px 24px -14px rgba(0,0,0,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rin .25s ease; }
#rhint { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--dim); text-align: center; }
#radiobox.talking #rhint { opacity: 0; }
body.radio-on #state.idle { display: none; }      /* в покое вместо «Нажмите и говорите» — подсказка про радио */
#rchip b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#rchip button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
#rchip button:active { background: var(--frost-hi); }
#rchip button svg { width: 16px; height: 16px; stroke-width: 2.2; }
#r-prev svg path:first-child, #r-next svg path:first-child { fill: currentColor; stroke-linejoin: round; }
#rchip #r-prev, #rchip #r-next { width: 28px; }
#rchip .i-play { display: none; } #rchip.paused .i-play { display: block; } #rchip.paused .i-pause { display: none; }
#rchip .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
/* столбики — transform, а не height: анимация высоты пересчитывала раскладку шапки 60 раз в секунду (№93) */
#rchip .eq i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(#a5b4fc, #c084fc); transform-origin: 50% 100%; transform: scaleY(.4); animation: eq 1s ease-in-out infinite; }
#rchip .eq i:nth-child(2) { animation-delay: -.35s; } #rchip .eq i:nth-child(3) { animation-delay: -.7s; }
#rchip.paused .eq i, #rchip.wait .eq i { animation: none; transform: scaleY(.25); opacity: .55; }
#rchip.wait b { opacity: .7; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes rin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.who { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--frost); flex: 0 1 auto; min-width: 0; }
.who img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #15152a; }
.who span { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who svg { width: 16px; height: 16px; color: var(--muted); }
.ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.ib svg { width: 22px; height: 22px; }
.ib.soft { background: var(--frost); }
.ib:active { background: var(--frost-hi); }
/* кнопки шапки — всегда кругом: на узком экране они сжимались по ширине, и подсветка нажатой («без голоса») выходила
   приплюснутым овалом (отзыв 15.10). Уступает место имя персонажа — оно сокращается многоточием */
#top .ib { flex: none; width: 42px; height: 42px; }
/* голосом / текстом: перечёркнутый динамик и мягкая подсветка — видно с одного взгляда, что ассистент молчит */
#b-voice .i-off, #b-voice.off .i-on { display: none; }
#b-voice.off .i-off { display: block; }
#b-voice.off { background: var(--frost); color: var(--muted); }
#b-voice svg { transition: transform .2s ease; }
#b-voice:active svg { transform: scale(.88); }

/* сцена между верхней строкой и нижней панелью: облик, состояние, разговор (#you — сказанное, #bot — ответ, #card — карточка) */
#stage { position: fixed; top: 62px; left: 0; right: 0; bottom: calc(124px + var(--safe-b)); z-index: 1;
  display: flex; flex-direction: column; align-items: center; }
#orbwrap { width: min(calc(70vw / var(--vzt)), calc(42vh / var(--vzt)), 330px); aspect-ratio: 1; margin-top: 2vh; flex: none; position: relative; }
#orb { width: 100%; height: 100%; display: block; transform-origin: 50% 50%; }
#orbwrap.tap { transform: scale(.97); transition: transform .15s; }
#state { margin-top: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); min-height: 18px; text-align: center; }
/* №560 (05.11): «кнопку стоп — когда работаешь без микрофона». Пока думаю или говорю — справа от состояния «■ Стоп»
   (висит сбоку, разговор под ним не прыгает); нажали или Esc на клавиатуре — замолкаю и не отвечаю дальше */
#statebar { position: relative; display: flex; justify-content: center; max-width: 100%; }
#stopx { position: absolute; left: 100%; top: calc(50% + 5px); transform: translateY(-50%); margin-left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px 6px 11px; border-radius: 999px; background: var(--frost); color: var(--ink); font: 600 13px/1.1 inherit; letter-spacing: .01em; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
#stopx[hidden] { display: none; }
#stopx svg { width: 10px; height: 10px; fill: currentColor; flex: none; }
#stopx:active { transform: translateY(-50%) scale(.95); }
@media (hover: hover) { #stopx:hover { background: color-mix(in srgb, var(--bad, #ff6b8a) 22%, var(--frost)); color: var(--bad, #ff8fa8); } }
#stopx:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
#talk { width: 100%; flex: 1; min-height: 0; overflow-y: auto; padding: 10px 24px 8px; text-align: center; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent 0, #000 14px, #000 calc(100% - 18px), transparent); }
#talk::-webkit-scrollbar { display: none; }
/* убрать сказанное с экрана (23.10, владелец: «сообщило о чём-то, и висит — хочется убрать»): крестик в углу разговора
   (держится у верхнего края при прокрутке) или смахнуть вбок */
#talk-x { position: sticky; top: 12px; float: right; width: 34px; height: 34px; margin: 0 -16px 2px 10px; z-index: 2; opacity: .75; }
#talk-x svg { width: 16px; height: 16px; }
#talk-x[hidden] { display: none; }
#talk-x { align-self: flex-end; flex: none; }   /* лёжа и на планшете #talk — flex-колонка: float там не действует, крестик уезжал влево на текст */
@media (orientation: landscape) and (min-width: 600px) { #talk-x { margin-right: 0; } }
#talk.away { transition: transform .22s ease, opacity .22s ease; transform: translateX(var(--dx, 60px)); opacity: 0; }
@media (prefers-reduced-motion: reduce) { #talk.away { transition: none; } }
#you { color: var(--muted); font-size: 15px; min-height: 0; margin-bottom: 8px; }
#you:empty { display: none; }
#bot { font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--ink); -webkit-user-select: text; user-select: text; white-space: pre-wrap; }
#bot.wait::after { content: ""; display: inline-block; width: 26px; height: 8px; vertical-align: middle;
  background: radial-gradient(circle 3px, var(--muted) 98%, transparent) 0 50%/9px 8px repeat-x; animation: dots 1s steps(3) infinite; }
@keyframes dots { from { width: 8px; } to { width: 27px; } }
#bot.err { color: #FFB3C3; font-size: 16px; }
#card { margin: 12px auto 0; max-width: 420px; }
/* «Попробуйте сказать» у новичка на пустом экране (app.js triesCheck) */
#tries { margin: 6px auto 0; max-width: 440px; }
#tries[hidden] { display: none; }
#tries .th { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
#tries .tlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
#tries .tq { border: 0; padding: 8px 13px; border-radius: 999px; background: var(--frost); color: var(--ink); font: 500 13.5px/1.3 "Manrope", sans-serif; cursor: pointer; }
#tries .tq:active { transform: scale(.97); }
#tries .tx { display: block; margin: 12px auto 0; font-size: 12.5px; color: var(--dim); background: none; border: 0; }
#card:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--frost); font-size: 14px; text-align: left; }
.pill b { font-weight: 600; }
.pill button { padding: 6px 12px; border-radius: 999px; background: var(--frost-hi); font-size: 13px; }

/* нижняя панель: микрофон (.on — слушает, .busy — думает или говорит), клавиатура, разговор; поле ввода — #typebox.on */
#bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 8px 18px calc(16px + var(--safe-b)); }
#row { display: flex; align-items: center; justify-content: space-between; }
#mic { position: relative; width: 82px; height: 82px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px -12px rgba(118,75,162,.95), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s; }
#mic svg { width: 32px; height: 32px; stroke-width: 2; position: relative; z-index: 1; }
#mic:active { transform: scale(.94); }
#mic .ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(165,180,252,.0); transition: border-color .2s; }
#mic.on .ring { border-color: rgba(165,180,252,.55); animation: pulse 1.4s ease-in-out infinite; }
#mic.on { background: linear-gradient(135deg, #ff6b8a, #b45cff); }
#mic.busy { background: linear-gradient(135deg, #3a3f63, #4b3b6b); }
/* «удерживайте и говорите»: кнопка крупнее, пока палец на ней; увели в сторону — серая (отпустить = отменить) */
#mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .15s, background .2s; }
#mic.hold { transform: scale(1.18); }
#mic.hold .ring { border-color: rgba(255,255,255,.5); animation: pulse 1s ease-in-out infinite; }
#mic.holdx { background: linear-gradient(135deg, #5b5f72, #44475a); transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { #mic.hold .ring { animation: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .6; } }
/* Поле ввода (идея №126, 04.11: «больше; при наборе растёт вверх; кнопки — в линию»): многострочное, растёт вверх до 40%
   экрана (дальше — прокрутка внутри), а скрепка, клавиатура, микрофон поменьше, разговор и «Отправить» — одной строкой под ним */
#typebox { display: none; margin-bottom: 10px; }
#typebox.on { display: block; }
#typebox textarea { display: block; width: 100%; box-sizing: border-box; min-height: 50px; max-height: 40vh; max-height: 40dvh; resize: none;
  overflow-y: auto; padding: 13px 16px; border-radius: 18px; border: 0; background: var(--field); color: var(--ink); outline: none;
  font-family: inherit; font-size: 16px; line-height: 1.42; scrollbar-width: thin; transition: height .12s ease-out; }
#typebox textarea::placeholder { color: var(--muted); }
#row #send, #row .ib.att { display: none; flex: none; }
#row #send { background: var(--brand); color: #fff; }
#row .ib.att { background: var(--field); color: var(--muted); }
#row .ib.att:active { background: var(--frost-hi); }
body.typing #row #send, body.typing #row .ib.att { display: grid; }
body.typing #mic { width: 58px; height: 58px; box-shadow: 0 10px 24px -12px rgba(118,75,162,.95), inset 0 1px 0 rgba(255,255,255,.25); }
body.typing #mic svg { width: 25px; height: 25px; }
body.typing #bar { padding-top: 6px; padding-bottom: calc(10px + var(--safe-b)); }
/* вложения перед отправкой: фото миниатюрой, файл — названием; ✕ убирает */
#atts { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
#atts:empty { display: none; }
#atts .at { position: relative; flex: none; height: 64px; border-radius: 14px; background: var(--field); display: flex; align-items: center; overflow: hidden; }
#atts .at img { height: 64px; width: 64px; object-fit: cover; display: block; }
#atts .at span { padding: 0 34px 0 12px; font-size: 13px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#atts .at button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
#atts .at button svg { width: 13px; height: 13px; stroke-width: 2.4; }
#card .attshow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
#card .attshow img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 26px -14px rgba(0,0,0,.9); }

/* листы */
#dim { position: fixed; inset: 0; z-index: 9; background: rgba(4,4,10,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
#dim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-height: calc(82vh / var(--vzt)); overflow-y: auto; padding: 8px 18px calc(24px + var(--safe-b));
  border-radius: 26px 26px 0 0; background: linear-gradient(rgba(30,30,36,.74), rgba(18,18,24,.86)); transform: translateY(105%);
  backdrop-filter: blur(30px) saturate(1.25); -webkit-backdrop-filter: blur(30px) saturate(1.25); border-top: 1px solid var(--glass-line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -30px 80px rgba(0,0,0,.5); }
.sheet.tall { height: calc(88vh / var(--vzt)); max-height: calc(88vh / var(--vzt)); }
/* Плавная прокрутка листов (№93): прокрутка не «проваливается» в страницу под листом.
   Размытие фона под листом дорогое — его пересчитывают на каждом кадре прокрутки. Поэтому: у неоморфизма фон листа
   непрозрачный — размытие не нужно вовсе; у светлых тем лист почти белый — хватает лёгкого; в лёгком режиме (слабый
   телефон) — без размытия, фон плотнее. Пока листают (body.scrolling, app.js), портрет под листом не рисуется. */
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
body.lite-ui .sheet { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(rgba(28,28,34,.97), rgba(18,18,24,.98)); }
.sheet.on { transform: none; }
.sheet:not(.on) { box-shadow: none; }               /* спрятанный лист ниже края — его тень не заходит на экран */
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 4px auto 12px; }
.sheet h2 { font: 600 19px/1.3 "Unbounded", "Manrope", sans-serif; margin: 4px 2px 14px; display: flex; align-items: center; gap: 10px; }
.sheet h2 .lnk { margin-left: auto; font: 500 13px "Manrope", sans-serif; color: var(--muted); }
.sheet h2 .hdate { margin-left: auto; font: 500 13px/1.3 "Manrope", sans-serif; color: var(--muted); text-align: right; }
.sheet h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 20px 4px 8px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 6px 4px; }
.card { background: var(--frost); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -18px rgba(0,0,0,.9); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
/* ползунок (скорость речи): видна дорожка и заполненная часть до бегунка */
.f input[type=range] { -webkit-appearance: none; appearance: none; height: 44px; padding: 0 4px; background: transparent; --p: 50%; }
.f input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #8B8CF7 0, #A78BFA var(--p), var(--track, rgba(255,255,255,.22)) var(--p)); }
.f input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45), 0 0 0 4px rgba(139,140,247,.28); }
.row2 { display: flex; gap: 8px; align-items: center; }
.f { display: block; margin: 8px 0; }
.f span { display: block; font-size: 12.5px; color: var(--muted); margin: 0 4px 5px; }
.f input, .f select, .f textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--field); outline: none; -webkit-appearance: none; appearance: none; }
.f textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
#tk-goal { min-height: 120px; }
.btn { padding: 12px 18px; border-radius: 14px; background: var(--frost-hi); font-weight: 600; white-space: nowrap; }
.btn.p { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -12px rgba(118,75,162,.9); }
.btn.w { width: 100%; white-space: normal; line-height: 1.3; }   /* длинная надпись — в две строки, а не за край кнопки */
.btn.ghost { background: none; box-shadow: inset 0 0 0 1px var(--frost-hi); color: var(--muted); }
/* «IA9 уже есть на компьютере?» над заявкой (№216): тот же ключ кодом, а не второй */
.card.have { background: linear-gradient(var(--frost), var(--frost)), var(--frost); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.row2 .btn { min-width: 0; white-space: normal; line-height: 1.25; }
.btn:disabled { opacity: .5; }
.res { font-size: 13.5px; margin: 8px 4px; min-height: 0; }
.res.ok { color: var(--good); } .res.bad { color: #FFB3C3; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { text-align: left; padding: 14px; border-radius: 18px; background: var(--frost); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -18px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 4px; }
.tile.on { background: rgba(255,255,255,.17); }
.tile b { font-size: 14.5px; } .tile small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tile svg { width: 24px; height: 24px; color: #fff; opacity: .92; margin-bottom: 4px; }
.sw { display: flex; align-items: center; gap: 14px; padding: 12px 4px; }
.sw div { flex: 1; } .sw small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tg { position: relative; width: 50px; height: 30px; flex: none; }
.tg input { opacity: 0; position: absolute; inset: 0; margin: 0; z-index: 1; }
.tg i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tg input:checked + i { background: var(--brand); } .tg input:checked + i::after { transform: translateX(20px); }

/* персонажи */
.pi { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; margin-bottom: 6px; background: var(--frost); width: 100%; text-align: left; }
.pi.on { background: rgba(255,255,255,.14); }
.pi canvas { width: 54px; height: 54px; flex: none; }
.pi b { display: block; font-size: 16px; } .pi small { color: var(--muted); font-size: 12.5px; }
/* списки */
.it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--frost); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -18px rgba(0,0,0,.9); margin-bottom: 7px; }
.it .tm { font: 600 17px/1 "Unbounded", sans-serif; color: #FFC978; min-width: 58px; }
.it .bd { flex: 1; min-width: 0; } .it .bd b { display: block; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.it .bd small { color: var(--muted); font-size: 12.5px; }
.it .x { width: 34px; height: 34px; border-radius: 50%; background: var(--frost-hi); display: grid; place-items: center; flex: none; }
.it .x svg { width: 16px; height: 16px; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 14px; }
.msg { margin: 0 0 10px; display: flex; flex-direction: column; }
.msg.u { align-items: flex-end; } .msg div { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; -webkit-user-select: text; user-select: text; white-space: pre-wrap; }
.msg.u div { background: rgba(139,140,247,.24); border-bottom-right-radius: 6px; }
.msg.a div { background: var(--frost); border-bottom-left-radius: 6px; }
.msg small { color: var(--dim); font-size: 11.5px; margin: 3px 8px 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; padding: 10px 6px; border-radius: 14px; background: var(--frost); font-size: 14px; color: var(--muted); }
.tabs button.on { background: var(--brand); color: #fff; font-weight: 600; }
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sum div { background: var(--frost); border-radius: 16px; padding: 12px; text-align: center; }
.sum b { display: block; font-size: 17px; } .sum small { color: var(--muted); font-size: 12px; }
#toast { position: fixed; left: 50%; bottom: calc(130px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 20; opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 14px; background: rgba(30,30,50,.95); color: #f3f5fb; font-size: 14px; line-height: 1.4; transition: opacity .2s, transform .2s; max-width: 86vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.repask { padding: 12px 14px; border-radius: 16px; background: rgba(255, 180, 90, .12); box-shadow: inset 0 1px 0 rgba(255, 200, 120, .12); font-size: 14px; line-height: 1.45; }
.repask small { display: block; margin-top: 6px; opacity: .7; font: 11.5px/1.4 monospace; }
.repask .row2 { margin-top: 10px; }
#undo { position: fixed; left: 16px; right: 16px; bottom: calc(24px + var(--safe-b, 0px)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px;
  border-radius: 16px; background: #1d1b2e; color: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); transform: translateY(140%); opacity: 0; transition: transform .25s, opacity .25s; }
#undo.on { transform: none; opacity: 1; } #undo span { flex: 1; font-size: 15px; } #undo button { padding: 9px 16px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; }
#cl-top { -webkit-user-select: text; user-select: text; } #cl-top a { color: var(--accent, #A5B4FC); overflow-wrap: anywhere; }   /* как пополнить — копируют реквизиты */
.crash { white-space: pre-wrap; font: 11px/1.4 monospace; max-height: 30vh; overflow: auto; background: var(--field); padding: 10px; border-radius: 12px; -webkit-user-select: text; user-select: text; }

/* IA9 Облако: полоса заряда */
.cloudc .cl-pct { font: 600 24px/1 "Unbounded", sans-serif; }
.cl-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; margin: 12px 0 8px; }
.cl-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, #667eea, #a78bfa 55%, #4BE3A1);
  box-shadow: 0 0 14px -2px rgba(167,139,250,.7); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.cloudc.low .cl-bar i { background: linear-gradient(90deg, #FF8A65, #FFC978); }
.cloudc.empty .cl-bar i { background: #FF6B8A; }
#who.low::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FFB86B; margin-left: 2px; box-shadow: 0 0 8px #FFB86B; }
.cl-use { margin-top: 12px; } .cl-use:empty { display: none; }
.cl-use .uh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cl-use .ub { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; align-items: end; height: 38px; }
.cl-use .ub i { display: block; border-radius: 3px; background: rgba(255,255,255,.1); min-height: 3px; } .cl-use .ub i.on { background: linear-gradient(180deg, #a78bfa, #667eea); }
.cl-shot { margin-top: 8px; min-height: 54px; border-radius: 14px; background: var(--field); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; color: var(--muted); font-size: 14px; }
.cl-shot img { display: none; max-height: 90px; max-width: 160px; border-radius: 10px; } .cl-shot.has img { display: block; }
#cl-reqs .rqi { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 6px; }
#cl-reqs .rqi b { color: var(--ink); } #cl-reqs .rqi.done b { color: var(--good); } #cl-reqs .rqi.rejected b { color: var(--bad); }
/* 0.82.1 (владелец 04.11: «много новых людей, а донатов нет — чтобы было понятно и просто»): «Пополнить» — три шага;
   «Забыть ключ» — ссылкой внизу; карточка «Пополнить» под фразой Элис; значок баланса у имени персонажа */
.pay-steps { list-style: none; margin: 2px 0 0; padding: 0; }
.pay-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; position: relative; padding-bottom: 18px; }
.pay-steps > li:last-child { padding-bottom: 2px; }
.pay-steps > li > i { font: 700 12.5px/28px "Unbounded", sans-serif; font-style: normal; width: 28px; height: 28px; border-radius: 50%; text-align: center;
  background: var(--brand); color: #fff; position: relative; z-index: 1; box-shadow: 0 6px 16px -8px rgba(102,126,234,.9); }
.pay-steps > li:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1.5px; border-radius: 1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); }
.ps-b { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.ps-b > b { font-size: 15.5px; line-height: 1.25; }
.ps-go { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; font-size: 16px; }
.ps-go[hidden] { display: none; } .ps-go svg { width: 18px; height: 18px; stroke-width: 2.2; }
.ps-own { white-space: pre-line; line-height: 1.5; margin: 0; font-size: 13.5px; } .ps-own:empty { display: none; }
.ps-b .cl-shot { margin: 0; min-height: 58px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--field)); color: var(--ink); font-weight: 600; }
.ps-b .cl-shot svg { width: 22px; height: 22px; color: var(--accent); flex: none; } .ps-b .cl-shot.has { border-style: solid; } .ps-b .cl-shot.has svg { display: none; }
.ps-f { gap: 8px; align-items: flex-start; } .ps-f .f { margin: 0; min-width: 0; }
.ps-rub { display: block; margin: 5px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--accent); } .ps-rub:empty { display: none; }
.ps-when { display: block; text-align: center; font-size: 12.5px; margin: -1px 0 0; }
.ps-b .res { margin: 0 4px; } .ps-b .res:empty { display: none; }
.ps-code { margin: 12px 0 0 40px; font-size: 12.5px; color: var(--dim); text-align: left; } .ps-code:empty { display: none; } .ps-code b { color: var(--muted); letter-spacing: .02em; }
#cl-how.on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent), 0 8px 22px -12px rgba(118,75,162,.9); }
.cl-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, rgba(127,127,127,.14)); }
.cl-foot .lnk { font-size: 13px; color: var(--muted); padding: 7px 2px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
.cl-foot #cl-forget { color: var(--dim); }
.paycard { padding: 16px; }
.paycard .pc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-ic { flex: none; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #FFC98A; background: rgba(255,184,107,.14); box-shadow: inset 0 0 0 1px rgba(255,184,107,.32); }
.paycard.empty .pc-ic { color: #FF9DB2; background: rgba(255,107,138,.14); box-shadow: inset 0 0 0 1px rgba(255,107,138,.36); }
.pc-ic svg { width: 23px; height: 23px; }
.pc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .pc-t b { font-size: 16px; line-height: 1.25; } .pc-t small { font-size: 13.5px; color: var(--muted); }
.paycard #pc-go { padding: 14px 18px; font-size: 16px; }
.pc-ct { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, rgba(127,127,127,.16)); }
.pc-ct small { font-size: 13px; line-height: 1.45; color: var(--muted); } .pc-ct .row2 { gap: 8px; margin: 0; } .pc-ct .grname { font-size: 15px; padding: 11px 13px; }
.pay-steps, .paycard, .cl-foot { text-align: left; }
/* значок баланса — маленькая плашка на нижнем краю аватара персонажа (имя не теснит: верхняя панель на 390 px и так полна) */
.bal { display: none; position: absolute; left: 33px; top: 42px; transform: translateX(-50%); z-index: 2; align-items: center; gap: 3px; height: 18px; padding: 0 6px 0 5px;
  border-radius: 999px; font: 800 10.5px/1 "Manrope", sans-serif; letter-spacing: .01em; color: #3a2100; background: #FFC27A;
  box-shadow: 0 0 0 2px var(--bal-ring, #0a0a0f), 0 4px 10px -4px rgba(255,160,60,.8); }
.bal::before { content: ""; position: absolute; inset: -9px -8px; }          /* палец попадает и чуть мимо */
.bal:not([hidden]) { display: inline-flex; } .bal svg { width: 11px; height: 11px; stroke-width: 2.4; }
.bal.empty { color: #fff; background: #F0587A; box-shadow: 0 0 0 2px var(--bal-ring, #0a0a0f), 0 4px 10px -4px rgba(240,88,122,.85); }
body.light, body.neu { --bal-ring: var(--glass, #eef2f8); }
body.light .bal { color: #5a2e00; background: #FFB65C; } body.light .bal.empty { color: #fff; background: #D23C60; }
body.light .pc-ic { color: #a35400; background: rgba(255,160,40,.16); box-shadow: inset 0 0 0 1px rgba(205,120,10,.32); }
body.light .paycard.empty .pc-ic { color: #b4234a; background: rgba(220,60,90,.11); box-shadow: inset 0 0 0 1px rgba(192,48,79,.3); }
/* «Оплатить картой» (ЮMoney, автозачисление) */
.ym { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.ym-h { display: flex; flex-direction: column; gap: 2px; } .ym-h span { font-size: 13px; color: var(--muted); }
.ym-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 8px; }
.ym-sums button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(139,140,247,.3);
  background: rgba(139,140,247,.1); color: var(--ink); font: inherit; text-align: left; }
.ym-sums button:active { transform: scale(.97); } .ym-sums button b { font-size: 16px; } .ym-sums button small { font-size: 12px; color: var(--muted); }
/* «Криптой» (TON / USDT): вид, QR, адрес и комментарий с «Скопировать», крупное предупреждение */
.cx-seg { display: flex; gap: 6px; margin: 10px 0 0; } .cx-seg:empty { display: none; }
.cx-seg button { flex: 1; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(139,140,247,.3); background: transparent; color: var(--ink); font: inherit; font-weight: 600; }
.cx-seg button.on { background: rgba(139,140,247,.22); border-color: rgba(139,140,247,.7); }
.cx-body { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 8px; }
.cx-qr { align-self: center; width: 156px; } .cx-qr:empty { display: none; } .cx-qr svg { display: block; width: 156px; height: 156px; border-radius: 16px; }
.cx-info { display: flex; flex-direction: column; gap: 8px; }
.cx-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.cx-f span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.cx-f code { font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; padding: 7px 9px; border-radius: 10px; background: rgba(127,127,127,.14); user-select: all; -webkit-user-select: all; }
.cx-f code.cx-code { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.cx-f .btn { padding: 7px 10px; font-size: 13px; min-height: 0; }
.cx-warn { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 14px; background: rgba(255,170,60,.14); border: 1px solid rgba(240,150,40,.55); border-left-width: 4px; color: var(--ink); }
.cx-warn b { font-size: 15px; line-height: 1.35; } .cx-warn span { font-size: 13px; }
.cx-rate { margin: 8px 0; font-size: 13px; color: var(--muted); }
/* аккаунт elis.ia9.app и Знания персонажа */
.tile.hero { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(102,126,234,.32), rgba(118,75,162,.32)); }
.tile.hero.on { background: linear-gradient(135deg, rgba(102,126,234,.46), rgba(118,75,162,.46)); }
.acc { background: linear-gradient(135deg, rgba(102,126,234,.18), rgba(118,75,162,.18)); }
.acc-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font: 600 17px "Unbounded", sans-serif; color: #fff; flex: none; }
details.more { margin: 2px 2px 10px; } details.more summary { font-size: 13px; color: var(--muted); padding: 4px 0; cursor: pointer; }
.kbc { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(139,140,247,.2); color: #DCDCFF; }
#kb-pick { margin-top: 6px; }
.kbg { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 14px 2px 6px; font-weight: 600; }
.kbi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 5px; }
.kbi input { width: 20px; height: 20px; accent-color: #8B8CF7; flex: none; }
.kbi span { flex: 1; font-size: 14.5px; } .kbi small { color: var(--dim); font-size: 12px; }
.kbimgs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.kbimg { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--frost); padding: 0; }
.kbimg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* камера: «сфотографируй меня» — живой кадр, отсчёт, вспышка; снимок — карточкой под ответом */
#cam { position: fixed; inset: 0; z-index: 40; background: rgba(6,6,12,.92); display: grid; place-items: center; animation: rin .2s ease; }
#cam video { width: min(88vw, 520px); max-height: 70vh; border-radius: 24px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
#cam video.mirror { transform: scaleX(-1); }
#cam b { position: absolute; font: 700 88px/1 "Unbounded", "Manrope", sans-serif; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
#cam.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: camflash .3s ease forwards; }
@keyframes camflash { from { opacity: .9; } to { opacity: 0; } }
#card img.shot { display: block; max-width: 240px; width: 100%; margin: 0 auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* душа: дневник, задачи */
.dday { background: var(--frost); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -18px rgba(0,0,0,.9); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.dday > summary { list-style: none; display: flex; gap: 12px; padding: 12px 14px; cursor: pointer; align-items: flex-start; }
.dday > summary::-webkit-details-marker { display: none; }
.dday .tm { min-width: 64px; font-weight: 600; font-size: 13.5px; color: var(--muted); padding-top: 1px; }
.dday .bd { flex: 1; min-width: 0; } .dday .bd b { display: block; font-size: 15px; } .dday .bd small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.dday[open] { background: rgba(255,255,255,.09); }
.dtext { padding: 0 14px 14px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; -webkit-user-select: text; user-select: text; }
.dtext.tk { white-space: normal; } .dtext.tk p { margin: 0 0 8px; } .dtext h4 { margin: 4px 0 0; font-size: 14px; color: #C9CAFF; } .dtext h5 { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.soulins { background: rgba(138,155,255,.12); line-height: 1.5; font-size: 14px; } .soulins div { margin-top: 4px; }
.task .tst { font-weight: 600; } .task.done .tst { color: var(--good); } .task.failed .tst { color: #FF8FA8; } .task.waiting .tst { color: #FFD08A; } .task.running .tst { color: #9FB0FF; }
#soul-body .chips { margin: 0 0 10px; } #soul-body .chip { padding: 7px 12px; font-size: 13.5px; background: var(--frost); color: var(--muted); } #soul-body .chip.on { background: var(--brand); color: #fff; }

/* сделанное ассистентом: карточка и полноэкранный показ */
.appc { background: rgba(138,155,255,.14); border-radius: 18px; padding: 14px 16px; text-align: left; }
.appc > b { display: block; font-size: 16px; }
.tfiles { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tf { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.tf span { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.tf small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin: 0; }
.tf .btn { flex: none; padding: 8px 12px; font-size: 13px; }
.task-done .tres { font-size: 14px; line-height: 1.45; max-height: 30vh; overflow: auto; margin-top: 4px; } .appc small { color: var(--muted); display: block; margin: 2px 0 10px; } .appc .row2 .btn { flex: 1; }
#appview { position: fixed; inset: 0; z-index: 30; background: #0F0E1A; display: none; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
#appview.on { display: flex; }
#appview .avh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; } #appview .avh b { flex: 1; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#appview iframe { flex: 1; border: 0; width: 100%; background: #fff; border-radius: 16px 16px 0 0; }

/* «Мозг»: подключено — зелёная метка; другие способы — свёрнуты под «Подключить другой мозг» */
.card.brain.ok { border-color: rgba(108,231,168,.35); }
.card.brain.ok > .row2 small.hint:first-child { color: var(--good); }
.card.brain.ok > .row2 small.hint:first-child::before { content: "● "; }
details.brainalt { margin: 14px 2px 4px; }
details.brainalt > summary { list-style: none; padding: 12px 14px; border-radius: 16px; background: var(--frost); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -18px rgba(0,0,0,.9);
  font-size: 14px; color: var(--ink); }
details.brainalt > summary::-webkit-details-marker { display: none; }
details.brainalt > summary::after { content: "›"; float: right; color: var(--muted); transition: transform .2s; }
details.brainalt[open] > summary { margin-bottom: 10px; } details.brainalt[open] > summary::after { transform: rotate(90deg); }

/* планшет и широкий экран: листы и панель по центру, а не во всю ширину */
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; width: min(760px, 94vw); transform: translate(-50%, 105%); border-radius: 26px 26px 0 0; }
  .sheet.on { transform: translate(-50%, 0); }
  #bar { padding-left: max(18px, calc(50vw - 380px)); padding-right: max(18px, calc(50vw - 380px)); }
  #talk { max-width: 820px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
/* экран лёжа (планшет или телефон): облик слева, разговор справа; разговора ещё нет (#stage.quiet, ставит app.js) —
   облик по центру, иначе он одиноко висел бы слева */
@media (orientation: landscape) and (min-width: 600px) {
  #stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 3vw; padding: 0 max(16px, 4vw); align-items: center; transition: grid-template-columns .3s; }
  #stage.quiet { grid-template-columns: minmax(0, 1fr) 0px; column-gap: 0; }
  #stage.quiet #talk { overflow: hidden; padding: 0; }
  #stage.quiet.tries { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 3vw; }
  #stage.quiet.tries #talk { overflow-y: auto; padding: 16px 8px; }
  #tries .tlist { justify-content: flex-start; } #tries .tx { margin-left: 0; }
  #orbwrap { grid-column: 1; grid-row: 2; justify-self: center; width: min(36vw, 50vh, 400px); margin-top: 0; }
  #radiobox { grid-column: 1; grid-row: 3; justify-self: center; }
  #statebar { grid-column: 1; grid-row: 4; justify-self: center; }
  #talk { grid-column: 2; grid-row: 1 / 6; align-self: stretch; max-width: none; text-align: left; display: flex; flex-direction: column; padding: 16px 8px; }
  #talk::before, #talk::after { content: ""; flex: 1 1 0; }      /* по центру по высоте, а длинный ответ прокручивается с начала */
  #card { margin-left: 0; }
  .sheet { max-height: calc(92vh / var(--vzt)); } .sheet.tall { height: calc(92vh / var(--vzt)); max-height: calc(92vh / var(--vzt)); }
}
@media (orientation: landscape) and (max-height: 520px) {          /* телефон лёжа: ниже панель и облик */
  #mic { width: 64px; height: 64px; } #mic svg { width: 26px; height: 26px; }
  #stage { bottom: calc(96px + var(--safe-b)); top: 56px; }
}
/* «Сообщить о проблеме» («Ещё»): снимок экрана, мои жалобы с ответами, помощники проекта */
.bugsnap { margin: 0 0 10px; }
.bugsnap img { display: block; width: 46%; max-height: 220px; object-fit: cover; object-position: top; border-radius: 12px; margin-bottom: 6px; box-shadow: 0 6px 20px -10px #000; }
.bugsnap img.zoom { position: fixed; inset: 3vh 3vw; width: 94vw; max-height: none; height: 94vh; object-fit: contain; z-index: 90; background: rgba(0,0,0,.9); }
.bugsnap .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted, rgba(255,255,255,.65)); }
.bugsnap .chk input { margin-top: 2px; accent-color: #8B8CF7; }
.bugh { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; margin: 14px 0 6px; }
.bugc { padding: 9px 11px; border-radius: 12px; background: var(--field); margin-bottom: 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.bugc .bst { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; opacity: .8; margin-top: 4px; }
.bugc .chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.09); }
.bugc .chip.work { background: rgba(255,190,100,.18); color: #FFD9A8; } .bugc .chip.fixed { background: rgba(75,227,161,.18); color: #A4F3CF; }
.bugc .brep { margin-top: 6px; padding: 7px 9px; border-radius: 10px; background: rgba(139,140,247,.14); font-size: 13px; }
.thx { display: flex; flex-wrap: wrap; gap: 6px; }
.thx span { padding: 3px 10px; border-radius: 999px; background: rgba(139,140,247,.16); font-size: 13px; }
.thx span b { margin-left: 5px; color: #A9AAFF; font-weight: 600; }
/* Душа и конституция — читаются как текст, а не как разметка; «Изменить» открывает поле */
.dtext.soulv { padding: 6px 2px 4px; font-size: 15px; line-height: 1.65; }
.dtext.soulv h4 { margin: 4px 0 0; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #B9BAFF; }
.dtext.soulv h4:first-child { margin-top: 2px; }
.dtext.soulv i { color: var(--muted, rgba(255,255,255,.65)); }
#so-edit, #co-edit { margin-top: 12px; }
.it.job .tm { color: #B9BAFF; }
/* «Начать с чистого листа» — свёрнуто внизу «Ещё», подальше от «Проверить обновление» */
details.danger { margin: 18px 4px 6px; padding: 10px 14px; border-radius: 16px; background: rgba(255,107,138,.06); }
details.danger summary { cursor: pointer; color: #FFB3C3; font-size: 14px; }
details.danger #reset { margin-top: 6px; color: #FFB3C3; }

/* экзамен способностей (exam.js): полоса хода поверх главного экрана — стекло, без обводок */
#exam-bar { position: fixed; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 30; display: none;
  flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: rgba(22, 24, 46, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgb(0 0 0 / 20%); color: #fff; }
#exam-bar.on { display: flex; }
#exam-bar b { font-size: 15px; }
#exam-bar #exam-now { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
#exam-bar .xb { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
#exam-bar .xb i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #7877C6, #FF77C6, #78DBFF); transition: width .4s; }
#exam-bar .btn { align-self: flex-end; }

/* первый запуск: две кнопки друг под другом — главная «Подключить бесплатно», ниже — для тех, у кого есть код или ключ */
#card .start { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 4px auto 0; }
#card .start .btn { padding: 15px 18px; font-size: 16px; }
/* «Подключить бесплатно» в выборе мозга — заметнее остальных плиток */
.tile.easy { background: linear-gradient(135deg, rgba(124,92,255,.32), rgba(255,122,198,.22)); box-shadow: 0 10px 28px -16px rgba(124,92,255,.9); }
details.pro { margin-top: 12px; }
details.pro > .tiles { margin-top: 10px; }

/* длинный ответ в рамке: облик уступает место, текст — в стеклянной карточке слева, внизу — кнопки */
#orbwrap { transition: width .35s ease, margin .35s ease; }
#stage.long #orbwrap { width: min(34vw, 20vh, 160px); margin-top: 0; }
#stage.long #state { margin-top: 6px; } #stage.long #stopx { top: calc(50% + 3px); }
#bot.framed { text-align: left; font-size: 16px; line-height: 1.5; font-weight: 400; white-space: pre-wrap; background: var(--frost);
  border-radius: 20px; padding: 14px 16px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 34px -22px rgba(0,0,0,.95); }
#bot.framed .ans { white-space: normal; }
#bot.framed .ans p { margin: 0 0 8px; }
#bot.framed .ans h4 { margin: 10px 0 6px; font-size: 16.5px; font-weight: 700; }
#bot.framed .ans h4:first-child { margin-top: 0; }
#bot.framed .ans ul, #bot.framed .ans ol { margin: 0 0 8px; padding-left: 20px; }
#bot.framed .ans li { margin: 3px 0; }
#bot.framed .ans code { font-size: 14px; background: rgba(255,255,255,.08); border-radius: 6px; padding: 1px 5px; }
#bot.framed .tbl { overflow-x: auto; margin: 4px -4px 10px; }
#bot.framed table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
#bot.framed th, #bot.framed td { text-align: left; padding: 7px 9px; vertical-align: top; }
#bot.framed th { font-weight: 600; color: var(--muted); background: rgba(255,255,255,.05); }
#bot.framed tr:nth-child(even) td { background: rgba(255,255,255,.03); }
#bot .acts { display: flex; gap: 6px; margin-top: 8px; }
#bot .acts button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px;
  border-radius: 999px; font-size: 13px; white-space: nowrap;
  background: rgba(255,255,255,.08); color: var(--ink); }
#bot .acts button:active { background: var(--frost-hi); }
#bot .acts svg { width: 16px; height: 16px; }
/* открыто поле ввода — сцена заканчивается выше него, ответ не уходит под поле */
body.typing #stage { bottom: calc(var(--barh, 140px) + 6px); }     /* --barh — высота нижней панели (app.js), поле растёт — сцена выше */
@media (orientation: landscape) and (min-width: 600px) {
  #stage.long #orbwrap { width: min(36vw, 50vh, 400px); }       /* лёжа ответ и так справа — облик не уменьшаем */
  body.typing #stage { bottom: calc(var(--barh, 130px) + 4px); }
}

/* ---------- светлые темы (body.light — skins.js light): тёмный текст, светлое стекло, кнопки — глубокий чернильный ----------
   --ink, --muted, --glass, --glass-shadow приходят из skins.css (класс .skin-<id> на body). Рамок нет — форма от тени. */
body.light {
  --dim: color-mix(in srgb, var(--ink) 58%, transparent);      /* 25.10: было 48 % — бледно на сером (№242) */
  --brand: linear-gradient(135deg, #2b2540 0%, #3b3560 100%); --accent: #4b5bd6;
  --frost: var(--glass); --frost-hi: color-mix(in srgb, var(--ink) 9%, transparent);
  --field: rgba(255,255,255,.7); --glass-line: transparent;
  --soft: color-mix(in srgb, var(--ink) 6%, transparent);
  --good: #11885a; --bad: #c0304f;
}
body.light :is(.card, .tile, .it, .dday, details.brainalt > summary, #bot.framed, .who, .pill) { box-shadow: var(--glass-shadow); }
body.light .tile.on, body.light .dday[open], body.light .pi.on { background: #fff; box-shadow: 0 14px 30px -16px rgba(20,30,60,.4); }
body.light .tile svg { color: var(--ink); }
body.light .tile.easy { background: linear-gradient(135deg, rgba(124,92,255,.2), rgba(255,122,198,.16)), var(--glass); }
body.light .sheet { background: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.94)); box-shadow: 0 -20px 60px rgba(20,30,60,.18); }
body.light .sheet { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }   /* лист почти белый — сильное размытие незаметно, а стоит дорого (№93) */
body.light.lite-ui .sheet { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
body.light .sheet .grab { background: color-mix(in srgb, var(--ink) 18%, transparent); }
body.light #dim { background: rgba(30,34,52,.28); }
body.light :is(.btn, .tabs button, #bot .acts button, #soul-body .chip, .kbi, .tf, .pill button) { background: var(--soft); color: var(--ink); }
body.light :is(.btn.p, .tabs button.on, #soul-body .chip.on) { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -12px rgba(30,30,60,.6); }
body.light .tg i { background: color-mix(in srgb, var(--ink) 14%, transparent); }
body.light .tg i::after { box-shadow: 0 1px 4px rgba(20,30,60,.3); }
body.light .tg input:checked + i { background: var(--brand); }
body.light .chip { background: rgba(75,91,214,.12); color: #3a46b8; }
body.light #mic { box-shadow: 0 14px 30px -12px rgba(30,30,60,.6), inset 0 1px 0 rgba(255,255,255,.18); }
body.light #mic.busy { background: linear-gradient(135deg, #8d93ad, #9a8fb3); }
body.light #mic.on .ring { border-color: rgba(75,91,214,.45); }
body.light :is(.it .tm, .res.bad, #bot.err, details.danger summary, details.danger #reset) { color: #b4234a; }
body.light .it .tm { color: #a2650a; }
body.light :is(.it.job .tm, .dtext h4, .dtext.soulv h4, .thx span b) { color: #4b5bd6; }
body.light .task.failed .tst { color: #b4234a; } body.light .task.waiting .tst { color: #9a5a00; } body.light .task.running .tst { color: #3a46b8; }
body.light .bugc .chip.work { color: #9a5a00; } body.light .bugc .chip.fixed { color: #11724b; }
body.light :is(.cl-bar, .cl-use .ub i, #exam-bar .xb) { background: color-mix(in srgb, var(--ink) 10%, transparent); }
body.light #bot.framed .ans code, body.light #bot.framed th { background: var(--soft); }
body.light #bot.framed tr:nth-child(even) td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
body.light #rchip { background: rgba(255,255,255,.7); box-shadow: var(--glass-shadow); }
body.light #exam-bar { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: var(--glass-shadow); }
body.light #exam-bar #exam-now { color: var(--muted); }
body.light .f input[type=range] { --track: color-mix(in srgb, var(--ink) 14%, transparent); }
body.light select option { background: #fff; color: #1d2230; }
body.light input::placeholder, body.light textarea::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }

/* ---------- неоморфизм: всё из одного материала, выпуклое — двумя тенями, поля и нажатое — вдавлены ---------- */
body.neu {
  --brand: linear-gradient(135deg, #6a8dff 0%, #4f6cf0 100%); --accent: #5b7cff;
  --frost: var(--glass); --field: var(--glass); --glass-line: transparent;
  --raise: 6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
  --raise-s: 3px 3px 7px var(--neu-dark), -3px -3px 7px var(--neu-light);
  --press: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light);
}
body.neu #orbwrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 63%; height: 63%; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--glass); box-shadow: 10px 10px 22px var(--neu-dark), -10px -10px 22px var(--neu-light); }
/* светлый неоморфизм: диск шире портрета — вокруг лица поле того же материала, портрет без рамки (отзыв 18.10) */
body.neu.light #orbwrap::before { width: 72%; height: 72%; }
body.neu #orb { position: relative; }
body.neu :is(.card, .tile, .it, .dday, details.brainalt > summary, #bot.framed) { background: var(--glass); box-shadow: var(--raise); }
body.neu :is(.who, .ib.soft, .pill, #rchip) { background: var(--glass); box-shadow: var(--raise-s); }
body.neu :is(.ib:active, .ib.soft:active, #b-voice.off) { background: var(--glass); box-shadow: var(--press); }
body.neu :is(.tile.on, .dday[open], .pi.on) { background: var(--glass); box-shadow: var(--press); }
body.neu .sheet { background: var(--glass); box-shadow: 0 -12px 30px var(--neu-dark); backdrop-filter: none; -webkit-backdrop-filter: none; }   /* фон непрозрачный — размывать нечего (№93) */
body.neu :is(.btn, .tabs button, #bot .acts button, #soul-body .chip, .pill button) { background: var(--glass); color: var(--ink); box-shadow: var(--raise-s); }
body.neu :is(.btn:active, .tabs button:active, #bot .acts button:active) { box-shadow: var(--press); }
body.neu :is(.btn.p, .tabs button.on, #soul-body .chip.on) { background: var(--brand); color: #fff; box-shadow: var(--raise-s); }
body.neu :is(#typebox textarea, .f input, .f select, .f textarea, .wk-form textarea, .wk-msg textarea, .bs-msg select, #row .ib.att, .cl-shot, .kbi, .tf) { background: var(--glass); box-shadow: var(--press); }
body.neu .tg i { background: var(--glass); box-shadow: inset 2px 2px 5px var(--neu-dark), inset -2px -2px 5px var(--neu-light); }
body.neu .tg input:checked + i { background: var(--brand); box-shadow: inset 2px 2px 5px rgba(0,0,0,.18); }
body.neu #mic { box-shadow: var(--raise), inset 0 1px 0 rgba(255,255,255,.25); }
body.neu #stopx { background: var(--glass); box-shadow: var(--raise-s); } body.neu #stopx:active { box-shadow: var(--press); }
body.neu #mic.busy { background: var(--glass); color: var(--accent); box-shadow: var(--press); }
body.neu :is(.cl-bar, #exam-bar .xb) { background: var(--glass); box-shadow: inset 2px 2px 4px var(--neu-dark), inset -2px -2px 4px var(--neu-light); }

/* «Ещё» → «Оформление»: темы плитками — образец фона (класс темы из skins.css) и кружок из материала её карточек;
   выбранная — светлее и с тенью, без рамок */
/* Тема — компактные круглые образцы (отзыв 14.10: «некрасивые прямоугольники, занимают кучу места»): круг — фон
   темы, точка в центре — её «стекло» (материал карточек); выбранная — тонкое кольцо вокруг. Все темы — в две строки. */
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px 4px; padding: 4px 0 2px; margin-bottom: 16px; }
.sk-now { margin: 0 2px 14px; font-size: 14px; } .sk-now b { font-weight: 700; }
.sk-now small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.skm { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; cursor: pointer; min-width: 0; }
.skm span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skm i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--skin-bg, #111);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: box-shadow .2s, transform .2s; }
:where(.skm i) { --glass: rgba(255,255,255,.14); --glass-shadow: 0 0 10px rgba(0,0,0,.4); }     /* своё у темы (skins.css) — важнее */
.skm i b { width: 15px; height: 15px; border-radius: 50%; background: var(--glass); box-shadow: var(--glass-shadow); }
.skm.on { color: var(--ink); font-weight: 600; }
.skm.on i { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.skm:active i { transform: scale(.94); }
.skm:focus-visible { outline: none; } .skm:focus-visible i { box-shadow: 0 0 0 3px var(--accent); }
body.light .skm i { box-shadow: inset 0 0 0 1px rgba(20,20,40,.12); }

/* «Ещё» → «Звук напоминаний»: строки со значком ▶; выбранная — светлее, играющая — значок светится */
.snds { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.snd { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; text-align: left; transition: background .2s, box-shadow .2s; }
.snd i { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--frost-hi); color: var(--ink); transition: background .2s, box-shadow .2s; }
.snd i svg { width: 15px; height: 15px; margin-left: 2px; }
.snd b { display: block; font-size: 15px; font-weight: 600; } .snd small { display: block; font-size: 12.5px; color: var(--muted); }
.snd.on { background: var(--frost-hi); }
.snd.on i, .snd.play i { background: var(--brand); color: #fff; }
.snd.play i { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); animation: sndp 1.2s ease-in-out infinite; }
@keyframes sndp { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 8%, transparent); } }
#snd-pick { display: flex; justify-content: center; }
body.light .snd.on { background: #fff; box-shadow: 0 8px 20px -12px rgba(20,30,60,.35); }
body.light .snd i { background: var(--soft); }
body.neu .snd.on { background: var(--glass); box-shadow: var(--press); }
body.neu .snd i { background: var(--glass); box-shadow: var(--raise-s); }
body.neu .snd.on i, body.neu .snd.play i { background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .snd.play i { animation: none; } }

/* «Ещё» → «Ваши данные» (privacy.js) */
.priv p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.priv p:last-child { margin-bottom: 0; }
.priv b { color: var(--ink); font-weight: 600; }

/* «Близкие» → «Рефералы»: большое созвездие (refnet.js, big) — ночное небо во всю ширину листа; ниже код и друзья */
.rfnet { margin: 0 -6px 12px; }
.rfnet .rn.big { border-radius: 24px; }
.rfnet .rn.big .rk { padding: 18px 18px 0; } .rfnet .rn.big .rk b { font-size: 20px; } .rfnet .rn.big .bar { width: 160px; }
.rfnet .rn.big .coin { font-size: 21px; } .rfnet .rn.big .coin i { width: 23px; height: 23px; }
.rfnet .rn.big svg { margin: -26px auto -10px; }
.rfinv .row2 { align-items: center; gap: 8px; }
/* код — своей строкой, «Пригласить» — под ним во всю ширину (отчёт №91: на узком экране кнопка налезала на код) */
.rfcode { display: block; font: 600 22px "Unbounded", sans-serif; letter-spacing: .12em; margin-top: 2px; overflow-wrap: anywhere; }
.rfp { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; margin-bottom: 6px; border-radius: 16px; background: var(--frost); transition: background .2s; }
.rfp.cur { background: var(--frost-hi); }
.rfp span { flex: 1; min-width: 0; } .rfp b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfp small { display: block; color: var(--muted); font-size: 12.5px; }
.rfp .ib { width: 40px; height: 40px; flex: none; } .rfp .ib svg { width: 19px; height: 19px; }
.rfo { padding: 9px 12px; font-size: 13px; border-radius: 12px; flex: none; }
.rfw { font-style: normal; font-size: 12px; color: var(--muted); flex: none; padding: 0 6px; }
.clof { background: linear-gradient(135deg, rgba(255,127,182,.2), rgba(139,140,247,.2)); }
.refgo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; white-space: normal; }
.refgo small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* «Мозг» → «Пригласить друга» */
.refs { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; }
.refi { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--frost); font-size: 14px; }
.refi small { color: var(--muted); }

/* «Близкие» (лист #sh-close): список, переписка — свои справа, приглашение с QR; непрочитанное — точка на значке сверху */
#b-close { position: relative; }
#b-close .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #FF7AB6; box-shadow: 0 0 8px #FF7AB6; display: none; }
#b-close.has .dot { display: block; }
/* новый видеоурок (29.10): тихая точка на «Всё» и метка «новое» на плитке — до первого открытия «Видеоуроков» */
#b-apps { position: relative; } #b-apps .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #8B8CF7; box-shadow: 0 0 8px #8B8CF7; display: none; }
#b-apps.has .dot { display: block; }
.app.a-lessons { position: relative; } .app.a-lessons.new::after { content: "новое"; position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 99px; background: #8B8CF7; color: #fff; font-size: 10.5px; font-weight: 700; }
html[lang]:not([lang="ru"]) .app.a-lessons.new::after { content: "new"; }   /* подпись в CSS — словарь её не видит */
@media (max-width: 420px) { .who svg { display: none; } .who { padding-right: 12px; } }   /* своё имя «Меган» не обрезается до «Мег…» (19.10) */
@media (max-width: 380px) { #top { gap: 3px; } #top .ib { width: 38px; height: 38px; } #top .ib svg { width: 20px; height: 20px; } .who span { max-width: 72px; }
  .who { gap: 7px; padding-right: 10px; } .who svg { display: none; } }   /* стрелка — лишняя: имя важнее */
.clp { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px 10px 12px; margin-bottom: 6px; border-radius: 16px; background: var(--frost); text-align: left; }
.clp .ib { width: 40px; height: 40px; flex: none; } .clp .ib svg { width: 19px; height: 19px; }
/* близкие сверху — лицами: видно сразу, кто есть; «+» — пригласить */
.clfaces { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.clfaces::-webkit-scrollbar { display: none; }
.clface { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; padding: 0; }
.clface .clava { width: 60px; height: 60px; font-size: 22px; position: relative; }
.clface .clava em { position: absolute; top: -2px; right: -2px; font-style: normal; font: 700 11.5px Manrope, sans-serif; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: #FF7AB6; color: #fff; }
.clface span { font-size: 12.5px; color: var(--muted); max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clface.add .clava { background: var(--frost-hi); color: var(--ink); box-shadow: none; font: 400 30px/1 Manrope, sans-serif; }
.clinvrow { font-size: 13.5px; font-weight: 500; margin: 2px 0 10px; }
.clp span { flex: 1; min-width: 0; } .clp b { display: block; font-size: 15.5px; }
.clp small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp em { font-style: normal; font-weight: 700; font-size: 12px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.clava { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 16px "Unbounded", sans-serif; font-style: normal;
  color: #12131c; background: radial-gradient(circle at 35% 30%, #fff, var(--c, #9BD4FF) 70%); box-shadow: 0 6px 16px -8px var(--c, #9BD4FF); }
.clh { display: flex; align-items: center; gap: 10px; margin: -6px 0 10px; }
.clh b { display: block; font-size: 16px; } .clh small { color: var(--muted); font-size: 12.5px; }
.clmsgs { display: flex; flex-direction: column; gap: 8px; height: calc(88vh / var(--vzt) - 210px - var(--safe-b)); overflow-y: auto; padding: 4px 2px 8px; }
.clm { align-self: flex-start; max-width: 82%; padding: 9px 13px 6px; border-radius: 18px 18px 18px 6px; background: var(--frost); display: flex; flex-direction: column; gap: 6px;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; -webkit-user-select: text; user-select: text; }
.clm.out { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, rgba(102,126,234,.5), rgba(118,75,162,.5)); }
.clm time { align-self: flex-end; font-size: 11px; color: var(--dim); display: inline-flex; align-items: center; gap: 4px; }
.clck { display: inline-grid; } .clck svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clck.sent, .clck.dlv { opacity: .8; } .clck.read { color: #5ff0c4; }   /* ✓ отправлено, ✓✓ доставлено, ✓✓ мятный — прочитано */
.clck.pend { opacity: .6; }
.clf { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.2); text-align: left; font-size: 13.5px; }
.clf svg { width: 18px; height: 18px; flex: none; } .clf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clf small { color: var(--muted); font-size: 11.5px; }
.clsend { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.clsend textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 0; border-radius: 16px; background: var(--field); resize: none; font-size: 15.5px; outline: none; }
.clsend .ib.att { background: var(--field); color: var(--muted); flex: none; }
#cl-go { background: var(--brand); color: #fff; flex: none; }
.clatts { display: flex; flex-wrap: wrap; gap: 6px; } .clatts:empty { display: none; }
.clatts span { font-size: 12.5px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--frost); }
.clinv .clqr { width: min(220px, 60vw); margin: 4px auto 0; border-radius: 18px; overflow: hidden; background: #fff; padding: 8px; }
.clinv .clqr svg { display: block; width: 100%; height: auto; stroke: none; }       /* общее «svg» рисует контуры — QR они ни к чему */
#cl-name { width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--field); outline: none; }
body.light .clm { background: rgba(255,255,255,.85); box-shadow: 0 4px 12px -8px rgba(20,30,60,.3); }
body.light .clm.out { background: linear-gradient(135deg, #3b3560, #2b2540); color: #fff; }
body.light .clf { background: var(--soft); }
body.neu .clp, body.neu .clm { background: var(--glass); box-shadow: var(--raise-s); }
body.neu .clm.out { background: var(--brand); color: #fff; }
body.neu .clsend textarea, body.neu #cl-name { background: var(--glass); box-shadow: var(--press); }
.clinv .clqr.seal { background: none; padding: 0; border-radius: 7%; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); }
.clinv .clqr.seal svg { stroke: none; }
.clinv .hint a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.clinv .cllinks { display: flex; gap: 18px; margin: -2px 0 10px; } .clinv .row2 { flex-wrap: wrap; } .clinv .row2 .btn { flex: 1 1 140px !important; min-width: 0; }   /* узкий экран — кнопки в две строки, а не за край */
.clscan { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.clscan svg { width: 20px; height: 20px; }

/* заметка: открыть, поправить, фото и файлы (openNote) */
#note-body input, #note-body textarea { width: 100%; border: 0; border-radius: 14px; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; padding: 12px 14px; margin-bottom: 8px; outline: none; }
#note-body input { font-weight: 600; }
#note-body textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.ntatt { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; } .ntatt:empty { display: none; }
.ntimg { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; padding: 0; border: 0; background: var(--frost); position: relative; }
.ntimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ntf { border: 0; border-radius: 14px; background: var(--frost-hi); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 13.5px; max-width: 100%; text-align: left; }
.ntf small { color: var(--muted); margin-left: 6px; }
.ntadd { display: flex; gap: 8px; margin-bottom: 10px; } .ntadd .btn { flex: 1; text-align: center; }
img.nthumb.rt { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; margin-left: 2px; cursor: pointer; }   /* фото напоминания в «Мой день» */
.it .bd[data-note] { cursor: pointer; }
.it .bd .ntc { color: var(--accent); font-size: 12px; margin-left: 4px; }
.ntnew { width: 100%; margin-bottom: 10px; }
#imgview { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.94); display: none; place-items: center; padding: 16px; }
#imgview.on { display: grid; } #imgview img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* планшет лёжа: облик и ответ — в той же полосе, что поле ввода и кнопки внизу (до 760 точек по центру), — края
   совпадают: слева облик и кнопка клавиатуры, справа конец ответа и кнопка разговора, по центру — микрофон, когда
   разговора нет. Отзыв 11.10 (планшет Huawei): сцена шла от края до края, панель — по центру, и всё стояло «хаотично». */
@media (orientation: landscape) and (min-width: 700px) {
  #stage { padding: 0 max(16px, calc(50vw - 380px)); column-gap: 32px; }
  #orbwrap, #stage.long #orbwrap { width: min(100%, 50vh, 360px); }
  #talk { padding: 16px 0; }
}

/* «Дела»: сделано сегодня, серия и значки (renderDay → doneHead), праздник (celebrate) */
.donehd { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; margin-bottom: 10px; background: var(--frost); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
/* светлая тема (№244, владелец: «блок на телефоне рамкой не чёткий в разделе Дела»): карточка сливалась с листом — светлее,
   с тонкой кромкой и мягкой тенью; поле «Что уже сделали?» — тоже с кромкой */
body.light .donehd { background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(36,50,74,.07), 0 12px 26px -18px rgba(20,30,60,.4); }
body.light .doneadd input { background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(36,50,74,.1); }
.dtop { display: flex; gap: 14px; align-items: center; }
.dnum { min-width: 72px; text-align: center; padding-right: 14px; border-right: 1px solid var(--line, rgba(127,127,127,.18)); }
.dnum b { display: block; font: 600 40px/1.05 "Unbounded", sans-serif; color: var(--good); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dnum small { color: var(--muted); font-size: 12px; }
.dside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dstreak { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.dsub { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.dtop .dwhy { flex: none; align-self: flex-start; }
.dlab { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 0 2px 6px; }
.dgoals { display: flex; flex-direction: column; gap: 5px; }
.dgoals .ach { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px 7px 10px; border-radius: 14px; background: var(--field); text-align: left; color: var(--ink); }
.dgoals .ach i { font-style: normal; font-size: 20px; line-height: 1; filter: grayscale(.6); opacity: .85; }
.dg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dg b { font-size: 13.5px; font-weight: 700; } .dg small { font-size: 11.5px; color: var(--muted); }
.dbar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(127,127,127,.2); overflow: hidden; }
.dbar em { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4be3a1, #3bb5ff); }
.dgn { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.achs { display: flex; flex-wrap: wrap; gap: 6px; }
.dgot .ach { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.ach.on { background: rgba(255,190,90,.2); color: var(--ink); }
.doneadd { display: flex; gap: 8px; margin: 0 0 12px; }
.doneadd input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--field); color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.doneadd input:focus-visible { box-shadow: 0 0 0 2px rgba(139,140,247,.55); }
.doneadd .ib { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 19px; font-weight: 700; flex: none; display: grid; place-items: center; }
.it.dn .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(75,227,161,.16); color: var(--good); font-weight: 700; flex: none; }
.it .x.ok { background: rgba(75,227,161,.16); color: var(--good); font-size: 16px; font-weight: 700; }
.achc { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; text-align: left;
  background: radial-gradient(120% 160% at 0% 0%, rgba(255,201,120,.2), transparent 62%), var(--frost); animation: achin .5s cubic-bezier(.2,1.4,.4,1); }
.achc { position: relative; cursor: pointer; padding-right: 48px; }
.achc i { font-style: normal; font-size: 40px; line-height: 1; }
.achc .achb { min-width: 0; }
.achc b { display: block; font-size: 17px; } .achc small { color: var(--muted); font-size: 13px; }
.achc em { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #FFC978; }
.achc:active { transform: scale(.985); }
.achc:focus-visible { outline: 2px solid rgba(255,201,120,.7); outline-offset: 2px; }
.achx { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--muted); }
.achx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dwhy { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; vertical-align: 1px;
  background: rgba(255,255,255,.09); color: var(--muted); font-size: 13px; font-weight: 700; }
.dwhy.on { background: rgba(255,201,120,.2); color: #FFE1B0; }
.donewhy { padding: 14px 16px; border-radius: 18px; margin: -2px 0 10px; background: rgba(255,201,120,.08); border: 1px solid rgba(255,201,120,.18); }
.donewhy b { display: block; font-size: 15px; margin-bottom: 4px; }
.donewhy p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.donewhy .btn { padding: 8px 16px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti i { position: absolute; top: -14px; height: 10px; border-radius: 2px; animation: cf 1.7s cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes cf { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }
@keyframes achin { from { transform: scale(.86); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .achc { animation: none; } }

/* «Близкие»: эмодзи и реакции (clReBind, clReact) */
.clm { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* долгое нажатие — реакции и «Копировать» */
.clm.rx { margin-bottom: 12px; }
.clm.emo { background: none !important; box-shadow: none !important; padding: 0 2px; }
.clm.emo > div:first-child { font-size: 40px; line-height: 1.15; }
/* смайлы без пузыря (28.10, владелец: «смайлы с белым текстом на светлом фоне») — время и подписи цветом страницы, не белым */
.clm.emo.out, body.light .clm.emo.out, body.neu .clm.emo.out { color: inherit; } .clm.emo time, .clm.emo.out time { color: var(--dim) !important; }
.clrx { position: absolute; bottom: -13px; right: 10px; padding: 2px 7px; border-radius: 999px; font-size: 14px; line-height: 1.35; background: #26263a; box-shadow: 0 4px 10px -4px rgba(0,0,0,.6); }
.clm:not(.out) .clrx { right: auto; left: 10px; }
.clm.emo.rx { margin-bottom: 0; } .clm.emo .clrx { position: static; align-self: flex-end; } .clm.emo:not(.out) .clrx { align-self: flex-start; }
.clrepick { position: fixed; z-index: 60; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: #22223a; box-shadow: 0 14px 34px -10px rgba(0,0,0,.8); animation: clre .18s ease-out; }
.clrepick button { width: 36px; height: 36px; border-radius: 50%; font-size: 21px; display: grid; place-items: center; transition: transform .12s; }
.clrepick button:active { transform: scale(1.3); }
.clrepick button.on { background: rgba(139,140,247,.3); }
.clrepick { flex-direction: column; border-radius: 22px; max-width: calc(100vw - 16px); }
.clrepick .emos { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.clrepick .acts { display: flex; gap: 4px; margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.08); }
.clrepick .acts button { width: auto; flex: 1; height: 38px; border-radius: 13px; padding: 0 12px; gap: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; line-height: 1; font-family: inherit; color: var(--muted); }
.clrepick .acts button:active { transform: none; background: rgba(255,255,255,.08); }
.clrepick .acts .dl { color: var(--bad); }
.clrepick .acts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.light .clrepick .acts { border-top-color: rgba(20,30,60,.1); }
@keyframes clre { from { transform: translateY(6px) scale(.94); opacity: 0; } }
.clemo { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 16px; background: var(--field); }
.clemo[hidden] { display: none; }
.clemo-tabs { display: flex; gap: 2px; } .clemo-tabs button { flex: 1; height: 34px; border-radius: 10px; font-size: 18px; opacity: .55; }
.clemo-tabs button.on { opacity: 1; background: var(--frost-hi); }
.clemo-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); max-height: 176px; overflow-y: auto; }
.clemo-g button { height: 44px; border-radius: 12px; font-size: 24px; }
.clemo button:active { background: var(--frost-hi); }
body.light .clrx, body.light .clrepick { background: #fff; box-shadow: 0 6px 18px -8px rgba(20,30,60,.35); }
@media (prefers-reduced-motion: reduce) { .clrepick { animation: none; } }

/* «Что нового» после обновления (newsShow) */
.nwsub { color: var(--muted); font-size: 14px; margin: -6px 2px 12px; }
/* «Записи экзамена»: что старый экзамен оставил в данных — отметить и убрать (exam.js examCleanCheck) */
.xc-g { font-size: 13px; color: var(--muted); margin: 14px 4px 6px; }
.xc-i { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--frost); margin-bottom: 6px; font-size: 14.5px; line-height: 1.45; }
.xc-i input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent, #8B8CF7); }
.xc-btns { display: flex; gap: 10px; margin-top: 16px; } .xc-btns .btn { flex: 1; }
.nwi { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--frost); margin-bottom: 8px; }
.nwi > i { font-style: normal; font-size: 26px; line-height: 1.1; flex: none; width: 34px; text-align: center; }
.nwi b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.nwi p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.nwi small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink); opacity: .85; }
.nwtry { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(139,140,247,.18); color: #D5D6FF; font-size: 13.5px; text-align: left; line-height: 1.35; }
body.light .nwtry { background: rgba(79,108,240,.1); color: #2c44b0; }   /* светлая тема: был светлый текст на сиреневом (№243) */
#nw-ok { margin-top: 10px; }

/* картинка из ответа на весь экран (show_images) */
#picview { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: rgba(5,5,10,.94); }
#picview.on { display: flex; }
#picview img { max-width: 100%; max-height: calc(100% - 110px); object-fit: contain; border-radius: 12px; }
#picview .pv-t { color: #ddd; font-size: 13px; text-align: center; max-width: 520px; }
#hlist .msg.a .ans { font-size: inherit; }
#hlist .msg.a .ans p { margin: 0 0 6px; }
/* «Разговор» — и переписка (№528, 04.11): поле внизу листа, как в мессенджере. Лента прокручивается под ним, поле — на месте;
   короткий разговор — поле всё равно у нижнего края. Фон поля — плотный цвет листа своей темы (лента под ним не просвечивает). */
#sh-hist { display: flex; flex-direction: column; padding-bottom: 0; --hc-bg: rgba(20,20,27,.94); --hc-line: var(--glass-line); }
#sh-hist #hlist { flex: 1 0 auto; padding-bottom: 6px; }
#hcomp { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: flex-end; gap: 8px; margin: 0 -18px; padding: 10px 14px calc(12px + var(--safe-b)) 18px;
  background: var(--hc-bg); border-top: 1px solid var(--hc-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#hcomp textarea { flex: 1; min-width: 0; display: block; box-sizing: border-box; height: 44px; min-height: 44px; resize: none; overflow-y: hidden;
  padding: 11px 16px; border: 0; border-radius: 22px; background: var(--field); color: var(--ink); outline: none;
  font-family: inherit; font-size: 16px; line-height: 1.4; scrollbar-width: thin; transition: height .12s ease-out; }
#hcomp textarea::placeholder { color: var(--muted); }
#hcomp .ib { flex: none; width: 44px; height: 44px; }
#hcomp .ib svg { width: 21px; height: 21px; }
#hsend { background: var(--brand); color: #fff; transition: opacity .15s, transform .15s; }
#hsend:disabled { opacity: .38; cursor: default; }
#hsend:not(:disabled):active { transform: scale(.94); }
#hmic.on { background: linear-gradient(135deg, #ff6b8a, #b45cff); color: #fff; animation: pulse 1.4s ease-in-out infinite; }
#hmic.busy { color: var(--accent, #8b8cf7); }
@media (prefers-reduced-motion: reduce) { #hmic.on { animation: none; } }
body.lite-ui #sh-hist { --hc-bg: rgba(18,18,24,.99); }
body.lite-ui #hcomp { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.light #sh-hist { --hc-bg: rgba(255,255,255,.95); --hc-line: rgba(20,30,60,.08); }
body.neu #sh-hist { --hc-bg: var(--glass); --hc-line: transparent; }
body.neu #hcomp { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 -10px 18px -14px var(--neu-dark); }
body.neu #hcomp textarea { background: var(--glass); box-shadow: var(--press); }
body.neu #hsend { box-shadow: var(--raise-s); }
body.neu #hsend:disabled { box-shadow: none; }
/* ответ ещё идёт — три точки, как в мессенджере */
#hlist .msg.a .hdots { display: inline-flex; align-self: flex-start; gap: 5px; align-items: center; padding: 15px 18px; }
#hlist .hdots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3; animation: hdot 1.2s ease-in-out infinite; }
#hlist .hdots i:nth-child(2) { animation-delay: .15s; } #hlist .hdots i:nth-child(3) { animation-delay: .3s; }
@keyframes hdot { 0%, 70%, 100% { opacity: .25; transform: none; } 35% { opacity: .85; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { #hlist .hdots i { animation: none; opacity: .55; } }
/* «Управлять приложениями» выключилось после обновления (№529) — карточка на главном экране */
#card .hands-lost { text-align: left; }
#card .hands-lost p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
/* светлые темы: подсказка и объяснение достижений — тёмным янтарём, а не светлым */
body.light .achc em, body.light .dwhy.on, body.light .ach.on { color: #9a5a00; }
body.light .donewhy p { color: var(--ink); }

/* правка напоминания руками (отзыв 17.10: «напоминания можно править только голосом») */
#rem-body label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 4px 6px; }
#rem-body input, #rem-body select { width: 100%; border: 0; border-radius: 14px; background: var(--field); color: var(--ink); font-size: 16px; padding: 12px 14px; margin: 4px 0 12px; outline: none; }
#rem-body #rm-text { font-weight: 600; }
#rem-body .rmrow { display: flex; gap: 10px; }
#rem-body .rmrow label { flex: 1; margin: 0; }
#rem-body .rmatt { margin: -2px 0 12px; }
.it[data-edit] { cursor: pointer; }

/* жалоба: фото или скриншот из галереи */
.bugpick { margin: 0 0 12px; }
.bugpick .bpk { position: relative; width: 46%; }
.bugpick .bpk img { display: block; width: 100%; max-height: 240px; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 6px 20px -10px #000; }
.bugpick .bpk .x { position: absolute; top: 6px; right: 6px; }
.bugpick label.btn { display: block; text-align: center; }

/* «Что я умею»: фразы карточками-кнопками — сама фраза крупно, что делает — мельче */
#tricks-body .trg h3 { margin: 16px 4px 8px; }
#tricks-body .trl { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
#tricks-body .trk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; border: 0; background: none;
  color: var(--ink); font: inherit; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
#tricks-body .trk:active { background: var(--glass, rgba(255,255,255,.08)); }
#tricks-body .trk b { font-weight: 600; font-size: 15px; }
#tricks-body .trk small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
/* «Управлять приложениями»: шаги включения (Android 13+ — сначала «Разрешить ограниченные настройки», отчёт №87) */
.hsteps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hsteps li { margin: 4px 0; } .hsteps b { color: var(--ink); font-weight: 600; }
/* свой персонаж: строка списка с карандашом, редактор (облик — круг из галереи, пол, цвет) */
.pirow { display: flex; align-items: center; gap: 6px; } .pirow .pi { flex: 1; min-width: 0; margin-bottom: 6px; }
.pirow .pedit { flex: none; margin-bottom: 6px; } .pnew { margin: 4px 0 12px; }
/* «Готовые персонажи» (идея №56): свёрнутый раздел под своими, карточка — облик цветом персонажа, имя с ролью, девиз и что умеет */
details.pgal { margin: 2px 0 12px; }
details.pgal > summary { list-style: none; cursor: pointer; padding: 12px 40px 12px 14px; border-radius: 16px; background: var(--frost); position: relative; }
details.pgal > summary::-webkit-details-marker { display: none; }
details.pgal > summary::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; transition: transform .2s; }
details.pgal[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
details.pgal > summary b { display: block; font-size: 15px; font-weight: 650; } details.pgal > summary small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pglist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pg { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--frost); contain: layout paint style; }
.pg.in { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.pgava { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 38%, color-mix(in srgb, var(--c) 30%, #12121e) 100%); }
.pgava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgava i { font: 600 19px/1 "Unbounded", "Manrope", sans-serif; font-style: normal; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pgtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pgtx b { font-size: 15.5px; font-weight: 650; line-height: 1.25; }
.pgtx em { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.light .pgtx em { color: color-mix(in srgb, var(--c) 58%, #1d2233); }
.pgtl { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pg .btn { flex: none; padding: 8px 14px; font-size: 13.5px; min-height: 0; border-radius: 12px; }
.pgnow { flex: none; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
body.neu .pg, body.neu details.pgal > summary { background: var(--glass); box-shadow: var(--raise-s); }
.pe-top { display: flex; gap: 14px; align-items: flex-start; }
.pe-ava { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.pe-ava span { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--field); }
.pe-ava img { width: 100%; height: 100%; object-fit: cover; } .pe-ava i { font-style: normal; font-size: 30px; color: var(--muted); }
.pe-ava small { color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; background: var(--field); border-radius: 12px; padding: 3px; gap: 3px; margin-top: 2px; }
.seg button { padding: 7px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; } .seg button.on { background: var(--card, #fff2); color: var(--ink); }
.pe-colors { display: flex; gap: 10px; margin: 4px 0 2px; }
.pe-colors button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 3px; }
.pe-colors button.on { outline-color: var(--ink); }


/* «Близкие» → «Рядом»: радар. Сам радар — тёмный «прибор» в любой теме (светлой тоже): кольца 300 м / 3 км / 30 км,
   луч, «Я» в центре; близкие — их цветные кружки (как в списке), давно не обновлявшиеся — бледнее. */
.rad-seen, .rad-mini { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--frost); font-size: 13.5px; margin-bottom: 10px; width: 100%; text-align: left; }
.rad-seen .dot, .rad-mini .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dim); }
.rad-seen.on .dot, .rad-mini .dot { background: #4BE3A1; box-shadow: 0 0 0 4px rgba(75,227,161,.16); }
.rad-seen span, .rad-mini span { flex: 1; min-width: 0; color: var(--muted); line-height: 1.35; }
.rad-seen span b { color: var(--ink); font-weight: 600; }
.rad-seen button { flex: none; padding: 7px 12px; border-radius: 11px; background: var(--frost-hi); color: var(--ink); font: 600 13px Manrope, sans-serif; }
.rad-seen button.go { background: var(--brand); color: #fff; }
.rad-mini b { flex: none; font-size: 13px; color: var(--accent); }
.rad-ed { margin-bottom: 12px; }
.rad-ed > b { display: block; font-size: 15px; margin-bottom: 2px; }
.rad-ask { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; transition: color .2s; }
.rad-ask.need { color: var(--accent); font-weight: 700; }
.rad-who.need .rad-pick:not(.on) .clava { animation: radNeed .5s ease 2; }
@keyframes radNeed { 0%, 100% { transform: none; } 25% { transform: translateY(-5px) scale(1.06); } 60% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .rad-who.need .rad-pick:not(.on) .clava { animation: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); } }
.rad-who { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.rad-pick { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; padding: 0; }
.rad-pick:not(.on) .clava::after { content: "+"; position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #4b6bfb; font: 800 13px/1 Manrope, sans-serif; box-shadow: 0 1px 4px rgba(20,32,60,.25); }
.rad-pick .clava { width: 46px; height: 46px; position: relative; }
.rad-pick.on span { color: var(--ink); font-weight: 700; } .rad-pick.on .clava { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
.rad-pick.on .clava::after { content: "✓"; position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #4BE3A1; color: #0b1a12; font: 700 11px Manrope, sans-serif; }
.rad-pick span { font-size: 12px; color: var(--muted); max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rad-time { display: flex; gap: 6px; margin: 4px 0 2px; }
.rad-time button { flex: 1; padding: 10px 4px; border-radius: 12px; background: var(--frost); color: var(--muted); font: 600 13px Manrope, sans-serif; }
.rad-time button.on { background: var(--brand); color: #fff; }
.rad-ed .hint { margin: 10px 2px 12px; }
.rad-wrap { position: relative; width: min(100%, 340px); margin: 6px auto 4px; }
.radar { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; container-type: inline-size;
  background: radial-gradient(circle at 50% 50%, #1b1b33 0%, #12121f 58%, #0c0c15 100%); box-shadow: 0 18px 40px -22px rgba(10,10,30,.8), inset 0 0 0 1px rgba(139,140,247,.12); }
.rad-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.rad-rings circle { fill: none; stroke: rgba(139,140,247,.18); stroke-width: 1; }
.rad-rings text { fill: rgba(255,255,255,.4); stroke: none; font: 500 11px Manrope, sans-serif; }
.rad-sweep { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(139,140,247,0) 0deg, rgba(139,140,247,0) 300deg, rgba(139,140,247,.10) 340deg, rgba(166,167,255,.30) 359deg, rgba(139,140,247,0) 360deg); }
@media (prefers-reduced-motion: reduce) { .rad-sweep { display: none; } }
.rad-n { position: absolute; transform: translate(-50%, -50%); font: 600 10px Unbounded, sans-serif; color: #A5A6FF; background: #14142a; padding: 2px 4px; border-radius: 6px; pointer-events: none; }
.rad-me { position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #C9CAFF, #7C7EF0 60%, #5B5DD6); color: #0d0d1a; font: 600 17px Unbounded, sans-serif;
  box-shadow: 0 0 0 6px rgba(139,140,247,.12), 0 0 40px rgba(139,140,247,.45); }
.rad-me::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(139,140,247,.5); animation: rad-breathe 3.2s ease-out infinite; }
@keyframes rad-breathe { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rad-me::after { animation: none; opacity: 0; } }
.radar.nome .rad-me { filter: saturate(.4); }
.rad-p { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); padding: 0; background: none; z-index: 2; }
.rad-p .clava { width: 44px; height: 44px; font-size: 16px; box-shadow: 0 0 0 3px #10101c, 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .25s; }
.rad-p.stale .clava { filter: saturate(.35) brightness(.7); box-shadow: 0 0 0 3px #10101c; }
.rad-p.sel .clava { box-shadow: 0 0 0 3px #10101c, 0 0 0 5px var(--c), 0 0 30px var(--c); }
.rad-p.ping .clava { animation: rad-ping .9s ease-out; }
@keyframes rad-ping { 35% { transform: scale(1.18); } }
.rad-p span { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; line-height: 1.25; color: rgba(255,255,255,.62); text-align: center; pointer-events: none; }
.rad-p span b { display: block; color: #F4F4F6; font-size: 12.5px; font-weight: 600; }
.rad-fly { position: absolute; left: 50%; top: 50%; font-size: 30px; transform: translate(-50%, -50%); pointer-events: none; z-index: 4;
  transition: left 1.1s cubic-bezier(.3,.1,.2,1), top 1.1s cubic-bezier(.3,.1,.2,1), opacity .4s; }
.rad-rip { position: absolute; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--c); pointer-events: none; z-index: 1; animation: rad-rip 1.4s ease-out forwards; }
@keyframes rad-rip { to { width: 64%; height: 64%; opacity: 0; } }
.rad-cmp { position: absolute; right: -2px; top: -2px; width: 40px; height: 40px; }
.rad-cmp.on { background: var(--brand); color: #fff; }
.rad-cmp svg { width: 20px; height: 20px; }
.rad-sel { margin-top: 18px; padding: 16px 16px 14px; border-radius: 22px; background: var(--frost); }
.rad-sel .h { display: flex; align-items: center; gap: 12px; }
.rad-sel .h .clava { width: 46px; height: 46px; font-size: 18px; }
.rad-sel .h b { display: block; font-size: 16.5px; } .rad-sel .h small { color: var(--muted); font-size: 13px; }
.rad-dist { display: flex; align-items: baseline; gap: 8px; margin: 12px 2px 2px; }
.rad-dist strong { font: 600 28px/1.1 Unbounded, Manrope, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rad-dist em { font-style: normal; color: var(--muted); }
.rad-arr { width: 22px; height: 22px; margin-left: auto; align-self: center; fill: var(--accent); stroke: none; transform: rotate(var(--deg, 0deg)); transition: transform .3s; }
.rad-acts { display: flex; gap: 8px; margin-top: 12px; }
.rad-acts button { flex: 1; padding: 13px 4px; border-radius: 16px; font: 600 14px Manrope, sans-serif; color: var(--ink); background: var(--frost-hi); }
.rad-acts .rad-wave { flex: 1.4; background: linear-gradient(135deg, #8B8CF7, #B98CF7); color: #0d0d1a; }
.rad-acts .rad-wave:disabled { opacity: .7; }
.rad-need { margin-top: 16px; } .rad-need .hint { margin: 6px 0 10px; }
.rad-empty { text-align: center; margin: 16px 12px 4px; }
.rad-rp .btn { flex: none; padding: 9px 14px; font-size: 13.5px; }
.rad-priv { text-align: center; margin: 14px 10px 6px; font-size: 12px; }
/* светлые темы — светлый прибор: белый круг с голубым отливом, кольца и подписи — чернилами темы; в неоморфизме — вдавлен */
body.light .radar { background: radial-gradient(circle at 50% 45%, #ffffff 0%, color-mix(in srgb, var(--accent) 7%, #f4f7fd) 62%, color-mix(in srgb, var(--accent) 14%, #e9eef9) 100%);
  box-shadow: 0 18px 40px -24px rgba(40,50,110,.45), inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); }
body.neu .radar { background: var(--glass); box-shadow: var(--press); }
body.light .rad-rings circle { stroke: color-mix(in srgb, var(--accent) 26%, transparent); }
body.light .rad-rings text { fill: color-mix(in srgb, var(--ink) 45%, transparent); }
body.light .rad-sweep { background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, color-mix(in srgb, var(--accent) 8%, transparent) 340deg, color-mix(in srgb, var(--accent) 26%, transparent) 359deg, transparent 360deg); }
body.light .rad-n { background: transparent; color: var(--accent); }
body.light .rad-p .clava { box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px color-mix(in srgb, var(--c) 80%, #000); }
body.light .rad-p.stale .clava { box-shadow: 0 0 0 3px #fff; }
body.light .rad-p.sel .clava { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 8px 22px -6px var(--c); }
body.light .rad-p span { color: color-mix(in srgb, var(--ink) 60%, transparent); }
body.light .rad-p span b { color: var(--ink); }
body.light .rad-me { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent), 0 10px 26px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
body.light .rad-me::after { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
body.light .rad-seen { background: var(--soft); }
body.neu .rad-seen, body.neu .rad-sel { background: var(--glass); box-shadow: var(--raise-s); }
/* «Встречи» (0.38.98): знакомства там, где вы сейчас — app.js meetRender */
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 12px; }
.mt-big { display: block; font: 600 16px/1.35 "Unbounded", sans-serif; margin-bottom: 10px; }
.mt-rules { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.mt-rules li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.mt-rules li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #4BE3A1; }
.mt-adult { display: flex; gap: 10px; align-items: center; margin: 0 2px 12px; font-size: 14px; }
.mt-adult input { width: 20px; height: 20px; flex: none; accent-color: #4BE3A1; }
.mt-form textarea { width: 100%; resize: none; }
.mt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 4px 12px; font-size: 13px; color: var(--muted); }
.mt-me { display: flex; align-items: center; gap: 10px; }
.mt-me .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #4BE3A1; box-shadow: 0 0 0 4px rgba(75,227,161,.18); }
.mt-me b { display: block; } .mt-me small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtp-h { display: flex; gap: 10px; align-items: center; }
.mtp-h b { display: block; } .mtp-h small { display: block; color: var(--muted); font-size: 12.5px; }
.mtp-a { margin: 8px 2px 0; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.mtp-act { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mtp-act span { flex: 1; font-size: 13px; color: var(--muted); }
.mtp.in { box-shadow: inset 0 0 0 1.5px rgba(255,181,71,.6); } .mtp .mt-in { color: #FFB547; font-weight: 600; }
.mtp.match { box-shadow: inset 0 0 0 1.5px rgba(75,227,161,.65); } .mtp .mt-ok { color: var(--muted); }
.mtp.match .mt-ok { color: #4BE3A1; font-weight: 600; }
.mt-more { width: 34px; height: 34px; font-size: 18px; line-height: 1; }
.mt-menu { margin-top: 10px; }
body.light .mtp.match .mt-ok { color: #1d7f55; } body.light .mtp .mt-in { color: #b46a08; }
body.light .mt-rules li::before, body.light .mt-me .dot { background: #1d7f55; }
/* папки заметок (№195): полоска «Все · Блокнот · Работа…» над списком и поле «Папка» в заметке */
.ntfolds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 4px; padding-bottom: 2px; }
.ntfolds::-webkit-scrollbar { display: none; }
.ntfolds button { flex: none; border: 0; padding: 7px 13px; border-radius: 999px; background: var(--frost); color: var(--muted); font: 600 13px "Manrope", sans-serif; }
.ntfolds button.on { background: var(--frost-hi); color: var(--ink); }
.ntfold { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.ntfold span { color: var(--muted); font-size: 13.5px; flex: none; }
.ntfold input { flex: 1; min-width: 0; }

/* «Досуг» (24.10): полка игр в листе и игра во весь экран (app.js playOpen / gameOpen) */
#b-play[hidden] { display: none; }
.shelf { display: flex; flex-direction: column; gap: 12px; }
.shelf .ag-sec { margin: 12px 8px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }   /* группы игр (24.10) */
.shelf .ag { display: flex; gap: 14px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 20px; text-align: left; color: var(--ink);
  background: var(--frost, rgba(255,255,255,.06)); font: inherit; }
body.neu .shelf .ag { box-shadow: 6px 6px 14px var(--neu-dark, #b8c5d6), -6px -6px 14px var(--neu-light, #fff); }
.shelf .ag:active { transform: scale(.98); }
.ag-cover { position: relative; flex: none; width: 124px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: rgba(127,127,160,.15); }
.ag-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-play { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 3px 10px rgba(102,126,234,.45); }
.ag-play svg { width: 13px; height: 13px; fill: #fff; margin-left: 2px; }
.ag-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ag-t b { font-size: 16px; font-weight: 700; }
.ag-t em { font-style: normal; font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-t small { font-size: 12px; color: var(--muted); opacity: .8; }
/* объявление для всех (annShow) */
#ann-body .nw-img { display: block; width: 100%; max-height: 42vh; object-fit: cover; border-radius: 18px; margin: 4px 0 12px; }
#ann-body .nw-k { font-size: 13px; opacity: .65; margin: 0 0 4px; }
#ann-body .nw-k.warn { color: #f0a63a; opacity: 1; font-weight: 600; }
#ann-body h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
#ann-body .nw-t { white-space: pre-wrap; font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; }
#ann-body .nw-row { display: flex; gap: 10px; } #ann-body .nw-row .btn { flex: 1; }
#gameov { position: fixed; inset: 0; z-index: 90; background: var(--skin-bg, var(--bg, #0a0a0f)); }
#gameov[hidden] { display: none; }
#gamef { width: 100%; height: 100%; border: 0; display: block; }
/* шесть значков вверху (с «Досугом») — чуть плотнее, чтобы имя персонажа не обрезалось до «Л…» */
body.has-play #top { gap: 2px; } body.has-play #top .ib { width: 38px; height: 38px; } body.has-play #top .ib svg { width: 21px; height: 21px; }
@media (max-width: 380px) { body.has-play #top .ib { width: 36px; height: 36px; } body.has-play #top .ib svg { width: 19px; height: 19px; } }
@media (max-width: 360px) { body.has-play #top { padding-left: 8px; padding-right: 8px; gap: 1px; } }

/* задача: ответить и удалить (24.10) */
.tkans { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 4px; } .tkans textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--field); color: inherit; font: inherit; resize: none; }
.tkdel { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 2px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--dim); font: inherit; font-size: 13px; }
.tkdel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .tkdel:active { color: #FF8FA8; background: rgba(255,107,138,.1); }
/* Карточка заметки в списке (app.js ntCard, 03.11): заголовок до двух строк, начало текста до трёх — одним потоком
   (mdPreview flat, без значков Markdown, №246), мета-строка — когда, папка (№216) и вложения пилюлями; фото — квадрат
   58×58 справа у всех одинаковый, несколько фото — счётчик на нём. Карточки вне экрана не рисуются (№93: плавная прокрутка). */
.ntlist { display: flex; flex-direction: column; gap: 8px; }
.it.note { align-items: center; gap: 14px; padding: 13px 14px 12px 16px; margin: 0; cursor: pointer; min-height: 64px;
  contain: layout paint style; content-visibility: auto; contain-intrinsic-size: auto 104px; -webkit-tap-highlight-color: transparent; }
.it.note:active { transform: scale(.985); transition: transform .12s; }
.it.note .bd { display: flex; flex-direction: column; gap: 4px; }
.it.note .bd b.ntt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
  font-size: 15.5px; font-weight: 650; line-height: 1.3; color: var(--ink); letter-spacing: -.005em; }
.it.note .ntpv { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere;
  color: var(--muted); font-size: 13.5px; line-height: 1.42; font-weight: 400; }
.it.note.ph .ntpv { -webkit-line-clamp: 2; }
.it.note .ntm { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; min-height: 20px; line-height: 1; }
.it.note .ntd { color: var(--dim, var(--muted)); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; margin-right: 2px; }
.it.note .ntm :is(.ntf, .ntc) { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px; margin: 0; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.it.note .ntm .ntf { display: inline-block; line-height: 20px; background: var(--frost-hi); background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.it.note .ntm .ntc { background: var(--frost-hi); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-variant-numeric: tabular-nums; }
.it.note .ntc svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.it.note .nthumb { position: relative; flex: none; width: 58px; height: 58px; border-radius: 14px; overflow: hidden; align-self: center;
  background: var(--frost-hi); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.it.note .nthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it.note .nthumb .ntn { position: absolute; right: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: rgba(10,12,20,.62); color: #fff; font: 700 10.5px/18px "Manrope", sans-serif; font-style: normal; text-align: center; }
body.light .it.note .nthumb { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
/* Вид значка «Записать» (25.10): четыре варианта — подпись сверху, переключатель на всю ширину (на узком телефоне не вылезает) */
.sw.wglook { display: block; margin-top: 10px; }
.sw.wglook .seg { display: flex; width: 100%; margin-top: 8px; }
.sw.wglook .seg button { flex: 1; padding: 8px 4px; font-size: 13px; }

/* Карточка «Я» (0.45): фото крупно слева (нажать — выбрать), имя, о себе; фото у близких и во «Встречах» */
.clava.has-face, .rad-me.has-face, .fmava.has-face { background-size: cover; background-position: center; color: transparent; }
.clme-top { display: flex; align-items: center; gap: 14px; }
.clme-face { position: relative; flex: none; cursor: pointer; }
.clme-face .clava { width: 72px; height: 72px; font-size: 26px; }
.clme-face span { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 2px 9px; border-radius: 10px; font: 700 11px Manrope, sans-serif;
  background: var(--brand); color: #fff; white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.clme textarea { width: 100%; margin-top: 12px; padding: 11px 13px; border-radius: 14px; border: 0; background: var(--field); color: var(--ink); font: inherit; resize: vertical; min-height: 56px; }
/* «Прежние мозги»: корзина рядом с «Вернуть» — первое нажатие раскрывает «Убрать» (№254, 25.10) */
.brb .brdel { padding: 10px 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: none; box-shadow: inset 0 0 0 1px var(--frost-hi); transition: background .2s, color .2s; }
.brb .brdel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brb .brdel span { display: none; }
#br-back .brb .brdel.ask { color: #fff; background: #E8506F; box-shadow: 0 8px 20px -12px rgba(232,80,111,.9); }   /* с #id: темы задают кнопкам фон через :is(… #bot …) */
.brb .brdel.ask span { display: inline; }
/* ---------- Заметка: чтение и правка (владелец 27.10, №321) ---------- */
#sh-note.ntv #nt-h { font-size: 24px; line-height: 1.22; margin-bottom: 6px; overflow-wrap: anywhere; }
.ntmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 14px; color: var(--dim); font-size: 13px; }
/* замок (владелец 05.11): 🔒 у названия — запереть / открыть одним нажатием; запертую не изменить и не удалить */
.nthead { display: flex; align-items: flex-start; gap: 10px; }
.nthead #nt-h { flex: 1; min-width: 0; }
.nthead .ntlockh { margin-top: 2px; }
.ntlockh { flex: none; min-width: 44px; min-height: 44px; border-radius: 14px; font-size: 20px; line-height: 1; background: var(--frost-hi); opacity: .6; }
.ntlockh.on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ntlocked { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--frost-hi); color: var(--dim); font-size: 13px; line-height: 1.45; }
.ntbar .btn.off { opacity: .45; }
.ntlk { font-style: normal; font-size: 12px; opacity: .8; }
.ntchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--frost-hi); color: var(--ink); font-size: 13px; font-weight: 600; }
.ntchip svg { width: 15px; height: 15px; }
.ntread { -webkit-user-select: text; user-select: text; font-size: 16px; line-height: 1.6; color: var(--ink); padding: 16px 18px; border-radius: 20px;
  background: var(--frost); box-shadow: inset 0 0 0 1px var(--glass-line); overflow-wrap: anywhere; }
.ntread > :first-child { margin-top: 0; } .ntread > :last-child { margin-bottom: 0; }
.ntread p { margin: 0 0 10px; }
.ntread h2, .ntread h3, .ntread h4 { font-family: "Manrope", sans-serif; font-weight: 800; line-height: 1.3; margin: 18px 0 8px; }
.ntread h2 { font-size: 19px; } .ntread h3 { font-size: 17px; } .ntread h4 { font-size: 15.5px; color: var(--muted); }
.ntread ul, .ntread ol { margin: 0 0 10px; padding-left: 22px; } .ntread li { margin: 3px 0; } .ntread li::marker { color: var(--accent); }
.ntread ul.tasks { list-style: none; padding-left: 0; }
.ntread ul.tasks li { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; }
.ntread ul.tasks li.done span { color: var(--dim); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--dim) 70%, transparent); }
.ntread .tk { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent);
  display: grid; place-items: center; transition: background .15s; }
.ntread li.done .tk { background: var(--accent); box-shadow: none; }
.ntread li.done .tk::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.ntread blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 4px; background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--muted); }
.ntread a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ntread code { font-family: ui-monospace, "Ubuntu Mono", monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--field); }
.ntread pre { margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--field); overflow-x: auto; } .ntread pre code { padding: 0; background: none; }
.ntread hr { border: 0; height: 1px; background: var(--glass-line); margin: 16px 0; }
.ntread mark { background: color-mix(in srgb, #FFD36B 45%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.ntread .tbl { overflow-x: auto; margin: 0 0 10px; } .ntread table { border-collapse: collapse; font-size: 14px; }
.ntread th, .ntread td { padding: 6px 10px; border-bottom: 1px solid var(--glass-line); text-align: left; } .ntread th { color: var(--muted); font-weight: 700; }
.ntread .ntempty { color: var(--dim); font-style: italic; }
.ntatt.big { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.ntatt.big .ntimg { width: auto; height: auto; aspect-ratio: 1; }
.ntimg { position: relative; } .ntimg .ntopen { width: 100%; height: 100%; padding: 0; display: block; } .ntimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ntfile { position: relative; display: inline-flex; } .ntfile .ntopen { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--frost-hi); text-align: left; max-width: 100%; }
.ntfile svg { width: 18px; height: 18px; flex: none; } .ntfile small { color: var(--muted); }
.ntrm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(10,10,20,.62); color: #fff; display: grid; place-items: center; }
.ntrm svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ntfile .ntrm { position: static; margin-left: 4px; align-self: center; background: var(--frost-hi); color: var(--ink); }
.ntbar { position: sticky; bottom: calc(-24px - var(--safe-b)); display: flex; gap: 10px; margin: 18px -18px calc(-24px - var(--safe-b)); padding: 12px 18px calc(16px + var(--safe-b));
  background: linear-gradient(to bottom, transparent, var(--sheet-bg, var(--bg)) 26%); }
.ntbar .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ntbar .btn.p { flex: 1; } .ntbar .btn svg { width: 19px; height: 19px; }
.ntbar .btn.ic { flex: none; width: 50px; padding: 12px 0; } .ntbar .btn.dl:active { color: var(--bad); }
#sh-note.nte .ntbar .btn { flex: 1; }
.ntmd { display: flex; gap: 8px; margin: -4px -6px 2px; padding: 6px 6px 10px; overflow-x: auto; scrollbar-width: none; } .ntmd::-webkit-scrollbar { display: none; }
.ntmd button { flex: none; padding: 7px 12px; border-radius: 10px; background: var(--frost); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ntmd button:active { background: var(--frost-hi); color: var(--ink); }
#note-body textarea { min-height: 180px; resize: none; }
.ntlbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin: 12px 2px 6px; } .ntlbl svg { width: 15px; height: 15px; }
.ntfolds.pick { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; }
.ntfolds.pick button { display: inline-flex; align-items: center; gap: 5px; }
.ntfolds.pick button.on { background: var(--accent); color: #fff; }
.ntfolds.pick button.add { background: none; box-shadow: inset 0 0 0 1.5px var(--frost-hi); color: var(--muted); } .ntfolds.pick button.add svg { width: 14px; height: 14px; }
#note-body #nt-fname { width: 150px; flex: none; margin: 0; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ntadd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .ntadd .btn svg { width: 18px; height: 18px; }
#imgview .ivx { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
#imgview .ivx svg { width: 20px; height: 20px; stroke-width: 2.2; }
/* светлые темы и неоморфизм: поля и карточка заметки видны (раньше поле сливалось с листом — «всё в кучу») */
body.light .ntread { background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(20,32,60,.07); }
body.light .ntrm { background: rgba(20,24,40,.55); }
body.neu .ntread { background: var(--glass); box-shadow: var(--raise-s); }
body.neu :is(#note-body input, #note-body textarea) { background: var(--glass); box-shadow: var(--press); }
body.neu .ntfolds.pick button:not(.on):not(.add), body.neu .ntmd button, body.neu .ntchip { background: var(--glass); box-shadow: var(--raise-s); }
#sh-note { --sheet-bg: #15151b; } body.light #sh-note { --sheet-bg: #fbfcfe; } body.neu #sh-note { --sheet-bg: var(--glass); }
/* «Возможности»: вкладки «Близких» — под ними, отступом; выключили «Близкие» — вкладки притушены */
.fsub { margin: 2px 0 0 14px; padding-left: 14px; border-left: 2px solid var(--frost-hi); }
.fsub > small { display: block; color: var(--dim); font-size: 12px; margin: 10px 4px 0; }
.fsub.off { opacity: .45; pointer-events: none; }
#b-close[hidden] { display: none; }

/* ---------- «Близкие» → «Семья» (27.10): общий бюджет, по макету Budget ---------- */
.tabs button.dot { position: relative; } .tabs button.dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ffc978; }
.fmava { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #171a2e; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 2px var(--bg); }
.fmava.sm { width: 30px; height: 30px; font-size: 12px; box-shadow: none; }
.fmhead { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 12px; }
.fmhead small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
#fam-body .fmhead h3 { margin: 2px 0 0; font: 600 22px "Unbounded", "Manrope", sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink); }
body.light .fmava:not(.sm) { box-shadow: 0 0 0 2px #fff; }
.tabs:has(button:nth-child(5)) button { font-size: 12.5px; padding: 10px 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* «Близкие» и соседи — вкладки значком и подписью (29.10): пять подписей в строку обрезались («Рефера…») */
#cl-tabs.ictabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11.5px; font-weight: 600; min-width: 0; overflow: visible; }
#cl-tabs.ictabs button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#cl-tabs.ictabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cl-tabs.ictabs button.dot::after { top: 6px; right: calc(50% - 18px); }
.fmstack { display: flex; } .fmstack .fmava + .fmava { margin-left: -8px; }
/* «Семья» карточками (29.10) — без рамок: состояние — цветом значка и мягким фоном */
#fam-body .card { padding: 16px; border-radius: 22px; margin-bottom: 12px; }
.fmmonth { display: flex; flex-direction: column; gap: 12px; }
.fmtot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fmtot b { font: 600 28px "Unbounded", "Manrope", sans-serif; letter-spacing: -.01em; } .fmtot b span { font-size: 14px; color: var(--muted); font-family: "Manrope", sans-serif; font-weight: 700; }
.fmlim { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--frost-hi); font: 700 12.5px "Manrope", sans-serif; color: var(--muted); }
.fmlim.over { background: rgba(255,107,138,.16); color: #ff8aa3; }
.fmbar { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.fmbar i { display: block; height: 100%; border-radius: 99px; } .fmbar.over { background: rgba(255,107,138,.3); }
.fmby { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.fmby div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fmby span { display: flex; align-items: center; gap: 6px; color: var(--muted); } .fmby span i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fmby b { font-size: 16px; padding-left: 14px; font-variant-numeric: tabular-nums; }
.fmsh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fmsh h4 { margin: 0; font-size: 15px; font-weight: 800; }
.fmplus { height: 32px; padding: 0 14px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font: 700 13px "Manrope", sans-serif; }
.fmplus.on { background: var(--frost-hi); color: var(--muted); }
.fmempty { margin: 0; }
.fmbills { display: flex; flex-direction: column; gap: 8px; }
.fmbill { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 16px; background: var(--frost-hi); }
.fmbill.late { background: rgba(255,107,138,.12); }
.fmbt b { display: block; font-size: 14.5px; } .fmbt small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmbill.late .fmbt small { color: #ff8aa3; }
.fmsum { font-size: 15px; font-variant-numeric: tabular-nums; }
.fmbill.paid { opacity: .78; }
.fmbact { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.fmic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(126,232,200,.18); }
.fmic svg { width: 16px; height: 16px; fill: none; stroke: #7ee8c8; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fmbill.due .fmic { background: rgba(255,201,120,.2); } .fmbill.due .fmic svg { stroke: #ffc978; stroke-width: 2.4; }
.fmbill.late .fmic { background: rgba(255,107,138,.18); } .fmbill.late .fmic svg { stroke: #ff8aa3; stroke-width: 2.4; }
.fmbtn { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--frost); font: 700 12.5px "Manrope", sans-serif; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.fmbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fmbtn.ok { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.fmbtn.rem { background: rgba(255,201,120,.24); color: #c27c00; }
.fmform { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px; border-radius: 18px; background: var(--frost-hi); }
.fmform input { width: 100%; min-width: 0; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--field); outline: none; -webkit-appearance: none; appearance: none; font-size: 15px; }
.fmrow { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.fmwho small, .fminv small { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 2px 6px; }
.fmwho > div, .fminv > div { display: flex; flex-wrap: wrap; gap: 6px; }
.fmchip { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--frost); font: 700 13px "Manrope", sans-serif; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.fmchip.on { background: var(--brand); color: #fff; }
.fmchip.add i { font-style: normal; font-size: 16px; color: var(--brand); }
.fmfeed > div { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.fmfeed > div + div { border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.fmfeed > div > div, .fmppl > div { flex: 1; min-width: 0; } .fmfeed b, .fmppl b { font-size: 14px; } .fmfeed > div > div b, .fmppl > div b { display: block; }
.fmfeed small, .fmppl small, .fmask small { display: block; font-size: 12.5px; color: var(--muted); }
.fmfeed > div > b { font-variant-numeric: tabular-nums; }
.fmppl { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.fminv { margin-top: 10px; }
.fmshare { margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.fmask { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; background: rgba(255,201,120,.14) !important; }
.fmask > div:not(.row2) { flex: 1; min-width: 0; } .fmask .row2 { flex-basis: 100%; } .fmask .row2 .btn { flex: 1; }
body.neu :is(.fmbtn, .fmplus, .fmchip, .fmlim) { background: var(--glass); box-shadow: var(--raise-s); }
body.neu :is(.fmbtn, .fmplus, .fmchip, .fmlim):active { box-shadow: var(--press); }
body.neu .fmbtn.ok, body.neu .fmplus { color: var(--brand); } body.neu .fmbtn.rem { color: #8a5a00; }
body.neu .fmchip.on { background: var(--brand); color: #fff; } body.neu .fmlim.over { color: #c2405f; }
body.light .fmic svg { stroke: #1d9a74; } body.light .fmbill.due .fmic svg { stroke: #b07400; } body.light .fmbill.late .fmic svg { stroke: #c2405f; }
body.light .fmbill.late .fmbt small, body.light .fmlim.over { color: #c2405f; } body.light .fmbtn.rem { color: #8a5a00; }

/* «Вопрос — ответ» и курсы (#sh-learn, 28.10) — как в студии компьютера: плитки разделов, статья, урок дня */
#sh-learn .tabs { position: sticky; top: -8px; z-index: 2; padding-top: 6px; margin: 0 -2px 14px; background: inherit; }
.ln-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 16px; background: var(--field);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25); margin-bottom: 14px; }
.ln-search svg { width: 19px; height: 19px; color: var(--dim); flex: none; }
.ln-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; }
.ln-search input::placeholder { color: var(--dim); }
.ln-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ln-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; min-height: 118px; border-radius: 18px; text-align: left;
  background: var(--frost); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.ln-tile:active { transform: scale(.98); }
.ln-tile i, .ln-lh i, .ln-oc i, .ln-card > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; flex: none;
  background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); color: var(--c, var(--accent)); }
.ln-tile i svg, .ln-lh i svg, .ln-oc i svg, .ln-card > i svg { width: 22px; height: 22px; }
.ln-tile b { margin-top: 6px; font-size: 14.5px; line-height: 1.25; }
.ln-tile small { color: var(--muted); font-size: 12.5px; }
.ln-back { margin: -4px 0 10px; }
.ln-back .lnk { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; padding: 6px 4px; }
.ln-back svg { width: 18px; height: 18px; }
#sh-learn .ln-gh { margin: 18px 4px 10px; }
.ln-cnt { color: var(--muted); font-size: 13px; margin: 0 4px 10px; }
.ln-rows { display: flex; flex-direction: column; padding: 6px; }
.ln-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 10px; border-radius: 12px; text-align: left; width: 100%; }
.ln-row + .ln-row { border-top: 1px solid var(--glass-line); border-radius: 0; }
.ln-row:active { background: var(--frost); }
.ln-row b { font-weight: 600; font-size: 15px; } .ln-row small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ln-art { padding: 0 4px; }
.ln-meta { color: var(--dim); font-size: 12px; }
#sh-learn .ln-art h3 { font: 600 18px/1.3 "Unbounded", "Manrope", sans-serif; margin: 6px 0 8px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.ln-lead { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.ln-pc { font-size: 13px; color: var(--muted); background: var(--frost); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.ln-art h4 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ln-how, .ln-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; line-height: 1.5; }
.ln-tips { color: var(--muted); }
.ln-says { display: flex; flex-direction: column; gap: 8px; }
.ln-try { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--frost); text-align: left; }
.ln-try span { flex: 1; font-weight: 600; }
.ln-try svg, .ln-step .go, .ln-oc .go { width: 18px; height: 18px; flex: none; color: var(--accent); }
.ln-try:active, .ln-step:active { background: var(--frost-hi); }
.ln-acts { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0 6px; }
.ln-acts .lnk { color: var(--muted); font-size: 13.5px; padding: 6px; }
.ln-hero { padding: 16px; }
.ln-ht { display: flex; align-items: center; gap: 10px; }
.ln-ht div { flex: 1; } .ln-ht b { display: block; font: 600 17px/1.3 "Unbounded", "Manrope", sans-serif; } .ln-ht small { color: var(--muted); font-size: 12.5px; }
.ln-ht em { font-style: normal; font: 600 20px "Unbounded", sans-serif; color: var(--accent); }
.ln-bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; margin: 12px 0; }
.ln-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.ln-days { display: flex; gap: 6px; }
.ln-d { flex: 1; display: grid; place-items: center; height: 32px; border-radius: 10px; font-style: normal; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--dim); }
.ln-d svg { width: 16px; height: 16px; stroke-width: 2.4; }
.ln-d.done { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }
.ln-d.today { background: var(--brand); color: #fff; }
.ln-lesson { padding: 16px; }
.ln-lh { display: flex; align-items: center; gap: 12px; }
.ln-lh small { color: var(--muted); font-size: 12px; } .ln-lh b { display: block; font-size: 17px; line-height: 1.3; }
.ln-intro { margin: 12px 0; line-height: 1.55; color: var(--ink); }
.ln-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ln-step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); text-align: left; }
.ln-step > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-style: normal; font-weight: 700; font-size: 13px;
  box-shadow: inset 0 0 0 1.5px var(--frost-hi); color: var(--muted); }
.ln-step > i svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ln-step span { flex: 1; min-width: 0; } .ln-step b { display: block; font-weight: 600; line-height: 1.35; } .ln-step small { color: var(--muted); font-size: 12.5px; }
.ln-steps li.ok .ln-step { opacity: .72; }
.ln-steps li.ok .ln-step > i { background: var(--good); box-shadow: none; color: #0a0a0f; }
.ln-steps li.ok b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.ln-lesson .hint { margin: 12px 2px 0; }
.ln-lesson.wait .btn { margin-top: 10px; }
.ln-next { display: block; margin: 10px 2px 0; color: var(--dim); font-size: 12.5px; }
.ln-fin b { font-size: 16px; } .ln-fin .btn { margin-top: 8px; }
.ln-oc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.ln-oc span { flex: 1; min-width: 0; } .ln-oc b { display: block; } .ln-oc small { color: var(--muted); font-size: 12.5px; }
.ln-oc .ln-bar { margin: 8px 0 0; height: 4px; }
.ln-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--frost); text-align: left; }
.ln-card > div:not(.ln-cb) { flex: 1; min-width: 0; }
.ln-card small { color: var(--muted); font-size: 12px; } .ln-card b { display: block; font-size: 15.5px; } .ln-card span { color: var(--muted); font-size: 13px; }
.ln-cb { display: flex; gap: 8px; width: 100%; } .ln-cb .btn { flex: 1; padding: 10px 12px; }
body.light .ln-tile i, body.light .ln-lh i, body.light .ln-oc i, body.light .ln-card > i { color: color-mix(in srgb, var(--c, var(--accent)) 70%, #000); }
body.light .ln-d.done { color: #12704F; }

/* детский режим (#sh-kids, #sh-kpin, body.kids, 28.10): взрослые кнопки спрятаны, настройки — за PIN */
body.kids #b-close, body.kids #b-soul, body.kids #b-work { display: none !important; }
.kd-st { display: flex; align-items: center; gap: 12px; }
.kd-st > i { width: 52px; height: 52px; border-radius: 50%; flex: none; background: #8A6BD8 center / cover no-repeat; box-shadow: 0 0 0 3px color-mix(in srgb, #8A6BD8 35%, transparent); }
.kd-st b { display: block; font-size: 15.5px; line-height: 1.3; } .kd-st small { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: block; margin-top: 2px; }
.kd-on .ln-bar { margin: 12px 0 2px; }
.kd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kd-chip { padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--frost-hi); }
.kd-chip.on { background: color-mix(in srgb, #8A6BD8 26%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, #8A6BD8 60%, transparent); }
.kd-chip.on::before { content: "✓ "; }
.kd-rep { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.kd-q { display: flex; gap: 10px; padding: 7px 2px; font-size: 14px; line-height: 1.4; border-bottom: 1px solid var(--glass-line); }
.kd-q:last-of-type { border-bottom: 0; }
.kd-q span { color: var(--dim); font-size: 12.5px; flex: none; padding-top: 1px; }
.kd-q.off { color: var(--bad); } .kd-q.off span { color: var(--bad); }
.kd-offn { margin: 8px 2px 0 !important; }
#sh-kids .btn.w + .btn.w { margin-top: 8px; }

/* «Работа» (#sh-work, work.js, 0.55): поручения руководителя — отдельно от личного. Портфель сверху — только когда есть
   работа; точка — новое. Карточка поручения: полоса слева по состоянию, срок (просрочено — красным), кнопки по месту. */
#b-work { position: relative; }
#b-work[hidden] { display: none; }
#b-work .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #F2B544; box-shadow: 0 0 8px #F2B544; display: none; }
#b-work.has .dot { display: block; }
#sh-work { --wk-new: var(--brand); --wk-work: #3FA7D6; --wk-moved: #E0A23B; --wk-done: var(--good); }
.wk-tabs { display: flex; width: 100%; margin: 2px 0 12px; overflow-x: auto; }
.wk-tabs button { flex: 1 0 auto; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.wk-tabs button.on { background: var(--frost-hi); color: var(--ink); font-weight: 600; }
.wk-head { padding: 2px 4px 12px; }
.wk-head b { display: block; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.wk-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.wk-feed { margin: 0 0 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wk-feed p { margin: 0; max-width: 88%; padding: 10px 13px 8px; border-radius: 4px 16px 16px 16px; background: var(--frost-hi); box-shadow: 0 6px 18px -14px rgba(0,0,0,.6); font-size: 14.5px; line-height: 1.45; white-space: pre-line; }
.wk-feed p.out { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: color-mix(in srgb, var(--brand) 22%, var(--frost)); }
.wk-feed time { display: block; margin-top: 3px; font-size: 11.5px; color: var(--dim); }
.wk-feed .lnk { margin: 0 4px; padding: 2px 0; font-size: 13px; color: var(--accent); font-weight: 600; }
.wk-sec { display: flex; align-items: baseline; gap: 8px; margin: 18px 4px 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.wk-sec em { font-style: normal; font-weight: 500; color: var(--dim); font-size: 13px; }
.wk-task { position: relative; padding-left: 20px; }
.wk-task::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--wk-new); }
.wk-task.s-work::before { background: var(--wk-work); } .wk-task.s-moved::before { background: var(--wk-moved); }
.wk-task.s-done::before, .wk-task.s-ok::before { background: var(--wk-done); }
.wk-task.late::before { background: var(--bad); }
.wk-task > b { display: block; font-size: 15.5px; line-height: 1.35; }
.wk-task.s-done > b, .wk-task.s-ok > b { color: var(--muted); }
.wk-due { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.wk-due.late { color: var(--bad); font-weight: 600; }
.wk-note { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.wk-remark { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; background: color-mix(in srgb, var(--wk-moved) 16%, transparent); }
.wk-okd { margin: 6px 0 0; font-size: 13px; color: var(--good); font-weight: 600; }
.wk-acts { display: flex; gap: 8px; margin-top: 12px; }
.wk-acts .btn { flex: 1; padding: 10px 8px; min-width: 0; }
.wk-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.wk-form textarea, .wk-msg textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--field); line-height: 1.4; outline: none; -webkit-appearance: none; appearance: none; }
.wk-form .f { margin: 0; }
.wk-ph { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; }
.wk-ph svg, #wk-scan svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wk-thumb { display: block; max-width: 100%; max-height: 180px; border-radius: 12px; margin-top: 4px; object-fit: cover; }
.wk-thumb[hidden] { display: none; }
.wk-msg { display: flex; flex-direction: column; gap: 8px; }
.wk-reps p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--glass-line); }
.wk-reps p:last-child { border-bottom: 0; } .wk-reps span { color: var(--muted); font-size: 13px; text-align: right; }
#sh-work .wk-leave { margin-top: 18px; color: var(--bad); }
.wk-foot { margin-top: 12px !important; text-align: center; }
.wk-none b { display: block; }
.wk-hero { text-align: center; padding: 14px 10px 18px; }
.wk-hero svg { width: 54px; height: 54px; fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wk-hero b { display: block; margin-top: 8px; font-size: 18px; line-height: 1.3; }
.wk-hero small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.wk-hero.join b { font-size: 24px; margin-top: 2px; }
.wk-hero p { margin: 8px auto 0; max-width: 34ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
#wk-scan { display: flex; align-items: center; justify-content: center; gap: 8px; }
.wk-paste { margin-top: 12px; }
.wk-terms p { margin: 0; padding: 5px 0; font-size: 14px; line-height: 1.45; }
/* «Сотрудники» — вы руководитель (boss.js): доска с компьютера, команды отсюда */
.bs-head .bs-src { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.bs-head .lnk { padding: 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.bs-seg { display: flex; width: 100%; box-sizing: border-box; margin: 2px 0 14px; }
.bs-seg button { flex: 1; padding: 9px 10px; }
.bs-seg em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--dim); margin-left: 2px; }
.bs-seg button.on em { color: var(--muted); }
.bs-new { margin-bottom: 4px; }
.bs-task { padding-top: 12px; padding-bottom: 12px; }
.bs-tap { display: block; width: 100%; padding: 2px 0; margin: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.bs-tap b { display: block; font-size: 15.5px; line-height: 1.35; }
.bs-task.s-ok .bs-tap b { color: var(--muted); }
.bs-tap .wk-due { display: flex; align-items: center; gap: 7px; }
.bs-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.bs-task.open { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent), 0 8px 24px -18px rgba(0,0,0,.9); }
.bs-task .wk-acts .btn { padding: 10px 6px; font-size: 14px; }
.bs-task .bs-del { color: var(--bad); }
.bs-rep { color: var(--ink) !important; }
.bs-wait { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.bs-wait::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--wk-work); animation: bsPulse 1.4s ease-in-out infinite; }
@keyframes bsPulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bs-wait::before { animation: none; } }
.bs-pend { opacity: .85; }
.bs-oks { width: calc(100% - 8px); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.bs-oks i { margin-left: auto; font-style: normal; font-size: 13px; color: var(--accent); }
.bs-form { display: flex; flex-direction: column; gap: 10px; }
.bs-form .f { margin: 0; }
.bs-form textarea { resize: vertical; min-height: 58px; }
.bs-ft { font-size: 16px; }
.bs-chips { display: flex; gap: 6px; margin-top: -2px; }
.bs-chip { flex: 1 1 auto; min-width: 0; padding: 8px 6px; white-space: nowrap; border-radius: 999px; font-size: 13px; background: var(--field); color: var(--muted); }
.bs-chip.on { background: var(--brand); color: #fff; }
.bs-feed p b { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.bs-feed p span { display: block; }
.bs-feed p.pend { opacity: .7; }
.bs-feed .lnk { display: block; margin: 4px 0 0; padding: 2px 0; }
#work-body select { padding-right: 40px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 18px !important; }
.bs-msg select { width: 100%; padding: 11px 14px; border-radius: 14px; border: 0; background: var(--field); color: var(--ink); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
/* портфель — седьмой значок: на узком экране значки чуть меньше, у персонажа — только лицо (имя не режется до «Л…») */
@media (max-width: 440px) {
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) { gap: 3px; }
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) .ib { width: 38px; height: 38px; }
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) .who { padding-right: 5px; }
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) .who span, #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) .who svg { display: none; }
}
@media (max-width: 370px) {
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) { gap: 2px; }
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) .ib { width: 36px; height: 36px; }
}
@media (max-width: 340px) {
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) { gap: 1px; padding-left: 8px; padding-right: 8px; }
  #top:has(#b-work:not([hidden])):has(#b-play:not([hidden])) .ib { width: 34px; height: 34px; }
}
/* «Устройства» (devices.js, 0.56): это устройство, код и QR, ввести код, все устройства с состоянием */
.dvme .row2 { margin-top: 4px; }
.dvways { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 20px; background: var(--field); margin: 0 0 8px; }
.dvways button { display: flex; align-items: center; gap: 9px; border: 0; background: none; color: var(--muted, #9aa0b4); padding: 9px 10px; border-radius: 15px; font: inherit; text-align: left; min-width: 0; }
.dvways button svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dvways button span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dvways button b { font-size: 14px; font-weight: 600; color: var(--ink, #fff); } .dvways button small { font-size: 11.5px; }
.dvways button.on { background: var(--glass, rgba(255,255,255,.08)); color: #8b8cf7; box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.dvways button[data-way="home"].on { color: #4be3a1; }
.dvwnote { margin: 0 4px 10px; }
.dvhome.on { box-shadow: inset 0 0 0 1px rgba(75,227,161,.35); }
.dvhome.on b { font-size: 16px; }
.dvhome .row2 > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dvname { flex: 1; min-width: 0; font-family: "Unbounded", "Manrope", sans-serif; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.dvcode { text-align: center; margin: 0 0 12px; }
.dvcode[hidden] { display: none; }
.dvqr { width: 200px; height: 200px; margin: 0 auto 10px; border-radius: 16px; background: #fff; padding: 10px; box-sizing: border-box; }
.dvqr.seal { padding: 0; background: none; border-radius: 7%; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.dvqr svg { width: 100%; height: 100%; display: block; stroke: none; }       /* общее «svg» рисует контуры — печати и QR они ни к чему */
.dvdig { display: block; font-family: "Unbounded", "Manrope", sans-serif; font-size: 34px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dvlist { padding: 6px 12px; }
.dvr { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--glass-line); }
.dvr:last-child { border-bottom: 0; }
.dvi { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--field); }
.dvi svg { width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dvr.on .dvi svg { stroke: var(--good); }
.dvt { flex: 1; min-width: 0; }
.dvt b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.dvt b em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.dvt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dvt small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); margin: 0 5px 1px 0; vertical-align: middle; }
.dvr.on .dvt small i { background: var(--good); box-shadow: 0 0 6px var(--good); }
.dvr .lnk { color: var(--muted); font-size: 13px; padding: 6px 4px; }
.dvin { background: var(--field); border: 0; border-radius: 14px; padding: 10px 12px; color: var(--ink); font: inherit; outline: none; box-shadow: inset 0 0 0 1px var(--frost-hi); }
.dvin:focus { box-shadow: inset 0 0 0 2px var(--accent); }
/* «Идеи Элис» (ideas.js, 0.59): тёплая лампочка; голос — янтарная плашка слева */
.idcard .row2 { align-items: center; gap: 12px; }
.idbulb { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255,207,110,.32), rgba(255,207,110,.06)); }
.idbulb svg, .idq svg { width: 22px; height: 22px; fill: none; stroke: #f2a93b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.idq { display: flex; align-items: center; gap: 10px; padding: 2px 4px 2px 12px; border-radius: 16px; background: var(--field); }
.idq input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 12px 4px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.idfind, #idbody { width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--field); outline: none; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
#idbody { resize: vertical; }
body.neu :is(.idfind, #idbody, .idq) { background: var(--glass); box-shadow: var(--press); }
.idnew #idsend { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.idnew #idsend[hidden] { display: none; }
.idtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--field); margin: 14px 0 8px; }
.idtabs button { border: 0; background: none; color: var(--muted, #9aa0b4); font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 4px; border-radius: 12px; }
.idtabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-width: 0; }
.idtabs button span { overflow: hidden; text-overflow: ellipsis; }
.idtabs button b { color: inherit; font-size: 11px; font-weight: 800; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: rgba(127,127,140,.16); }
.idtabs button.on { background: var(--glass, rgba(255,255,255,.08)); color: var(--ink, #fff); } .idtabs button.on b { color: #3a2405; background: linear-gradient(160deg, #ffcf6e, #f2a93b); }
/* 28.10 (владелец: «идеи на телефоне некрасиво»): поле идеи — без карточки вокруг (было поле в поле), вкладки в одну
   строку с числом-пилюлей, идеи — карточками с выпуклой кнопкой голоса (в неоморфизме кнопка была невидимой) */
.idnew { margin: 4px 0 6px; }
body.neu .idtabs { background: var(--glass); box-shadow: var(--press); }
body.neu .idtabs button.on { box-shadow: var(--raise-s); }
body.neu .idi { background: var(--glass); box-shadow: var(--raise-s); margin-bottom: 12px; }
body.neu .idv { background: var(--glass); box-shadow: var(--raise-s); }
body.neu .idv[aria-pressed="true"] { background: linear-gradient(160deg, #ffcf6e, #f2a93b); box-shadow: var(--raise-s); }
.idfind { margin: 0 0 10px; }
.idi { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; background: var(--glass, rgba(255,255,255,.06)); margin: 0 0 8px; }
.idv { width: 50px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 7px 0 6px; border: 0; border-radius: 14px; background: var(--field); color: var(--muted, #9aa0b4); font: inherit; }
.idv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.idv b { font-size: 15px; color: var(--ink, #fff); font-variant-numeric: tabular-nums; }
.idv[aria-pressed="true"] { background: linear-gradient(160deg, #ffcf6e, #f2a93b); color: #3a2405; } .idv[aria-pressed="true"] b { color: #3a2405; } .idv[aria-pressed="true"] svg { fill: #3a2405; }
.idv:disabled { opacity: .7; }
.idt { flex: 1; min-width: 0; } .idt > b { font-size: 15px; line-height: 1.35; display: block; overflow-wrap: anywhere; }
.idt p { margin: 5px 0 0; font-size: 13.5px; color: var(--muted, #9aa0b4); line-height: 1.45; }
.idt p.idr { color: var(--ink, #fff); background: var(--field); padding: 7px 10px; border-radius: 10px; }
.iddel { margin-top: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.idcs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .idcs:empty { display: none; }
.idc { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(127,127,140,.18); color: var(--muted, #9aa0b4); }
.idc.ok { background: rgba(75,227,161,.16); color: #4be3a1; } .idc.new { background: rgba(242,169,59,.2); color: #f2a93b; } .idc.me { background: rgba(139,140,247,.2); color: #a9a9ff; }
/* Настройки — меню (0.60): строки с иконкой и тем, что выбрано; страница раздела — со стрелкой «назад» */
.setmenu { padding: 4px 6px; }
.setrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; border-radius: 14px; }
.setrow + .setrow { border-top: 1px solid var(--glass-line, rgba(127,127,140,.14)); border-radius: 0; }
.setrow:active { background: var(--field); }
.setrow .si { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--field); color: #8b8cf7; }
.setrow .si svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.setrow .s-brain, .setrow .s-voice, .setrow .s-devices { color: #8b8cf7; }
.setrow .s-look, .setrow .s-sound, .setrow .s-widget, .setrow .s-lite { color: #e98ab8; }
.setrow .s-features, .setrow .s-smart, .setrow .s-telegram, .setrow .s-assist, .setrow .s-hands { color: #4fb8e8; }
.setrow .s-bug, .setrow .s-perms, .setrow .s-privacy, .setrow .s-about { color: #4be3a1; }
.setrow .s-ideas { color: #f2a93b; }
.setrow .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.setrow .st b { font-size: 15px; font-weight: 600; }
.setrow .st small { font-size: 12.5px; color: var(--muted, #9aa0b4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setrow .st small.warn { color: #ffb86b; }
.setrow .chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted, #9aa0b4); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
#sh-set.sub > h2 { display: none; }
.sethd { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; min-height: 44px; }
.sethd h2 { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.setback { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--field); color: inherit; border-radius: 13px; flex: none; padding: 0; }
.setback svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* «Всё» (0.60): плитки в листе — как «Главная» на компьютере */
#b-play.moved, #b-soul.moved { display: none !important; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 6px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border: 0; border-radius: 20px; background: var(--glass, rgba(255,255,255,.06)); color: inherit; font: inherit; text-align: center; min-width: 0; }
.app:active { transform: scale(.97); }
.app .ai { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 4px; color: #fff; background: linear-gradient(140deg, #8b8cf7, #6d5ce8); box-shadow: 0 8px 18px -10px rgba(109,92,232,.9); }
.app .ai svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app b { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.app small { font-size: 11.5px; color: var(--muted, #9aa0b4); line-height: 1.25; }
.a-play .ai { background: linear-gradient(140deg, #ff9fb6, #e8678f); box-shadow: 0 8px 18px -10px rgba(232,103,143,.9); }
.a-soul .ai { background: linear-gradient(140deg, #b9a6ff, #8b6cf0); }
.a-work .ai { background: linear-gradient(140deg, #7fc8f8, #3d8fd6); box-shadow: 0 8px 18px -10px rgba(61,143,214,.9); }
.a-ideas .ai { background: linear-gradient(140deg, #ffcf6e, #f2a93b); box-shadow: 0 8px 18px -10px rgba(242,169,59,.9); }
.a-tricks .ai { background: linear-gradient(140deg, #ffd27a, #ff9f5a); }
.a-course .ai, .a-qa .ai { background: linear-gradient(140deg, #7ee2c0, #2fb488); box-shadow: 0 8px 18px -10px rgba(47,180,136,.9); }
.a-kids .ai { background: linear-gradient(140deg, #ffc2a3, #f08a5d); }
.a-news .ai { background: linear-gradient(140deg, #a8e1ff, #6aa8ff); }
.nwidea { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 16px; background: rgba(242,169,59,.14); }
.nwidea > span { font-size: 18px; flex: none; } .nwidea p { margin: 0; flex: 1; font-size: 13px; line-height: 1.4; } .nwidea .btn { flex: none; }

/* «Группы своих» в «Близких» (groups.js, 0.61): строка группы — стопка лиц; мастер «Новая группа» — выбор близких */
.grhead { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; }
.grhead h3 { margin: 0; }
.grhead .btn { display: inline-flex; align-items: center; gap: 6px; }
.grhead .btn svg, .clh .ib svg.gric { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grnone { margin: 0 4px 6px; }
.grstack { flex: none; display: flex; align-items: center; }
.grstack { --ring: rgba(22,23,34,.95); }
body.light .grstack, body.neu .grstack { --ring: rgba(255,255,255,.92); }
.grstack .clava { width: 36px; height: 36px; font-size: 14px; box-shadow: 0 0 0 2px var(--ring); }
.grstack .clava + .clava { margin-left: -12px; }
.grstack .clava.more { background: var(--frost-hi); color: var(--ink); font: 700 11px Manrope, sans-serif; }
.clp.grp .grstack { width: 60px; }
.clh .grstack .clava { width: 30px; height: 30px; font-size: 12px; }
.grtitle { flex: 1; min-width: 0; text-align: left; background: none; padding: 0; color: inherit; }
.grtitle small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grwho { font-size: 12.5px; font-weight: 700; margin-bottom: -2px; }
.grname { width: 100%; box-sizing: border-box; padding: 13px 15px; border-radius: 14px; border: 0; background: var(--frost); box-shadow: inset 0 0 0 1.5px var(--frost-hi); color: var(--ink); font: inherit; font-size: 16px; }
.grname:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.row2 .grname { flex: 1; width: auto; }
.grpick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.grpk { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px; background: var(--frost); cursor: pointer; }
.grpk input { position: absolute; opacity: 0; pointer-events: none; }
.grpk span { flex: 1; min-width: 0; font-size: 15px; }
.grck { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--frost-hi); flex: none; position: relative; }
.grpk.on .grck { background: var(--brand); box-shadow: none; }
.grpk.on .grck::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.grpk input:focus-visible + .clava { outline: 2px solid var(--brand); outline-offset: 2px; }
.clp.me { background: none; box-shadow: inset 0 0 0 1px var(--frost-hi); }
body #sh-close .btn#gr-leave { color: #d93d42; } body:not(.light):not(.neu) #sh-close .btn#gr-leave { color: #ff8a8a; }

/* Фото в «Близких» (album.js, 0.61): картинкой в переписке, на весь экран, альбом, «Переслать» */
.clph { display: block; padding: 0; border-radius: 13px; overflow: hidden; background: rgba(127,127,140,.18); min-width: 120px; min-height: 90px; max-width: 240px; }
.clph img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.clph.wait { width: 200px; height: 150px; background: linear-gradient(100deg, rgba(127,127,140,.14) 30%, rgba(127,127,140,.28) 50%, rgba(127,127,140,.14) 70%) 0 0 / 300% 100%; animation: clph-w 1.4s linear infinite; }
@keyframes clph-w { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .clph.wait { animation: none; } }
.clph.bad { display: flex; align-items: center; gap: 8px; padding: 10px; min-height: 0; font-size: 13px; } .clph.bad svg { width: 18px; height: 18px; flex: none; }
.clview, .clfwd { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #0c0d13; color: #fff; padding: calc(10px + var(--safe-t, 0px)) 14px calc(14px + var(--safe-b, 0px)); }
.clv-top { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.clv-top span { flex: 1; min-width: 0; } .clv-top b { display: block; font-size: 16px; } .clv-top small { display: block; font-size: 12.5px; opacity: .7; }
body .clview .ib.soft, body .clview .cla-f .ib { color: #fff; background: rgba(255,255,255,.12); box-shadow: none; }
.clview .ib svg, .clfwd .ib svg, .clv-acts svg, .cla-f svg, .clph svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clv-img { flex: 1; min-height: 0; display: grid; place-items: center; }
.clv-img img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.clv-acts { display: flex; gap: 10px; padding-top: 12px; }
.clv-acts .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .clv-acts svg { width: 19px; height: 19px; }
body .clview .clv-acts .btn:not(.p) { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.cla-body { flex: 1; overflow-y: auto; margin: 6px -4px 0; padding: 0 4px; }
.cla-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.cla-grid .clph { max-width: none; min-width: 0; min-height: 0; width: auto; height: auto; aspect-ratio: 1; border-radius: 0; }
.cla-grid .clph img { width: 100%; height: 100%; max-height: none; }
.clalbum h3 { color: rgba(255,255,255,.7); margin: 18px 2px 8px; }
.cla-f { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); margin-bottom: 6px; }
.cla-f > svg { width: 22px; height: 22px; flex: none; opacity: .8; } .cla-f span { flex: 1; min-width: 0; }
.cla-f b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cla-f small { opacity: .65; font-size: 12px; }
.cla-f .ib { width: 38px; height: 38px; flex: none; color: #fff; background: rgba(255,255,255,.1); } .cla-f .ib svg { width: 18px; height: 18px; }
.clfwd { justify-content: flex-end; background: rgba(8,9,14,.6); padding: 0; }
.clfwd-card { background: linear-gradient(#1e1e26, #15151b); color: var(--ink); border-radius: 26px 26px 0 0; padding: 14px 16px calc(18px + var(--safe-b, 0px)); max-height: calc(75vh / var(--vzt)); display: flex; flex-direction: column; }
body.light .clfwd-card, body.neu.light .clfwd-card { background: #f4f6fb; }
.clfwd-card .clv-top small { color: var(--muted); opacity: 1; }
.clfwd-list { overflow-y: auto; margin-top: 8px; }
.clfwd-list .clp { width: 100%; } .clfwd-list .clp.busy { opacity: .6; }
.clrepick .fw svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clfwd-card .ib.soft { flex: none; }
.clh > div[style*="flex:1"] b, .clh > div[style*="flex:1"] small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 28.10 (владелец: «Миша — надписи не помещаются»): подпись под именем — строкой с многоточием, а не под кнопками;
   кнопки звонка, видео и альбома — плотнее */
.clh { gap: 8px; } .clh > .ib.soft:not(#cl-back) { width: 40px; height: 40px; flex: none; } .clh > .ib.soft:not(#cl-back) svg { width: 19px; height: 19px; }
body .clview .cla-wipe { margin-top: 22px; background: rgba(255,255,255,.08); color: #ff9a9a; box-shadow: none; }
.grrem { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 9px; background: rgba(255,255,255,.14); }
.clm:not(.out) .grrem { background: rgba(127,127,140,.16); }

/* «Мой месяц» на телефоне (0.61): «Всё» → «Мой месяц» */
.a-month .ai { background: linear-gradient(140deg, #8fe0c4, #2fb7a0); box-shadow: 0 8px 18px -10px rgba(47,183,160,.9); }
.mon-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.mon-nav b { flex: 1; text-align: center; font-size: 17px; }
.mon-nav .ib[disabled] { opacity: .35; }
.mon-sts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.mon-sts > div { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 18px; background: var(--frost); }
.mon-sts b { font-size: 34px; font-weight: 300; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mon-sts span { font-size: 13.5px; font-weight: 600; } .mon-sts small { color: var(--muted); font-size: 12px; }
#sh-month h3 { margin: 16px 2px 8px; }
.mon-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mon-cal u { text-decoration: none; text-align: center; color: var(--muted); font-size: 11.5px; }
.mon-cal i { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mon-cal .lv0 { background: rgba(127,127,140,.12); }
.mon-cal .lv1 { background: color-mix(in srgb, var(--accent, #7c84f0) 30%, transparent); color: var(--ink); }
.mon-cal .lv2 { background: color-mix(in srgb, var(--accent, #7c84f0) 55%, transparent); color: #fff; }
.mon-cal .lv3 { background: color-mix(in srgb, var(--accent, #7c84f0) 78%, transparent); color: #fff; font-weight: 700; }
.mon-cal .lv4 { background: var(--accent, #7c84f0); color: #fff; font-weight: 700; }
.mon-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mon-top li { position: relative; padding-left: 26px; font-size: 15px; }
.mon-top li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 11px; height: 6px; border: solid #3fc48a; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.mon-bar { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.mon-cats { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mon-cats li { display: flex; align-items: center; gap: 8px; } .mon-cats b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mon-cats li > i { width: 10px; height: 10px; border-radius: 3px; }
#sh-month .c0 { background: #6a6cf0; } #sh-month .c1 { background: #f2a93b; } #sh-month .c2 { background: #2fb7a0; } #sh-month .c3 { background: #e0708e; } #sh-month .c4 { background: #5aa6e8; } #sh-month .co { background: #9aa3b5; }

/* «Для старших» на телефоне (senior.js, 0.62): крупнее и проще */
body.senior { zoom: 1.12; }
.a-senior .ai { background: linear-gradient(140deg, #ffb3c7, #ff6f91); box-shadow: 0 8px 18px -10px rgba(255,111,145,.9); }
.srmed { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--frost-hi); }
.srmed span { flex: 1; min-width: 0; } .srmed b { display: block; font-size: 15px; } .srmed small { color: var(--muted); font-size: 12.5px; }
.srck { width: 58px; padding: 3px 6px; border-radius: 8px; border: 0; background: var(--frost); color: var(--ink); font: inherit; font-size: 13px; text-align: center; }
#sh-senior h3 { margin: 18px 2px 8px; }
.row2 .grname { min-width: 0; }
.srmed em { display: block; font-style: normal; font-size: 12.5px; color: #e5a43a; margin-top: 2px; } .srmed em.ok { color: #2fb67e; }
/* zoom умножает и vh: высоты листов делятся на общий коэффициент --vzt (системный шрифт × «Для старших», №813) */
:root { --vz: 1; --vzt: var(--vz); } body { --vzt: var(--vz); } body.senior { --vzt: calc(var(--vz) * 1.12); }

/* Смайлы картинками (emoji/emoji.js, Fluent Emoji): в тексте — размером с букву, «только смайлы» — крупно */
img.emj { width: 1.3em; height: 1.3em; vertical-align: -0.3em; margin: 0 .03em; object-fit: contain; }
.clm.emo > div:first-child img.emj { width: 1.15em; height: 1.15em; vertical-align: -0.15em; }
.clrx img.emj { width: 18px; height: 18px; vertical-align: -4px; }
.clrepick .emos img.emj { width: 28px; height: 28px; vertical-align: middle; }
/* выбор смайла: поиск, разделы значками, сетка картинок */
.clemo.emo-pick { display: flex; flex-direction: column; gap: 6px; }
.clemo.emo-pick[hidden] { display: none; }
.emo-pick button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
.emo-q { width: 100%; height: 38px; border: 0; border-radius: 999px; padding: 0 16px; font: inherit; font-size: 15px; background: var(--field); color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
body.neu .emo-q { box-shadow: var(--press); }
.emo-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.emo-tabs::-webkit-scrollbar { display: none; }
.emo-tabs button { flex: none; width: 40px; height: 36px; border-radius: 12px; display: grid; place-items: center; opacity: .5; }
.emo-tabs button[aria-selected="true"] { opacity: 1; background: rgba(127,127,140,.18); }
.emo-tabs img.emj { width: 24px; height: 24px; vertical-align: 0; margin: 0; }
.emo-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); max-height: 200px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.emo-g button { height: 46px; border-radius: 12px; display: grid; place-items: center; }
.emo-g button:active { background: rgba(127,127,140,.2); transform: scale(1.1); }
.emo-g img.emj { width: 34px; height: 34px; vertical-align: 0; margin: 0; }
.emo-none { grid-column: 1 / -1; margin: 10px 4px; font-size: 14px; color: var(--muted, #9aa0b4); }

/* приглашение в общий бюджет — карточкой в переписке (28.10, владелец: «на телефоне не найти, как принять») */
.famask { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; padding: 12px 14px; }
.famask small { color: var(--muted); font-size: 13px; line-height: 1.4; } .famask .row2 { margin-top: 8px; gap: 8px; } .famask .row2 .btn { flex: 1; }

/* «Дозор» сработал — карточка со снимком экрана компьютера */
.wcard { display: flex; flex-direction: column; gap: 2px; }
.wshot { border-radius: 14px; overflow: hidden; background: rgba(127,127,140,.12); min-height: 60px; display: grid; place-items: center; }
.wshot img { display: block; width: 100%; height: auto; cursor: zoom-in; }

/* ---------- «Радио» (radiopage.js, 0.65): что играет, поиск, жанры, плитки станций ---------- */
.a-radio .ai { background: linear-gradient(140deg, #ff9ab8, #e8507f); box-shadow: 0 8px 18px -10px rgba(232,80,127,.9); }
#rchip > b { cursor: pointer; }
#radio-body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
.rp-now { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; color: #EEF0FF;
  background: linear-gradient(135deg, #2b2540, #3b3560 60%, #4a3f7a); box-shadow: 0 16px 30px -22px rgba(40,30,80,.9); }
.rp-np { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-np small { color: #B9BDF0; font-size: 12px; font-weight: 700; }
.rp-np b { font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #FF6B8A; margin-right: 6px; vertical-align: 1px; animation: rplive 1.8s ease-out infinite; }
@keyframes rplive { 0% { box-shadow: 0 0 0 0 rgba(255,107,138,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255,107,138,0); } }
.rp-ctl { display: flex; gap: 6px; flex: none; }
.rp-ctl button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); }
.rp-ctl button:active { transform: scale(.94); }
.rp-ctl svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-ctl svg.st, .rp-ctl svg .st { fill: none; stroke-width: 3; }
#rp-pp { width: 46px; height: 46px; background: linear-gradient(160deg, #fff, #e6e3ff); color: #2b2540; }
#rp-heart svg { fill: none; stroke-width: 1.9; } #rp-heart.on { color: #FF7FA8; } #rp-heart.on svg { fill: currentColor; }
.rp-find { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; background: var(--field); box-shadow: var(--press, none); }
.rp-find svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.rp-find input, .rp-find input:focus { flex: 1; min-width: 0; height: 46px; border: 0; padding: 0; background: transparent; box-shadow: none; outline: none; color: var(--ink); font: inherit; font-size: 16px; }
.rp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.rp-chips::-webkit-scrollbar { display: none; }
.rp-chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--frost); color: var(--ink); font-size: 14px; box-shadow: var(--raise-s, none); }
.rp-chip.on { background: var(--brand); color: #fff; }
#radio-body .rp-h { margin: 6px 2px 0; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-t { position: relative; min-width: 0; }
.rp-play { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 18px;
  background: var(--frost); box-shadow: var(--raise-s, none); color: var(--ink); text-align: center; }
.rp-play:active .rp-logo { transform: scale(.95); }
.rp-play b { width: 100%; font-size: 13px; font-weight: 650; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.rp-play small { width: 100%; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-logo { position: relative; width: 56px; height: 56px; flex: none; margin-bottom: 6px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, hsl(var(--h) 72% 64%), hsl(calc(var(--h) + 38) 62% 44%)); transition: transform .15s; }
.rp-logo i { font-style: normal; font-weight: 800; font-size: 20px; color: rgba(255,255,255,.95); letter-spacing: -.02em; }
.rp-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; opacity: 0; transition: opacity .25s; }
.rp-logo.pic img { opacity: 1; } .rp-logo.pic i { visibility: hidden; }
.rp-logo.big { width: 54px; height: 54px; margin: 0; border-radius: 15px; }
.rp-fav { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--dim, var(--muted)); }
.rp-fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.rp-fav.on { color: #FF7FA8; } .rp-fav.on svg { fill: currentColor; }
.rp-eq { position: absolute; top: 52px; left: calc(50% + 14px); display: none; align-items: flex-end; gap: 2px; height: 18px; padding: 3px 4px; border-radius: 7px; background: var(--accent); }
.rp-eq i { width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: rpeq 1s ease-in-out infinite; }
.rp-eq i:nth-child(2) { animation-delay: -.35s; } .rp-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes rpeq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.rp-t.on .rp-play { background: color-mix(in srgb, var(--accent) 18%, var(--frost, transparent)); } .rp-t.on .rp-eq { display: flex; }
.rp-t.on.paused .rp-eq i { animation: none; transform: scaleY(.35); }
@media (prefers-reduced-motion: reduce) { .rp-eq i, .rp-live { animation: none; } }
.rp-t.sk { height: 120px; border-radius: 18px; background: var(--frost); opacity: .7; }
.rp-empty, .rp-hint { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--frost); color: var(--muted); font-size: 14px; line-height: 1.45; }
.rp-hint { background: none; padding: 4px 2px; font-size: 13px; }
body.senior .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Значок группы (0.68, groups.js): эмодзи на мягкой плашке цвета группы; выбор — без обводок: выбранный приподнят и подсвечен */
.grico { flex: none; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-style: normal;
  font: 400 22px/1 system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; background: color-mix(in srgb, var(--c, #8b7cff) 22%, transparent); }
.clp.grp .grico { margin-right: 16px; }
.clh .grico { width: 36px; height: 36px; border-radius: 12px; font-size: 18px; }
.gremos { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 2px 6px; }
.grem { width: 42px; height: 42px; border: 0; border-radius: 13px; display: grid; place-items: center; padding: 0; color: var(--ink);
  font: 400 21px/1 system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; background: var(--frost); transition: transform .15s, background .15s; }
.grem.on { background: rgba(106,108,240,.22); transform: translateY(-2px); box-shadow: 0 6px 16px -8px #6a6cf0; }
.grem0 { font: 600 13px/1 Manrope, sans-serif; color: var(--muted, #9aa); }

/* «Прослушать» под ответом (идея №58): тихая кнопка в строке подписи — без рамки, крупная мишень для пальца */
.msg small.mrow { display: flex; align-items: center; gap: 10px; }
.mlisten { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px 4px 9px; border: 0; border-radius: 99px;
  background: var(--frost); color: var(--ink); font: 600 12.5px Manrope, sans-serif; }
.mlisten svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mlisten.on { background: rgba(106,108,240,.22); }
.mlisten.on svg { fill: currentColor; stroke: none; }
/* №127: «Скопировать», «В заметки», «Скачать» у ответа в «Разговоре» — тихие круглые значки справа в той же строке */
.macts { display: inline-flex; gap: 4px; margin-left: auto; }
.macts button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 99px; display: grid; place-items: center;
  background: transparent; color: var(--dim, #9aa); }
.macts button:active { background: var(--frost); color: var(--ink); }
.macts svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nwv { margin: 16px 2px 6px; font-size: 14px; } .nwv small { color: var(--dim); font-weight: 500; margin-left: 6px; }

/* «Видеоуроки» (0.69): плитка и лист — обложки 16:9, плеер сверху */
.a-lessons .ai { background: linear-gradient(140deg, #8fb2ff, #4f6cf0); box-shadow: 0 8px 18px -10px rgba(79,108,240,.9); }
#lessons-body { display: flex; flex-direction: column; gap: 14px; }
.lsn-player { display: flex; flex-direction: column; gap: 8px; } .lsn-player[hidden] { display: none; }
.lsn-player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.lsn-player b { font-size: 15px; }
.lsn { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 20px; overflow: hidden; text-align: left; background: var(--glass, rgba(255,255,255,.06)); color: inherit; font: inherit; }
.lsn-pic { position: relative; aspect-ratio: 16 / 9; background: rgba(106,141,255,.16) center / cover no-repeat; display: grid; place-items: center; }
.lsn-pic i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,24,40,.6); color: #fff; font-style: normal; font-size: 20px; }
.lsn-pic em { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 8px; background: rgba(20,24,40,.66); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.lsn-x { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.lsn-x small { font-size: 12px; opacity: .7; } .lsn-x b { font-size: 16px; } .lsn-x span { font-size: 13px; opacity: .75; }
.lsn-empty { opacity: .75; }

/* «Сотрудники» на телефоне руководителя: фото-отчёт прямо в карточке (30.10) */
.bs-photo { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; margin: 8px 0 2px; }
.grold { font-style: normal; color: #c9822b; font-weight: 600; }

/* «по дням недели…» в правке напоминания (30.10): кнопки дней */
.rmdays { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 12px; }
.rmdays[hidden] { display: none; }
.rmd { flex: 1; min-width: 38px; height: 38px; border: 0; border-radius: 12px; font: 600 14px inherit; font-family: inherit; color: var(--muted, #6b7488);
  background: rgba(127,127,140,.13); cursor: pointer; }
.rmd.on { color: #fff; background: var(--accent, #6a7cf0); }
.rmd:focus-visible { outline: 2px solid var(--accent, #6a7cf0); outline-offset: 2px; }

/* «Сейф» (safe.js, 03.11): закрытый — замок и мастер-пароль; открытый — поиск, список, карточка, форма.
   Цвета — переменные темы (--frost, --field, --ink, --muted): светлые облики работают сами. */
.sheet h2 .sf-lockbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--frost); color: var(--ink); }
.sheet h2 .sf-lockbtn[hidden] { display: none; }
.sf-lockbtn svg { width: 16px; height: 16px; }
.sf-gate { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 4px 4px; }
.sf-gate > b { font: 600 18px/1.3 "Unbounded", "Manrope", sans-serif; margin: 14px 0 6px; }
.sf-gate > p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 6px 18px; max-width: 34em; }
.sf-emb { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.28), transparent 55%), var(--brand);
  box-shadow: 0 18px 40px -16px rgba(118,75,162,.95), inset 0 1px 0 rgba(255,255,255,.35); }
.sf-emb svg { width: 44px; height: 44px; stroke-width: 1.6; }
#sf-gate { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.sf-pwf, .sf-pwrow { position: relative; display: flex; align-items: center; gap: 8px; }
.sf-pwf input { flex: 1; min-width: 0; padding: 15px 52px 15px 16px; border-radius: 16px; border: 0; background: var(--field); box-shadow: inset 0 0 0 1px var(--glass-line); outline: none; font-size: 16px; letter-spacing: .02em; }
.sf-pwf input:focus, .sf-pwrow input:focus { box-shadow: 0 0 0 2px var(--accent); }
.sf-pwf .sf-ib { position: absolute; right: 6px; }
.sf-ib { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.sf-ib svg { width: 21px; height: 21px; } .sf-ib[aria-pressed="true"] { color: var(--accent); }
.sf-ib:active, .sf-item:active, .sf-add:active { transform: scale(.97); }
.sf-fine { text-align: center; margin: 14px 8px 0; font-size: 12.5px; color: var(--dim, var(--muted)); }
#sf-gate .res { text-align: center; }

.sf-bar { display: flex; gap: 8px; position: sticky; top: -8px; z-index: 1; padding: 2px 0 10px; }
.sf-find { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; background: var(--field); box-shadow: inset 0 0 0 1px var(--glass-line); }
.sf-find:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.sf-find svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.sf-find input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 13px 0; font-size: 15.5px; }
.sf-add { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--brand);
  box-shadow: 0 8px 22px -12px rgba(118,75,162,.9); }
.sf-add svg { width: 22px; height: 22px; stroke-width: 2.2; }
.sf-list { display: flex; flex-direction: column; gap: 6px; }
.sf-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 18px; background: var(--frost);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: transform .12s; }
.sf-item > svg { width: 18px; height: 18px; flex: none; color: var(--dim, var(--muted)); }
.sf-mono { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; font: 700 16px "Manrope", sans-serif; font-style: normal;
  color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.sf-mono svg { width: 21px; height: 21px; }
.sf-mono.big { width: 56px; height: 56px; border-radius: 18px; font-size: 21px; } .sf-mono.big svg { width: 27px; height: 27px; }
.sf-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-tx b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-tx small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-none { color: var(--muted); text-align: center; padding: 28px 12px; margin: 0; line-height: 1.5; }

.sf-back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 4px; margin: 0 0 6px -4px; color: var(--muted); font-weight: 600; font-size: 14px; }
.sf-back svg { width: 20px; height: 20px; }
.sf-ch { display: flex; align-items: center; gap: 14px; margin: 4px 2px 16px; }
.sf-ch b { font: 600 19px/1.3 "Unbounded", "Manrope", sans-serif; overflow-wrap: anywhere; }
.sf-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--frost); margin-bottom: 8px; min-height: 56px; }
.sf-row > span { width: 64px; flex: none; color: var(--muted); font-size: 13px; }
.sf-row.col { flex-direction: column; align-items: stretch; gap: 6px; } .sf-row.col > span { width: auto; }
.sf-v { flex: 1; min-width: 0; font: 600 15.5px/1.35 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; color: var(--ink);
  -webkit-user-select: text; user-select: text; }
.sf-row.pass .sf-v { font-size: 17px; letter-spacing: .06em; }
.sf-v[data-shown="0"] { letter-spacing: .14em; color: var(--muted); }
.sf-url { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: "Manrope", sans-serif; color: var(--accent); }
.sf-url svg { width: 15px; height: 15px; flex: none; }
.sf-page { margin: 0; white-space: pre-wrap; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; max-height: 46vh; overflow: auto; -webkit-user-select: text; user-select: text; }
.sf-page[data-shown="0"] { color: var(--muted); font-family: "Manrope", sans-serif; }
.sf-note { margin: 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.sf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 12px; }
.sf-acts .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; }
.sf-acts svg { width: 19px; height: 19px; }
.sf-foot { display: flex; gap: 8px; margin-top: 14px; } .sf-foot .btn { flex: 1; } .sf-foot .sf-del { color: #FFB3C3; }
.sf-form h3 { margin-top: 6px; }
.sf-form .f span i { font-style: normal; color: var(--dim, var(--muted)); }
.sf-kind { display: flex; margin: 0 0 6px; } .sf-kind button { flex: 1; }
.sf-pwrow input { flex: 1; min-width: 0; }
.sf-pwrow .sf-gen { padding: 12px 12px; font-size: 13.5px; }
.sf-form .btn.w { margin-top: 12px; }
.f .sf-pwrow { display: flex; margin: 0; font-size: inherit; color: inherit; }
/* №556: напоминание — время строкой-заголовком, текст во всю ширину и с пунктами; поле правки растёт */
.it.rem { align-items: flex-start; }
.it.rem .rh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.it.rem .rh .tm { min-width: 0; font-size: 15px; }
.it.rem .bd b { white-space: pre-line; line-height: 1.38; }
.it.rem .x { margin-top: 2px; }
#rem-body .rmhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 2px; }
#rem-body .rmhead label { margin: 0 4px; }
#rem-body .rmmd { margin: 0; padding: 0; overflow: visible; }
#rem-body .rmmd button { padding: 6px 12px; font-size: 13px; }
#rem-body .rmtext { display: block; width: 100%; box-sizing: border-box; min-height: 84px; resize: none; border: 0; border-radius: 14px; background: var(--field);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.45; padding: 12px 14px; margin: 6px 0 12px; outline: none; }
/* №586: отданная задача ждёт, когда компьютер возьмёт; не взял за 10 минут — спокойное предупреждение и два выхода */
.it.tksent .bd small { white-space: normal; }
.it.tksent.late .bd small { color: #FFC978; }
.it.tksent .start { margin-top: 10px; gap: 8px; }
body.light .it.tksent.late .bd small { color: #9A5B00; }
/* Идея №144: пошаговое включение «Управлять приложениями» — шаги, подсказки под ними и «Что-то не так?» */
.hguide li { margin: 0 0 10px; } .hguide small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); opacity: .9; }
.hfaq { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.hfaq summary { cursor: pointer; color: var(--accent, #8B8CF7); font-weight: 600; padding: 4px 0; }
.hfaq p { margin: 8px 0 0; line-height: 1.45; } .hfaq b { color: var(--ink); font-weight: 600; }

/* 0.87 «Напоминания вовремя» (владелец 11.11: «приходят на час позже»): состояние, что мешает — с кнопкой, шаги по марке */
#rem-health .rmst { display: flex; gap: 12px; align-items: flex-start; padding: 4px 4px 10px; }
#rem-health .rmst i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; }
#rem-health .rmst.ok i { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }
#rem-health .rmst.bad i { background: rgba(255, 201, 120, .18); color: #FFC978; }
#rem-health .rmst b { display: block; font-size: 15.5px; } #rem-health .rmst small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
#rem-health .rmiss { border-top: 1px solid color-mix(in srgb, var(--muted) 18%, transparent); }
#rem-health .rmiss .btn { flex: none; }
#rem-health .rmbrand { margin: 6px 4px 4px; } #rem-health .rmbrand ol { padding-left: 20px; margin: 8px 0 10px; color: var(--ink); }
#rem-health .rmbrand .row2 { gap: 8px; }
.rembrief .hint { margin: 6px 0 10px; }
.remlate p { margin: 0 0 10px; line-height: 1.45; }
body.light #rem-health .rmst.bad i { background: rgba(154, 91, 0, .12); color: #9A5B00; }

/* ---------- планшет (tablet.js, телефон 0.9.32; отчёты 657, 658): меню разделов слева, разделы — панелью справа ----------
   body.tab — широкий экран (от 760×560), body.tab-wide — от 1100 px (панель рядом с разговором), body.pane — открыт раздел. */
:root { --railw: 232px; --panew: min(560px, 44vw); }
#rail, .shx { display: none; }
body.tab #rail { display: flex; flex-direction: column; gap: 4px; position: fixed; z-index: 12; left: 0; top: 0; bottom: 0; width: var(--railw);
  padding: 16px 12px calc(14px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(rgba(24,24,30,.62), rgba(16,16,22,.72)); border-right: 1px solid var(--glass-line);
  backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); }
body.tab.lite-ui #rail { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,20,26,.96); }
body.tab #rail .rl-brand { font: 600 17px/1 "Unbounded", "Manrope", sans-serif; letter-spacing: .02em; color: var(--ink); padding: 10px 12px 20px; }
body.tab #rail .rl-g { display: flex; flex-direction: column; gap: 2px; }
body.tab #rail .rl-g + .rl-g { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--glass-line); }
body.tab #rail > .rl-g:last-child { margin-top: auto; }
.rl-h { margin: 0; padding: 2px 12px 4px; font: 600 11.5px/1.3 "Unbounded", "Manrope", sans-serif; letter-spacing: .02em; color: var(--muted); opacity: .8; }
.rl-n { display: block; width: 100%; margin: 2px 0 0; padding: 6px 12px 6px 45px; border: 0; border-radius: 11px; background: transparent; color: var(--muted);
  font: 500 12.5px/1.4 "Manrope", sans-serif; text-align: left; cursor: pointer; }
@media (hover: hover) { .rl-n:hover { background: var(--frost); color: var(--ink); } }
.rl-i { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 13px;
  background: transparent; color: var(--muted); font: 500 14.5px/1.25 "Manrope", sans-serif; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.rl-i svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rl-i span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-i:active { background: var(--frost); }
@media (hover: hover) { .rl-i:hover { background: var(--frost); color: var(--ink); } }
.rl-i.on { background: var(--frost-hi); color: var(--ink); font-weight: 600; }
.rl-i.on svg { color: var(--accent); }
.rl-i:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rl-i .dot { position: absolute; left: 30px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #FF7AB6; box-shadow: 0 0 8px #FF7AB6; display: none; }
.rl-i[data-k="lessons"] .dot { background: #8B8CF7; box-shadow: 0 0 8px #8B8CF7; }
.rl-i.has .dot { display: block; }
body.light.tab #rail { background: rgba(255,255,255,.62); border-right-color: rgba(20,30,60,.08); }
body.light .rl-i.on { background: #fff; box-shadow: 0 8px 20px -12px rgba(20,30,60,.35); }
body.neu.tab #rail { background: var(--glass); border-right: 0; box-shadow: 6px 0 22px -10px var(--neu-dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.neu .rl-i.on { background: var(--glass); box-shadow: var(--press); }

/* сцена, панель ввода и верхняя полоса — правее меню; кнопка «Всё» не нужна: всё в меню */
body.tab #top { left: var(--railw); }
body.tab #b-apps { display: none; }
body.tab #stage { left: var(--railw); }
body.tab #bar { left: var(--railw); padding-left: max(18px, calc((100vw - var(--railw)) / 2 - 380px)); padding-right: max(18px, calc((100vw - var(--railw)) / 2 - 380px)); }
body.tab #dim { display: none; }

/* раздел — панелью справа во всю высоту, с крестиком; планшет поуже — поверх разговора */
body.tab .sheet, body.tab .sheet.tall { top: 12px; bottom: 12px; right: 12px; left: auto; width: var(--panew); height: auto; max-height: none;
  border-radius: 24px; border: 1px solid var(--glass-line); padding: 14px 20px calc(20px + var(--safe-b));
  transform: translateX(calc(100% + 30px)); box-shadow: -24px 0 60px rgba(0,0,0,.35); }
body.tab .sheet.on { transform: none; }
body.tab .sheet:not(.on) { box-shadow: none; visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
body.tab:not(.tab-wide) .sheet, body.tab:not(.tab-wide) .sheet.tall { width: calc(100vw - var(--railw) - 24px); }
body.tab .sheet .grab { display: none; }
body.tab .shx { display: grid; place-items: center; position: sticky; top: 0; float: right; z-index: 2; width: 38px; height: 38px; margin: 0 -6px 0 10px;
  border: 0; border-radius: 50%; background: var(--frost); color: var(--ink); cursor: pointer; }
body.tab .shx svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.tab .shx:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tab .sheet h2 { margin-top: 2px; min-height: 38px; }
body.light.tab .sheet { box-shadow: -20px 0 50px rgba(20,30,60,.16); }
body.neu.tab .sheet.on { box-shadow: -10px 0 30px var(--neu-dark); }
body.tab .apps { grid-template-columns: repeat(3, 1fr); }

/* очень широкий экран: раздел рядом — разговор и панель ввода сужаются, облик над ответом */
body.tab-wide.pane #stage, body.tab-wide.pane #bar { right: calc(var(--panew) + 24px); }
body.tab-wide.pane #bar { padding-left: 18px; padding-right: 18px; }
body.tab-wide.pane #stage { display: flex; flex-direction: column; padding: 0 16px; }
body.tab-wide.pane #stage #talk { max-width: none; width: 100%; }
body.tab-wide.pane #stage #orbwrap { width: min(28vw, 30vh, 260px); }

/* ---------- «Клиенты» и «Сделки» (clients.js, 0.9.32): список, карточка, доска сделок ---------- */
#sh-clients input:not([type=range]), #sh-clients select, #sh-clients textarea { min-width: 0; padding: 11px 13px; border-radius: 13px; border: 0; background: var(--field); outline: none; }
body.neu #sh-clients input:not([type=range]), body.neu #sh-clients select, body.neu #sh-clients textarea { box-shadow: var(--press); }
body.light:not(.neu) #sh-clients input:not([type=range]), body.light:not(.neu) #sh-clients select { background: rgba(20,30,60,.06); }
#sh-clients input:focus-visible, #sh-clients select:focus-visible, #sh-clients textarea:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.cli-q { width: 100%; margin-bottom: 10px; }
.cli-list { display: flex; flex-direction: column; gap: 4px; }
.cli-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.cli-it:active { background: var(--frost); } @media (hover: hover) { .cli-it:hover { background: var(--frost); } }
.cli-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 15px "Unbounded", sans-serif; color: #fff; background: var(--brand); }
.cli-ava.big { width: 52px; height: 52px; font-size: 19px; }
.cli-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cli-tx b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-tx small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-nx { color: var(--accent) !important; } .cli-nx.late { color: var(--bad) !important; }
.cli-owe { flex: none; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255,182,92,.16); color: #FFB65C; }
body.light .cli-owe { color: #9a5200; background: rgba(255,160,40,.16); }
.cli-empty { display: flex; flex-direction: column; gap: 6px; padding: 26px 10px; text-align: center; }
.cli-empty b { font-size: 16px; } .cli-empty small { color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 420px; margin: 0 auto; }
.cli-lock { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cli-lock small { line-height: 1.5; }
.cli-back { margin: 0 0 10px; padding: 6px 2px; color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; }
.cli-head { display: flex; align-items: center; gap: 14px; }
.cli-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cli-acts .btn { white-space: normal; text-align: left; }
.cli-note { margin: 4px 4px 10px; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.cli-next, .cli-deal { display: flex; align-items: center; gap: 12px; }
.cli-next.late { box-shadow: inset 3px 0 0 var(--bad); } .cli-deal.late { box-shadow: inset 3px 0 0 var(--bad); }
.cli-deal select { flex: none; max-width: 46%; }
.cli-nform, .cli-lform { flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cli-nform input, .cli-lform input { flex: 1 1 180px; }
.cli-dform { display: flex; flex-direction: column; gap: 8px; }
.cli-dform .row2 { gap: 8px; } .cli-dform .row2 > * { flex: 1; }
.cli-log { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cli-li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 14px; background: var(--frost); }
.cli-li small { color: var(--muted); font-size: 12px; } .cli-li span { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.cli-li.k-deal { box-shadow: inset 3px 0 0 #FFB65C; } .cli-li.k-done { box-shadow: inset 3px 0 0 var(--good); } .cli-li.k-call { box-shadow: inset 3px 0 0 var(--accent); }
.cli-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cli-sum > div { padding: 12px 14px; border-radius: 16px; background: var(--frost); display: flex; flex-direction: column; gap: 2px; }
.cli-sum b { font: 600 17px/1.2 "Unbounded", sans-serif; } .cli-sum small { color: var(--muted); font-size: 12.5px; }
.cli-sum .late b { color: var(--bad); }
.cli-board { display: flex; flex-direction: column; gap: 12px; }
.cli-col h4 { display: flex; justify-content: space-between; gap: 8px; margin: 4px 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cli-col h4 span { color: var(--ink); }
.cli-col { display: flex; flex-direction: column; gap: 6px; }
.cli-dc { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--frost); color: inherit; text-align: left; cursor: pointer; }
.cli-dc b { font-size: 14.5px; font-weight: 600; } .cli-dc small { font-size: 12.5px; color: var(--muted); }
.cli-dc.late { box-shadow: inset 3px 0 0 var(--bad); } .cli-dc.stuck { box-shadow: inset 3px 0 0 #FFB65C; }
.btn.bad { color: var(--bad); }
body.tab .cli-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: start; }
body.neu .cli-li, body.neu .cli-sum > div, body.neu .cli-dc { background: var(--glass); box-shadow: var(--raise-s); }
body.neu .cli-dc.late { box-shadow: var(--raise-s), inset 3px 0 0 var(--bad); }

/* «IA9 на компьютере» (tablet.js openPcInfo) */
.pci-st { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pci-st.ok b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--good); vertical-align: 1px; }
.pci-st small { line-height: 1.5; }
.pci-p { margin: 0 4px 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.pci-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pci-l li { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 16px; background: var(--frost); }
.pci-l b { font-size: 14.5px; font-weight: 600; } .pci-l small { font-size: 12.5px; color: var(--muted); }
body.neu .pci-l li { background: var(--glass); box-shadow: var(--raise-s); }
/* «Статьи сайта» (0.93, blog.js): черновики и опубликованные; черновик — заголовок, описание, текст, вопрос Элис, «Поправить» */
#sh-blog input, #sh-blog textarea { width: 100%; box-sizing: border-box; min-width: 0; padding: 11px 13px; border-radius: 13px; border: 0; background: var(--field); outline: none; }
body.neu #sh-blog input, body.neu #sh-blog textarea { box-shadow: var(--press); }
body.light:not(.neu) #sh-blog input, body.light:not(.neu) #sh-blog textarea { background: rgba(20,30,60,.06); }
.blg-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 4px 8px; }
.blg-list { display: flex; flex-direction: column; gap: 6px; }
.blg-i { display: grid; gap: 4px; width: 100%; text-align: left; padding: 13px 15px; border: 0; border-radius: 16px; background: var(--frost); color: inherit; cursor: pointer; font: inherit; }
.blg-i.draft { box-shadow: inset 3px 0 0 #FFC98B; }
.blg-i b { font-size: 15px; line-height: 1.35; }
.blg-i span { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blg-i small { font-size: 12px; color: var(--dim); }
.blg-i:active { filter: brightness(1.08); }
.blg-zero b { display: block; margin-bottom: 4px; }
.blg-back { margin: 0 0 10px; }
.blg-st { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 4px 10px; }
.blg-st.draft { color: #FFC98B; } .blg-st.live { color: #6CE7A8; }
body.light .blg-st.draft { color: #9a5b00; } body.light .blg-st.live { color: #1d7f55; }
.blg-l { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 14px 4px 6px; }
.blg-body { min-height: 52vh; font-size: 15.5px; line-height: 1.65; resize: vertical; }
.blg-ask { background: linear-gradient(135deg, rgba(57,135,229,.16), rgba(139,140,247,.12)); }
.blg-ask p { margin: 6px 0; font-size: 14.5px; line-height: 1.5; }
.blg-fix { margin-top: 14px; } .blg-fix textarea { margin: 8px 0; }
.blg-act { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 24px; }
.blg-del { color: #FF8FA8; align-self: center; margin-top: 6px; }
body.light .blg-del { color: #c23a5a; }

/* «Элис заметила» (0.97): предложение один раз — под ответом, тихой карточкой */
.nt-offer { margin: 14px auto 0; max-width: 520px; padding: 14px 16px; border-radius: 22px; background: var(--glass, rgba(255,255,255,.6));
  box-shadow: inset 0 0 0 1px var(--frost-hi, rgba(255,255,255,.5)); display: flex; flex-direction: column; gap: 12px; animation: ntIn .35s ease-out; }
.nt-offer p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-offer b { font-size: 15.5px; color: var(--ink); }
.nt-offer span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.nt-offer div { display: flex; gap: 8px; }
.nt-offer .btn { flex: 1; }
@keyframes ntIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nt-offer { animation: none; } }

/* Радар: новость под сводкой дня (14.11) — заголовок и «Читать» */
.rd-news { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--card, rgba(255,255,255,.08)); text-align: left; }
.rd-news small { opacity: .7; font-size: 12px; }
.rd-news b { font-size: 15px; line-height: 1.35; }
.rd-news-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rd-news button { padding: 8px 16px; border-radius: 12px; border: 0; background: var(--accent, #5b7cfa); color: #fff; font: inherit; font-weight: 700; }
.rd-news button.ghost { background: rgba(127,127,127,.16); color: inherit; font-weight: 600; }
.wn-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wn-topics button { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; font: inherit; font-size: 13px; }
.wn-topics button.on { background: var(--accent, #5b7cfa); border-color: transparent; color: #fff; }
.wn-topics button.off { opacity: .45; text-decoration: line-through; }

/* «Облако Элис» на телефоне (1.0.23 · 0.9.53, 12-sheets.js drvHtml) */
.drv { margin: 10px 0 12px; padding: 14px; border-radius: 18px; background: var(--frost); }
.drv.off b { display: block; margin-bottom: 4px; } .drv.off .btn { margin-top: 8px; }
.drv-top { display: flex; align-items: center; gap: 12px; }
.drv-top b { display: block; font-size: 16px; } .drv-top small { color: var(--muted); font-size: 12.5px; }
.drv-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; font-size: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, #8fd3ff 35%, transparent), color-mix(in srgb, #c58cf7 35%, transparent)); }
.drv-bar { height: 6px; margin: 12px 0; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.drv-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8fd3ff, #8b8cf7, #c58cf7); }
.drv-add { margin-bottom: 8px; } .drv-busy { margin: 4px 2px 8px; }
.drv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drv-f { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 11px; border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); --k: #8a8fa3; }
.drv-f.k-pdf { --k: #e5484d; } .drv-f.k-doc { --k: #3e7bfa; } .drv-f.k-sheet { --k: #2fa36b; } .drv-f.k-slides { --k: #f08c2e; } .drv-f.k-image { --k: #a35cf0; }
.drv-k { align-self: flex-start; padding: 2px 6px; border-radius: 6px; font: 800 10px "Manrope", sans-serif; letter-spacing: .06em; color: #fff; background: var(--k); }
.drv-f b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; padding-right: 22px; }
.drv-f small { color: var(--muted); font-size: 12px; }
.drv-f .x { position: absolute; top: 6px; right: 6px; }

/* ---------- IA9 Redesign: парный свитчер Элис/Крис, evolved IA9 brand, UI/UX Pro Max и Mobile Adaptation ---------- */
.ia9-stage-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 100%; padding: 4px 12px 0; z-index: 3; flex: none; }
.ia9-pill-logo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); font: 800 13px/1 "Unbounded", "Manrope", sans-serif; color: var(--ink); letter-spacing: -.02em; }
.ia9-pill-logo img { width: 20px; height: 20px; object-fit: contain; display: block; }
.ia9-pill-logo b { background: linear-gradient(120deg, #0297de, #6541d7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ia9-pill-logo small { font: 700 10.5px "Manrope", sans-serif; color: #7ce8ff; margin-left: 1px; letter-spacing: .04em; }
body.light .ia9-pill-logo { background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.09); color: #0a1430; }
body.light .ia9-pill-logo small { color: #6541d7; }

.ia9-pair { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px -12px rgba(0,0,0,.55); }
.ia9-pair[hidden] { display: none; }
.ia9-pair button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.ia9-pair button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--pc)); opacity: .5; transition: opacity .2s, box-shadow .2s; }
.ia9-pair button.on { background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.09)); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 12px rgba(0,0,0,.25); }
.ia9-pair button.on i { opacity: 1; box-shadow: 0 0 9px var(--c, var(--pc)); }
body.light .ia9-pair { background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.09); box-shadow: none; }
body.light .ia9-pair button.on { background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.1); }

body.skin-ia9-obsidian, body.skin-ia9-paper {
  --brand: linear-gradient(135deg, #0297de 0%, #6541d7 100%);
  --accent: #5EEAD4;
}
body.skin-ia9-paper { --accent: #2454d6; }
body.skin-ia9-obsidian #who, body.skin-ia9-obsidian .ib.soft, body.skin-ia9-obsidian .card,
body.skin-ia9-obsidian #bar .ib, body.skin-ia9-obsidian .sheet, body.skin-ia9-obsidian .start .btn:not(.p) {
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px -10px rgba(0,0,0,.45);
}
body.skin-ia9-obsidian #mic {
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc, #5EEAD4) 75%, #0297de), #6541d7);
  box-shadow: 0 12px 32px -6px color-mix(in srgb, var(--pc, #5EEAD4) 52%, transparent);
}
body.skin-ia9-obsidian #orb {
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--pc, #5EEAD4) 26%, transparent));
}
body.skin-ia9-paper #who, body.skin-ia9-paper .ib.soft, body.skin-ia9-paper .card,
body.skin-ia9-paper .start .btn:not(.p) {
  border: 1px solid rgba(15,23,42,.09); background: rgba(255,255,255,.90); box-shadow: 0 6px 20px rgba(20,30,80,.08);
}

/* Адаптация мобильной шапки и ландшафта: имя #who не режется на 320-412px, кнопки >= 44px */
#top { padding-top: max(12px, env(safe-area-inset-top, 12px)); }
#who { min-height: 42px; max-width: min(46vw, 180px); flex-shrink: 0; }
#who span { max-width: none; }
#bar { padding-bottom: max(12px, calc(10px + var(--safe-b))); }
.sheet { overflow-x: hidden; max-width: 100vw; }
@media (max-width: 440px) {
  #top { padding: 10px 8px 6px; gap: 3px; }
  #top .ib { width: 38px; height: 38px; }
  #top .ib svg { width: 20px; height: 20px; }
  #top #top-lang-btn { padding: 0 9px !important; font-size: 10.5px !important; }
  .who svg { display: inline-block; width: 14px; height: 14px; }
  .who { padding: 4px 9px 4px 4px; max-width: 118px !important; gap: 6px; }
  #orbwrap { margin-top: 6px; width: min(calc(62vw / var(--vzt)), calc(35vh / var(--vzt)), 280px); }
}
@media (orientation: landscape) and (min-width: 600px) {
  #stage-brand { grid-column: 1; grid-row: 1; justify-self: center; align-self: end; padding-bottom: 4px; }
  body.tab #stage:not(.quiet):not(.pane), body.tab #stage.tries:not(.pane) { grid-template-columns: minmax(260px, .82fr) minmax(380px, 1.18fr); max-width: 980px; margin: 0 auto; }
  body.tab #stage:not(.quiet):not(.pane) #talk, body.tab #stage.tries:not(.pane) #talk { max-width: 520px; margin: 0 auto; }
}

/* UI/UX Pro Max polish: левое меню, логотип IA9, сегмент RU|EN, чёткие иконки шапки и тонкий скроллбар */
body.tab #rail { scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.25) transparent; }
body.tab #rail::-webkit-scrollbar { width: 5px; }
body.tab #rail::-webkit-scrollbar-track { background: transparent; }
body.tab #rail::-webkit-scrollbar-thumb { background: rgba(148,163,184,.24); border-radius: 99px; }
body.tab #rail::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,.42); }
body.tab #rail .rl-brand { display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding: 8px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ia9-brand-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; width: fit-content; direction: ltr; color: inherit; text-decoration: none; }
.ia9-brand-ico { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(2,151,222,.24), rgba(101,65,215,.26)); border: 1px solid rgba(56,189,248,.34);
  box-shadow: 0 4px 12px -4px rgba(2,151,222,.45); }
.ia9-brand-ico img { width: 20px; height: 20px; object-fit: contain; display: block; }
.ia9-brand-txt { font: 800 15.5px/1 "Unbounded", "Manrope", sans-serif; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.ia9-brand-txt b { background: linear-gradient(120deg, #38bdf8, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ia9-brand-txt small { font: 600 11px "Manrope", sans-serif; color: var(--muted); margin-left: 1px; }
.ia9-lseg { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; width: 100%; direction: ltr; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-sizing: border-box; }
.ia9-lseg button { min-width: 0; height: 24px; padding: 0 6px; border: 0; border-radius: 999px; font: 700 10.5px/1 "Manrope", sans-serif;
  letter-spacing: .04em; color: var(--muted); white-space: nowrap; transition: background .16s, color .16s, box-shadow .16s; text-align: center; }
.ia9-lseg button:hover { color: var(--ink); }
.ia9-lseg button.on { background: linear-gradient(135deg, #0297de, #6541d7); color: #fff; box-shadow: 0 2px 8px rgba(2,151,222,.45); }
body.light .ia9-lseg { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.1); }
body.tab #top-lang-btn, body.tab .ia9-pill-logo { display: none !important; }
#top-lang-btn { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); border-radius: 999px; min-height: 30px; padding: 0 11px !important; }
#top .ib { color: rgba(248,250,252,.9); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); transition: background .15s, border-color .15s; }
#top .ib:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
body.light #top .ib { color: var(--ink); background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.08); }
.bal { font-variant-numeric: tabular-nums; left: 26px; top: 41px; border: 1.5px solid var(--bal-ring, #0a0a0f); box-shadow: 0 4px 12px -4px rgba(255,160,60,.8); }
[dir="rtl"] .bal { left: auto; right: 26px; transform: translateX(50%); }
body.tab .bal { position: static; transform: none; flex: none; order: 2; height: 26px; padding: 0 10px; font-size: 11.5px; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(255,160,60,.65); }
#bot, #you, #talk, .msg { unicode-bidi: plaintext; text-align: start; }

.ia9m-rates { margin: 10px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--frost); border: 1px solid var(--glass-line); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ia9m-rates b { color: var(--ink); }
.ia9m-quotas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ia9m-q { padding: 4px 8px; border-radius: 999px; background: var(--frost); border: 1px solid var(--glass-line); font-size: 11.5px; color: var(--ink); }
.ia9m-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; width: 100%; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--glass-line); background: var(--frost); color: var(--ink); }
.ia9m-pack:active { background: var(--frost-hi); }
.ia9m-pack b { font-size: 14px; font-weight: 700; }
.ia9m-pack span { font-size: 12px; color: var(--good); font-weight: 600; }
.ia9m-pack small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ia9m-pack em { font-style: normal; font-size: 11.5px; color: var(--accent); margin-top: 2px; }
