/* Вид панели: только переменные из tokeny.css (.tema-paneli). Светлый «монтажный стол». */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fon); color: var(--tekst); font: 15px/1.45 var(--shrift); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.ik { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ik svg { width: 100%; height: 100%; }
.ik.pl { width: 16px; height: 16px; }
.ik.bolshoy { width: 40px; height: 40px; }
.ik.zag { width: 26px; height: 26px; color: var(--akcent); }
.tusklo { color: var(--tusklyy); }
.logo { display: block; height: 30px; width: auto; }

/* вход */
.vhod { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 500px at 80% -10%, var(--akcent-myagkiy), transparent 60%), var(--fon); }
.vhod-kartochka { width: min(400px, 100%); background: var(--kartochka); border: 1px solid var(--liniya); border-radius: 24px;
  padding: 36px; display: grid; gap: 14px; box-shadow: var(--ten); }
.vhod-kartochka h1 { font: var(--polu) 24px/1.2 var(--shrift-zagolovkov); margin: 10px 0 0; letter-spacing: -0.02em; }
.vhod-kartochka p { margin: 0; } #zaglushka .knopka-kontur { justify-content: center; }   /* 62: заглушка закрытого аккаунта */
label > span { display: block; font-size: 13px; color: var(--tusklyy); margin-bottom: 6px; }
input, select { width: 100%; height: 42px; border: 1px solid var(--liniya); border-radius: 12px; padding: 0 12px;
  background: var(--kartochka); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--chernila); box-shadow: 0 0 0 3px var(--podlozhka); }
.oshibka { color: var(--akcent); margin: 0; }

/* кнопки */
.knopka { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; background: var(--chernila); color: #fff; font-weight: var(--polu); transition: transform .1s, opacity .15s; }
.knopka:hover { opacity: .88; } .knopka:active { transform: scale(.98); }
.knopka-kontur { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--liniya); background: var(--kartochka); font-weight: 500; transition: border-color .15s; }
.knopka-kontur:hover { border-color: var(--chernila); }
.ssylka { display: inline-flex; align-items: center; gap: 6px; color: var(--tusklyy); font-size: 13px; }
.ssylka:hover { color: var(--tekst); }

/* каркас */
.panel { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.bok { display: flex; flex-direction: column; gap: 28px; padding: 26px 16px 18px; border-right: 1px solid var(--liniya);
  background: var(--kartochka); }
.bok .logo { padding: 0 12px; }
#menyu, #nad-profilem { display: grid; gap: 4px; }
#menyu a, #nad-profilem a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--tusklyy); font-weight: 500; transition: background .15s, color .15s; }
#menyu a:hover, #nad-profilem a:hover { background: var(--podlozhka); color: var(--tekst); }
#menyu a.aktivno, #nad-profilem a.aktivno { background: var(--chernila); color: #fff; }
#menyu a.aktivno .ik, #nad-profilem a.aktivno .ik { color: var(--akcent); }
.bok-niz { margin-top: auto; display: grid; gap: 10px; position: relative; }
.bok-ssylki { display: flex; justify-content: space-between; padding: 0 8px; }
/* язык — кнопка с выбранным языком и стрелкой, под ней список (задача 71); сам список — shared/stil/vypadashka.css */
.yazyk.ssylka { display: inline-flex; align-items: center; gap: 4px; }
.yazyk.ssylka .ik { width: 12px; height: 12px; }
.profil { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  border: 1px solid var(--liniya); text-align: left; }
.profil:hover { border-color: var(--chernila); }
.profil-imya { display: grid; flex: 1; min-width: 0; } .profil-imya small { color: var(--tusklyy); }
.avatar { --h: 20; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: hsl(var(--h) 70% 90%); color: hsl(var(--h) 55% 32%); font-weight: 700; font-size: 14px; }
.avatar.malyy { width: 26px; height: 26px; font-size: 12px; }
.avatar.bolshoy { width: 56px; height: 56px; font-size: 22px; }
main { overflow-y: auto; padding: 28px 36px 60px; }

/* шапка, вкладки, поиск */
.shapka { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 22px 0 18px; flex-wrap: wrap; }
.shapka h1 { display: flex; align-items: center; gap: 12px; margin: 0; font: var(--polu) 28px/1.1 var(--shrift-zagolovkov); letter-spacing: -0.03em; }
.shapka p { margin: 8px 0 0; }
.vkladki { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--podlozhka); }
.vkladki a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px;
  color: var(--tusklyy); font-weight: var(--polu); transition: background .15s, color .15s; }
.vkladki a.aktivno { background: var(--kartochka); color: var(--tekst); box-shadow: var(--ten); }
.vkladki a.aktivno .ik { color: var(--akcent); }
.poisk-pole { display: flex; align-items: center; gap: 8px; width: min(440px, 100%); height: 46px; padding: 0 6px 0 14px;
  border: 1px solid var(--liniya); border-radius: 14px; background: var(--kartochka); }
.poisk-pole:focus-within { border-color: var(--chernila); }
.poisk-pole input { border: 0; height: 100%; padding: 0; box-shadow: none; }
.poisk-pole .ik { color: var(--tusklyy); }
.poisk-pole .gde { width: auto; height: 34px; border-radius: 10px; background: var(--podlozhka); border: 0; font-size: 13px; }

/* фильтры */
.filtry { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.filtr-obertka { position: relative; }
.filtr { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 10px;
  font-weight: 500; transition: background .15s; white-space: nowrap; }
.filtr:hover { background: var(--podlozhka); }
.filtr .ik { width: 14px; height: 14px; color: var(--tusklyy); }
.filtr.aktiv { background: var(--akcent-myagkiy); color: var(--akcent); }
.filtr.aktiv .ik { color: var(--akcent); }
.filtr.zhdet { color: var(--seryy); cursor: help; } .filtr.zhdet:hover { background: none; }
.metka-ii { font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 6px; background: var(--podlozhka); color: var(--tusklyy); }
.sbrosit { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--podlozhka); font-weight: var(--polu); font-size: 13px; }
/* выпадающий список (.vypadashka) — общий с сайтом: shared/stil/vypadashka.css */
.vypadashka > .novyy-profil { margin-top: 4px; border-top: 1px solid var(--liniya); border-radius: 0 0 10px 10px; color: var(--tusklyy); }
.vypadashka > .novyy-profil .ik { color: var(--tusklyy); } .vypadashka > .novyy-profil:hover { color: var(--tekst); }
.stroka-akkaunta { display: flex; align-items: center; gap: 2px; border-radius: 10px; }   /* задача 59.1: аккаунт и «выйти» */
.stroka-akkaunta > button:first-child { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-align: left; }
.stroka-akkaunta:not(.aktivnyy):hover { background: var(--podlozhka); }   /* 78: подсвечена вся строка, с крестиком */
.stroka-akkaunta.aktivnyy { background: var(--akcent-myagkiy); } .stroka-akkaunta.aktivnyy b { color: var(--akcent); }   /* 59.2: активный — фирменным */
.imya-akkaunta { display: grid; flex: 1; min-width: 0; } .imya-akkaunta b, .imya-akkaunta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imya-akkaunta small { color: var(--tusklyy); font-size: 12px; }
.vyyti-iz { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--tusklyy); }
.vyyti-iz:hover { background: var(--kartochka); color: var(--tekst); } .vyyti-iz .ik { width: 14px; height: 14px; }
@media (min-width: 861px) {   /* 61: кнопка профиля не двигается, список — вбок от меню, вверх от низа кнопки, «Сохранённые» не закрывает */
  #profil { position: relative; } .bok-niz .vypadashka.spisok-profiley { top: auto; bottom: 0; left: calc(100% + 18px); width: 260px; } }
.pod-filtrami, .filtry-stroka { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 20px; flex-wrap: wrap; }
.filtry-stroka h2 { margin: 0; font: var(--polu) 20px/1.2 var(--shrift-zagolovkov); }
.filtry-stroka p { margin: 4px 0 0; }
.schetchik { color: var(--tusklyy); font-size: 13px; margin-left: auto; }
.tumbler { display: inline-flex; align-items: center; gap: 12px; font-weight: var(--polu); cursor: pointer; }
.tumbler input { display: none; }
.tumbler-polzunok { width: 44px; height: 26px; border-radius: 13px; background: var(--liniya); position: relative; transition: background .2s; }
.tumbler-polzunok::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.tumbler input:checked + .tumbler-polzunok { background: var(--chernila); }
.tumbler input:checked + .tumbler-polzunok::after { transform: translateX(18px); }

/* карточки роликов */
.setka { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 18px; }
.karta { min-width: 0; animation: poyavlenie .3s ease-out both; }
.oblozhka { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--podlozhka); }
.oblozhka img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oblozhka.pl-youtube { background: linear-gradient(160deg, #ffe1e6, #f3d2d8); }
.oblozhka.pl-instagram { background: linear-gradient(160deg, #fde3ef, #e5e1fb); }
.oblozhka.pl-tiktok { background: linear-gradient(160deg, #e3f7f6, #f6e0e8); }
.znachki { position: absolute; top: 10px; left: 10px; display: grid; justify-items: start; gap: 6px; z-index: 4; }
.znachok-pl, .kratnost { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 9px;
  background: var(--steklo); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: var(--polu); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.kratnost { position: relative; font: var(--polu) 12px/1 var(--shrift-zagolovkov); cursor: help; outline: none; }
.kratnost .ik { width: 13px; height: 13px; }
.kratnost.goryacho { background: var(--akcent); }
.podskazka { position: fixed; width: 240px; padding: 12px 14px; border-radius: 12px; z-index: 50;
  background: var(--kartochka); color: var(--tekst); font: 400 13px/1.4 var(--shrift); box-shadow: 0 12px 32px rgba(22, 21, 26, .18);
  pointer-events: none; animation: poyavlenie .15s ease-out both; }
.svoy { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 8px; border-radius: 8px; background: var(--chernila); color: #fff; font-size: 11px; font-weight: 700; }
.cifry { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; justify-content: space-around; padding: 8px 4px;
  border-radius: 12px; background: var(--steklo); backdrop-filter: blur(8px); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.cifry span { display: grid; justify-items: center; gap: 3px; } .cifry .ik { width: 15px; height: 15px; opacity: .9; }
.cifry b { font-size: 11px; font-weight: var(--polu); }
.navedenie { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; gap: 8px; padding: 18px;
  background: rgba(16, 15, 20, .45); opacity: 0; transition: opacity .18s; }
.karta:hover .navedenie, .navedenie:focus-within { opacity: 1; }
.knopka-svet { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .94); color: var(--chernila); font-weight: var(--polu); font-size: 14px; transition: transform .12s; }
.knopka-svet:hover { transform: translateY(-1px); } .knopka-svet .ik { color: var(--akcent); width: 16px; }
.karta-niz { padding: 10px 2px 0; display: grid; gap: 6px; }
.avtor { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avtor > div { display: grid; min-width: 0; }
.nik, .avtor b { font-weight: var(--polu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nik:hover { color: var(--akcent); }
.avtor small, .kogda { color: var(--tusklyy); font-size: 12px; }
.prichina { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--akcent); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prichina .ik { width: 13px; height: 13px; }
.podpis { margin: 0; font-size: 13px; color: var(--tusklyy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.skelet { aspect-ratio: 9 / 19; border-radius: var(--radius); background: linear-gradient(90deg, var(--podlozhka), var(--fon), var(--podlozhka));
  background-size: 200% 100%; animation: blik 1.2s infinite linear; }
@keyframes blik { to { background-position: -200% 0; } }
.setka-niz { display: grid; place-items: center; padding: 32px 0; }
.pusto, .zagruzka { color: var(--tusklyy); padding: 40px 0; text-align: center; }

/* окна */
.sloy-fon { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: rgba(16, 15, 20, .5); backdrop-filter: blur(4px); animation: poyavlenie .15s; }
.okno { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--kartochka); }
.okno.shirokoe { width: min(1040px, 100%); }
.okno h2 { margin: 0 0 18px; font: var(--polu) 24px/1.2 var(--shrift-zagolovkov); }
.okno-niz { display: flex; justify-content: flex-end; margin-top: 20px; }
.okno.pleer { width: min(860px, 100%); display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; padding: 18px; }
.pleer-kadr { aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.pleer-kadr iframe, .pleer-kadr .oblozhka { width: 100%; height: 100%; border: 0; }
.pleer-info { display: flex; flex-direction: column; gap: 14px; padding: 12px 8px; min-width: 0; }
.pleer-info .kratnost { align-self: flex-start; }
.zakryt { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--podlozhka); }
.pleer-cifry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pleer-cifry div { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--podlozhka); }
.pleer-cifry small { color: var(--tusklyy); font-size: 11px; }
.pleer-podpis { margin: 0; white-space: pre-line; overflow-y: auto; max-height: 260px; color: var(--tusklyy); font-size: 14px; }
.pleer-info .knopka { margin-top: auto; }
.okno.pleer .pleer-kadr { position: sticky; top: 0; align-self: start; }   /* разбор длинный — видео остаётся на месте */

/* чипы, тренды */
.chipy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; background: var(--podlozhka); font-size: 13px; font-weight: 500; }
.chip small { color: var(--tusklyy); }
.chip.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.akcent { background: var(--akcent-myagkiy); color: var(--akcent); }
/* класс метки — metka-…: голый .trend — это сама карточка тренда (сетка 200px + текст), с ним чип растягивался */
.chip.metka-rosta { font-weight: bold; } .chip.metka-trend { background: var(--akcent-myagkiy); color: var(--akcent); }
.chip.metka-nabiraet { color: var(--zelenyy); } .chip.metka-proveryaetsya { color: var(--tusklyy); }
.chip.zelenyy { color: var(--zelenyy); } .chip.siniy { color: var(--siniy); } .chip.zheltyy { color: var(--zheltyy); } .chip.seryy { color: var(--seryy); }
.chip-krest { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--tusklyy); }
.chip-krest .ik { width: 12px; height: 12px; } .chip-krest:hover { background: var(--liniya); }
.trendy { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 20px; }
.trend { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px; border-radius: 22px; background: var(--kartochka);
  border: 1px solid var(--liniya); animation: poyavlenie .3s ease-out both; }
.trend.skelet { aspect-ratio: auto; height: 388px; }
.trend-glavnaya { position: relative; display: block; align-self: start; } .trend-glavnaya .oblozhka { aspect-ratio: 9 / 16; border-radius: 16px; }
.igrat { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; color: #fff; }
.igrat .ik { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--akcent); }
.trend-glavnaya:hover .igrat { opacity: 1; }
.trend-telo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.trend-telo h3 { margin: 4px 0 0; font: var(--polu) 20px/1.2 var(--shrift-zagolovkov); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.trend-cifry { display: flex; gap: 16px; flex-wrap: wrap; color: var(--tusklyy); font-size: 14px; }
.trend-cifry span { display: inline-flex; align-items: center; gap: 6px; } .trend-cifry .ik { width: 16px; }
.pochemu { padding: 14px; border-radius: 14px; background: var(--fon); display: grid; gap: 6px; }
.pochemu b { display: inline-flex; align-items: center; gap: 6px; color: var(--akcent); } .pochemu .ik { width: 16px; }
.pochemu p { margin: 0; font-size: 14px; } .pochemu small { color: var(--tusklyy); }
.trend-cifry .kratnost { color: #fff; background: var(--chernila); } .trend-cifry .kratnost.goryacho { background: var(--akcent); }
.trend-knopki { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.trend-knopki .knopka-kontur { display: inline-flex; align-items: center; gap: 6px; } .trend-knopki .ik { width: 15px; }

/* аккаунты (радар — radar.css) */
.profil-shapka { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; } .profil-shapka h2 { margin: 0; font: var(--polu) 22px var(--shrift-zagolovkov); }
.podklyucheniya { list-style: none; margin: 0; padding: 0; max-width: 760px; border: 1px solid var(--liniya); border-radius: 18px; background: var(--kartochka); overflow: hidden; }
.podkl + .podkl { border-top: 1px solid var(--liniya); }
.podkl-ryad { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 18px; }
.podkl-ryad + .podkl-ryad { padding-top: 0; }
.podkl-imya { display: grid; gap: 2px; min-width: 0; } .podkl-imya b { font-weight: var(--polu); } .podkl-imya span { color: var(--seryy); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.akk-knopki { display: flex; gap: 8px; } .podkl .knopka { height: 38px; }
.knopka-kontur.kruglaya { width: 38px; padding: 0; justify-content: center; } .knopka-kontur.gotovo { color: var(--zelenyy); border-color: currentColor; }
.podkl .malo { font-size: 13px; max-width: 220px; text-align: right; }
@media (max-width: 560px) { .podkl-ryad { grid-template-columns: auto 1fr; } .podkl-ryad > :nth-child(n+3) { grid-column: 2; justify-self: start; } .podkl .malo { text-align: left; } }

/* узкое окно или крупный масштаб (от ~175 % на ноутбуке): меню — столбик иконок, место отдаём странице (Данил 04.11) */
@media (min-width: 861px) and (max-width: 1200px) {
  .panel { grid-template-columns: 76px 1fr; } .bok { align-items: center; gap: 22px; padding: 20px 10px 14px; } main { padding: 20px 24px 40px; }
  .bok .logo { content: url(/app/favicon.svg); width: 38px; height: 38px; padding: 0; } .bok-niz { justify-items: center; }
  #menyu a, #nad-profilem a { width: 48px; justify-content: center; padding: 0; } #menyu a span:not(.ik), #nad-profilem a span:not(.ik) { display: none; }
  .profil { padding: 4px; border: 0; justify-content: center; } .profil-imya, .profil > .ik { display: none; }
  .bok-ssylki { flex-direction: column; align-items: center; gap: 6px; padding: 0; font-size: 12px; } }
@media (max-width: 860px) {
  /* телефон: сверху логотип и профиль, внизу — вкладки страниц, как в приложении */
  .panel { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .bok { flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 10;
    border-right: 0; border-bottom: 1px solid var(--liniya); background: var(--kartochka); }
  .bok .logo { padding: 0; height: 24px; }
  #menyu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--kartochka); border-top: 1px solid var(--liniya); }
  #menyu a { flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0 2px; border-radius: 12px; font-size: 10px; }
  #menyu a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  #menyu a.aktivno { background: none; color: var(--tekst); } #menyu a.aktivno .ik { color: var(--akcent); }
  .bok-niz { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; }
  #nad-profilem a { height: 36px; padding: 0 8px; } #nad-profilem a span:not(.ik) { display: none; }   /* на телефоне — значок у аватара */
  #nad-profilem a.aktivno { background: none; color: var(--tekst); }
  .profil { padding: 4px; border: 0; } .profil-imya, .profil > .ik { display: none; }
  .bok-ssylki { display: flex; gap: 12px; padding: 0; }
  main { padding: 12px 16px 96px; overflow: visible; min-width: 0; }
  .shapka { margin: 10px 0 14px; gap: 14px; } .shapka h1 { font-size: 22px; } .shapka > * { min-width: 0; max-width: 100%; }
  .vkladki { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .vkladki a { flex: none; height: 36px; padding: 0 12px; }
  .filtry { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .filtry > * { flex: none; }
  .poisk-pole { width: 100%; }
  .setka { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .trendy { grid-template-columns: 1fr; } .trend { grid-template-columns: 1fr; }
  .okno.pleer { grid-template-columns: 1fr; } .okno.pleer .pleer-kadr { position: static; }
  .vypadashka.vverh { bottom: auto; top: calc(100% + 8px); right: 0; left: auto; }
}

/* Окно тренда: лента его роликов под плеером (первый — оригинал) */
.pleer-lenta { grid-column: 1 / -1; display: grid; gap: 8px; min-width: 0; }
.pleer-lenta:empty { display: none; }
.lenta-rolikov { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.lenta-rolikov button { position: relative; flex: 0 0 88px; display: grid; gap: 2px; padding: 0; border: 0;
  background: none; color: inherit; text-align: left; cursor: pointer; }
.lenta-rolikov .oblozhka { width: 88px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; }
.lenta-rolikov button.tekushchiy .oblozhka { outline: 2px solid var(--akcent); outline-offset: 2px; }
.lenta-rolikov small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.lenta-rolikov .orig { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 6px;
  background: var(--akcent); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }

/* Полоса здоровья: сбор молчит или трендов меньше нормы (moduli/zdorove) */
.zdorove { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; padding: 10px 14px;
  border-radius: var(--radius); background: color-mix(in srgb, var(--krasnyy) 12%, transparent); color: var(--krasnyy); font-size: 13px; }

/* Полоса прокрутки — в стиле сайта и в окнах (Данил 04.11): тонкая, скруглённая, отступает от края, без стрелок. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--seryy) 45%, transparent) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--seryy) 80%, transparent); }
::-webkit-scrollbar-button { display: none; }
.okno::-webkit-scrollbar-track { margin: 20px 0; }                       /* не залезает на скруглённые углы окна */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--seryy) 45%, transparent) transparent; } }
.po-analizu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: 13px; }   /* задача 57 */
.po-analizu .ik { width: 15px; height: 15px; color: var(--akcent); } .po-analizu a { color: var(--akcent); }
.po-analizu b { padding: 3px 10px; border-radius: 999px; background: var(--kartochka); border: 1px solid var(--liniya); color: var(--tekst); font-weight: var(--polu); font-size: 12px; }
