
html.ui2{--sw:268px}
html.ui2.ui2-col{--sw:78px}
html.ui2[data-mode="night"]{
  --ink:#070a14;--surface:#10152a;--raise:#161c35;--line:rgba(255,255,255,.085);--line2:rgba(255,255,255,.14);
  --text:#eef0f7;--muted:#c6cbdb;--faint:#a3aac0;--accent:#F5C242;--accent-dim:#c9961f;--accent-soft:rgba(245,194,66,.13);
  --u2-ring:rgba(245,194,66,.32);--u2-side:rgba(10,13,26,.72);--u2-bar:rgba(7,10,20,.78);
  --u2-aurora:radial-gradient(900px 520px at 18% -8%,rgba(245,194,66,.10),transparent 60%),radial-gradient(700px 480px at 100% 8%,rgba(139,92,246,.12),transparent 60%);
  color-scheme:dark}
html.ui2[data-mode="day"]{--ana-warn:#B26A00;
  --ink:#e9ebef;--surface:#f6f7f9;--raise:#e3e6ec;--line:#d3d8e1;--line2:#b9c0cd;
  --text:#0b1220;--muted:#333b4e;--faint:#4b5468;--accent:#E39A2D;--accent-dim:#9a5a0c;--accent-soft:rgba(214,140,50,.16);
  --ok:#047857;--err:#c2410c;--post:#4f5bd5;
  --shadow:0 1px 2px rgba(15,23,42,.04),0 16px 40px -28px rgba(30,41,99,.35);
  --glow:0 0 0 1px rgba(226,160,90,.38),0 14px 34px -20px rgba(226,160,90,.45);
  --u2-ring:rgba(200,125,40,.45);--u2-side:#eef0f3;--u2-bar:rgba(233,235,239,.92);
  --u2-aurora:linear-gradient(transparent,transparent);
  color-scheme:light}
html.ui2 body{background:var(--u2-aurora),var(--ink);background-attachment:fixed;padding-left:var(--sw);transition:padding-left .2s}
html.ui2 body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif}
/* ── меню слева ── */
html.ui2 .top{position:fixed;left:0;top:0;bottom:0;width:var(--sw);z-index:60;flex-direction:column;align-items:stretch;gap:0;
  padding:18px 14px 14px;background:var(--u2-side);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-right:1px solid var(--line);border-bottom:0;overflow-y:auto;overflow-x:hidden;transition:width .2s,transform .22s}
html.ui2 .top>#ver,html.ui2 .top>#reload,html.ui2 .top>#home{display:none!important}
html.ui2 .logo{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin:0 0 6px;text-align:left}
html.ui2 .logo:hover{opacity:1;border-color:var(--line2)}
html.ui2 .ui2-mark{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font:800 20px/1 Montserrat,sans-serif;color:#2a1a00;background:linear-gradient(135deg,#fcd34d,#e2a05a);box-shadow:0 8px 20px -10px rgba(226,160,90,.8)}
html.ui2 .ui2-brand small{display:block;font:600 10.5px/1.2 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
html.ui2 .ui2-brand b{display:block;font:800 19px/1.15 Montserrat,sans-serif;color:var(--text);letter-spacing:-.01em}
html.ui2 #tabs,html.ui2 .top .tabs{flex-direction:column;align-items:stretch;flex-wrap:nowrap;flex-basis:auto;order:0;gap:2px;margin:6px 0 0;padding:0;overflow:visible;width:auto}
html.ui2 .top{flex-wrap:nowrap!important;row-gap:0}
html.ui2 .top .tabs button{font-size:15px!important;padding:10px 12px!important}
html.ui2.ui2-col .top .tabs button{padding:11px 0!important}
html.ui2 .top .tabs .fl-beta{font-size:10px!important;padding:4px 7px!important;margin-left:auto!important;letter-spacing:.09em!important}
html.ui2 .ui2-grp{font:600 11px/1 Inter,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:var(--faint);padding:16px 12px 7px;white-space:nowrap}
html.ui2 #tabs button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;margin:0;border:1px solid transparent;border-radius:11px;
  color:var(--muted);font:500 15px/1.2 Inter,sans-serif;text-align:left;background:none;transition:background .15s,color .15s}
html.ui2 #tabs button:hover{background:var(--raise);color:var(--text)}
html.ui2 #tabs button.on{background:var(--accent-soft);border-color:var(--u2-ring);color:var(--text);font-weight:600}
html.ui2 #tabs button .ui2-ic{flex:none;width:20px;height:20px;display:grid;place-items:center;color:inherit}
html.ui2 #tabs button.on .ui2-ic{color:var(--accent-dim)}
html.ui2 #tabs button .ui2-ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.ui2 #tabs sup.fl-beta{margin-left:auto;position:static;font:700 10px/1 Inter,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--accent-dim);background:var(--accent-soft);padding:4px 7px;border-radius:6px;vertical-align:baseline;top:0}
html.ui2 .top>.sp{flex:1;min-height:14px}
html.ui2 .ui2-foot{display:flex;flex-direction:column;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
html.ui2 .ui2-row{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:10px;color:var(--muted);font-size:14px;text-align:left}
html.ui2 .ui2-row:hover{background:var(--raise);color:var(--text)}
html.ui2 .ui2-row svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.ui2 .ui2-theme{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
html.ui2 .ui2-theme button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 4px;border-radius:8px;color:var(--faint);font-size:13px;white-space:nowrap}
html.ui2 .ui2-theme button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
html.ui2 .ui2-theme button.on{background:var(--raise);color:var(--text);box-shadow:inset 0 0 0 1px var(--line2)}
html.ui2 #logout.ui2-row{justify-content:flex-start;border:0;min-height:0}
/* свёрнутое меню — только иконки */
html.ui2.ui2-col .ui2-lbl,html.ui2.ui2-col .ui2-grp,html.ui2.ui2-col #tabs sup.fl-beta,html.ui2.ui2-col .ui2-brand,html.ui2.ui2-col .ui2-theme span{display:none!important}
html.ui2.ui2-col .logo{justify-content:center;padding:8px;border:0;background:none}
html.ui2.ui2-col #tabs button{justify-content:center;padding:11px 0}
html.ui2.ui2-col .ui2-row{justify-content:center}
html.ui2.ui2-col .ui2-theme{flex-direction:column}
html.ui2.ui2-col .ui2-flip svg{transform:rotate(180deg)}
html.ui2.ui2-col .ui2-grp-line{display:block}
/* ── верхняя строка ── */
html.ui2 .ui2-bar{position:sticky;top:0;z-index:45;display:flex;align-items:center;gap:12px;padding:14px 32px;border-bottom:1px solid var(--line);background:var(--u2-bar);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html.ui2 .ui2-burger{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:var(--surface);place-items:center;color:var(--text)}
html.ui2 .ui2-burger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
html.ui2 .ui2-crumb{color:var(--faint);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ui2 .ui2-crumb b{color:var(--text);font-weight:600}
html.ui2 .ui2-bar .ui2-sp{flex:1}
html.ui2 .ui2-bar .quota{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:14px;white-space:nowrap}
html.ui2 .ui2-bar .quota b{color:var(--accent-dim)}
html.ui2 .ui2-bar #tomentor{padding:9px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-weight:600;font-size:14.5px}
html.ui2 .ui2-bar #tomentor:hover,html.ui2 .ui2-bar #tomentor.on{border-color:var(--u2-ring);background:var(--accent-soft)}
html.ui2 .ui2-bar #bell{width:42px;height:42px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);position:relative}
html.ui2 .ui2-bar .bellbox{top:64px;right:24px}
/* ── экраны: шире и воздушнее ── */
html.ui2 .wrap,html.ui2 main{max-width:1240px}
html.ui2 .btn.main{background:linear-gradient(110deg,#f5c242 0%,#e9a54c 60%,#e08a3c 100%);color:#2a1a00;border:0;box-shadow:0 10px 26px -14px rgba(224,138,60,.7)}
html.ui2 .createhead h1{font-family:Onest,Montserrat,sans-serif;letter-spacing:-.03em}
/* ── дневная тема: жёстко прописанные тёмные цвета старой вёрстки ── */
html.ui2[data-mode="day"] [style*="background:#0d1013"],html.ui2[data-mode="day"] [style*="background:#0e1114"],html.ui2[data-mode="day"] [style*="background:#101317"],
html.ui2[data-mode="day"] [style*="background:#14171b"],html.ui2[data-mode="day"] [style*="background:#1d1c22"],html.ui2[data-mode="day"] [style*="background:#111"]{background:var(--surface)!important}
html.ui2[data-mode="day"] [style*="color:#e6e8ea"],html.ui2[data-mode="day"] [style*="color:#fff"],html.ui2[data-mode="day"] [style*="color:#eee"]{color:var(--text)!important}
html.ui2[data-mode="day"] [style*="color:#8a9099"],html.ui2[data-mode="day"] [style*="color:#9aa1aa"],html.ui2[data-mode="day"] [style*="color:#bbb"]{color:var(--muted)!important}
html.ui2[data-mode="day"] [style*="border:1px solid #2a2f36"],html.ui2[data-mode="day"] [style*="border:1px solid #333"]{border-color:var(--line)!important}
html.ui2[data-mode="day"] .tgpill{background:var(--surface);color:var(--muted);border-color:var(--line)}
html.ui2[data-mode="day"] .tgpill.on{background:var(--accent);color:#2a1a00;border-color:var(--accent)}
html.ui2[data-mode="day"] .fastset input[type=range]{background:linear-gradient(90deg,var(--accent) var(--п,53%),var(--line) var(--п,53%))}
html.ui2[data-mode="day"] .fastset input[type=range]::-webkit-slider-thumb{border-color:#fff}
html.ui2[data-mode="day"] ::selection{color:#fff}
html.ui2[data-mode="day"] .choice-cta,html.ui2[data-mode="day"] .exlink,html.ui2[data-mode="day"] .exlink a,html.ui2[data-mode="day"] #scr-analit h1,html.ui2[data-mode="day"] .ana-h,html.ui2[data-mode="day"] .card-link{color:#B5701A}
html.ui2[data-mode="day"] .fl-q,html.ui2[data-mode="day"] .fl-tile .fl-q button,html.ui2[data-mode="day"] .fl-mark{background:var(--surface);color:var(--muted);border:1px solid var(--line)}
/* ── читаемость мелкого текста (отзыв 18.11: «контраста не хватает, глаза устают») ── */
html.ui2 [style*="font-size:10px"],html.ui2 [style*="font-size:10.5px"],html.ui2 [style*="font-size:11px"],html.ui2 [style*="font-size:11.5px"]{font-size:12.5px!important}
html.ui2 .sub,html.ui2 .fmthint,html.ui2 .подсказка,html.ui2 .sx-sub,html.ui2 .hint,html.ui2 small,html.ui2 .tgseg-lab{opacity:1!important}
html.ui2[data-mode="day"] .fmthint,html.ui2[data-mode="day"] .подсказка,html.ui2[data-mode="day"] .sx-sub,html.ui2[data-mode="day"] .tgseg-lab,html.ui2[data-mode="day"] .lab{color:var(--faint)!important}
html.ui2[data-mode="day"] .fmts button{background:var(--surface);color:var(--muted);border-color:var(--line2)}
html.ui2[data-mode="day"] .fmts button.on{background:var(--accent);color:#1d1203;border-color:var(--accent)}
html.ui2[data-mode="day"] .autopanel,html.ui2[data-mode="day"] .choice,html.ui2[data-mode="day"] .sx-card{box-shadow:0 1px 2px rgba(11,18,32,.06)}
html.ui2[data-mode="day"] input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),html.ui2[data-mode="day"] textarea,html.ui2[data-mode="day"] select{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line2)!important}
html.ui2[data-mode="day"] input::placeholder,html.ui2[data-mode="day"] textarea::placeholder{color:#6b7385!important}
html.ui2[data-mode="day"] input[type=checkbox]:not(:checked){accent-color:var(--accent);background-color:var(--surface)!important;border-color:var(--line2)!important}
/* «Создать» как в макете: приветствие, акцент на «создаём?» */
html.ui2 .createhead h1{font-size:clamp(40px,5.2vw,68px)!important;line-height:1.02;letter-spacing:-.035em}
html.ui2 .ui2-acc{font-style:normal;background:linear-gradient(110deg,#f5c242 0%,#e9a54c 60%,#e08a3c 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
html.ui2[data-mode="day"] .ui2-acc{background:linear-gradient(110deg,#d48a1c 0%,#c26f18 70%)!important;-webkit-background-clip:text!important;background-clip:text!important}
html.ui2 .ui2-hi{display:inline-flex;align-items:center;gap:8px;margin:0 auto 14px;padding:7px 14px 7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:14px}
.ui2-still{animation:none!important}
html.ui2 .ui2-hi i{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.18)}
html.ui2[data-mode="day"] .dsh-open{background:rgba(214,140,50,.18)!important;color:#8a4f08!important}
html.ui2[data-mode="day"] .dsh-now .cap,html.ui2[data-mode="day"] .choice-cta{color:#9a5a0c!important}
/* Кабинет в боте (dash-mode): старая шапка скрыта, но новое меню по ☰ должно работать — показываем его выезжающим */
html.ui2 body.dash-mode .top{display:flex!important}
@media (min-width:901px){html.ui2 body.dash-mode .top{display:flex!important}}
html.ui2 body.dash-mode .top:not(:hover){}
/* ── библиотеки: ровные карточки (одинаковые кнопки, без «рваных» стопок) ── */
html.ui2 .card .acts,html.ui2 .card .cardacts,html.ui2 .card .cact{display:flex!important;flex-wrap:wrap;gap:8px}
html.ui2 .grid>.card,html.ui2 .grid>*{display:flex;flex-direction:column}
html.ui2 .grid>.card>:last-child{margin-top:auto}
html.ui2 .fl-tile{display:flex;flex-direction:column}
html.ui2 .fl-tile .fl-q{margin-top:auto;display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
html.ui2 .fl-tile .fl-q button{width:100%;white-space:nowrap}
/* карточка карусели: компактный ряд действий-иконок вместо стопки из 4 кнопок */
html.ui2 .grid .bd{display:flex;flex-direction:column;gap:4px}
html.ui2 .grid .bd .qrow{display:flex!important;flex-wrap:wrap;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
html.ui2 .grid .bd .qrow u,html.ui2 .grid .bd .qrow span,html.ui2 .grid .bd>u.vz{display:inline-flex!important;align-items:center;gap:4px;margin:0!important;padding:6px 10px!important;border-radius:9px!important;border:1px solid var(--line)!important;background:var(--surface)!important;font-size:12.5px!important;font-weight:600;line-height:1.2;text-decoration:none!important;white-space:nowrap;color:var(--muted)!important;box-shadow:none!important}
html.ui2 .grid .bd .qrow u:hover,html.ui2 .grid .bd>u.vz:hover{border-color:var(--u2-ring)!important;color:var(--text)!important}
html.ui2 .grid .bd .qrow .on,html.ui2 .grid .bd .qok{color:var(--ok)!important}
html.ui2 .grid .bd>u.vz{align-self:flex-start;margin-top:6px!important}
html.ui2 .grid .bd>u.qdrop{align-self:flex-start;margin-top:6px!important;font-size:12.5px!important;color:var(--faint)!important;text-decoration:none!important;opacity:.8}
html.ui2 .grid .bd>u.qdrop:hover{color:var(--err)!important;opacity:1}
html.ui2 .grid .bd .when{font-size:13px;color:var(--faint)}
/* Reels-плитки: ровные, кнопки одной строкой */
html.ui2 .fl-tile .tt{min-height:2.6em}
/* ══ экран входа в новом дизайне ══ */
html.ui2 .gateплитка{display:none!important}html.ui2 .gate::after{display:none!important}

html.ui2 .gate{align-items:safe center!important;background:radial-gradient(900px 600px at 15% -10%,rgba(245,194,66,.16),transparent 60%),radial-gradient(800px 600px at 105% 10%,rgba(139,92,246,.18),transparent 60%),#070a14!important;backdrop-filter:none!important;display:flex;align-items:center;justify-content:center;padding:32px max(18px,env(safe-area-inset-left)) 32px max(18px,env(safe-area-inset-right));overflow:auto}
html.ui2 .gate[hidden]{display:none!important}
html.ui2 .gate::before{content:"";position:absolute;right:max(-40px,calc(50vw - 860px));top:50%;width:min(58vw,880px);aspect-ratio:1440/900;transform:translateY(-50%) perspective(1600px) rotateY(-9deg) rotateX(2deg);border-radius:18px;border:1px solid rgba(255,255,255,.12);background:#0b0f1e url(/sx-demo/p9001.jpg) left top/cover no-repeat;box-shadow:0 50px 120px -30px rgba(0,0,0,.85),0 0 0 8px rgba(255,255,255,.03),0 0 120px -20px rgba(245,194,66,.25);pointer-events:none;opacity:1;filter:none!important;animation:none!important;mask-image:none;-webkit-mask-image:none}
html.ui2 .gatebox::after{content:"";position:absolute;right:calc(-1 * min(4vw,60px));bottom:-60px;width:min(15vw,210px);aspect-ratio:390/844;border-radius:30px;border:6px solid #11141f;background:#0b0f1e url(/sx-demo/p9002.jpg) top/cover no-repeat;box-shadow:0 40px 80px -20px rgba(0,0,0,.9);grid-column:2;pointer-events:none}
html.ui2 .gatebox{position:relative;z-index:1;width:min(1180px,100%);min-height:520px;max-width:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-align:left!important;display:grid;grid-template-columns:minmax(0,500px) 1fr;align-items:center}
html.ui2 .gatebox>*{grid-column:1}
html.ui2 .gatelogo{display:flex;align-items:center;gap:0;font:800 22px/1 Montserrat,sans-serif!important;color:#eef0f7!important;margin:0 0 34px!important;justify-content:flex-start!important}
html.ui2 .gatelogo::before{content:"C";margin-right:12px;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#fcd34d,#e2a05a);color:#2a1a00;font:800 22px/1 Montserrat,sans-serif;box-shadow:0 10px 26px -10px rgba(226,160,90,.8)}
html.ui2 .gatelogo span{color:#F5C242!important}
html.ui2 .gatebox>p:first-of-type{font:800 clamp(30px,3.3vw,46px)/1.08 Montserrat,sans-serif!important;letter-spacing:-.03em;color:#eef0f7!important;margin:0 0 26px!important;max-width:520px;text-wrap:balance}
html.ui2 .gatelist{width:100%;max-width:500px!important;list-style:none!important;margin:0 0 30px!important;padding:0!important;display:grid;gap:12px}
html.ui2 .gatelist li{position:relative;max-width:500px;padding:12px 14px 12px 50px!important;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(16,21,42,.72);backdrop-filter:blur(8px);color:#c6cbdb!important;font-size:15px!important;line-height:1.45!important;text-align:left!important}
html.ui2 .gatelist li::before{content:"✓"!important;position:absolute;left:14px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:rgba(245,194,66,.16)!important;color:#F5C242!important;font:800 13px/1 Inter,sans-serif;border:0!important;margin:0!important}
html.ui2 .gate .tgbutton#botbtn{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;width:100%;max-width:500px;padding:17px 22px!important;border-radius:14px!important;background:linear-gradient(110deg,#f5c242 0%,#e9a54c 60%,#e08a3c 100%)!important;color:#1d1203!important;font:700 17px/1 Inter,sans-serif!important;box-shadow:0 16px 36px -16px rgba(224,138,60,.9)!important;border:0!important;text-decoration:none!important}
html.ui2 .gate .tgbutton#botbtn svg{width:20px;height:20px}
html.ui2 .gatenote{color:#a3aac0!important;font-size:14px!important;line-height:1.55!important;margin:16px 0 0!important;max-width:500px;text-align:left!important}
html.ui2 .gatelegal{max-width:500px;margin:40px 0 0!important;color:#7d859c!important;font-size:12px!important;text-align:left!important}
html.ui2 .gatelegal a{color:#a3aac0!important}
@media (max-width:1000px){html.ui2 .gatebox::after{display:none}html.ui2 .gatebox{grid-template-columns:1fr}html.ui2 .gate::before{width:auto;aspect-ratio:auto;transform:none;border:0;border-radius:0;box-shadow:none;inset:0;top:0;right:0;background:url(/sx-demo/p9002.jpg) center bottom -60px/min(60vw,260px) auto no-repeat;opacity:.08;mask-image:linear-gradient(180deg,transparent 45%,#000 100%);-webkit-mask-image:linear-gradient(180deg,transparent 45%,#000 100%)}
  html.ui2 .gatebox>p:first-of-type{font-size:34px!important}html.ui2 .gatelogo{margin-bottom:24px!important}}
/* ── телефон: аккуратные ряды кнопок, ничего не обрезается, плавающая кнопка не закрывает контент ── */
@media (max-width:700px){
  html.ui2 .fl-filt,html.ui2 .fl-lf,html.ui2 #flDeckF,html.ui2 .sx-tabs,html.ui2 [class*="fl-f"] .fl-tabs{flex-wrap:wrap!important;overflow:visible!important;row-gap:6px}
  html.ui2 #scr-film .fl-lf button,html.ui2 #scr-film .fl-tabs button{flex:0 0 auto}
  html.ui2 .fl-dkbar .fl-lf{flex:1 1 100%;width:100%;margin:0!important;padding:0!important}
  html.ui2 .fl-dkbar .fl-in{flex:1 1 100%;max-width:none}
  html.ui2 .fl-lf{padding:0!important;margin-left:0!important;margin-right:0!important}
  html.ui2 #scr-sx .tgseg-row{flex-wrap:nowrap!important;flex-direction:row!important}
  html.ui2 #scr-sx .tgseg-row .tgpill{flex:1 1 0;min-width:0;padding:10px 6px!important;font-size:13px!important;white-space:nowrap}
  html.ui2 #scr-sx [data-sxtg]{white-space:normal!important;line-height:1.25}
  html.ui2 #scr-sx .sx-inp{flex-wrap:wrap!important;gap:8px}
  html.ui2 #scr-sx .sx-inp textarea{flex:1 1 100%!important;min-height:52px}
  html.ui2 #scr-sx .sx-inp .btn.main{flex:1 1 auto}
  html.ui2 main,html.ui2 .wrap,html.ui2 #scr-sx,html.ui2 #scr-film{padding-bottom:96px!important}
}
/* ── ручной редактор (#ed2) в режиме «День» — светлая оболочка, слайд не трогаем (Правки 20 ТЗ 3) ── */
html.ui2[data-mode="day"] #ed2{background:var(--ink)!important;color:var(--text)!important}
html.ui2[data-mode="day"] #ed2 .e2top,html.ui2[data-mode="day"] #ed2 .e2panel,html.ui2[data-mode="day"] #ed2 .e2strip{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)}
html.ui2[data-mode="day"] #ed2 .e2stage{background:radial-gradient(900px 600px at 50% 0,#f3f4f7,#e6e9ef)!important}
html.ui2[data-mode="day"] #ed2 .e2btn:not(.pri),html.ui2[data-mode="day"] #ed2 .e2seg button,html.ui2[data-mode="day"] #ed2 textarea,html.ui2[data-mode="day"] #ed2 select,html.ui2[data-mode="day"] #ed2 input:not([type=range]):not([type=checkbox]):not([type=color]),html.ui2[data-mode="day"] #ed2 .e2allrow,html.ui2[data-mode="day"] #ed2 .e2strip button{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line2)!important}
html.ui2[data-mode="day"] #ed2 .e2btn:not(.pri):hover,html.ui2[data-mode="day"] #ed2 .e2seg button:hover{background:var(--raise)!important}
html.ui2[data-mode="day"] #ed2 .e2seg button.on,html.ui2[data-mode="day"] #ed2 .e2seg button[aria-pressed=true]{background:var(--accent)!important;color:#1d1203!important;border-color:var(--accent)!important}
html.ui2[data-mode="day"] #ed2 label,html.ui2[data-mode="day"] #ed2 .e2panel *:not(canvas):not(button):not(input):not(select):not(textarea){color:inherit}
html.ui2[data-mode="day"] #ed2 [style*="color:#6b7488"],html.ui2[data-mode="day"] #ed2 [style*="color:#8a93a6"],html.ui2[data-mode="day"] #ed2 [style*="color:#9aa3b5"]{color:var(--faint)!important}
html.ui2[data-mode="day"] #ed2 #e2cv{box-shadow:0 20px 50px -20px rgba(11,18,32,.45)!important}
/* полноэкранные тёмные окна (вход, инструкция, редакторы) — всегда в своём тёмном виде, даже днём */
html.ui2[data-mode="day"] .gate,html.ui2[data-mode="day"] .instro,html.ui2[data-mode="day"] #sxig,html.ui2[data-mode="day"] .lightbox{
  --ink:#070a14;--surface:#10152a;--raise:#161c35;--line:rgba(255,255,255,.085);--line2:rgba(255,255,255,.14);--text:#eef0f7;--muted:#c6cbdb;--faint:#a3aac0;--accent:#F5C242;--accent-dim:#c9961f;color-scheme:dark;color:var(--text)}
html.ui2[data-mode="day"] .gate input,html.ui2[data-mode="day"] .instro input,html.ui2[data-mode="day"] #sxig input,html.ui2[data-mode="day"] #sxig textarea{background:var(--surface)!important;color:var(--text)!important;border-color:var(--line2)!important}
/* ── телефон: меню выезжает ── */
html.ui2 .ui2-shade{display:none}
@media (max-width:900px){
  html.ui2 body{padding-left:0}
  html.ui2 .top{width:280px;transform:translateX(-105%);box-shadow:0 0 60px rgba(0,0,0,.4)}
  html.ui2.ui2-open .top{transform:none}
  html.ui2.ui2-open .ui2-shade{display:block;position:fixed;inset:0;z-index:55;background:rgba(5,8,18,.45)}
  html.ui2.ui2-col .top{width:280px}
  html.ui2.ui2-col .ui2-lbl,html.ui2.ui2-col .ui2-grp,html.ui2.ui2-col #tabs sup.fl-beta,html.ui2.ui2-col .ui2-brand{display:revert!important}
  html.ui2 .ui2-colbtn{display:none}
  html.ui2 .ui2-burger{display:grid}
  html.ui2 .ui2-bar{padding:10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));gap:8px}
  html.ui2 .ui2-bar #tomentor{display:none!important}
  html.ui2 .ui2-bar .quota{padding:8px 10px;font-size:0;gap:4px}
  html.ui2 .ui2-bar .quota b{font-size:14px}
  html.ui2 .ui2-bar .quota::after{content:"💎";font-size:13px}
  html.ui2 .ui2-bar .quota img,html.ui2 .ui2-bar .quota svg{display:none}
  html.ui2 .ui2-crumb .ui2-c0{display:none}
}
/* ══ 19.11 аудит внешнего вида (fix-v): номера пунктов — из отчёта аудита ══ */
/* --acc-ink — «оранжевый для ТЕКСТА»: днём тёмный (контраст ≥4,5:1 на светлом), ночью — обычный акцент */
html.ui2[data-mode="night"]{--acc-ink:var(--accent)}
html.ui2[data-mode="day"]{--acc-ink:#8a4f08}
html.ui2[data-mode="day"] .gate,html.ui2[data-mode="day"] .instro,html.ui2[data-mode="day"] #sxig,html.ui2[data-mode="day"] .lightbox{--acc-ink:#F5C242}
/* 8.1 затухание «Читать целиком» — в цвет карточки, а не в чёрный */
html.ui2 .strat.свёрнут::after{background:linear-gradient(to bottom,transparent,var(--surface))}
html.ui2 .strat .развернуть .btn{background:var(--surface);border:1px solid var(--line2);color:var(--text)}
html.ui2[data-mode="day"] .railmore{color:var(--acc-ink)}
html.ui2[data-mode="day"] #ohelp{color:var(--acc-ink)!important}
/* 11.1 рамка поля ввода наставника — из цветов темы, без градиента в чёрный */
html.ui2 .ask{background:linear-gradient(180deg,var(--surface),var(--raise))}
/* 2.1 сетка каруселей не шире экрана; 2.2/2.4 действия карточки — сетка 2×2, прижата к низу */
html.ui2 .grid>*{min-width:0}
html.ui2 .grid .st .bd{flex:1 1 auto}
html.ui2 .grid .bd .qrow{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:auto;padding-top:10px}
html.ui2 .grid .bd .qrow>u,html.ui2 .grid .bd .qrow>span{justify-content:center;text-align:center;white-space:normal!important;min-width:0;align-self:stretch;padding:7px 6px!important;font-size:12px!important;line-height:1.25}
html.ui2 .grid .bd .qrow>u.qdrop{color:var(--faint)!important;opacity:1}
html.ui2 .grid .bd .qrow>u.qdrop:hover{color:var(--err)!important;border-color:var(--err)!important}
/* 2.5 плашки на обложке: крупнее и контрастнее */
html.ui2 .badge2{font-size:11px;letter-spacing:.06em}
html.ui2[data-mode="day"] .badge2.done,html.ui2[data-mode="day"] .badge2.posted{color:#fff}
html.ui2 .st .n13{font-size:11px;color:var(--acc-ink);background:var(--surface)}
html.ui2[data-mode="day"] .stat.text b{color:var(--acc-ink)}
html.ui2[data-mode="day"] .st .bd>u:not([class]),html.ui2[data-mode="day"] .st .bd .warnline{color:var(--acc-ink)}
/* 3.1/3.4 «Сила хука» и «Опубликовать в Instagram» — обычные вторичные кнопки, читаются в обеих темах */
html.ui2 #vhook,html.ui2 #vigpost{color:var(--text)!important;border-color:var(--line)!important}
html.ui2 #vigpost small{color:var(--faint);opacity:1!important}
html.ui2 #ved2{color:#fff!important}
html.ui2 .stage .num{color:#fff!important;background:rgba(10,10,12,.72)!important}
/* 3.3 кнопки панели «Картинка слайда» днём — тёмно-коричневый текст */
html.ui2[data-mode="day"] .gen{color:var(--acc-ink);border-color:var(--u2-ring)}
html.ui2[data-mode="day"] .gen.up{color:var(--muted);border-color:var(--line)}
html.ui2[data-mode="day"] .gen:not(:disabled):hover{color:#16130A}
html.ui2[data-mode="day"] .picker .phead b{color:var(--acc-ink)}
/* 3.8 лента миниатюр на компьютере — переносится, а не обрезается */
@media (min-width:701px){html.ui2 #vstrip{flex-wrap:wrap;overflow:visible}}
/* 3.5 телефон: под слайдом — миниатюры и главные действия, замена картинки — ниже */
@media (max-width:700px){
  html.ui2 #scr-view .viewer{display:flex;flex-direction:column;gap:14px}
  html.ui2 #scr-view .viewer>div:first-child{display:contents}
  html.ui2 #scr-view .viewer>div:first-child>*,html.ui2 #scr-view #vrail{min-width:0;max-width:100%;width:100%}
  html.ui2 #scr-view .stagewrap{order:1}
  html.ui2 #scr-view #vstrip{order:2;padding-top:2px}
  html.ui2 #scr-view #vrail{order:3}
  html.ui2 #scr-view #vpick{order:4}
}
/* 4.1 «Сохранить всё (0)» — неактивный вид, пока нечего сохранять; 4.5 «Удалить слайд» — отдельно и красная */
html.ui2 #ed2 .e2btn.pri.e2empty{opacity:.45;filter:grayscale(.7);box-shadow:none;cursor:default}
html.ui2 #ed2 .e2strip button.on{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--u2-ring)}
html.ui2 #ed2 #e2del{color:var(--err)!important;border-color:var(--err)!important;margin-left:10px}
/* 5.1 «Правка — все слайды»: обычные поля раздела; 5.3 ряды кнопок под слайдом */
html.ui2 .wrap.res{padding:30px 28px 110px}
@media (max-width:760px){html.ui2 .wrap.res{padding:22px 16px 96px}}
html.ui2 .sl i:empty{display:none}
html.ui2 .sl i{font-size:10.5px;color:var(--acc-ink)}
html.ui2 .sl .pickrow:not(.pickoff){grid-template-columns:repeat(6,minmax(0,1fr))}
html.ui2 .sl .pickrow:not(.pickoff)>.flip[data-flip]{grid-column:span 1}
html.ui2 .sl .pickrow:not(.pickoff)>.pick{grid-column:span 4}
html.ui2 .sl .pickrow:not(.pickoff)>.redraw,html.ui2 .sl .pickrow:not(.pickoff)>.up,html.ui2 .sl .pickrow:not(.pickoff)>[data-txt]{grid-column:span 2}
html.ui2 .sl .pickrow:not(.pickoff)>[data-txt]{font-size:12.5px;white-space:nowrap}
html.ui2 .sl .pickrow.pickoff{flex-wrap:wrap}
html.ui2 .sl .pickrow.pickoff .flip{flex:1 1 0;width:auto;min-width:0}
html.ui2 .sl .pick{padding:0 6px}
/* 6.4 три плитки статистики сторис — в одну строку и на телефоне */
@media (max-width:900px){
  html.ui2 #scr-sx .sx-stats3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  html.ui2 #scr-sx .sx-stats3 div:last-child{grid-column:auto}
  html.ui2 #scr-sx .sx-stats3 div{padding:10px 11px}
  html.ui2 #scr-sx .sx-stats3 b{font-size:24px}
  html.ui2 #scr-sx .sx-stats3 span{font-size:12px;line-height:1.3;display:block}
}
html.ui2[data-mode="day"] #scr-sx .sx-stats b[style*="#5c9dff"]{color:var(--post)!important}
html.ui2[data-mode="day"] #scr-sx .sx-stats b[style*="#17b57e"]{color:var(--ok)!important}
html.ui2[data-mode="day"] #sxRdCntN{color:var(--acc-ink)}
/* 6.6 номер сторис в серии — белый кружок с тёмной цифрой (виден на любом фото) */
html.ui2 #scr-sx [data-sxopen2] .sx-badge{background:#fff;color:#0b1220!important;min-width:24px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.35)}
/* 6.5 закреплённая панель серии не уходит под кружок наставника */
@media (min-width:601px){html.ui2 #scr-sx .sx-bar{padding-right:84px}}
/* 1.1/3.6 кружок наставника: на телефоне меньше и уезжает на время прокрутки; на экране «Наставник» не нужен */
html.ui2 .agentbtn{transition:transform .25s,opacity .25s}
html.ui2 body:has(#scr-mentor:not([hidden])) .agentbtn:not(.on),html.ui2 body:has(#rashod:not([hidden])) .agentbtn:not(.on){display:none}
@media (max-width:900px){
  html.ui2 .agentbtn{width:48px;height:48px;font-size:19px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}
  html.ui2 .agentbtn.ui2-away:not(.on){transform:translateX(80px);opacity:0;pointer-events:none}
}
/* 1.2 мелкие оранжевые метки днём */
html.ui2 .callcard .cc-lbl{font-size:11.5px}
html.ui2[data-mode="day"] .callcard .cc-lbl{color:var(--acc-ink)}
html.ui2 .fl-seg-b .fl-beta{font-size:10.5px}
html.ui2[data-mode="day"] .fl-seg-b:not(.on) .fl-beta{color:var(--acc-ink)}
/* 2.7 фильтры каруселей на телефоне — переносятся, ничего не прячется за краем */
@media (max-width:760px){
  html.ui2 .sechead.zal .filters{flex-wrap:wrap;overflow:visible;width:auto;margin:0;padding:0;gap:7px}
}
/* 7.3 Аналитика — шапка как у остальных разделов, контент на всю ширину */
html.ui2 .analit{max-width:none}
html.ui2 .ana-top{text-align:left;margin:8px 0 22px}
html.ui2 .ana-top h2{font:800 30px/1.1 Montserrat,Inter,sans-serif;letter-spacing:-.4px;margin:0;background:none;-webkit-text-fill-color:currentColor;color:var(--text)}
html.ui2 .ana-top p{margin:8px 0 0;max-width:620px;font-size:15px}
@media (max-width:720px){html.ui2 .ana-top h2{font-size:24px}}
/* 7.4 метрики топ-поста не переносятся; 7.5 телефон — без «карточки в карточке»; 7.6 «из 100» */
html.ui2 .ana-tpm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:600px){
  html.ui2 .ana-card{padding:16px 12px;gap:10px}
  html.ui2 #anaMetricsRes>div[style*="padding:16px 20px"]{padding:14px 12px!important}
}
html.ui2 .ana-ring small{font-size:11px!important}
html.ui2[data-mode="day"] .ana-perbtn[style*="var(--accent)"],html.ui2[data-mode="day"] .ana-topbtn[style*="color:var(--accent)"],html.ui2[data-mode="day"] #anaTop a>span:first-child{color:var(--acc-ink)!important}
html.ui2[data-mode="day"] .ana-col.good h4{color:var(--ok)}
html.ui2[data-mode="day"] .ana-col.bad h4{color:var(--err)}
html.ui2[data-mode="day"] .it .fmt{color:var(--acc-ink)}
/* 9.1 кнопки Instagram/Threads — белый текст на своём фоне в любой теме */
html.ui2 #igoneclick,html.ui2 #igthreads{color:#fff!important}
/* 9.4 свёрнутые Настройки — ровные карточки-разделы, переключатель справа */
html.ui2 .sechead[data-tab="nastr"]{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 18px;margin:14px 0 12px;min-height:70px;row-gap:8px}
html.ui2 .sechead[data-tab="nastr"] h2{font-size:19px;line-height:1.2}
html.ui2 .sechead[data-tab="nastr"] #kaktog,html.ui2 .sechead[data-tab="nastr"] #otog,html.ui2 .sechead[data-tab="nastr"] #igtog,html.ui2 .sechead[data-tab="nastr"] #padd{margin-left:auto}
html.ui2 .sechead[data-tab="nastr"] .btn.ghost{border:1px solid var(--line2);border-radius:10px;padding:8px 14px}
html.ui2 .sechead[data-tab="nastr"] #padd{background:var(--surface);color:var(--text);border:1px solid var(--line2);box-shadow:none}
/* 🎨 20.11 ИИ-обложка: варианты */
.fl-cvai-box{margin:14px 0 4px;padding:12px;border:1px solid var(--line2);border-radius:14px}
.fl-cvai-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fl-cvai{position:relative;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:#141318;cursor:pointer;aspect-ratio:9/16;display:flex;flex-direction:column}
.fl-cvai img{width:100%;height:100%;object-fit:cover;display:block}
.fl-cvai em{position:absolute;left:0;right:0;bottom:0;padding:4px 6px;font:600 11px/1.2 system-ui;font-style:normal;color:#fff;background:linear-gradient(0deg,rgba(0,0,0,.75),rgba(0,0,0,0));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fl-cvai.on{border-color:var(--accent,#FFD43B)}
.fl-cvst .fl-chip,[data-cvst0]{cursor:pointer;color:inherit;font:inherit;font-size:12.5px}
.fl-cvst .fl-chip.on,[data-cvst0].on{background:#FFD43B;color:#111;border-color:#FFD43B;font-weight:700}
.fl-cvai-0{margin:auto;color:#bbb;font:600 12px/1.3 system-ui;text-align:center}
/* 9.6 значок ▶ не наезжает на надпись обложки */
html.ui2 .ytf .ytf-play{top:auto;left:18px;bottom:16px;transform:none}
/* 9.7 и др. — оранжевые надписи в «Как это работает» днём */
html.ui2[data-mode="day"] .kak li i,html.ui2[data-mode="day"] .kaklink,html.ui2[data-mode="day"] .kak-nast>b{color:var(--acc-ink)!important}
html.ui2 .pb .tag{font-size:10px}
html.ui2[data-mode="day"] .pb .tag{color:var(--acc-ink);background:var(--surface)}
html.ui2[data-mode="day"] .ctamiss:not([style]){color:var(--acc-ink)}
html.ui2[data-mode="day"] .dsh-now .cap{color:var(--acc-ink)!important}
html.ui2[data-mode="night"] #ed2 .e2hint,html.ui2[data-mode="night"] #ed2 .e2top>span[style*="#6b7488"]{color:var(--faint)!important}
html.ui2[data-mode="day"] .dsh-p-ok{color:var(--acc-ink)}
html.ui2[data-mode="day"] .dsh-tile{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
/* 10.2 Кошелёк: две равные карточки; 10.4 затемнение фона и заметная «Закрыть» */
html.ui2 .wgrid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
@media (max-width:620px){html.ui2 .wgrid{grid-template-columns:minmax(0,1fr)}}
html.ui2 .wgrid>.wcard{max-width:none;margin:0}
html.ui2[data-mode="day"] .rashod{background:rgba(11,18,32,.45);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
html.ui2 #rclose{border:1px solid var(--line2);color:var(--text);border-radius:10px}
html.ui2[data-mode="day"] .wbig.accent,html.ui2[data-mode="day"] .wtok,html.ui2[data-mode="day"] .wpi .pr{color:var(--acc-ink)}
