/* index.html встраивает этот файл в <head> для первого кадра (style#boot-critical).
   При правке обновляйте встроенную копию — иначе скелетон до загрузки стилей разъедется. */
/* Состояние загрузки первого экрана (D1, TASK-FIRST-SCREEN.md).
   Этот файл — единственная таблица стилей в <head>: он крошечный и приходит вместе
   со страницей, поэтому скелетон рисуется с первого кадра. Остальные стили подключены
   в <body> после оболочки и до них браузер успевает показать скелетон.
   Шрифт — Inter (предзагружен в index.html) с метрическим fallback: без засечек
   и без сдвига строк, пока файл шрифта не пришёл.
   Скелетон лежит в #app и пропадает сам: workspace.js заменяет содержимое #app
   (innerHTML) при первой отрисовке настоящего экрана.
   Все правила — на классах boot-*, на итоговую вёрстку они не влияют. */
/* Метрический fallback под Inter: пока woff2 не загрузился, браузер рисует Arial
   с поправками Inter. Иначе swap меняет ширину строк и растит CLS. */
/* Inter объявлен здесь, а не только в prototype.css: предзагруженный файл подменяет
   fallback, как только пришёл, а не когда дойдёт основная таблица (тёплая копия «Для вас»). */
@font-face{font-family:"Inter";src:url("fonts/InterVariable.woff2") format("woff2-variations");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Fallback";src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:107.06%;ascent-override:90.49%;descent-override:22.48%;line-gap-override:0%}
html{background:var(--m-bg,#0f1117);color-scheme:dark;font-family:Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif}
body{margin:0;background:var(--m-bg,#0f1117);font-family:inherit}
:root{--m-boot-text:#e8eaf0;--m-boot-muted:#9aa2b4;--m-boot-card:#171a23;--m-boot-line:#262b38;--m-boot-raised:#1b1f2a}
/* Телефон: скелетон живёт внутри настоящего каркаса — шапка, заголовок и меню
   настоящие, скелетон только у данных. ПК-ветка ниже делает его отдельным слоем A2. */
.boot-skeleton{position:relative;inset:auto;z-index:2;pointer-events:none;display:flex;flex:1;flex-direction:column;box-sizing:border-box;
  width:100%;max-width:none;min-height:0;margin:0;padding:0;
  background:var(--m-bg,#0f1117);color:var(--m-boot-text,#e8eaf0);font:16px/1.4 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;overflow:hidden}
.boot-head{display:flex;align-items:center;gap:12px;height:45px;margin:0 0 22px 3px;flex-shrink:0}
.boot-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(160deg,#8b7cf6,#6c5ce7);color:#fff;font-size:22px;line-height:1}
.boot-word{font-size:24px;font-weight:800;letter-spacing:-1.4px}
.boot-body{display:block;animation:none}
.boot-body>span{display:block;border-radius:10px;background:#1b1f2a}
/* Мобильный скелет «Для вас»: те же блоки и высоты, что у настоящего экрана на 390.
   Раньше здесь были герой и произвольные строки — при замене на ленту всё прыгало.
   Высоты сняты с живой раскладки: заголовок 32, поле 54, подсказки 340.5,
   «Ваш ход» 144.1, «Проекты» 281.1; промежутки — 8 px, как у .nav-k-screen. */
.boot-fy{display:flex;flex-direction:column;gap:8px;width:100%;padding:0}
.boot-fy-head{display:flex;align-items:center;justify-content:space-between;gap:8px;height:32px;flex:none;margin-bottom:2px}
.boot-fy-title{font-size:24px;font-weight:700;line-height:1.1;letter-spacing:-.3px;color:var(--m-boot-text,#e8eaf0)}
.boot-fy-bal{width:138px;height:32px;border-radius:16px;border:1px solid #262b38;background:#171a23;flex:none}
.boot-fy-field{display:flex;align-items:center;gap:10px;height:54px;flex:none;padding:0 10px 0 14px;border:1px solid #262b38;border-radius:18px;background:#171a23;box-sizing:border-box}
.boot-fy-field i{display:block;border-radius:6px;background:#2b3444}
.boot-fy-ico{width:18px;height:18px;border-radius:50%!important;flex:none}
.boot-fy-line{flex:1;height:12px;max-width:58%}
.boot-fy-mic{width:36px;height:36px;border-radius:50%!important;flex:none;background:#6c5ce7!important;opacity:.55}
.boot-fy-sect{display:flex;align-items:center;height:17.4px;flex:none;font-size:10.5px;font-weight:700;line-height:17.4px;letter-spacing:.08em;text-transform:uppercase;color:var(--m-boot-muted,#6f7688);white-space:nowrap}
.boot-fy-sugg{display:flex;flex-direction:column;gap:6px;min-height:340.5px;flex:none}
.boot-fy-sgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:8px;height:275.5px;flex:none}
.boot-fy-scard{display:flex;flex-direction:column;gap:8px;min-height:0;padding:12px 11px 10px 13px;border:1px solid #1f2430;border-radius:16px;background:#171a23;box-sizing:border-box}
.boot-fy-scard i{display:block;border-radius:6px;background:#2b3444;flex:none}
.boot-fy-st{height:12px;width:86%}
.boot-fy-ss{height:9px;width:70%}
.boot-fy-sr{height:8px;width:88%;margin-top:auto}
.boot-fy-snote{height:29.7px;flex:none;margin-top:6px;border-radius:6px;background:#1b1f2a;opacity:.55}
.boot-fy-wait{display:flex;flex-direction:column;gap:0;min-height:144.1px;flex:none}
.boot-fy-wait>.boot-fy-sect{height:19px;line-height:19px}
.boot-fy-turnlist{display:flex;flex-direction:column;gap:6px}
.boot-fy-trow{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #1f2430;border-radius:14px;background:#171a23;box-sizing:border-box}
.boot-fy-trow:nth-child(1){height:52px}
.boot-fy-trow:nth-child(2){height:67.1px}
.boot-fy-tdot{width:8px;height:8px;border-radius:50%;background:#2b3444;flex:none}
.boot-fy-tcol{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.boot-fy-tcol i{display:block;height:9px;border-radius:5px;background:#2b3444}
.boot-fy-tcol i:first-child{width:48%}
.boot-fy-tcol i:last-child{width:72%;height:11px}
.boot-fy-tbtn{width:92px;height:34px;border-radius:10px;background:#241f3d;flex:none}
.boot-fy-proj{display:flex;flex-direction:column;gap:6px;min-height:281.1px;flex:none}
.boot-fy-proj>.boot-fy-sect{height:30px;line-height:30px}
.boot-fy-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:none}
.boot-fy-tile{height:73px;padding:10px 11px 10px 13px;border:1px solid #1f2430;border-radius:16px;background:#171a23;box-sizing:border-box;display:flex;flex-direction:column;gap:6px}
.boot-fy-tile i{display:block;border-radius:5px;background:#2b3444}
.boot-fy-tile .boot-fy-tt{width:78%;height:11px}
.boot-fy-tile .boot-fy-ts{width:46%;height:8px;margin-top:auto}
/* На телефоне шапка настоящая (она в .shell), поэтому дубль .boot-head из скелетона
   не нужен. На ПК он остаётся левой колонкой A2. */
@media(max-width:760px){.boot-head,.boot-fy-head{display:none}}
/* Телефонный скелетон — не отдельный слой: safe-area уже держит .shell. */
html.telegram .boot-skeleton{padding:0}
/* Прилипшая шапка над прокрученной лентой: фон --m-bg и линия --m-line-soft, как у нижней
   панели. Тенью, а не рамкой: высота шапки не меняется, сдвига нет. */
html[data-feed-scrolled] .shell>header{background:var(--m-bg,#0f1117);box-shadow:0 1px 0 var(--m-line-soft,#1f2430),-22px 0 0 var(--m-bg,#0f1117),22px 0 0 var(--m-bg,#0f1117),-22px 1px 0 var(--m-line-soft,#1f2430),22px 1px 0 var(--m-line-soft,#1f2430);position:relative;z-index:3}
/* Мобильная шапка до загрузки nav-k.css: тот же знак-плитка 24×24, радиус 7,
   «Для вас» и скелетон пилюли баланса. После данных её сменяет настоящая шапка. */
@media(max-width:760px){
  html[data-boot] .shell>header{position:relative;display:grid;grid-template-columns:minmax(32px,1fr) auto minmax(32px,1fr);grid-template-rows:44px auto;
    align-items:center;column-gap:8px;row-gap:4px;height:auto;min-height:0;flex:0 0 auto;overflow:visible;margin:0 0 8px;padding:0}
  html[data-boot] .shell>header>div{display:contents}
  /* Слот логотипа до посадки: у кнопки нет ни рамки, ни фона, ни focus-ring от браузера.
     Фокус — только с клавиатуры (:focus-visible); автоматически его никто не ставит. */
  html[data-boot]:not(.telegram) .shell>header::before{content:"×";justify-self:start;grid-column:1;grid-row:1;
    width:32px;height:32px;border-radius:50%;background:var(--m-boot-raised,#1b1f2a);color:var(--m-boot-muted,#9aa2b4);
    display:grid;place-items:center;line-height:1;opacity:.8}
  html[data-boot]:not(.telegram) .shell>header:has(#back:not([hidden]))::before{content:none;display:none}
  html[data-boot] #home{grid-column:2;grid-row:1;justify-self:center;display:inline-flex;align-items:center;justify-content:center;gap:6px;
    width:130px;min-width:130px;max-width:130px;min-height:32px;font-size:22px;font-weight:700;letter-spacing:-.4px;color:var(--m-text,#e8eaf0);
    background:none;padding:0;border:0;outline:0;-webkit-appearance:none;appearance:none}
  html[data-boot] #home:focus-visible{outline:3px solid #8b7cf6;outline-offset:3px}
  html.boot-anim[data-boot=cold]:not([data-launch-landed]) #home{visibility:hidden}
  html[data-boot] #home .brand-word,html[data-boot] #home .brand-made{display:none!important}
  html[data-boot] #home::after{content:none!important;display:none!important}
  html[data-boot] .shell>header::after{content:"Для вас";grid-column:1/3;grid-row:2;justify-self:start;align-self:center;
    min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:24px;font-weight:700;letter-spacing:-.3px;line-height:1.1;color:var(--m-text,#e8eaf0)}
  html[data-boot] #home .brand-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;
    background:var(--m-accent,#6c5ce7);box-shadow:none;color:#fff;font-size:15px;line-height:1}
  html[data-boot] #home .brand-mark .moment-mark{display:block;width:15px;height:15px;font-size:15px;margin:0;color:#fff}
  /* Вне Telegram «⋯» — наша кнопка; в Telegram её даёт системная шапка клиента. */
  html[data-boot] body[data-nav-k="1"] #settings{display:grid!important;place-items:center;justify-self:end;grid-column:3;grid-row:1;
    width:32px;height:32px;min-width:32px;padding:0;border:0;border-radius:50%;background:var(--m-boot-raised,#1b1f2a);
    color:var(--m-boot-muted,#9aa2b4);font-size:18px;line-height:1;opacity:.8}
  html[data-boot].telegram body[data-nav-k="1"] #settings{display:none!important}
  html[data-boot].telegram #home{display:none!important}
  html[data-boot].telegram #navk-account{position:static!important;top:auto!important;right:auto!important;grid-column:3!important;grid-row:2!important;justify-self:end!important}
  html[data-boot] #navk-account{position:static!important;right:auto!important;top:auto!important;grid-column:3;grid-row:2;justify-self:end;align-self:center;width:145px!important;min-width:145px!important;max-width:145px!important;height:32px!important;display:flex;align-items:center;justify-content:flex-end;margin:0!important;padding:0!important;transform:none;overflow:hidden;box-sizing:border-box}
  html[data-boot] #navk-account:empty::after{content:"—";display:inline-flex;align-items:center;justify-content:center;
    width:145px;min-width:145px;height:32px;padding:0 12px;border:1px solid var(--m-line,#262b38);border-radius:999px;
    background:var(--m-card,#171a23);color:var(--m-dim,#6f7688);font-size:14px;font-weight:600;box-sizing:border-box}
  html[data-boot] #bottom-navigation.nav-k-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;flex:none;
    height:auto;min-height:calc(56px + max(8px,var(--moment-safe-bottom,0px)));margin:8px calc(-1*(22px + var(--moment-safe-right,0px))) calc(-10px - var(--moment-safe-bottom,0px)) calc(-1*(22px + var(--moment-safe-left,0px)));
    padding:0 0 max(8px,var(--moment-safe-bottom,0px));border:0;border-top:1px solid var(--m-line-soft,#1f2430);
    background:var(--m-bg,#0f1117);box-sizing:border-box;visibility:visible}
  html[data-boot] #bottom-navigation .nav-k-tab{position:relative;flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:6px 4px;border:0;border-radius:14px;background:none;color:var(--m-dim,#6f7688);font:inherit;font-size:11px;font-weight:600}
  html[data-boot] #bottom-navigation .nav-k-tab[data-state=active]{color:var(--m-accent-text,#c7bffb)}
  html[data-boot] #bottom-navigation .nav-k-tab[data-state=active] svg{color:var(--m-turn,#9d8ffa)}
  html[data-boot] #bottom-navigation .nav-k-tab svg{width:22px;height:22px;flex:none}
  html.tg-boot #bottom-navigation.nav-k-nav{height:auto;min-height:calc(56px + max(8px,var(--moment-safe-bottom,0px)));margin:8px calc(-1*(22px + var(--moment-safe-right,0px))) calc(-10px - var(--moment-safe-bottom,0px)) calc(-1*(22px + var(--moment-safe-left,0px)));padding:0 0 max(8px,var(--moment-safe-bottom,0px));background:var(--m-bg,#0f1117)}
  /* Шапка не меняет геометрию, когда под скелетоном включаются nav-k.css/base.css:
     тот же знак-плитка 24×24, то же «Для вас» и та же ширина пилюли баланса. */
  html[data-boot] body[data-nav-k="1"][data-nav-k-desk="0"][data-view="for-you"] #home .brand-mark{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:7px!important;background:var(--m-accent,#6c5ce7)!important;box-shadow:none!important;color:#fff!important;font-size:15px!important}
  html[data-boot] body[data-nav-k="1"][data-nav-k-desk="0"][data-view="for-you"] #home .brand-mark .moment-mark{display:block!important;width:15px!important;height:15px!important;font-size:15px!important;line-height:15px!important;margin:0!important;vertical-align:0!important;color:#fff!important}
  html[data-boot] body[data-nav-k="1"][data-nav-k-desk="0"][data-view="for-you"] #home .brand-word{display:none!important}
  html[data-boot] body[data-nav-k="1"][data-nav-k-desk="0"] #navk-account .nav-k-account{width:145px!important;min-width:145px!important;max-width:145px!important;height:32px!important;box-sizing:border-box!important;justify-content:flex-end!important;gap:6px!important;padding:0 2px 0 8px!important}
  html[data-boot] body[data-nav-k="1"][data-nav-k-desk="0"] #navk-account:empty::after{width:145px!important;min-width:145px!important;margin-left:auto}
}
.boot-handoff{transition:none!important;pointer-events:none!important}
/* Пока скелетон в #app, нижнее меню ещё пустое. Резервируем его готовую высоту,
   иначе появление пунктов после первого кадра ужимает ленту и двигает всё. */
html[data-boot] #bottom-navigation:empty{min-height:65px;flex:none}

.boot-hero{width:132px;height:132px;border-radius:36px!important;margin:18px auto 30px;background:#241f3d!important}
.boot-line{height:14px}
.boot-line.big{height:32px;border-radius:12px!important}
.boot-card{height:58px;margin-top:14px;border-radius:18px!important}
.boot-w30{width:30%}.boot-w60{width:60%}.boot-w75{width:75%}.boot-w90{width:90%}
.boot-btn{width:100%;height:50px;border-radius:17px;background:#1b1f2a;animation:m-live var(--m-loop-live) ease-in-out infinite}
/* Медленная сеть: тихая строка «Подключаемся…» и «Повторить» под полем вопроса.
   Появляются таймером анимации 3 с — без скрипта; под полем, поэтому раскладку не двигают. */
.boot-fy-fieldwrap{position:relative;flex:none}
.boot-slow-row{position:absolute;left:2px;right:2px;top:calc(100% + 6px);z-index:3;display:flex;align-items:center;gap:10px;
  opacity:0;visibility:hidden;background:var(--m-bg,#0f1117);animation:bootShow var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) 3s forwards}
.boot-slow-row>span{flex:1;min-width:0;font-size:12px;line-height:18px;color:var(--m-boot-muted,#9aa2b4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.boot-retry{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;border:1px solid var(--m-accent-line,#3a2f66);
  border-radius:10px;background:transparent;color:var(--m-accent-text,#c7bffb);font:600 12px/1 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;text-decoration:none;flex:none;cursor:pointer}
/* «Повторить» в строке медленной сети — через 10 с; сама строка «Подключаемся…» — через 3 с (WebLoading). */
.boot-retry{opacity:0;visibility:hidden;animation:bootShow var(--m-dur-in) var(--m-ease-out) forwards}
.boot-retry{animation-delay:10s}
/* В карточке «Нет связи» кнопка нужна сразу. */
.boot-offline-m .boot-retry{opacity:1;visibility:visible;animation:none}
/* Нет связи: персиковая карточка вместо данных. Красного нет. */
.boot-offline-m{display:none;flex:none;align-items:center;gap:12px;margin:2px 0 0;padding:12px 13px;border:1px solid var(--m-peach-line,#6a3a3f);
  border-radius:16px;background:var(--m-peach-deep,#2a1a1e);box-sizing:border-box}
.boot-offline-m .boot-offline-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:rgba(255,159,143,.12);color:var(--m-peach,#ff9f8f);flex:none}
.boot-offline-m .boot-offline-ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.boot-offline-m .boot-offline-copy{min-width:0;flex:1}
.boot-offline-m b{display:block;font-size:14px;font-weight:650;color:var(--m-peach-text,#ffc2b8)}
.boot-offline-m small{display:block;margin-top:2px;color:var(--m-muted,#9aa2b4);font-size:11.5px;line-height:1.35}
html[data-boot=offline] .boot-offline-m{display:flex;animation:bootIn var(--m-dur-in) var(--m-ease-out)}
html[data-boot=offline] .boot-fy-sugg,html[data-boot=offline] .boot-fy-wait,html[data-boot=offline] .boot-fy-proj{display:none}
html[data-boot=offline] .boot-slow-row{display:none}
/* Модуль не загрузился (страж в index.html ставит data-boot=failed): «Повторить» сразу. */
html[data-boot=failed] .boot-skeleton .boot-retry{animation:none!important;opacity:1;visibility:visible;font-size:14px;font-weight:600}
html[data-boot=failed] .boot-skeleton .boot-btn{animation:none!important}
@keyframes bootShow{to{opacity:1;visibility:visible}}
@media(prefers-reduced-motion:reduce){.boot-body,.boot-btn{animation:none}}
/* Общий сброс анимаций в workspace.css (`*{animation:none!important}`) иначе навсегда
   спрячет подсказку и «Повторить» у тех, кто выключил анимацию. */
@media(prefers-reduced-motion:reduce){.boot-slow-row{animation:bootShow .01s linear 3s forwards!important}.boot-slow-row .boot-retry,.boot-slow-desk .boot-retry{animation:bootShow .01s linear 10s forwards!important}}

/* Знак Момента — ТОЛЬКО логотипом (маска SVG). Символ-звёздочка (U+2733) запрещён: на iOS и в Telegram он рисуется
   эмодзи. В разметке — MARK из moment-mark.js; проверка — check-no-emoji-mark.mjs. */
:root{--moment-mark-svg:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2290.00%2090.00%20332.00%20332.00%22%3E%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%2233.00%22%20stroke-linecap%3D%22round%22%3E%3Cline%20x1%3D%22106.50%22%20y1%3D%22256.00%22%20x2%3D%22405.50%22%20y2%3D%22256.00%22%2F%3E%3Cline%20x1%3D%22150.29%22%20y1%3D%22150.29%22%20x2%3D%22361.71%22%20y2%3D%22361.71%22%2F%3E%3Cline%20x1%3D%22256.00%22%20y1%3D%22106.50%22%20x2%3D%22256.00%22%20y2%3D%22405.50%22%2F%3E%3Cline%20x1%3D%22361.71%22%20y1%3D%22150.29%22%20x2%3D%22150.29%22%20y2%3D%22361.71%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.moment-mark{display:inline-block;width:1em;height:1em;vertical-align:-.125em;flex-shrink:0;background-color:currentColor;-webkit-mask:var(--moment-mark-svg) center/contain no-repeat;mask:var(--moment-mark-svg) center/contain no-repeat}

/* ПК-скелетон A2 (от 1024 px). Телефон не меняется: новые блоки скрыты и не занимают места,
   остальные правила — только внутри media. Перелив M1: двигается background-position, не opacity. */
.boot-desk,.boot-live{display:none}
.boot-today,.boot-intro,.boot-offline{display:none}
@keyframes bootShimmer{from{background-position:100% 0}to{background-position:0 0}}
@media (min-width:1024px){
  /* На ПК первый запуск показывает сборку знака в скелетоне; старая заставка
     с фиолетовым заливом перекрыла бы её. Телефон её не теряет. */
  #intro{display:none!important}
  /* Пока скелетон в #app, сам #app занимает те же координаты, что и готовый
     полноэкранный каркас A2. Так переход не двигает ни одного блока (CLS 0). */
  #app:has(> .boot-skeleton){position:fixed;inset:0;width:100%;height:100%}
  /* Оболочка под скелетоном уже в размерах готового A2: иначе prototype.css
     успевает сжать её до 430 px, и переход в готовый экран сдвигает всё. */
  body:has(#app > .boot-skeleton) .shell{max-width:none;padding:0;border:0;height:100dvh}
  .boot-skeleton{
    position:fixed;inset:0;z-index:10;display:grid;
    grid-template-columns:248px minmax(0,1fr) 300px;grid-template-rows:60px minmax(0,1fr);
    width:100%;max-width:none;margin:0;padding:0;overflow:hidden;
    /* Скелетон виден с первого кадра: серый пустой экран перед ним — тот же дефект,
       что «пустая Для вас» до скелетона. Загрузка быстрее 300 мс просто сменит его сразу. */
    opacity:1;animation:none}
  html[data-boot=cold] .boot-skeleton{opacity:1;animation:none}
  .boot-body{display:none;animation:none}
  /* Левая колонка — настоящий знак, «Moment», поиск и вкладки A2. */
  .boot-head{grid-column:1;grid-row:1;height:60px;margin:0;padding:22px 18px 0;gap:9px;align-items:flex-start;background:#12141b;box-shadow:inset -1px 0 #1f2430;box-sizing:border-box}
  .boot-mark{width:24px;height:24px;border-radius:7px;font-size:15px;background:var(--m-accent,#6c5ce7)}
  .boot-word{font-size:20px;line-height:32px;letter-spacing:-.8px;text-transform:capitalize}
  .boot-desk{display:flex;grid-column:1;grid-row:2;flex-direction:column;min-height:0;padding:10px 12px 14px;background:#12141b;box-shadow:inset -1px 0 #1f2430;overflow:hidden}
  .boot-foot{display:none}
  .boot-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;margin:2px 0 8px;border:1px solid #262b38;border-radius:10px;background:#171a23;color:#6f7688;font-size:12.5px;box-sizing:border-box}
  .boot-search>span:not(.boot-kbd){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .boot-search svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .boot-kbd{margin-left:auto;padding:1px 6px;border:1px solid #262b38;border-radius:6px;font-size:10.5px;color:#9aa2b4;line-height:1.4}
  .boot-tabs{display:flex;flex-direction:column;gap:2px}
  .boot-tab{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:10px;color:#e8eaf0;font-size:13px;box-sizing:border-box}
  .boot-tab[data-on]{background:#171a23}
  .boot-tab svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#9aa2b4}
  .boot-tab[data-on] svg{color:#c7bffb}
  .boot-tab-count{display:flex;align-items:center;margin-left:auto}
  .boot-tab-count .boot-sh{width:24px;height:18px;border-radius:6px}
  .boot-side-label{margin:14px 10px 6px;font-size:10.5px;font-weight:700;letter-spacing:.08em;color:#6f7688;text-transform:uppercase}
  .boot-projs{display:flex;flex-direction:column;gap:2px;min-height:0;overflow:hidden}
  .boot-proj{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:10px;box-sizing:border-box}
  .boot-proj-dot{flex:none;width:7px;height:7px;border-radius:50%;background:#2b3444}
  .boot-proj-a{width:58%;height:8px;border-radius:4px}
  .boot-proj-b{width:22%;height:6px;border-radius:3px}
  .boot-acc{display:flex;align-items:center;gap:8px;height:44px;margin-top:auto;padding:0 10px;border-top:1px solid #1f2430;box-sizing:border-box}
  .boot-acc-ava{width:24px;height:24px;border-radius:7px;flex:none}
  .boot-acc-a{width:58px;height:8px;border-radius:4px}
  .boot-acc-b{width:44px;height:6px;border-radius:3px;margin-left:auto}

  /* Центр — настоящий каркас «Для вас»: заголовок, поле, подписи и рамки. */
  .boot-live{display:flex;grid-column:2;grid-row:1/3;flex-direction:column;min-width:0;min-height:0;padding:0;background:#0f1117;overflow:hidden}
  .boot-live-head{display:flex;align-items:center;gap:10px;height:56px;flex:none;padding:0 32px;border-bottom:1px solid #1f2430;box-sizing:border-box}
  .boot-live-title{margin:0;font-size:16px;font-weight:700;letter-spacing:-.2px}
  .boot-live-head small{color:#9aa2b4;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .boot-live-body{display:flex;flex-direction:column;min-height:0;padding:28px 32px;box-sizing:border-box;overflow:hidden}
  .boot-live-field{display:flex;align-items:center;gap:10px;height:52px;flex:none;padding:0 12px 0 16px;border:1px solid #262b38;border-radius:14px;background:#171a23;color:#6f7688;font-size:14px;box-sizing:border-box}
  .boot-live-field svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .boot-live-line{position:relative;height:36px;margin-top:10px;flex:none}
  .boot-line-sk{display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid #1f2430;border-radius:12px;background:#171a23;box-sizing:border-box;animation:bootLineOut .01s linear 3s forwards}
  .boot-line-dot{width:8px;height:8px;border-radius:50%;flex:none}
  .boot-line-a{width:38%;height:10px;border-radius:5px}
  html[data-boot=offline] .boot-line-sk{animation:none}
  .boot-slow-desk{position:absolute;inset:0;display:flex;align-items:center;gap:10px;padding:0 4px;color:#9aa2b4;font-size:12.5px;opacity:0;visibility:hidden;animation:bootShow .3s ease 3s forwards}
  .boot-shim-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:linear-gradient(90deg,#9aa2b4 0%,#9aa2b4 35%,#e8eaf0 50%,#9aa2b4 65%,#9aa2b4 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:bootShimmer var(--m-loop-shimmer) infinite}
  .boot-sec{display:flex;align-items:center;gap:6px;height:18px;margin:22px 2px 8px;flex:none;font-size:10.5px;font-weight:700;letter-spacing:.08em;color:#6f7688;text-transform:uppercase}
  .boot-sec-count{display:flex;align-items:center}
  .boot-sec-count .boot-sh{width:18px;height:10px;border-radius:5px}
  .boot-live-turns{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;height:108px;flex:none}
  .boot-turn{border:1px solid #1f2430;border-radius:14px;background:#171a23;overflow:hidden}
  .boot-turn-sk{display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:16px;box-sizing:border-box}
  .boot-turn-top{display:flex;align-items:flex-start;gap:10px;min-width:0}
  .boot-turn-ava{width:30px;height:30px;border-radius:9px;flex:none}
  .boot-turn-col{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}
  .boot-turn-a{width:78%;height:12px;border-radius:6px}
  .boot-turn-b{width:46%;height:9px;border-radius:5px}
  .boot-turn-btn{width:110px;height:34px;border-radius:10px;align-self:flex-end}
  /* Нет связи: каркас остаётся, на месте «Ваш ход» — спокойная персиковая карточка. */
  .boot-offline{position:absolute;inset:0;z-index:2;display:none;align-items:center;gap:14px;padding:0 18px;border:1px solid #6a3a3f;border-radius:14px;background:#2a1a1e;box-sizing:border-box}
  html[data-boot=offline] .boot-offline{display:flex;animation:bootIn var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1))}
  html[data-boot=offline] .boot-turn{visibility:hidden}
  .boot-offline-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(255,159,143,.12);color:#ff9f8f;flex:none}
  .boot-offline-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .boot-offline-copy{min-width:0}
  .boot-offline b{display:block;font-size:15px;font-weight:650;color:#ffc2b8}
  .boot-offline small{display:block;margin-top:2px;color:#9aa2b4;font-size:12.5px;line-height:1.35}
  .boot-slow-desk .boot-retry,.boot-offline .boot-retry{display:inline-flex;align-items:center;height:36px;padding:0 16px;border:1px solid #3a2f66;border-radius:10px;background:transparent;color:#c7bffb;font-size:13px;font-weight:600;text-decoration:none;flex:none}
  .boot-slow-desk .boot-retry{margin-left:auto}
  .boot-offline .boot-retry{margin-left:auto;height:34px;padding:0 14px;border-color:#6a3a3f;color:#ffc2b8;font-size:12.5px;opacity:1;visibility:visible;animation:none}
  html[data-boot=offline] .boot-slow-desk{display:none}
  .boot-live-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:84px;gap:10px;flex:none}
  .boot-tile{display:flex;flex-direction:column;justify-content:space-between;min-height:84px;padding:12px 14px;border:1px solid #1f2430;border-radius:14px;background:#171a23;box-sizing:border-box}
  .boot-tile-top{display:flex;align-items:center;gap:7px;min-width:0}
  .boot-tile-dot{width:8px;height:8px;border-radius:50%;background:#2b3444;flex:none}
  .boot-tile-a{width:72%;height:12px;border-radius:6px}
  .boot-tile-b{width:60%;height:9px;border-radius:5px}
  .boot-tile-pf{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .boot-tile-pf .boot-sh{height:6px;border-radius:3px}
  .boot-tile-pf-a{width:62px}
  .boot-tile-pf-b{width:44px}
  .boot-work{display:flex;align-items:center;gap:10px;height:44px;margin-top:16px;padding:0 14px;border:1px solid #1f2430;border-radius:14px;background:#171a23;flex:none;box-sizing:border-box}
  .boot-work-label{font-size:12.5px;font-weight:600;color:#9aa2b4;white-space:nowrap}
  .boot-work-a{width:46%;height:9px;border-radius:5px}
  .boot-work-b{width:52px;height:16px;border-radius:6px;margin-left:auto}

  /* Правая панель — тихая: те же бруски, но без перелива и приглушённые. */
  .boot-today{display:flex;grid-column:3;grid-row:1/3;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:18px 16px;background:#12141b;border-left:1px solid #1f2430;box-sizing:border-box}
  .boot-today-title{display:flex;align-items:center;height:18px;font-size:10.5px;font-weight:700;letter-spacing:.08em;color:#6f7688;text-transform:uppercase}
  .boot-today-row{display:flex;align-items:center;gap:10px;height:52px;padding:0 12px;border:1px solid #1f2430;border-radius:12px;background:#171a23;box-sizing:border-box}
  .boot-today-ava{width:22px;height:22px;border-radius:7px;flex:none}
  .boot-today-col{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
  .boot-today-a{width:46%;height:8px;border-radius:4px}
  .boot-today-b{width:72%;height:6px;border-radius:3px}
  .boot-today .boot-sh{animation:none;opacity:.7}
  .boot-quiet{margin-top:auto;color:#6f7688;font-size:11.5px;line-height:1.4}

  /* Перелив M1: градиент 300%, двигается только background-position. */
  .boot-sh{display:block;background:linear-gradient(90deg,#1b1f2a 0%,#1b1f2a 30%,#262b38 50%,#1b1f2a 70%,#1b1f2a 100%);background-size:300% 100%;background-repeat:no-repeat;animation:bootShimmer var(--m-loop-shimmer) infinite}

  /* Первый запуск: каркас уже виден, поверх по центру собирается знак, заливается
     в плитку 96×96 и уезжает на место логотипа 24×24. Всё укладывается в 1,3 с на токенах M1. */
  .boot-intro{position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px 0 0 -48px;z-index:3;display:none!important;pointer-events:none;transform-origin:50% 50%}
  html[data-boot=cold] .boot-intro{display:block;animation:bootFly var(--m-dur-sheet,340ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)*2 + var(--m-dur-tap,120ms)) forwards,bootIntroOff .01s linear calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)*2 + var(--m-dur-tap,120ms) + var(--m-dur-sheet,340ms)) forwards}
  .boot-big{position:absolute;left:12px;top:12px;width:72px;height:72px;color:#8b7cf6;overflow:visible}
  .boot-big line,.boot-white line{fill:none;stroke:currentColor;stroke-width:33;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:1}
  .boot-fill{position:absolute;inset:0;display:grid;place-items:center;border-radius:28px;background:var(--m-accent,#6c5ce7);opacity:0;transform:scale(.6)}
  .boot-white{width:60px;height:60px;color:#fff;opacity:0}
  html[data-boot=cold] .boot-big line{animation:bootDraw var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) forwards}
  html[data-boot=cold] .boot-big line:nth-child(2){animation-delay:calc(var(--m-dur-tap,120ms)*1)}
  html[data-boot=cold] .boot-big line:nth-child(3){animation-delay:calc(var(--m-dur-tap,120ms)*2)}
  html[data-boot=cold] .boot-big line:nth-child(4){animation-delay:calc(var(--m-dur-tap,120ms)*3)}
  html[data-boot=cold] .boot-big{animation:bootLineOut var(--m-dur-in,240ms) var(--m-ease-in,cubic-bezier(.4,0,1,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)) forwards}
  html[data-boot=cold] .boot-fill{animation:bootFill var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)) forwards}
  html[data-boot=cold] .boot-white{animation:bootWhite var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)) forwards}
  html[data-boot=cold] .boot-head .boot-mark{opacity:0;animation:bootMarkOn .01s linear calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)*2 + var(--m-dur-tap,120ms) + var(--m-dur-sheet,340ms)) forwards}

  /* Обычный запуск: сразу каркас, маленький знак пульсирует. */
  html[data-boot=warm] .boot-intro{display:none}
  html[data-boot=warm] .boot-head .boot-mark{animation:bootLive var(--m-loop-live) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) infinite}
  /* Нет связи: перелив и пульс стоят, знак приглушён. */
  html[data-boot=offline] .boot-sh{animation-play-state:paused}
  html[data-boot=offline] .boot-head .boot-mark{animation:none;opacity:.5}
  html[data-boot=failed] .boot-head .boot-mark{animation:none}
}
/* 1024–1279: узкая левая колонка, без правой панели; центр шире. */
@media (min-width:1024px) and (max-width:1279px){
  .boot-skeleton{grid-template-columns:224px minmax(0,1fr)}
  .boot-today{display:none}
  .boot-search .boot-kbd{display:none}
  .boot-live-head{padding:0 28px}
  .boot-live-body{padding:24px 28px}
}
@keyframes bootReveal{to{opacity:1}}
@keyframes bootIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes bootDraw{to{stroke-dashoffset:0}}
@keyframes bootFly{to{transform:translate(calc(-50vw + 30px),calc(-50vh + 34px)) scale(.25)}}
@keyframes bootFrameIn{to{opacity:1}}
@keyframes bootMarkOn{to{opacity:1}}
@keyframes bootFill{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes bootWhite{to{opacity:1}}
@keyframes bootIntroOff{to{opacity:0;visibility:hidden}}
@keyframes bootLineOut{to{opacity:0}}
@keyframes bootLive{0%,100%{opacity:1}50%{opacity:.4}}
/* Меньше движения: без сборки и полёта, сразу каркас; перелив и пульс выключены.
   Подсказка «медленно» остаётся на своей задержке — общий сброс её не гасит. */
@media (min-width:1024px) and (prefers-reduced-motion:reduce){
  .boot-skeleton{opacity:1!important;animation:none!important}
  .boot-intro{display:none!important}
  .boot-head,.boot-desk,.boot-live,.boot-today{opacity:1!important;animation:none!important}
  .boot-head .boot-mark{opacity:1!important;animation:none!important}
  .boot-sh,.boot-shim-text{animation:none!important}
  .boot-line-sk{animation:bootLineOut .01s linear 3s forwards!important}
  .boot-slow-desk{animation:bootShow .01s linear 3s forwards!important}
}


/* Тема Telegram — не только первый кадр: после скелетона оболочка и фон документа
   остаются того же цвета, иначе переход «фон темы → лента» менял бы цвет. */
html.telegram,html.telegram body{background:var(--m-bg,#0f1117)}
html.telegram .shell{background:var(--m-bg,#0f1117)}
html[data-launch-snapshot="1"] .boot-slow{display:none}
html[data-boot-slow] .boot-slow{opacity:1;visibility:visible;animation:none}
/* ── Холодный старт: WebLoading точь-в-точь ──────────────────────────────────
   Скелетон и настоящая шапка с первого кадра, но логотип в шапке погашен, пока
   плитка не сядет на его место. Поверх, по центру, четыре линии --m-accent-soft
   рисуются 240 мс с шагом --m-dur-tap (0/120/240/360, всего 600). Затем под ними
   проявляется плитка 96×96, r 28, --m-accent (600–840): белые линии и плитка
   накрывают фиолетовые кроссфейдом, фиолетовые гаснут только после 840 и уходят
   к 960. После паузы --m-dur-tap плитка FLIP-ом улетает на логотип шапки
   (960–1300, --m-dur-sheet) и в одном rAF подменяется настоящим логотипом.
   Слой не ловит тапы и ничего не сдвигает. */
.boot-launch{position:fixed;inset:0;z-index:20;display:grid;place-items:center;pointer-events:none}
html[data-boot=warm] .boot-launch,html[data-boot=ready] .boot-launch,html[data-boot=offline] .boot-launch,html[data-boot=failed] .boot-launch,html[data-launch-landed] .boot-launch{display:none}
.boot-launch-stack{position:relative;display:block;width:96px;height:96px;transform-origin:50% 50%}
html.boot-anim[data-boot=cold] .boot-launch-stack{animation:bootLaunchFly var(--m-dur-sheet,340ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)*2 + var(--m-dur-tap,120ms)) forwards}
.boot-launch-tile{position:absolute;inset:0;display:block;border-radius:28px;background:var(--m-accent,#6c5ce7);opacity:0;transform:scale(.6)}
html.boot-anim[data-boot=cold] .boot-launch-tile{animation:bootLaunchTile var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)) forwards}
.boot-launch-mark{position:absolute;inset:12px;display:block;width:72px;height:72px;overflow:visible;color:var(--m-accent-soft,#8b7cf6)}
.boot-launch-mark-white{color:#fff;opacity:0}
.boot-launch-mark line{fill:none;stroke:currentColor;stroke-width:33;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:1}
.boot-launch-mark-white line{stroke-dashoffset:0}
html.boot-anim[data-boot=cold] .boot-launch-mark line{animation:bootDraw var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) both}
html.boot-anim[data-boot=cold] .boot-launch-mark line:nth-child(1){animation-delay:0ms}
html.boot-anim[data-boot=cold] .boot-launch-mark line:nth-child(2){animation-delay:calc(var(--m-dur-tap,120ms)*1)}
html.boot-anim[data-boot=cold] .boot-launch-mark line:nth-child(3){animation-delay:calc(var(--m-dur-tap,120ms)*2)}
html.boot-anim[data-boot=cold] .boot-launch-mark line:nth-child(4){animation-delay:calc(var(--m-dur-tap,120ms)*3)}
/* Белая копия уже нарисована: она проявляется поверх фиолетовых 600–840. */
html.boot-anim[data-boot=cold] .boot-launch-mark-white line{animation:none;stroke-dashoffset:0}
html.boot-anim[data-boot=cold] .boot-launch-mark-white{animation:bootLaunchLinesIn var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)) both}
/* Фиолетовые не гаснут, пока плитка не дошла до opacity 1 (840), и уходят к 960. */
html.boot-anim[data-boot=cold] .boot-launch-mark:not(.boot-launch-mark-white){animation:bootLaunchLinesOut var(--m-dur-tap,120ms) linear calc(var(--m-dur-tap,120ms)*3 + var(--m-dur-in,240ms)*2) forwards}
@keyframes bootLaunchTile{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes bootLaunchFly{to{transform:translate(var(--boot-fly-x,0px),var(--boot-fly-y,0px)) scale(var(--boot-fly-scale,.25))}}
@keyframes bootLaunchLinesIn{from{opacity:0}to{opacity:1}}
@keyframes bootLaunchLinesOut{to{opacity:0}}
/* До посадки плитки логотип шапки не светится; подмена — одним rAF в index.html. */
html.boot-anim[data-boot=cold]:not([data-launch-landed]) #home .brand-mark{opacity:0}
html.boot-anim[data-boot=cold][data-launch-landed] #home .brand-mark{opacity:1}

/* Тёплый старт: знак не собираем. Скелетон только если загрузка идёт дольше 300 мс;
   плитка в шапке пульсирует, пока данные не пришли. */
html[data-boot=cold] .boot-skeleton{opacity:1;animation:none}
html[data-boot=warm] .boot-skeleton{opacity:0}
/* Тёплый снимок — это уже данные, а не скелетон: показываем с первого кадра, без 300-мс паузы. */
html[data-boot=warm]:has(.boot-fy[data-snapshot="1"]) .boot-skeleton{opacity:1;animation:none}
html.boot-anim[data-boot=warm] .boot-skeleton{animation:bootSkelIn .01s linear 300ms forwards}
@keyframes bootSkelIn{to{opacity:1}}
html[data-boot=warm] #home .brand-mark{animation:bootLive var(--m-loop-live,1.6s) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) infinite}
html[data-boot=offline] #bottom-navigation .nav-k-tab,html[data-boot=offline] #home .brand-mark{animation:none}

/* Смена скелетона на данные без сдвига: скелетон гаснет, блоки входят снизу
   на 8 px с шагом --m-dur-step. Двигаются только opacity и transform. */
html[data-boot=ready] .nav-k-for-you-main>*,
html[data-boot=ready] .nav-k-screen:not(:has(.nav-k-for-you-main))>*{animation:bootBlockIn var(--m-dur-in,240ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) both;animation-delay:calc(var(--m-dur-step,24ms)*var(--i,0))}
@keyframes bootBlockIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Тёплый старт из копии готового экрана: блоки уже стоят — входа заново нет. */
html[data-launch-frozen] .nav-k-for-you-main>*{animation:none}

@keyframes bootSkelOut{to{opacity:0}}
.boot-out{animation:bootSkelOut var(--m-dur-out,200ms) var(--m-ease-out,cubic-bezier(.2,.8,.2,1)) forwards}
@media(max-width:760px){
  .boot-handoff{position:fixed;inset:0;z-index:10;width:100%;max-width:none;margin:0;background:var(--m-bg,#0f1117);
    padding:calc(14px + var(--moment-safe-top,0px)) calc(22px + var(--moment-safe-right,0px)) calc(10px + var(--moment-safe-bottom,0px)) calc(22px + var(--moment-safe-left,0px));box-sizing:border-box}
  .boot-handoff .boot-head{display:none}
}

/* Снимок ленты в первом кадре: те же блоки и высоты скелета, но с настоящими
   названиями из прошлого ответа. Пока модули грузятся, «Для вас» уже можно читать
   и листать; карточка проекта отвечает тапом и ставит маршрут проекта. */
.boot-fy-bal.is-known{display:flex;align-items:center;justify-content:center;padding:0 12px;box-sizing:border-box;font:600 13px/1 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-text,#e8eaf0);font-variant-numeric:tabular-nums;white-space:nowrap;background:var(--m-boot-card,#171a23)}
.boot-fy[data-snapshot="1"] .boot-fy-scard.is-live{display:flex;flex-direction:column;justify-content:flex-start;gap:5px;cursor:default}
.boot-fy-scard.is-live>b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 12.5px/1.25 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-text,#e8eaf0)}
.boot-fy-scard.is-live>small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:400 10.5px/1.3 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-muted,#9aa2b4);margin-top:auto}
.boot-fy-trow.is-live{gap:10px}
.boot-fy-trow.is-live .boot-fy-tdot{background:var(--m-accent,#6c5ce7)}
.boot-fy-trow.is-live .boot-fy-tcol{gap:3px}
.boot-fy-trow.is-live .boot-fy-tcol b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12.5px/1.3 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-text,#e8eaf0)}
.boot-fy-trow.is-live .boot-fy-tcol small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 10.5px/1.3 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-muted,#9aa2b4)}
.boot-fy-trow.is-live .boot-fy-tbtn{display:flex;align-items:center;justify-content:center;width:92px;min-width:92px;max-width:92px;padding:0 4px;flex:none;background:var(--m-boot-raised,#1b1f2a);border:1px solid var(--m-boot-line,#262b38);border-radius:10px;color:var(--m-accent-soft,#c7bffb);font:600 11px/1 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
.boot-fy-calm{margin:0;padding:2px 0 0;font:400 12px/1.35 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-muted,#9aa2b4)}
.boot-fy-tile.is-live{display:flex;flex-direction:column;justify-content:space-between;gap:4px;width:100%;padding:10px 11px 10px 13px;border:1px solid var(--m-boot-line,#262b38);border-radius:16px;background:var(--m-boot-card,#171a23);color:var(--m-boot-text,#e8eaf0);font-family:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.boot-fy-tile.is-live:active{transform:scale(.985)}
.boot-fy-tile.is-live .boot-fy-tt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:auto;height:auto;font:600 12.5px/1.25 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-text,#e8eaf0)}
.boot-fy-tile.is-live .boot-fy-ts{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto;height:auto;margin-top:auto;font:400 10.5px/1.25 Inter,"Inter Fallback",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;color:var(--m-boot-muted,#9aa2b4)}
/* «Ваш ход» — фиолетовый, как и «работает». Персик — только «нужно вмешаться»:
   остановился или ошибка. */
.boot-fy-tile.is-live[data-tone="decide"] .boot-fy-ts{color:var(--m-accent-text,#c7bffb)}
.boot-fy-tile.is-live[data-tone="run"] .boot-fy-ts{color:var(--m-accent-text,#c7bffb)}
.boot-fy-tile.is-live[data-tone="done"] .boot-fy-ts{color:#8fd8a8}

/* Меньше движения: без сборки знака и перелива — сразу каркас и плитка в шапке. */
@media(prefers-reduced-motion:reduce){
  .boot-launch{display:none!important}
  .boot-launch-tile{opacity:1;animation:none;transform:none}
  .boot-launch-mark line{opacity:1;stroke-dashoffset:0;animation:none}
  html.boot-anim[data-boot=cold] #home{visibility:visible!important}html.boot-anim[data-boot=cold] #home .brand-mark{opacity:1!important}
  .boot-sh,.boot-shim-text,.boot-head .boot-mark,#home .brand-mark{animation:none!important}
}

/* Вне Telegram первый кадр тоже не должен ждать workspace.css: оболочка уже
   в размерах готового мобильного кадра, поэтому появление стилей не двигает
   шапку, ленту и меню. Значения сняты с живой раскладки 390. */
@media (max-width:760px){
  html[data-boot]:not(.telegram) body:has(#app > .boot-skeleton) .shell{position:fixed;inset:0;margin:0 auto;max-width:780px;height:var(--moment-height,100dvh);display:flex;flex-direction:column;box-sizing:border-box;padding:14px 22px 10px;overflow:hidden;background:var(--m-bg,#0f1117)}
  html[data-boot]:not(.telegram) body:has(#app > .boot-skeleton) #app{flex:1;min-height:0;display:flex;flex-direction:column}
  html[data-boot]:not(.telegram) body:has(#app > .boot-skeleton) .shell>footer{display:none}
}
/* Пока стартовый скелетон на экране, оболочка уже в размерах готового Telegram-кадра:
   safe-area приходит из прошлого захода до первого кадра (inline-скрипт в <head>),
   шапка — 32 px с настоящим знаком, меню — своя высота вместе с safe-bottom.
   Скелетон лежит внутри #app и закрывает только данные; шапка и меню настоящие. */
html.tg-boot .shell{position:fixed;inset:0;margin:0 auto;width:100%;max-width:780px;height:min(var(--moment-height,100dvh),var(--moment-keyboard-height,100dvh));display:flex;flex-direction:column;box-sizing:border-box;padding:calc(14px + var(--moment-safe-top,0px)) calc(22px + var(--moment-safe-right,0px)) calc(10px + var(--moment-safe-bottom,0px)) calc(22px + var(--moment-safe-left,0px));overflow:hidden}
html.tg-boot #app{flex:1;min-height:0;display:flex;flex-direction:column}
html.tg-boot .shell>header{display:grid!important;grid-template-columns:minmax(32px,1fr) auto minmax(32px,1fr);grid-template-rows:0 auto!important;align-items:center;column-gap:8px;row-gap:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 8px!important;padding:0!important;overflow:visible}
html.tg-boot .shell>header>div{display:contents!important}
html.tg-boot .shell>footer{display:none!important}
html.tg-boot #bottom-navigation{display:flex;flex:none;height:calc(57px + var(--moment-safe-bottom,0px));min-height:calc(57px + var(--moment-safe-bottom,0px));max-height:calc(57px + var(--moment-safe-bottom,0px));margin:8px calc(-22px - var(--moment-safe-right,0px)) calc(-10px - var(--moment-safe-bottom,0px)) calc(-22px - var(--moment-safe-left,0px));padding:4px 6px calc(2px + var(--moment-safe-bottom,0px));border-top:1px solid #262b38;background:#0f1117;box-sizing:border-box}

/* ПК: до первого готового экрана шапка/подвал/меню не участвуют в раскладке —
   иначе их появление и max-width сдвигают уже нарисованные блоки. */
@media (min-width:761px){
  html[data-boot] .shell>header,html[data-boot] .shell>footer{display:none!important}
  html[data-boot] #bottom-navigation{display:none!important}
}
