@font-face{font-family:Inter;font-weight:100 900;font-display:swap;src:url(/app/static/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-weight:100 900;font-display:swap;src:url(/app/static/fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#0A0A1A;--surface:#0F1629;--raised:#18223C;--sheet:#121A30;--line:#1E2944;--line2:#2E3B5E;
  --t1:#fff;--t2:#A3ACC2;--t3:#7F89A3;--on:#0A0A1A;
  --cyan:#EAB308;--pink:#60A5FA;--cyan-soft:#2A2208;--pink-soft:#0F2246;--up:#32d74b;--down:#F97316;--grad:linear-gradient(135deg,#FACC15,#EAB308 45%,#F59E0B);
  --down-soft:rgba(255,176,32,.14);--up-soft:rgba(50,215,75,.15);
  --sat:var(--tg-safe-top,0px);--sab:var(--tg-safe-bottom,env(safe-area-inset-bottom,0px));
  --pad:16px;--nav-w:0px;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{background:var(--bg);color:var(--t1);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;line-height:20px;-webkit-font-smoothing:antialiased;text-size-adjust:100%}
body{min-height:100vh;overflow-x:hidden}
button,input,textarea,select{font:inherit;color:inherit;background:none;border:0;outline:0}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
input,textarea{font-size:16px}
.hide{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* типографика */
.cap{font-size:12px;line-height:16px;font-weight:400}
.cap-s{font-size:12px;line-height:16px;font-weight:600}
.micro{font-size:11px;line-height:14px;font-weight:500}
.body{font-size:14px;line-height:20px;font-weight:400}
.body-s{font-size:14px;line-height:20px;font-weight:600}
.sub{font-size:16px;line-height:22px;font-weight:600}
.ttl{font-size:18px;line-height:24px;font-weight:700}
.dsp{font-size:24px;line-height:30px;font-weight:800}
.t2{color:var(--t2)}.t3{color:var(--t3)}.cy{color:var(--cyan)}.pk{color:var(--pink)}.up{color:var(--up)}.dn{color:var(--down)}
.nowrap{white-space:nowrap}.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row{display:flex;align-items:center}.col{display:flex;flex-direction:column}.grow{flex:1 1 0;min-width:0}
.gap4{gap:4px}.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap16{gap:16px}.gap22{gap:22px}.between{justify-content:space-between}.center{display:flex;justify-content:center;align-items:center}
.wrap{flex-wrap:wrap}

/* значки */
.ico{display:inline-block;flex:none;width:var(--s,20px);height:var(--s,20px);background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 20px;border-radius:100px;font-size:15px;line-height:20px;font-weight:600;white-space:normal;text-align:center;min-width:0;max-width:100%;transition:opacity .15s,transform .1s}
.btn>.ico{flex:none}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.45;cursor:default}
.btn-cyan{background:var(--cyan);color:var(--on)}
.btn-soft{background:var(--raised);color:var(--t1)}
.btn-pink{background:var(--pink);color:var(--on)}
.btn-green{background:var(--up);color:var(--on)}
.btn-dark{background:var(--bg);color:var(--t1)}
.btn-line{border:1px solid var(--line2);color:var(--t1)}
.btn-pinkline{background:transparent;color:var(--pink);box-shadow:inset 0 0 0 1.5px var(--pink)}
.btn-vkid{background:#0077FF;color:#FFFFFF;font-size:16px}
.btn-vkid>img{width:28px;height:28px;margin-left:2px;flex:none}
.btn-block{display:flex;width:100%}
.btn-sm{padding:10px 16px;font-size:14px}
.ibtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:22px;color:var(--t2);flex:none}
.ibtn.raised{background:var(--raised);color:var(--t1)}
.ibtn.on{color:var(--pink)}
.ticker{display:block;height:16px;overflow:hidden;position:relative;max-width:100%}
.brand>.col{min-width:0}
.ticker-line{display:block;overflow:hidden;text-overflow:ellipsis;max-width:100%;animation:tickin .5s cubic-bezier(.2,.8,.2,1)}
@keyframes tickin{from{transform:translateY(100%);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ticker-line{animation:none}}
.copyline{display:flex;align-items:flex-start;gap:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.copyline>:first-child{flex:1;min-width:0}
.copyline .copyico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:16px;background:var(--raised);color:var(--t2);flex:none}
.copyline:active .copyico,.copyline:focus-visible .copyico{color:var(--cyan)}
.link{display:inline-flex;align-items:center;gap:2px;color:var(--cyan);font-weight:600;font-size:14px;line-height:20px}
.link.pk{color:var(--pink)}

/* чипы, бейджи, поля */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--pad));padding:0 var(--pad)}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:10px 18px;border-radius:100px;background:var(--raised);color:var(--t2);font-weight:600;font-size:14px;line-height:20px;white-space:nowrap}
.chip.on{background:var(--cyan);color:var(--on)}
.daystrip{position:relative;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--pad));padding:0 var(--pad)}
.daystrip::-webkit-scrollbar{display:none}
.dchip{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:52px;min-height:44px;padding:6px 14px;border-radius:100px;background:var(--raised);color:var(--t1);font-weight:600;font-size:14px;line-height:18px;white-space:nowrap}
.dchip small{font-size:11px;line-height:14px;font-weight:400;color:var(--t3)}
.dchip.on{background:var(--cyan);color:var(--on)}
.dchip.on small{color:var(--on)}
.dchip.zero{opacity:.55}
.dchip.zero.on{opacity:1}
.dchip.all.zero:not(.on),.dchip.arch.zero:not(.on){opacity:1;color:var(--t3)}
@media (min-width:1180px){.daystrip{margin:0;padding:0;flex-wrap:wrap;overflow:visible}}
/* партнёрская программа */
.hero15{border-color:var(--cyan)}
.hero15 .big15{font-size:56px;line-height:60px;font-weight:800;color:var(--cyan);letter-spacing:-.02em}
.sub2{font-size:18px;line-height:24px;font-weight:700}
.ibox{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--raised);color:var(--cyan);flex:none}
.linkbox{padding:12px 14px;border-radius:14px;background:var(--raised);border:1px solid var(--line2);font-weight:500;font-size:14px;line-height:20px;overflow-wrap:anywhere}
.hr{height:1px;background:var(--line);flex:none}
.person{display:flex;align-items:center;gap:12px}
.num32{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:16px;background:var(--cyan-soft);color:var(--cyan);font-weight:700;font-size:14px;flex:none}
.bigcircle{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:28px;background:var(--raised);color:var(--t2)}
.b600{font-weight:600}.b700{font-weight:700}
.gap14{gap:14px}
.tool{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border-radius:100px;background:var(--raised);color:var(--t2);font-weight:600;font-size:14px;line-height:20px}
.tool.on{background:var(--cyan-soft);border:1px solid var(--cyan);color:var(--cyan)}
.tool .cnt{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:10px;background:var(--cyan);color:var(--on);font-size:11px;font-weight:500;line-height:14px}
.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:8px;font-size:11px;line-height:14px;font-weight:500;background:var(--raised);color:var(--t2);white-space:nowrap}
.badge.hot{background:var(--pink-soft);color:var(--pink)}
.badge.new{background:var(--cyan-soft);color:var(--cyan)}
.badge.warn{background:var(--down-soft);color:var(--down)}
.stock{position:absolute;left:6px;bottom:6px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:3px 8px;border-radius:8px;font-size:12px;line-height:16px;font-weight:700;font-variant-numeric:tabular-nums;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.stock.s0{background:#ff453a;color:#fff}
.stock.s1{background:#ff9f0a;color:#1a1100}
.stock.s2{background:#b7e04a;color:#101a00}
.stock.s3{background:var(--up);color:#04210b}
.gwrap .stock,.cover .stock{left:12px;bottom:12px;padding:4px 10px;border-radius:10px;font-size:14px;line-height:20px}
.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:100px;background:var(--raised);font-size:12px;line-height:16px;font-weight:600;color:var(--t2)}
.pill.up{background:var(--up-soft);color:var(--up)}
.pill.cy{background:var(--cyan-soft);color:var(--cyan)}
.pill.pk{background:var(--pink-soft);color:var(--pink)}
.pill.warn{background:var(--down-soft);color:var(--down)}
.pill.err{background:#2a1215;color:#ff8a8a}
.plan-badge{display:inline-flex;align-items:center;gap:5px;padding:8px 12px;border-radius:100px;background:var(--pink-soft);color:var(--pink);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
.plan-badge.guest{background:var(--raised);color:var(--t2)}
.plan-badge.spy{background:var(--cyan-soft);color:var(--cyan)}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:20px;background:var(--raised);border:1px solid var(--line2);font-weight:600;font-size:14px;color:var(--t1);flex:none;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.field{display:flex;align-items:center;gap:10px;padding:14px;border-radius:14px;background:var(--raised);border:1px solid var(--line2);color:var(--t3)}
.field input,.field textarea{flex:1;min-width:0;color:var(--t1);font-size:16px;line-height:20px}
.field input::placeholder,.field textarea::placeholder{color:var(--t3)}
.field:focus-within{border-color:var(--cyan)}
.field.area{align-items:flex-start}
.field textarea{resize:none;min-height:96px}
.field textarea.autogrow{overflow:hidden;min-height:120px}
.lbl{font-size:12px;line-height:16px;color:var(--t3);margin-bottom:6px;display:block}
.switch{position:relative;width:50px;height:30px;border-radius:15px;background:var(--line2);flex:none;transition:background .2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:12px;background:#fff;transition:transform .2s}
.switch.on{background:var(--cyan)}.switch.on::after{transform:translateX(20px)}
.seg{display:flex;padding:3px;border-radius:100px;background:var(--raised)}
.seg.seg-wrap{flex-wrap:wrap;border-radius:20px}
.seg.seg-wrap button{flex:1 1 auto}
.seg button{flex:1;padding:8px 12px;border-radius:100px;font-weight:600;color:var(--t2);white-space:nowrap}
.seg button.on{background:var(--cyan);color:var(--on)}
.banner{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--surface);color:var(--t2);font-size:12px;line-height:16px}
.banner .ico{--s:16px;color:var(--cyan);margin-top:0}
.banner.warn .ico{color:var(--down)}
.hint{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;padding:2px;border-radius:50%;color:var(--t3);position:relative}
.hint.labeled{border-radius:100px;padding:2px 8px;background:var(--cyan-soft);color:var(--cyan);font-size:12px;line-height:16px;font-weight:600}
.hint:hover,.hint:focus-visible{color:var(--cyan)}
.hint .tip{position:fixed;z-index:40;width:260px;padding:10px 12px;border-radius:12px;background:var(--raised);border:1px solid var(--line);color:var(--t1);font-size:12px;line-height:16px;font-weight:400;text-align:left;white-space:normal;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.progress{height:8px;border-radius:4px;background:var(--line2);overflow:hidden}
.progress>i{display:block;height:100%;background:var(--up);border-radius:4px}

/* карточки */
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px}
.card.pink{border-color:var(--pink)}
.sech{display:flex;flex-direction:column;gap:2px}
.sech .r{display:flex;align-items:center;justify-content:space-between}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px;min-width:0}
a.stat:hover{border-color:var(--line2)}
.stat .l{display:flex;gap:6px;align-items:flex-start;color:var(--t2)}
.stat .l .ico{--s:16px}
.stat .v{font-size:24px;line-height:28px;font-weight:800}
.stat .link{align-self:flex-start}
.niche{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;min-width:0;text-align:left}
.niche .n{font-size:14px;line-height:20px;font-weight:600}
.niche .c{display:flex;align-items:center;gap:8px}
.niche .c b{font-size:18px;line-height:24px;font-weight:700}
.niche .d{display:flex;align-items:center;gap:3px;font-size:12px;line-height:16px;font-weight:600}
.niche .d .ico{--s:10px}
.metric{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.metric .l{font-size:12px;line-height:16px;color:var(--t3)}
.metric .v{font-size:16px;line-height:22px;font-weight:600}
.studio-banner{background:linear-gradient(100deg,#FACC15,#EAB308 50%,#F59E0B);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:10px;color:var(--on)}
.studio-banner .k{display:flex;align-items:center;gap:6px;font-size:12px;line-height:16px;font-weight:600}
.studio-banner .k .ico{--s:16px}
.studio-banner h3{font-size:24px;line-height:30px;font-weight:800}
.studio-banner p{opacity:.85}
.studio-banner .pl{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;padding:6px 12px;border-radius:100px;background:rgba(255,255,255,.3);font-size:12px;line-height:16px;font-weight:600}
.studio-banner .pl .ico{--s:14px}
.studio-banner .btn{margin-top:4px}
.advice{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px}
.advice.hot{border-color:var(--pink)}
.advice .top{display:flex;align-items:center;gap:10px}
.advice .ib{width:32px;height:32px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:var(--cyan-soft);color:var(--cyan);flex:none}
.advice .ib .ico{--s:18px}
.advice .lb{flex:1;min-width:0;font-size:12px;line-height:16px;font-weight:600;color:var(--cyan)}
.advice .tg{padding:4px 10px;border-radius:100px;background:var(--cyan-soft);color:var(--cyan);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
.advice h4{font-size:16px;line-height:22px;font-weight:600}
.advice p{color:var(--t2)}
.advice .bt{display:flex;align-items:center;gap:8px}
.advice .nt{flex:1;text-align:right;font-size:12px;line-height:16px;color:var(--t3)}
.advice .bt .end{margin-left:auto}
.advice .dtext{white-space:pre-line;overflow-wrap:anywhere}
.advice .dtext.clamp{display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}
.advice.hot .ib,.advice.hot .tg{background:var(--pink-soft);color:var(--pink)}.advice.hot .lb{color:var(--pink)}
.advice.caution{border-color:rgba(255,176,32,.45)}
.advice.caution .ib,.advice.caution .tg{background:var(--down-soft);color:var(--down)}.advice.caution .lb{color:var(--down)}
.advice.studio .ib,.advice.studio .tg{background:var(--cyan-soft)}
.advice.locked .ib,.advice.locked .tg{background:var(--raised);color:var(--t2)}.advice.locked .lb{color:var(--t2)}
.advice.locked{border-style:dashed}
.rule{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.rule:first-of-type{border-top:0}

/* карточка шопса в списке */
.shopcard{position:relative;display:flex;gap:12px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:20px;width:100%;min-width:0;text-align:left;color:inherit}
.shopcard .cv{width:96px;height:128px;border-radius:14px;background:var(--raised);flex:none;overflow:hidden;position:relative}
.shopcard .cv img{width:100%;height:100%;object-fit:cover}
.shopcard .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding-right:34px}
.shopcard .bd{display:flex;gap:6px;align-items:center;min-height:22px;overflow:hidden}
.shopcard .m{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}
.shopcard .m span:not(.ico),.shopcard .nowrap{min-width:0;overflow:hidden;text-overflow:ellipsis}
.shopcard .m .ico{--s:14px}
.shopcard .gap{width:8px}
.shopcard .heart{position:absolute;right:9px;top:3px}
.shopcard.locked .cv{display:flex;align-items:center;justify-content:center;color:var(--t3);background:var(--raised)}
.shopcard.locked .cv .ico{--s:28px}
.shopcard .cta{margin-top:auto}
.ptile{display:flex;flex-direction:column;gap:8px;width:156px;flex:none;text-align:left}
.ptile .cv{width:156px;height:120px;border-radius:16px;background:var(--raised);overflow:hidden;position:relative}
.ptile .cv img{width:100%;height:100%;object-fit:cover}
.ptile .nm{height:40px;overflow:hidden}
.ptile .nm span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.carousel{display:flex;gap:12px;overflow-x:auto;margin:0 calc(-1*var(--pad));padding:0 var(--pad);scrollbar-width:none}
.carousel::-webkit-scrollbar{display:none}
.prow{display:flex;gap:12px;padding:10px;border:1px solid var(--line);background:var(--surface);border-radius:20px;width:100%;text-align:left;position:relative}
.prow .cv{position:relative;width:96px;height:96px;border-radius:14px;background:var(--raised);flex:none;overflow:hidden}
.prow .cv img{width:100%;height:100%;object-fit:cover}
.prow .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding-right:34px}
.cover{position:relative;border-radius:24px;overflow:hidden;background:var(--raised)}
.cover img{width:100%;height:100%;object-fit:cover}
.pcover{aspect-ratio:1/1;width:100%;max-height:min(70vh,460px);display:flex;align-items:center;justify-content:center}
.pcover img{object-fit:contain}
.ozonblock{display:flex;flex-direction:row;align-items:center;gap:12px;color:inherit;text-decoration:none}
.ozonblock:hover{border-color:var(--cyan)}
/* галерея карточки шопса: рамка держит пропорции первого кадра (--ar), кадры вписаны целиком и не растягиваются */
.shopmedia{display:flex;flex-direction:column;gap:12px;min-width:0}
.gwrap{position:relative;min-width:0;border-radius:24px}
.gwrap:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.gallery{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:24px;background:var(--raised);aspect-ratio:var(--ar,.75);width:100%;max-height:min(78vh,720px)}
.gallery::-webkit-scrollbar{display:none}
.gallery>*{flex:0 0 100%;scroll-snap-align:center;display:flex;align-items:center;justify-content:center;min-width:0}
.gallery img{width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
.gallery.empty{min-height:240px}
.gal-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.14);z-index:2;transition:background .15s}
.gal-arrow:hover{background:rgba(0,0,0,.75)}
.gal-arrow:active{transform:translateY(-50%) scale(.94)}
.gal-arrow.prev{left:10px}.gal-arrow.prev .ico{transform:rotate(180deg)}
.gal-arrow.next{right:10px}
.gal-count{position:absolute;top:12px;right:12px;z-index:2;padding:4px 10px;border-radius:100px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.gal-play{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-radius:24px;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.45))}
.gal-play .pb{width:64px;height:64px;border-radius:32px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.25);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.gal-play .lb{padding:6px 12px;border-radius:100px;background:rgba(0,0,0,.6);font-size:13px;line-height:18px;font-weight:600}
.gal-play:hover .pb{background:var(--cyan);color:var(--on);border-color:var(--cyan)}
.dots{display:flex;gap:8px;justify-content:center;align-items:center;min-height:24px}
.dot{position:relative;width:6px;height:6px;padding:0;border-radius:3px;background:var(--line2);flex:none;transition:width .2s,background .2s}
.dot::after{content:"";position:absolute;inset:-9px -4px}
.dot.on{width:20px;background:var(--cyan)}
.thumbs{padding:2px}
.thumbs .frame{width:64px;height:86px;cursor:pointer;opacity:.7;transition:opacity .15s,border-color .15s}
.thumbs .frame:hover{opacity:1}
.thumbs .frame.on{opacity:1;border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan)}
.thumbs .frame img{object-fit:cover}
.shopview{display:flex;flex-direction:column;gap:16px;min-width:0}
.shopview>*{min-width:0}
@media (prefers-reduced-motion:reduce){.dot,.thumbs .frame,.gal-arrow{transition:none}}
.topblock{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:20px;background:linear-gradient(180deg,var(--pink-soft),var(--surface));border:1px solid var(--pink)}
.divider{display:flex;align-items:center;gap:10px;color:var(--t3);font-size:12px;line-height:16px;font-weight:600}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.week .bars{display:flex;align-items:flex-end;justify-content:space-between;height:140px}
.week .bar{display:flex;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px}
.week .bar .v,.week .bar .d{white-space:nowrap;min-height:1em}
.week .stack{display:flex;flex-direction:column;justify-content:flex-end;width:70%;max-width:28px}
.week .stack .p{background:var(--t1)}.week .stack .c{background:var(--cyan);border-radius:6px 6px 0 0}.week .stack .p:first-child{border-radius:6px 6px 0 0}
.week .bar.cur .p{opacity:.55}.week .bar.cur .v,.week .bar.cur .d{color:var(--pink)}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.empty{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:40px 24px;color:var(--t2)}
.empty .ico{--s:40px;color:var(--t3)}
.skeleton{background:linear-gradient(90deg,var(--surface) 0,var(--raised) 50%,var(--surface) 100%);background-size:200% 100%;animation:sk 1.2s infinite linear;border-radius:12px}
@keyframes sk{to{background-position:-200% 0}}
.sk-card{height:148px;border-radius:20px}
.spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--line2);border-top-color:var(--cyan);animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}

/* акция: полоса, чип, карточка в ленте, таймер */
.pstrip{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:calc(40px + var(--sat));padding:var(--sat) 12px 0;box-sizing:border-box;font-weight:800;font-size:13px;line-height:18px;text-align:left;white-space:nowrap}
.pstrip.last{height:calc(44px + var(--sat));gap:4px;padding-left:8px;padding-right:8px;background:linear-gradient(90deg,#ffe83a 0%,#ffb02e 55%,#ff7a45 100%);color:#140a00}
.pstrip.trial{display:block;overflow:hidden;text-overflow:ellipsis;background:#EAB308;color:#041318;line-height:40px}
@media (max-width:359px){
  .pstrip.trial{padding-left:8px;padding-right:8px;font-size:12px}
}
.pstrip.paid{gap:4px;padding-left:8px;padding-right:8px;background:linear-gradient(90deg,#b8f55a,#4fe6b0);color:#06210f}
@media (max-width:359px){
  .pstrip.paid{font-size:12px}
}
.pstrip.paid>span,.pstrip.last>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.pstrip .cd{flex:none}
.pstrip.last .cd.sm b{min-width:16px;padding:1px 2px;font-size:13px;line-height:16px}
.pstrip-go{flex:none;background:#140a00;color:#fff;border:0;border-radius:100px;padding:6px 12px;font-weight:800}
.pstrip-x{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:inherit}
.pchip{position:relative;flex:none}
.pchip-mobile{display:flex;justify-content:flex-end;position:relative;z-index:40;min-height:0;padding:calc(8px + var(--sat)) var(--pad) 0}
.pchip-mobile:empty{display:none}
.pchip-btn{height:32px;border:0;border-radius:100px;padding:0 12px;background:#ffb02e;color:#140a00;font-weight:800;font-size:13px}
.ppanel{position:absolute;top:calc(100% + 8px);right:0;width:min(320px,calc(100vw - 24px));z-index:50;display:flex;flex-direction:column;gap:10px;background:var(--sheet);color:var(--t1);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 16px 40px rgba(0,0,0,.35)}
.pfeed{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:20px;background:var(--surface);border:1px solid var(--line)}
.pfeed .row{flex-wrap:wrap}
.pw-timer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:14px;background:linear-gradient(90deg,#ffe83a,#ffb02e);color:#140a00;font-weight:800}
.pw-timer .cd{flex:none}
.bigpr{font-size:32px;line-height:36px;font-weight:800}
.prrow{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.was{color:var(--t3);text-decoration:line-through;font-size:17px;line-height:22px;font-weight:600}
.payrow{display:flex;flex-direction:column;gap:8px;width:100%}
.payrow .btn{flex:1}
.sheet .link{border:0;background:none;padding:8px 12px;align-self:center}
.te-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.te-stats>div{display:flex;flex-direction:column;gap:4px;min-width:0;background:var(--raised);border-radius:14px;padding:10px}
.te-stats .l{font-size:11px;line-height:14px;color:var(--t3)}
.te-stats .v{font-weight:800;font-size:14px;line-height:18px}
.te-stats .cd.sm{gap:1px}
.te-stats .cd.sm b{min-width:18px;padding:1px 3px;font-size:12px;line-height:16px}
.cd{display:inline-flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}
.cd b{background:#140a00;color:#fff;border-radius:8px;padding:3px 7px;font-size:19px;line-height:23px;font-weight:800;min-width:35px;text-align:center}
.cd i{font-style:normal;font-weight:800;opacity:.8}
.cd.sm b{font-size:14px;line-height:18px;padding:2px 6px;min-width:28px;border-radius:7px}
@media (min-width:480px){
  .cta-bar .payrow{flex-direction:row}
}
.plan-promo{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;padding:10px 12px;border-radius:14px;background:linear-gradient(90deg,#ffe83a,#ffb02e);color:#140a00}
.plan-promo.kept{background:linear-gradient(90deg,#b8f55a,#4fe6b0)}
.plan-promo .hot{font-weight:800;font-size:14px;line-height:18px}
.plan-promo .lbl2{font-size:12px;line-height:14px;font-weight:700;opacity:.8}
.plan .pr.hotpr{color:#ffd60a}
.personabar{position:relative;display:flex;align-items:center;gap:14px;padding:16px 44px 16px 16px;border-radius:22px;background:linear-gradient(120deg,#0F1D3D 0%,#1C1806 100%);border:1px solid var(--line);flex-wrap:wrap}
.pf-faces{display:flex;flex:none;padding-left:12px}
.pf-faces>span{width:46px;height:46px;border-radius:50%;margin-left:-12px;border:2px solid #0b0b0d;display:flex;align-items:center;justify-content:center;color:#07070a;flex:none}
.pf-faces .ico{margin:0;border:0;border-radius:0;width:var(--s,20px);height:var(--s,20px);flex:none}
.pf-title{font-size:17px;line-height:22px;font-weight:800}
.pf-sub{font-size:14px;line-height:20px;color:var(--t2)}
.pf-btn{flex:none}
.pf-x{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:var(--t3)}
@media (max-width:560px){.pf-btn{width:100%}.personabar>.col{flex-basis:calc(100% - 80px)}}

/* плашка и карточка расширения Chrome */
.extbar{background:linear-gradient(90deg,#2A2208 0%,#121216 55%,#0F2246 100%);border-bottom:1px solid #27272b;padding:10px var(--pad);color:#fff}
.extbar-in{max-width:1240px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap}
.extbar-txt{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 320px}
.extbar-logo{width:38px;height:38px;border-radius:10px;flex:none}
.extbar-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;line-height:19px;font-weight:800;color:#fff}
.extbar-tag{background:#EAB308;color:#1C1806;border-radius:100px;padding:2px 8px;font-size:11px;font-weight:800}
.extbar-sub{display:block;font-size:12.5px;line-height:17px;color:var(--t2)}
.extbar-act{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.extbar-btn{background:#EAB308;color:#1C1806;border-radius:100px;padding:9px 16px;font-weight:800;font-size:13px;line-height:17px;white-space:nowrap}
.extbar-x{width:30px;height:30px;border-radius:15px;display:flex;align-items:center;justify-content:center;color:var(--t2)}
.extcard{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:22px;background:linear-gradient(120deg,#2A2208 0%,#121214 55%,#0F2246 100%);border:1.5px solid var(--cyan);flex-wrap:wrap}
.extcard-logo{width:48px;height:48px;border-radius:12px;flex:none}
@media (max-width:560px){.extbar-sub{display:none}.extbar-act{width:100%}.extbar-btn{flex:1;text-align:center}.extcard .pf-btn{width:100%}}

/* оболочка */
#app{min-height:100vh}
.shell{display:flex;flex-direction:column;min-height:100vh}
.page{flex:1;padding:calc(12px + var(--sat)) var(--pad) calc(96px + var(--sab));width:100%;max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.page.wide{max-width:640px}
.page.flush{padding-bottom:calc(88px + var(--sab))}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;gap:2px;align-items:center;padding:8px 8px calc(12px + var(--sab));background:var(--surface);border-top:1px solid var(--line)}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--t3);font-size:11px;line-height:14px;font-weight:500;min-width:0}
.tab .ind{width:20px;height:3px;border-radius:2px}
.tab .ico{--s:24px}
.tab.on{color:var(--cyan)}.tab.on .ind{background:var(--cyan)}
.tabbar .sep{width:1px;height:32px;background:var(--line2);flex:none}
.tabbar .it{width:52px;height:52px;display:flex;align-items:center;justify-content:center;color:var(--t3);flex:none}
.tabbar .it .ico{--s:32px}.tabbar .it.on{color:var(--pink)}
.actionbar{position:fixed;left:var(--nav-w);right:0;bottom:0;z-index:20;display:flex;gap:8px;align-items:center;padding:10px 16px calc(14px + var(--sab)) 12px;background:var(--surface);border-top:1px solid var(--line)}
.actionbar .btn{flex:1}
.pagehead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pagehead .brand{flex:1}
.pagehead .brand .col{overflow:hidden}
.pagehead .brand .sub,.pagehead .ticker{display:block;overflow:hidden;text-overflow:ellipsis}
.pagehead>.row{flex:none}
.badge-short{display:none}
@media (max-width:400px){
  .pagehead{gap:8px}
  .pagehead .brand{gap:8px}
  .pagehead .plan-badge{padding:6px 8px}
  .pagehead .plan-badge .ico{display:none}
  .pagehead .badge-long{display:none}
  .pagehead .badge-short{display:inline}
}
.pagehead h1{font-size:24px;line-height:30px;font-weight:800}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo{width:36px;height:36px;display:block;object-fit:contain;flex:none}
.logo.big{width:64px;height:64px}
.back{display:inline-flex;align-items:center;gap:4px;color:var(--t2);font-size:14px;font-weight:600;padding:6px 0}
.sidebar{display:none}
.topbar{display:none}

/* лист */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
@keyframes fade{from{opacity:0}}
.sheet{--pad:16px;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;background:var(--sheet);border-radius:24px 24px 0 0;padding:8px 16px calc(20px + var(--sab));display:flex;flex-direction:column;gap:14px;animation:up .2s}
@keyframes up{from{transform:translateY(40px);opacity:0}}
.sheet .grab{width:40px;height:4px;border-radius:2px;background:var(--line2);align-self:center;margin-bottom:4px}
.sheet h2{font-size:20px;line-height:26px;font-weight:700}
.opt{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border-radius:16px;border:1px solid var(--line);background:var(--surface);text-align:left}
.opt.on{border-color:var(--cyan);background:var(--cyan-soft)}
.opt .rd{width:20px;height:20px;border-radius:10px;border:2px solid var(--line2);flex:none;display:flex;align-items:center;justify-content:center}
.opt.on .rd{border-color:var(--cyan)}.opt.on .rd::after{content:"";width:10px;height:10px;border-radius:5px;background:var(--cyan)}
.shopopt{align-items:center}
.shopopt .shopcard{border:none;background:transparent;padding:0}
.shopopt .shopcard .tx{padding-right:0}
.plan{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;text-align:left;position:relative}
.plan.on{border-color:var(--cyan)}.plan.hi{border-color:var(--pink)}
.plan .pr .usd{font-size:14px;line-height:20px;font-weight:500;color:var(--t2)}
.plan-ai{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:var(--pink-soft);color:var(--pink);font-size:13px;line-height:18px;font-weight:600}
.plan-ai .ico{flex:none;margin-top:0}
.way{display:flex;gap:12px;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.way .n{width:28px;height:28px;border-radius:14px;background:var(--cyan-soft);color:var(--cyan);display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}
.way .n.pk{background:var(--pink-soft);color:var(--pink)}
.plan .pr{font-size:24px;line-height:30px;font-weight:800}
.plan ul{list-style:none;display:flex;flex-direction:column;gap:6px;color:var(--t2)}
.plan li{display:flex;gap:8px}.plan li::before{content:"";width:6px;height:6px;border-radius:3px;background:var(--cyan);margin-top:7px;flex:none}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(100px + var(--sab));z-index:80;max-width:min(92vw,420px);padding:12px 16px;border-radius:14px;background:var(--raised);border:1px solid var(--line2);box-shadow:0 10px 30px rgba(0,0,0,.5);font-weight:500;animation:up .2s}
.toast.err{border-color:var(--down)}

/* вход */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login .box{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:18px;align-items:center;text-align:center}
.qr{background:#fff;border-radius:20px;padding:16px;line-height:0}
.qr svg{width:200px;height:200px}

/* студия */
.step{display:flex;gap:6px}.step i{flex:1;height:4px;border-radius:2px;background:var(--line2)}.step i.on{background:var(--cyan)}
.upload{position:relative;width:96px;height:96px;border-radius:16px;border:1.5px dashed var(--line2);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0 8px;color:var(--t3);font-size:11px;line-height:14px;font-weight:500;text-align:center;flex:none;overflow:hidden}
.upload img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.upload .x{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:11px;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;color:#fff;z-index:1}
.upload .x .ico{--s:12px}
.framestrip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.frame{position:relative;width:72px;height:96px;border-radius:12px;overflow:hidden;background:var(--raised);flex:none;border:1px solid var(--line)}
.frame img{width:100%;height:100%;object-fit:cover}
.frame .n{position:absolute;left:4px;bottom:4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:rgba(0,0,0,.65);font-size:11px;line-height:18px;font-weight:600;text-align:center}
.frame.add{border:1.5px dashed var(--line2);display:flex;align-items:center;justify-content:center;color:var(--cyan);background:var(--surface)}
.textarea-lg textarea{min-height:180px}
.timer{font-size:40px;line-height:46px;font-weight:800;font-variant-numeric:tabular-nums}
.jobrow{display:flex;gap:12px;padding:10px;border-radius:20px;background:var(--surface);border:1px solid var(--line);text-align:left;width:100%}
.jobrow .cv{width:64px;height:84px;border-radius:12px;background:var(--raised);overflow:hidden;flex:none}
.jobrow .cv img{width:100%;height:100%;object-fit:cover}
.ptile.char{width:104px}.ptile.char .cv{width:104px;height:104px;border-radius:52px}
.btnrow>.btn{flex:1 1 150px}

/* таблицы админа */
.tbl{width:100%;border-collapse:collapse}
.tbl td,.tbl th{padding:8px 6px;text-align:left;border-top:1px solid var(--line);font-size:13px;line-height:18px}
.tbl th{color:var(--t3);font-weight:500;border-top:0}

/* ───────── размеры ─────────
   до 599 px телефон: нижняя панель, один столбец;
   600–1179 px приложение во ВКонтакте на компьютере, планшет: узкая рейка слева, карточки в две колонки;
   от 1180 px компьютер: боковое меню, в списках шопсов и товаров колонок столько, сколько влезает по 368 px.
   Фильтры везде одной панелью: от 1180 px шторка справа, ниже окно или нижняя шторка.
   Карточка шопса нарисована под ширину около 390 px, поэтому колонки списков не уже 368 px. */
.grid2,.grid3,.split{display:flex;flex-direction:column;gap:12px;min-width:0}
.grid2>*,.grid3>*,.split>*{min-width:0}
.grid2m{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid2m>*{min-width:0}
.cta-bar{position:sticky;bottom:calc(-20px - var(--sab));z-index:2;display:flex;flex-direction:column;gap:10px;margin:0 -16px calc(-20px - var(--sab));padding:12px 16px calc(20px + var(--sab));background:var(--sheet);border-top:1px solid var(--line)}

/* ───────── от 600 px: рейка слева, верхняя полоса, окна по центру ───────── */
@media (min-width:600px){
  :root{--pad:24px;--nav-w:80px}
  .tabbar{display:none}
  .shell{flex-direction:row}
  .sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;width:var(--nav-w);flex:none;background:var(--surface);border-right:1px solid var(--line)}
  .nav{display:flex;align-items:center;border-radius:14px;color:var(--t2);font-weight:600;width:100%}
  .nav .ico{--s:22px}
  .nav.on{background:var(--cyan-soft);color:var(--cyan)}
  .nav:hover:not(.on){background:var(--raised)}
  .sidebar .grow{flex:1}
  .sideplan{display:flex;flex-direction:column}
  .main{flex:1;min-width:0}
  .topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 var(--pad);border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(10,10,26,.88);backdrop-filter:blur(12px);z-index:10}
  .topbar h1{font-size:22px;line-height:28px;font-weight:800}
  .page{max-width:none;padding:20px var(--pad) 48px;gap:20px}
  .page.wide{max-width:none}
  .pagehead.mobile{display:none}
  .grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(max(min(100%,368px),calc((100% - 12px) / 2)),1fr));gap:12px}
  .chips{margin:0;padding:0;flex-wrap:wrap}
  .scrim{align-items:center}
  .sheet{border-radius:24px;max-width:520px;max-height:86vh}
  .actionbar{padding-left:var(--pad);padding-right:var(--pad)}
  .actionbar .inner{max-width:1176px;margin:0 auto;width:100%;display:flex;gap:8px}
  .toast{bottom:32px}
  .page.flush.shoppage{padding-bottom:48px}
  .page.flush{padding-bottom:110px}
  .pstrip{position:static;font-size:14px;padding-left:14px;padding-right:14px}
  .personabar{padding:18px 56px 18px 22px}
  .feedtools>.col{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}
  .feedtools>.col>:last-child{flex:1 1 220px}
}
@media (min-width:600px) and (max-width:1179px){
  .sidebar{align-items:center;padding:16px 8px;gap:4px}
  .sidebar .brand{padding:4px 0 14px}
  .sidebar .brand .col{display:none}
  .nav{flex-direction:column;justify-content:center;gap:4px;padding:10px 2px;font-size:11px;line-height:14px;text-align:center}
  .sideplan{width:100%;align-items:center;gap:6px}
  .sideplan .plan-badge,.sideplan>p{display:none}
  .sideplan .btn{width:100%;padding:8px 4px;font-size:12px}
}
@media (min-width:720px){
  .grid4m{grid-template-columns:repeat(4,1fr)}
  .grid3m{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:820px){
  .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
}
@media (min-width:900px){
  .shopview{display:grid;grid-template-columns:minmax(280px,min(38%,460px)) minmax(0,1fr);gap:28px;align-items:start;max-width:1240px}
  .shopview>.shopmedia{position:sticky;top:100px}
  .split.prodview{display:grid;grid-template-columns:minmax(280px,min(38%,460px)) minmax(0,1fr);gap:28px;max-width:1240px}
  .prodview>.prodmedia{position:sticky;top:100px}
  .studio-banner{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;align-items:center;min-height:176px;padding:24px 28px}
  .studio-banner>*{grid-column:1}
  .studio-banner .btn{grid-column:2;grid-row:1/span 4;align-self:center;width:auto;margin:0;padding:18px 28px}
  .studio-banner .pl{justify-self:start}
}

/* ───────── от 1180 px: боковое меню ───────── */
@media (min-width:1180px){
  :root{--pad:32px;--nav-w:240px}
  .sidebar{padding:20px 16px;gap:6px}
  .sidebar .brand{padding:4px 8px 18px}
  .nav{gap:12px;padding:12px;font-size:14px;line-height:20px;text-align:left}
  .sideplan{background:var(--raised);border-radius:16px;padding:14px;gap:8px}
  .topbar{height:76px}
  .page{padding:28px var(--pad) 48px}
  .split{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:24px;align-items:start}
  .split>aside{order:2}
  .split:not(:has(aside)){grid-template-columns:minmax(0,1fr)}
  .split.wide-l{grid-template-columns:minmax(0,624px) minmax(0,1fr)}
  .sticky{position:sticky;top:100px}
  .feedtools>.col{flex-direction:column;align-items:stretch}
  .feedtools>.col>:last-child{flex:none}
  .carousel{margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);overflow:visible}
  .ptile{width:auto}.ptile .cv{width:100%;height:150px}
}
@media (max-width:599px){.only-desktop{display:none!important}}
@media (min-width:600px){.only-mobile{display:none!important}}

.lockbox{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:16px;background:var(--cyan-soft);color:var(--cyan);font-size:14px;line-height:20px;font-weight:600}
.lockbox .ico{flex:none;margin-top:1px}
.warnbox{display:flex;gap:10px;align-items:flex-start;padding:14px;border-radius:16px;background:var(--pink-soft);color:var(--pink);font-size:15px;line-height:21px;font-weight:600}
.warnbox .ico{flex:none;margin-top:2px}

.extra-refs{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.extra-refs .row{align-items:center}
.extra-refs p{margin:0}
.shoptext{gap:10px}
.shoptext .body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.shoptext .body.clamp{display:-webkit-box;-webkit-line-clamp:9;-webkit-box-orient:vertical;overflow:hidden}
.rset{display:flex;flex-wrap:wrap;gap:10px}
.rtile{position:relative;width:76px;height:76px;border-radius:14px;overflow:hidden;border:1.5px solid var(--cyan);padding:0;background:var(--raised);flex:none;color:#fff;cursor:pointer}
.rtile.lock{cursor:default;border-color:var(--line2)}
.rtile img{width:100%;height:100%;object-fit:cover;display:block}
.rtile.off{border-style:dashed;border-color:var(--line2)}
.rtile.off img{opacity:.35;filter:grayscale(1)}
.rtile .k{position:absolute;left:0;right:0;bottom:0;font-size:10px;line-height:14px;font-weight:500;padding:2px 4px;background:rgba(0,0,0,.68);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtile .mark{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:11px;background:rgba(0,0,0,.7);color:#fff;font-size:16px;line-height:22px;text-align:center;padding:0;border:0}
.rtile.off .mark{background:var(--cyan);color:#001318;font-weight:700}
.rset .upload{width:76px;height:76px;border-radius:14px}

/* ───────── Студия 2.0: Помощник и Память блога (адаптив 390 / 910 / 1280) ───────── */
.seg.seg-wrap{flex-wrap:wrap;height:auto;gap:4px}
.seg.seg-wrap>button{flex:1 1 auto;min-width:96px;white-space:normal;line-height:16px;padding:8px 10px}
.assistant-grid{display:flex;flex-direction:column;gap:16px;min-width:0}
@media(min-width:720px){
  .assistant-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:20px;align-items:start}
}
.assistant-messages{max-height:460px;overflow-y:auto;padding:4px 0}
.assistant-bubble{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:16px;max-width:92%;overflow-wrap:anywhere}
.assistant-bubble.assistant{background:var(--raised);border:1px solid var(--line);align-self:flex-start}
.assistant-bubble.user{background:var(--cyan-soft);border:1px solid rgba(0,210,255,.28);align-self:flex-end}
.rule-card{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:14px;background:var(--raised);border:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.diff-banner{padding:12px 14px;border-radius:14px;background:var(--pink-soft);border:1px solid rgba(255,45,120,.32);color:var(--t1);min-width:0}
.copilot-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.copilot-bar>.field{flex:1 1 200px;min-width:0}
.onboard-card{border:1px solid rgba(0,210,255,.32);background:linear-gradient(180deg,rgba(0,210,255,.06),transparent)}

/* ───────── фильтры: бар, выбранное, панель (ui/filters.mjs) ───────── */
.btn-ghost{background:transparent;color:var(--t2)}
.fbar{display:grid;grid-template-columns:minmax(0,260px) 1fr;grid-template-areas:"seg found" "tools tools";align-items:center;gap:10px 8px}
.fbar.noseg{grid-template-columns:auto 1fr;grid-template-areas:"tools found"}
.fb-seg{grid-area:seg;min-width:0}
.fb-tools{grid-area:tools;display:flex;gap:8px;flex-wrap:wrap}
.fb-found{grid-area:found;justify-self:end;font-size:14px;line-height:20px;color:var(--t2);white-space:nowrap}
.fb-found b{color:var(--t1);font-weight:600}
.fb-skel{display:inline-block;width:44px;height:14px;border-radius:7px;background:var(--raised);vertical-align:middle}
@media (max-width:479px){.fbar.noseg{grid-template-columns:1fr;grid-template-areas:"tools" "found"}.fbar.noseg .fb-found{justify-self:start}}
@media (min-width:600px){.fbar{grid-template-columns:280px auto 1fr;grid-template-areas:"seg tools found"}.fbar.noseg{grid-template-columns:auto 1fr;grid-template-areas:"tools found"}}
.fapplied{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--pad));padding:0 var(--pad);-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent)}
.fapplied::-webkit-scrollbar{display:none}
.achip{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 10px 0 14px;border-radius:100px;background:var(--cyan-soft);border:1px solid var(--cyan);color:var(--t2);font-size:14px;line-height:20px;white-space:nowrap}
.achip::after{content:"";position:absolute;inset:-2px}
.achip b{color:var(--t1);font-weight:600}
.achip .ico{--s:16px;color:var(--cyan)}
.areset{flex:none;height:40px;padding:0 8px;color:var(--cyan);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap}
@media (min-width:600px){.fapplied{flex-wrap:wrap;overflow:visible;margin:0;padding:0;-webkit-mask-image:none;mask-image:none}}
.fwrap{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.6);animation:fade .15s}
.fdrawer{--pad:16px;display:flex;flex-direction:column;width:100%;max-width:560px;max-height:92vh;background:var(--sheet);border-radius:24px 24px 0 0;animation:up .2s;outline:none}
.fgrab{width:40px;height:4px;border-radius:2px;background:var(--line2);align-self:center;margin:8px 0 0;flex:none}
.fhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 8px 16px;flex:none}
.fhead h2{font-size:18px;line-height:24px;font-weight:700}
.fbody{flex:1;min-height:0;overflow-y:auto;padding:0 16px}
.ffoot{display:flex;align-items:center;gap:10px;padding:12px 16px calc(20px + var(--sab));border-top:1px solid var(--line);background:var(--sheet);flex:none;border-radius:0 0 24px 24px}
.fsec{border-bottom:1px solid var(--line)}
.fsec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;text-align:left}
.fsec-head .tt{display:block;font-size:16px;line-height:22px;font-weight:600;color:var(--t1)}
.fsec-head .sm{display:block;font-size:12px;line-height:16px;color:var(--t3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsec-head .sm.on{color:var(--cyan)}
.fsec-head .ico{--s:20px;color:var(--t2);flex:none;transition:transform .2s}
.fsec-head[aria-expanded=true] .ico{transform:rotate(180deg);color:var(--t1)}
.fsec-body{display:flex;flex-direction:column;gap:18px;padding:12px 0 20px}
.fgroup{display:flex;flex-direction:column;gap:8px}
.fgroup .lbl{margin:0}
.fopts{display:flex;flex-wrap:wrap;gap:8px}
.fopt{min-height:44px;padding:0 18px;border-radius:100px;background:var(--raised);color:var(--t2);font-weight:600;font-size:14px;line-height:20px;text-align:left}
.fopt.on{background:var(--cyan);color:var(--on)}
.frow{display:flex;gap:12px}
.frow>*{flex:1;min-width:0}
.fswitch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px}
@media (min-width:600px){.fwrap{align-items:center}.fdrawer{max-width:520px;max-height:86vh;border-radius:24px}}
@keyframes slidein{from{transform:translateX(40px);opacity:0}}
@media (min-width:1180px){
  .fwrap{background:none;pointer-events:none;align-items:stretch;justify-content:flex-end;z-index:30;animation:none}
  .fdrawer{pointer-events:auto;width:420px;max-width:420px;max-height:none;height:100%;border-radius:0;border-left:1px solid var(--line);box-shadow:-16px 0 48px rgba(0,0,0,.5);animation:slidein .2s}
  .fgrab{display:none}
  .fhead{padding:20px 16px 8px 24px}
  .fbody{padding:0 24px}
  .ffoot{padding:16px 24px 24px;border-radius:0}
}
@media (min-width:1180px){.grid2.fluid{grid-template-columns:repeat(auto-fill,minmax(min(100%,368px),1fr))}}
@media (prefers-reduced-motion:reduce){.fdrawer,.fwrap,.fsec-head .ico{animation:none;transition:none}}

/* ───────── Студия 3.0: бриф в центре + агент справа ───────── */
.brief-home-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brief-list-card{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--t1);min-width:0}
.brief-del-btn{width:36px;height:36px;border-radius:10px;color:var(--t3);transition:color .15s,background .15s}
.brief-del-btn:hover{color:var(--pink);background:var(--pink-soft)}
.brief-list-cover{width:54px;height:72px;border-radius:10px;overflow:hidden;background:var(--raised);flex:none}
.brief-list-cover img{width:100%;height:100%;object-fit:cover;display:block}
.brief-assistant-link{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--t1)}
.brief-workspace{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:24px;align-items:start;min-width:0}
.brief-workspace.three{grid-template-columns:250px minmax(0,1fr) 336px}
.brief-column{display:flex;flex-direction:column;gap:12px;min-width:0}
.brief-head{display:flex;flex-direction:column;gap:8px}
.brief-progress{display:flex;gap:6px}
.bp-seg{flex:1;height:4px;border-radius:2px;background:var(--line2)}
.bp-seg.is-done{background:var(--up)}
.bp-seg.now{background:var(--cyan)}
.brief-progress.strip{gap:8px}
.bp-step{flex:1;height:36px;border-radius:10px;background:var(--raised);border:1px solid var(--line2);color:var(--t2);font-weight:700}
.bp-step.is-done{color:var(--up);border-color:var(--up)}
.bp-step.now{background:var(--cyan);border-color:var(--cyan);color:var(--on)}
.brief-block{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);min-width:0;scroll-margin-top:12px;transition:border-color .2s,box-shadow .2s}
.brief-block.open{border-color:var(--cyan)}
.brief-block.flash{border-color:var(--pink);box-shadow:0 0 0 3px var(--pink-soft)}
.brief-block-head{display:flex;align-items:center;gap:10px;min-height:36px;min-width:0}
.brief-block-btn{display:flex;flex-direction:column;gap:10px;width:100%;padding:0;background:none;color:inherit;text-align:left;cursor:pointer}
.brief-block-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.bb-num{flex:none;width:28px;height:28px;border-radius:14px;border:1.5px solid var(--line2);display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:16px;font-weight:700;color:var(--t3)}
.bb-num.now{background:var(--cyan);border-color:var(--cyan);color:var(--on)}
.bb-num.is-done{border-color:var(--up);color:var(--up)}
.bb-avatar{flex:none;width:44px;height:44px;border-radius:22px;overflow:hidden;background:var(--cyan-soft);color:var(--cyan);display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.bb-avatar img{width:100%;height:100%;object-fit:cover}
.valuerow{display:flex;align-items:center;gap:10px;min-height:84px;padding:10px 12px;border-radius:12px;background:var(--raised);border:1px solid var(--line2);min-width:0}
.persona-opt{padding:10px 12px;border-radius:12px;background:var(--raised);border-color:var(--line2)}
.persona-opt.on{border-color:var(--cyan);background:var(--cyan-soft)}
.factrow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:var(--raised);min-width:0}
.brief-foot{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;min-height:85px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.brief-foot .btn{flex:none}
.brief-road{position:sticky;top:76px;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);min-width:0}
.road-row{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 10px;border-radius:12px;text-align:left;color:inherit}
.road-row.on{background:var(--cyan-soft)}
.road-note{padding:6px 10px 2px}
.brief-assets .upload{width:92px;height:112px}
.brief-asset{width:92px;display:flex;flex-direction:column;gap:5px}
.brief-asset-pic{position:relative;width:92px;height:112px;border-radius:12px;overflow:hidden;background:var(--raised)}
.brief-asset-pic img{width:100%;height:100%;object-fit:cover}
.brief-asset-pic .x{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:11px;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;color:#fff}
.brief-asset-status{position:absolute;left:0;right:0;bottom:0;padding:3px 4px;background:rgba(0,0,0,.7);font-size:10px;line-height:14px;font-weight:600;text-align:center;color:var(--t2)}
.brief-asset-status.ok{color:var(--up)}
.brief-asset-status.needs_attention{color:var(--down)}
.brief-asset-reason{overflow-wrap:anywhere}
.brief-selected-cover,.brief-result-cover{width:54px;height:72px;border-radius:10px;overflow:hidden;background:var(--raised);flex:none}
.brief-selected-cover img,.brief-result-cover img{width:100%;height:100%;object-fit:cover;display:block}
.brief-result-card{display:flex;gap:12px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:15px;background:var(--raised);min-width:0}
.brief-result-title{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.brief-result-shop{flex-direction:column;align-items:stretch;gap:10px}
.brief-result-row{display:flex;gap:12px;align-items:center;min-width:0}
.shop-text{padding:9px 11px;border-radius:11px;background:var(--surface);border:1px solid var(--line)}
.shop-text-body{font-weight:400;font-size:13px;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--t2);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.shop-text-body.open{display:block;-webkit-line-clamp:unset;overflow:visible}
.brief-switch-row{display:flex;gap:12px;align-items:center;min-height:56px;padding:9px 12px;border-radius:12px;background:var(--raised);border:1px solid var(--line2)}
.brief-mode{margin-bottom:12px}
.agent-panel{display:flex;flex-direction:column;gap:12px;padding:15px;border:1px solid var(--cyan);border-radius:19px;background:var(--surface);min-width:0}
.agent-head{display:flex;gap:9px;align-items:center;min-width:0}
.agent-avatar{width:38px;height:50px;border-radius:9px;object-fit:cover;flex:none}
.agent-avatar-empty{display:inline-flex;align-items:center;justify-content:center;background:var(--raised);color:var(--cyan)}
.agent-offline{display:flex;gap:8px;padding:10px 12px;border-radius:12px;background:var(--pink-soft);color:var(--t1);font-size:12px}
.agent-messages{display:flex;flex-direction:column;gap:9px;max-height:460px;overflow-y:auto}
.agent-bubble{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-radius:14px;background:var(--raised);overflow-wrap:anywhere}
.agent-bubble p{white-space:pre-wrap}
.agent-bubble.user{background:var(--cyan-soft);border:1px solid rgba(0,210,255,.28)}
.agent-proposal{display:flex;flex-direction:column;gap:7px;padding:11px 12px;border-radius:14px;background:var(--raised);border:1px solid var(--pink)}
.agent-compose{display:flex;gap:8px;align-items:center}
.agent-compose>.field{flex:1;min-width:0}
.btn-send{width:46px;height:46px;padding:0;border-radius:50%;flex:none}
.spin-dark{width:18px;height:18px;border-width:2.5px;border-color:rgba(7,12,18,.25);border-top-color:var(--on)}
.agent-remember{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--t2)}
.variant-agent{margin-top:14px}
@media(max-width:1179px){.brief-workspace,.brief-workspace.three{grid-template-columns:minmax(0,1fr)}.brief-workspace .agent-panel{max-width:720px}}
@media(max-width:599px){.brief-hidden-mobile{display:none}.brief-page .brief-foot{bottom:calc(72px + var(--sab))}.brief-list-card{align-items:flex-start}.brief-selected{align-items:flex-start}.brief-result-card{align-items:flex-start}.brief-result-shop{align-items:stretch}.brief-result-row{align-items:flex-start}}


/* ---------- проверка текста и ожидание этапного конвейера ---------- */
.stages{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left}
.stage{display:flex;gap:10px;align-items:center;color:var(--t3)}
.stage.s-running,.stage.s-done{color:var(--t1)}
.stage-mark{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%;border:1.5px solid var(--t3)}
.stage.s-done .stage-mark{border-color:var(--up);color:var(--up)}
.stage.s-running .stage-mark{border:0}
.stage-mark .spin{width:20px;height:20px;border-width:2.5px}

/* ---------- оплата: флажок согласия, выбор тарифа и способа, итог, котировка, результат ---------- */
.pickl{display:flex;flex-direction:column;gap:10px}
.pick{display:flex;gap:12px;align-items:flex-start;width:100%;padding:14px;border-radius:16px;border:1px solid var(--line);background:var(--surface);text-align:left;position:relative}
.pick.on{border-color:var(--cyan);background:var(--cyan-soft)}
.pick[disabled]{opacity:.55;cursor:default}
.pick .rd{width:20px;height:20px;border-radius:10px;border:2px solid var(--line2);flex:none;display:flex;align-items:center;justify-content:center;margin-top:1px}
.pick.on .rd{border-color:var(--cyan)}.pick.on .rd::after{content:"";width:10px;height:10px;border-radius:5px;background:var(--cyan)}
.pick .pt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.pick .pp{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none;font-weight:800}
.pick .pp s{color:var(--t3);font-weight:600;font-size:12px;line-height:16px}
.pick .pl{display:flex;flex:none;align-self:center}
.plogo{display:block}
.pick .rec{align-self:flex-start;background:var(--cyan);color:var(--on);border-radius:100px;padding:2px 10px;font-size:11px;line-height:16px;font-weight:700;margin-bottom:2px}
.earlybox{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.earlybox .er{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:18px;color:var(--t2)}
.earlybox .er s{color:var(--t3);margin-right:10px}
.earlybox .er b{color:#ffd60a;font-weight:800}
.paytimer{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:rgba(255,214,10,.12);color:#ffd60a;font-weight:700;font-size:13px;line-height:18px}
.paytimer .cd b{background:transparent;color:#ffd60a;padding:0;min-width:0;font-size:15px}
.seg small{font-size:11px;font-weight:700;color:var(--up);margin-left:6px}
.seg button.on small{color:var(--on)}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:18px}
.kv .k{color:var(--t3)}
.kv .v{font-weight:600;text-align:right;min-width:0}
.kv .v.hot{color:#ffd60a;font-weight:800}
.paybox{display:flex;flex-direction:column;gap:12px}
.paybox .hint{font-size:12px;line-height:16px;color:var(--t3)}
.planbox{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:12px;background:var(--sheet);border:1px solid var(--line)}
.planbox .phead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;line-height:18px;font-weight:700}
.planbox .phead .cy{font-weight:800}
.bars{display:flex;gap:4px}
.bars i{flex:1;height:4px;border-radius:2px;background:var(--line2)}
.bars i.on{background:var(--cyan)}
.part{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:10px;border:1px solid transparent;font-size:14px;line-height:20px}
.part b{flex:none;font-weight:700}
.part .pd{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:12px;border:1.5px solid var(--line2);font-size:12px;line-height:16px;font-weight:700}
.part.pend{color:var(--t3)}
.part.paid{color:var(--t2)}
.part.paid .pd{border-color:var(--up);color:var(--up)}
.part.now{background:#0b2a2e;border-color:var(--cyan);font-weight:700}
.part.now .pd{background:var(--cyan);border-color:var(--cyan);color:var(--on)}
.paylock{opacity:.45;pointer-events:none}
.quote{display:flex;flex-direction:column;gap:12px}
.quote .big{font-size:32px;line-height:36px;font-weight:800}
.quote .v.warn{color:#ffd60a;font-weight:800}
.quote .v.gone{color:var(--down);font-weight:800}
.infobox{padding:14px;border-radius:16px;background:var(--surface);color:var(--t2);font-size:13px;line-height:19px}
.done{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding-top:48px}
.done .tick{width:80px;height:80px;border-radius:40px;display:grid;place-items:center;background:rgba(50,215,75,.15);color:var(--up)}
.done .tick .ico{--s:32px}
.done .tick.off{background:var(--raised);color:var(--t2)}
.done h1{font-size:24px;line-height:30px;font-weight:800}
.done .body{max-width:420px}
.fbstrip{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:8px 12px 0;border-radius:14px;background:var(--surface);color:var(--t1);font-size:13px;line-height:18px}
.fbstrip .grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.fbstrip .ico{flex:none;color:var(--down)}
.impcard{border:1px solid var(--cyan);display:flex;flex-direction:column;gap:12px}

/* ───────── кадры шопса: плитки с инструментами, кроппер ───────── */
.framestrip.big{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;align-items:start;overflow:visible}
.frametile{display:flex;flex-direction:column;gap:4px;min-width:0}
.frametile .frame{width:100%;height:auto;aspect-ratio:3/4}
.frame.prod{width:64px;height:64px;padding:0;cursor:pointer}
.overlay-src{flex:none;border-radius:12px;overflow:hidden;height:200px;display:flex;justify-content:center;background:var(--raised)}
.overlay-src img{height:200px;width:auto;object-fit:contain}
.overlay-compare{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.overlay-compare figure{margin:0;display:flex;flex-direction:column;gap:6px;min-width:0}
.overlay-compare img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;background:var(--raised)}
.overlay-compare figcaption{font-size:12px;color:var(--t2);text-align:center}
.overlay-compare figure:last-child img{outline:2px solid var(--cyan);outline-offset:-2px}
.overlay-compare figure:last-child figcaption{color:var(--cyan)}
.frame.selectable{cursor:pointer;outline:2px solid transparent;outline-offset:2px;transition:outline-color .12s}
.frame.selectable:hover{outline-color:var(--line2)}
.frame.selectable.on{outline-color:var(--cyan)}
.frame.selectable:focus-visible{outline-color:var(--cyan)}
.framestrip.big{user-select:none;-webkit-user-select:none}
.frametile{position:relative}
.frame img{-webkit-user-drag:none}
.frame.movable{cursor:grab}
.frame .fzoom{position:absolute;right:4px;top:4px;width:26px;height:26px;border-radius:8px;background:rgba(0,0,0,.65);color:#fff;display:flex;align-items:center;justify-content:center;cursor:zoom-in}
.frame .fzoom:hover{background:var(--cyan);color:var(--on)}
.frame .fgrip{position:absolute;right:4px;bottom:4px;width:22px;height:22px;border-radius:7px;background:rgba(0,0,0,.65);color:#fff;font-size:15px;line-height:22px;text-align:center;cursor:grab;touch-action:none}
.frametile.dragging .frame{opacity:.35}
.frametile.drop-before::before,.frametile.drop-after::after{content:"";position:absolute;top:0;bottom:0;width:3px;border-radius:2px;background:var(--cyan);z-index:2}
.frametile.drop-before::before{left:-6px}
.frametile.drop-after::after{right:-6px}
.frame-ghost{position:fixed;z-index:60;pointer-events:none;border-radius:12px;overflow:hidden;opacity:.9;border:2px solid var(--cyan);box-shadow:0 10px 30px rgba(0,0,0,.55)}
.frame-ghost img{width:100%;height:100%;object-fit:cover;display:block}
.frametools{padding:12px;border-radius:12px;background:var(--raised);border:1px solid var(--line2)}
.cropstage{position:relative;overflow:hidden;border-radius:12px;background:#0b0b0e;touch-action:none;cursor:grab;user-select:none}
.cropstage:active{cursor:grabbing}
.cropwin{position:absolute;box-shadow:0 0 0 2000px rgba(0,0,0,.6);border:2px solid #fff;pointer-events:none}
.cropwin.bad{border-color:var(--down)}
.cropwin .g{position:absolute;background:rgba(255,255,255,.45)}
.cropwin .v1,.cropwin .v2{top:0;bottom:0;width:1px}.cropwin .v1{left:33.3%}.cropwin .v2{left:66.6%}
.cropwin .h1,.cropwin .h2{left:0;right:0;height:1px}.cropwin .h1{top:33.3%}.cropwin .h2{top:66.6%}
.warn-note{background:var(--down-soft);color:var(--down)}
.banner.err{background:#2a1215;color:#ff8a8a}
.banner.info{background:var(--cyan-soft);color:var(--cyan)}
.banner.warn{background:var(--down-soft);color:var(--down)}
.cap.dn{color:#ff8a8a}.cap.warn{color:var(--down)}

/* ───────── панель расширения (iframe в Adblogger, ширина 420 px) ───────── */
.dock{display:flex;flex-direction:column;height:100vh;background:#0e0e10;min-width:0}
.dock *{min-width:0}
.dock-head{display:flex;align-items:center;gap:8px;padding:10px 12px;height:48px;border-bottom:1px solid var(--line);flex:none}
.dock-brand{font-weight:800;font-size:15px;color:#fff;white-space:nowrap}.dock-brand i{font-style:normal;color:var(--cyan)}
.dock-tabs{display:flex;gap:5px;padding:8px 12px;flex:none;overflow-x:auto;scrollbar-width:none}
.dock-tab{flex:none;height:32px;padding:0 10px;border-radius:8px;background:#1e1e24;border:1px solid #2e2e36;color:var(--t2);font-size:12px;font-weight:600;white-space:nowrap}
.dock-tab.on{background:#082e34;border-color:var(--cyan);color:var(--cyan)}
.dock-tab.lock{color:var(--pink);border-color:var(--pink);background:#0D1D3B}
.dock-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:12px}
.dock-bar{position:sticky;bottom:-12px;margin:0 -12px -12px;padding:10px 12px;background:#141418;border-top:1px solid var(--line);display:flex;gap:10px;align-items:center;z-index:2}
.dock-bar.col{flex-direction:column;align-items:stretch}
.dock-cover{width:64px;height:86px;object-fit:cover;border-radius:10px;flex:none}
.dock-thumb{width:44px;height:58px;object-fit:cover;border-radius:8px;flex:none}
.dock-frame{width:44px;height:58px;object-fit:cover;border-radius:8px;flex:none}
.dock-preview{background:var(--raised);border-radius:12px;padding:10px 12px}
.dock-avatar.ph{display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px dashed var(--line2);color:var(--t3);font-weight:700;font-size:13px}
.opt.static{cursor:default}
.opt:disabled{opacity:.5;cursor:not-allowed}
.dock-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none}
.dock-guest{padding:24px 16px}
.dock-shop{padding:10px;border-radius:12px;background:var(--raised)}
.dock-shop.pending{border:1px solid rgba(234,179,8,.35)}
.dock-shop.failed{border:1px solid rgba(255,138,138,.35)}
.dock-thumb.ph{display:flex;align-items:center;justify-content:center;border:1px dashed var(--line2);color:var(--t3);background:linear-gradient(110deg,var(--surface) 30%,var(--raised) 50%,var(--surface) 70%);background-size:200% 100%;animation:phshimmer 1.6s linear infinite}
.dock-thumb.ph.fail{animation:none;background:#2a1215;border-color:#ff8a8a;border-style:solid;color:#ff8a8a;font-weight:800;font-size:20px}
@keyframes phshimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.dock-thumb.ph{animation:none}.spin{animation-duration:2.4s}}
.pill .spin.sm{width:10px;height:10px;border-width:2px}
.mono{font-variant-numeric:tabular-nums}
.dock-job{display:flex;flex-direction:column;gap:12px}

/* единый блок «Кадры поста» */
.frames-block{display:flex;flex-direction:column;gap:10px}
.fr-status{display:flex;align-items:center;gap:8px;scroll-margin-top:80px}
.fr-status .spin{flex:none;width:14px;height:14px;border-width:2px}
.fr-zoom{display:flex;justify-content:center}
.fr-zoom img{max-width:100%;max-height:72vh;border-radius:12px;object-fit:contain;background:#141418}
.frame .fcover{position:absolute;left:4px;top:4px;padding:1px 5px;border-radius:6px;background:var(--cyan);color:#2A2208;font-size:9px;line-height:12px;font-weight:700;letter-spacing:.02em}
.frame.pending{width:100%;height:auto;aspect-ratio:3/4}
.frametile .ftlabel{display:block;max-width:100%;font-size:10px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.frametile.addtile{background:none;border:0;padding:0;cursor:pointer;color:inherit}
.frametile.addtile:disabled{opacity:.45;cursor:default}
.frametools.card{background:var(--surface);border:1px solid var(--line)}
.setrow{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:9px 12px;border-radius:12px;background:var(--raised);border:1px solid var(--line2);text-align:left;color:inherit}
.libgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.libtile{display:flex;flex-direction:column;gap:4px;padding:0;background:none;color:inherit;text-align:left;cursor:pointer;min-width:0}
.libtile:disabled{cursor:default}
.libpic{position:relative;display:block;aspect-ratio:104/120;border-radius:10px;overflow:hidden;background:var(--raised);border:1px solid var(--line2)}
.libpic img{width:100%;height:100%;object-fit:cover;display:block}
.libtile.in .libpic{border:2px solid var(--up,#32d74b)}
.libmark{position:absolute;left:5px;top:5px;padding:1px 5px;border-radius:6px;background:var(--up,#32d74b);color:#2A2208;font-size:8px;line-height:12px;font-weight:700}
.libcap{display:block;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* готовый шопс: на сайте от 1180 px кадры и текст слева, инструменты и агент справа */
.job-grid.split{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:16px;align-items:start}
.job-main,.job-side{display:flex;flex-direction:column;min-width:0}
.job-main{gap:16px}
.job-side{gap:12px}

.devbadge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;background:var(--pink-soft);color:var(--pink);font-size:10px;line-height:14px;font-weight:700;letter-spacing:.02em;vertical-align:middle;white-space:nowrap}
.tab .devbadge{margin-left:3px;padding:0 4px;font-size:9px}
.devstrip{display:flex;align-items:flex-start;gap:10px;margin:8px var(--pad) 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--t2);font-size:13px;line-height:18px}
.devstrip .devbadge{margin:1px 0 0;flex:none}
.uq-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:700px){.uq-grid{grid-template-columns:1fr}}
.uq-canvas,.uq-ai{width:100%;height:auto;border-radius:12px;background:var(--raised);display:block}
.uq-ai{max-width:420px}
.uq-out{white-space:pre-wrap;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--raised);font-size:14px;line-height:20px}
.uq-slider{display:grid;grid-template-columns:150px 1fr 36px;gap:8px;align-items:center}
.uq-slider input{width:100%;accent-color:var(--cyan)}

/* Мои шопсы */
.my .seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
.my .seg::-webkit-scrollbar{display:none}
.my-add{align-items:center}
.my-big{display:flex;flex-direction:column;gap:4px;padding:14px;min-width:0}
.my-bigv{font-size:28px;line-height:32px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.my-bigv small{font-size:13px;font-weight:600}
.my-smalls{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px 18px;padding:16px}
.my-small{display:flex;flex-direction:column;gap:2px;min-width:0}
.my-small b{font-size:19px;line-height:24px}
.my-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.my-chart{display:flex;flex-direction:column;gap:12px;padding:14px;min-width:0}
.my-chart.wide{grid-column:1/-1}
.my-plot{position:relative}
.my-grid{position:absolute;left:0;right:0;top:34px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.my-grid i{display:block;border-top:1px solid var(--line)}
.my-bars{position:relative;display:flex;align-items:flex-end;gap:2.2%}
.my-bar{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}
.my-bar i{display:block;width:100%;border-radius:6px 6px 0 0;background:#2E3B5E;transition:background-color .16s cubic-bezier(.22,1,.36,1)}
.my-bar i.cur{background:var(--cyan)}
.my-bar:hover i:not(.cur){background:#3A4A74}
.my-bar span{white-space:nowrap;max-width:100%;overflow:visible;min-height:1.2em;text-align:center}
.my-chart.wide .my-bar i{width:62%}
.my-chart:not(.wide) .my-bar i{width:62%}
.my-tbl{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface);-webkit-overflow-scrolling:touch}
.my-tbl table{border-collapse:collapse;width:100%;font-size:13px;line-height:18px}
.my-tbl th{position:sticky;top:0;background:var(--surface);color:var(--t2);font-weight:600;text-align:left;padding:10px 10px;white-space:nowrap;border-bottom:1px solid var(--line)}
.my-tbl th.s{cursor:pointer}
.my-tbl td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.my-tbl .r{text-align:right}
.my-tbl tr.click{cursor:pointer}
.my-tbl tr.click:hover td{background:rgba(255,255,255,.03)}
.my-tbl small{font-size:11px}
.my-prod{display:flex;flex-direction:column;gap:2px;min-width:220px;max-width:320px;white-space:normal}
.my-grp{display:block;min-width:110px;max-width:150px;white-space:normal}
.ell2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.my-st{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--surface2,#1c1c1f);color:var(--t2);font-size:12px}
.my-st.on{background:rgba(52,195,143,.15);color:#34c38f}
@media (max-width:900px){.my-charts{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.my-bigv{font-size:21px;line-height:26px}.my-add{flex-wrap:wrap}}
.my-share{padding:12px 14px}
.my-link{font-size:12px;padding:6px 10px;border-radius:10px;background:var(--raised);word-break:break-all;max-width:100%}
.my-sec{display:flex;flex-direction:column;gap:12px}
.my-sec-head{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0 8px;font-size:18px;line-height:24px;font-weight:600;background:none;border:0;color:var(--t1);cursor:pointer;text-align:left;border-bottom:1px solid var(--line)}
.my-sec-head .ico{transition:transform .18s cubic-bezier(.22,1,.36,1);transform:rotate(90deg);opacity:.7}
.my-sec:not(.open) .my-sec-head .ico{transform:rotate(0deg)}
.my-sec-head:hover{color:var(--cyan)}
.my-sec-head:focus-visible{outline:2px solid var(--cyan);outline-offset:4px;border-radius:4px}
.my-sec-meta{font-variant-numeric:tabular-nums}
.my-small b,.my-tbl td{font-variant-numeric:tabular-nums}
.my-sec-head .h3{font-size:18px;line-height:24px;font-weight:600}
.mp-plan{padding:14px 16px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;text-align:left}
.mp-plan>.col{flex:1 1 320px;min-width:0}
.mp-select{height:40px;padding:0 12px;border-radius:10px;background:var(--raised);color:var(--t1);border:1px solid var(--line);font:inherit;font-size:14px;max-width:100%}
.mp-thumb{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:0 0 64px;background:var(--raised)}
.mp-thumb.sm{width:44px;height:44px;flex-basis:44px;border-radius:8px}
.mp-maker{padding:4px 0;max-width:640px}
.mp-frames{display:flex;flex-wrap:wrap;gap:8px}
.mp-frame{position:relative;width:88px;height:112px;border-radius:10px;overflow:hidden;background:var(--raised)}
.mp-frame img{width:100%;height:100%;object-fit:cover}
.mp-x{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:12px;border:0;background:rgba(10,10,26,.8);color:#fff;cursor:pointer;font-size:16px;line-height:24px}
.mp-add{width:88px;height:112px;border-radius:10px;border:1px dashed var(--line2);background:none;color:var(--t2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.my-st.bad{background:rgba(229,72,77,.15);color:#e5484d}
.my-tbl .btn{white-space:nowrap}
/* прирост по часам в карточке шопса */
.hd-scroll{overflow-x:auto;margin:0 -4px;padding:0 4px}
.hd-bars{display:grid;grid-template-columns:repeat(var(--n),minmax(26px,1fr));gap:3px;align-items:end;min-width:calc(var(--n) * 29px);height:162px}
.hd-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;cursor:pointer;height:100%}
.hd-bar{width:100%;max-width:30px;border-radius:4px 4px 1px 1px;background:#2E3B5E;transition:background .12s}
.hd-col.last .hd-bar{background:var(--cyan)}
.hd-col:hover .hd-bar,.hd-col.on .hd-bar{background:#FACC15}
.hd-v{font-size:10px;line-height:12px;color:var(--t2,#A3ACC2);font-variant-numeric:tabular-nums;white-space:nowrap}
.hd-col.on .hd-v,.hd-col:hover .hd-v{color:#fff;font-weight:700}
.hd-t{font-size:10px;line-height:12px;color:var(--t3,#7F89A3);font-variant-numeric:tabular-nums}
.hd-tbl td.r,.hd-tbl th.r{text-align:right;font-variant-numeric:tabular-nums}

/* «Мои шопсы»: графики по дням — плотный режим для 30 дней и всего времени */
.my-chart.dense .my-bars{gap:4px}
.my-chart.dense .my-bar i{width:72%;max-width:44px}
.my-chart .my-bar i{max-width:120px}
.my-bar{cursor:pointer}
.my-bar.hov i:not(.cur){background:#3A4A74}
.my-tip{font-size:13px;line-height:18px;color:var(--t2);background:#18223C;border:1px solid var(--line);border-radius:8px;padding:4px 10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.my-tip b{color:#fff;font-weight:600;margin-right:6px}

/* доступность товара группам пользователя в Adblogger */
.adb-chip{display:inline-flex;align-items:center;gap:4px;font-size:13px;line-height:18px;padding:5px 10px;border-radius:100px;background:#18223C;color:var(--t3);border:1px solid var(--line);white-space:nowrap}
.adb-chip.on{color:#fff;border-color:rgba(50,215,75,.45);background:rgba(50,215,75,.08)}
.adb-chip b{color:var(--cyan);font-weight:700}

.shop-chan{text-decoration:none;color:inherit;transition:border-color .15s}
.shop-chan:hover{border-color:var(--cyan)}

/* список групп: строка на группу, прокрутка внутри окна, если групп много */
.adb-list{max-height:296px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#0B1122}
.adb-row{display:grid;grid-template-columns:22px minmax(0,1fr) 96px 64px 76px;gap:10px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);font-size:13px;line-height:18px}
.adb-row:first-child{border-top:0}
.adb-head{position:sticky;top:0;background:#0F1629;color:var(--t3);font-size:12px;z-index:1}
.adb-row .r{text-align:right;font-variant-numeric:tabular-nums}
.adb-st{font-weight:700;color:var(--t3);text-align:center}
.adb-row.on .adb-st{color:var(--up)}
.adb-row:not(.on):not(.adb-head) .adb-name{color:var(--t3)}
.adb-name{display:flex;align-items:center;gap:8px;min-width:0;color:#fff}
.adb-name img,.adb-name i{width:24px;height:24px;border-radius:50%;flex:none;object-fit:cover;background:#18223C;font-style:normal;display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:var(--t2)}
@media (max-width:560px){.adb-row{grid-template-columns:18px minmax(0,1fr) 54px 56px}.adb-row>span:nth-child(3){display:none}}

/* Персонажи */
.pers-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.pers-card{gap:12px}
.pers-ph{width:56px;height:56px;border-radius:14px;overflow:hidden;flex:none;background:#18223C;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--cyan);font-size:20px}
.pers-ph img{width:100%;height:100%;object-fit:cover}
.pers-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pers-sel{width:100%;background:#0A0A1A;color:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 8px;font:inherit;font-size:13px}
.adb-row.pick input{accent-color:var(--cyan);width:16px;height:16px}
.pers-from{padding:12px 14px;background:rgba(234,179,8,.06);border:1px solid rgba(234,179,8,.22)}
@media (max-width:640px){.adb-list .adb-row[style*="280px 150px"]{grid-template-columns:minmax(0,1fr) !important}}
.ref-tile{padding:0;border:2px solid transparent;cursor:pointer;display:block}
.ref-tile.on{border-color:var(--cyan)}
.ref-tile.off img{opacity:.35;filter:grayscale(.8)}
.ref-check{position:absolute;left:5px;top:5px;width:20px;height:20px;border-radius:10px;background:var(--cyan);color:#000;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.ref-tile.off .ref-check{background:rgba(0,0,0,.6);border:1.5px solid rgba(255,255,255,.5)}
.ref-mini{width:28px;height:34px;border-radius:6px;object-fit:cover}

/* «Мои шопсы»: два графика дохода рядом; при 30 днях метрики по два в ряд, цифры вертикально */
.my-charts.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.my-charts.two .my-chart.wide{grid-column:auto}
.my-vlab{writing-mode:vertical-rl;transform:rotate(180deg);min-height:0 !important;line-height:1;letter-spacing:-.2px}
@media (max-width:900px){.my-charts.two{grid-template-columns:minmax(0,1fr)}}

.my-smalls{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:4px 0}
.my-small{padding:12px 18px;gap:3px;border-left:1px solid var(--line)}
.my-small:nth-child(4n+1){border-left:0}
.my-small:nth-child(n+5){border-top:1px solid var(--line)}
.my-small b{font-size:20px;line-height:26px}
.my-total{display:flex;flex-direction:column;align-items:flex-end;gap:0;white-space:nowrap}
.my-total b{font-size:18px;line-height:22px;font-variant-numeric:tabular-nums}
.my-chart.wide .my-total b{font-size:22px;line-height:28px}
@media (max-width:900px){.my-smalls{grid-template-columns:repeat(2,minmax(0,1fr))}.my-small:nth-child(4n+1){border-left:1px solid var(--line)}.my-small:nth-child(2n+1){border-left:0}.my-small:nth-child(n+3){border-top:1px solid var(--line)}}

/* Карточка шопса: три кнопки (Пост ВК, Уникализировать, Ozon) — на телефоне «Уникализировать» отдельной строкой */
.shop-acts{flex-wrap:wrap}
.shop-acts>.btn{flex:1 1 0;min-width:0;white-space:nowrap}
@media (max-width:560px){.shop-acts>.btn.uniq{flex-basis:100%;order:3}}
/* Таблицы (админка) на телефоне листаются вбок внутри карточки, страница не разъезжается */
@media (max-width:700px){table.tbl{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}}
/* Чипы, которые переносятся на новую строку (внутри карточки полоса с прокруткой обрезается краем карточки) */
.chips.wrap{flex-wrap:wrap;overflow:visible;margin:0;padding:0}

/* ───────── Агент (screens/agent.mjs) ───────── */
.ag-hero{gap:16px}
.ag-status{display:flex;align-items:center;gap:12px}
.ag-dot{width:12px;height:12px;border-radius:50%;flex:none;background:var(--t3)}
.ag-dot.run{background:var(--cyan);box-shadow:0 0 0 0 rgba(234,179,8,.6);animation:agpulse 1.6s infinite}
.ag-dot.idle{background:var(--up)}
.ag-dot.off{background:var(--line2)}
@keyframes agpulse{0%{box-shadow:0 0 0 0 rgba(234,179,8,.55)}70%{box-shadow:0 0 0 10px rgba(234,179,8,0)}100%{box-shadow:0 0 0 0 rgba(234,179,8,0)}}
@media (prefers-reduced-motion:reduce){.ag-dot.run{animation:none}}
.ag-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ag-spend{gap:6px}
.ag-meter{display:block;height:6px;border-radius:3px;background:var(--raised);overflow:hidden}
.ag-meter i{display:block;height:100%;background:var(--pink);border-radius:3px}
.ag-meter i.hot{background:var(--down)}
.ag-pipe{display:flex;gap:6px;overflow-x:auto;margin:0 calc(-1 * var(--pad));padding:2px var(--pad);scrollbar-width:none}
.ag-pipe::-webkit-scrollbar{display:none}
.ag-step{position:relative;flex:1 0 96px;display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:14px;background:var(--raised);color:var(--t3)}
.ag-step .n{font-size:20px;line-height:24px;font-weight:800;color:var(--t2);font-variant-numeric:tabular-nums}
.ag-step.has .n{color:var(--t1)}
.ag-step.has.work .n,.ag-step.has.queued .n{color:var(--cyan)}
.ag-step.has.moderation .n,.ag-step.has.planned .n{color:var(--pink)}
.ag-step.has.live .n{color:var(--up)}
.ag-step.has.bad .n{color:var(--down)}
.ag-grid{display:flex;flex-direction:column;gap:16px}
.ag-card{gap:12px;padding:14px}
.ag-card.bad{border-color:rgba(249,115,22,.35)}
.ag-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ag-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:100px;font-size:12px;line-height:16px;font-weight:700;background:var(--raised);color:var(--t2)}
.ag-badge i{width:7px;height:7px;border-radius:50%;background:currentColor}
.ag-badge.work{background:var(--cyan-soft);color:var(--cyan)}
.ag-badge.wait{background:var(--pink-soft);color:var(--pink)}
.ag-badge.ok{background:var(--up-soft);color:var(--up)}
.ag-badge.bad{background:var(--down-soft);color:var(--down)}
.ag-order{padding:4px 10px;border-radius:100px;background:var(--cyan);color:var(--on);font-size:12px;line-height:16px;font-weight:700}
.ag-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.ag-media{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.ag-media::-webkit-scrollbar{display:none}
.ag-media.empty{align-items:center;gap:8px;color:var(--t3)}
.ag-thumb{position:relative;flex:none;width:118px;aspect-ratio:2/3;border-radius:14px;overflow:hidden;background:var(--raised);border:1px solid var(--line)}
.ag-thumb img{width:100%;height:100%;object-fit:cover}
.ag-thumb.ref{border-color:var(--line2)}
.ag-thumb.ghost{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--t3)}
.ag-thumb .tag{position:absolute;left:6px;top:6px;padding:2px 7px;border-radius:8px;font-size:11px;line-height:14px;font-weight:700;background:rgba(10,10,26,.78);color:var(--t1)}
.ag-thumb .tag.ours{background:var(--cyan);color:var(--on)}
.ag-info{display:flex;flex-direction:column;gap:10px;min-width:0}
.ag-why{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:14px;background:var(--raised)}
.ag-donor{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.ag-donor>.t3:first-child{min-width:52px}
.ag-chips{display:flex;flex-wrap:wrap;gap:6px}
.ag-chip{padding:3px 8px;border-radius:8px;background:var(--surface);font-size:11px;line-height:14px;color:var(--t2)}
.ag-chip b{color:var(--cyan);font-weight:700}
.ag-text pre{white-space:pre-wrap;word-break:break-word;font:inherit;font-size:14px;line-height:20px;max-height:120px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent);margin-bottom:6px}
.ag-text.open pre{max-height:none;-webkit-mask-image:none;mask-image:none}
.ag-check{list-style:none;display:flex;flex-direction:column;gap:4px}
.ag-check li{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:16px}
.ag-check li .ico{margin-top:1px}
.ag-check li.ok{color:var(--up)}
.ag-check li.bad{color:var(--down)}
.ag-out{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.ag-outc{display:flex;flex-direction:column;padding:8px 10px;border-radius:12px;background:var(--up-soft)}
.ag-outc b{font-size:16px;line-height:20px;color:var(--up)}
.ag-trail summary{cursor:pointer;list-style:none}
.ag-trail summary::-webkit-details-marker{display:none}
.ag-trail ol{list-style:none;margin-top:8px;display:flex;flex-direction:column;gap:6px;border-left:2px solid var(--line);padding-left:12px}
.ag-trail li{display:flex;flex-wrap:wrap;gap:2px 8px}
.ag-strat{gap:14px}
.ag-weights{display:flex;flex-direction:column;gap:8px}
.ag-w{display:grid;grid-template-columns:minmax(0,1fr) 80px 34px;align-items:center;gap:8px}
.ag-wbar{height:6px;border-radius:3px;background:var(--raised);overflow:hidden}
.ag-wbar i{display:block;height:100%;background:var(--cyan);border-radius:3px}
.ag-w .cap-s{text-align:right;font-variant-numeric:tabular-nums}
.ag-notes{padding-left:18px;display:flex;flex-direction:column;gap:4px;color:var(--t2)}
.ag-report{white-space:pre-wrap;font:inherit;font-size:13px;line-height:18px;color:var(--t2);background:var(--raised);border-radius:12px;padding:10px 12px}
.ag-zoomimg{width:100%;max-height:72vh;object-fit:contain;border-radius:14px}
@media (min-width:600px){
  .ag-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ag-pipe{margin:0;padding:0;overflow:visible}
  .ag-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start}
  .ag-media{flex-direction:row;flex-wrap:wrap;max-width:252px}
}
@media (min-width:1180px){
  .ag-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
  .ag-side{position:sticky;top:100px}
  .ag-thumb{width:120px}
}
.ag-cost{padding:3px 9px;border-radius:100px;background:var(--raised);font-size:12px;line-height:16px;font-weight:700;color:var(--t1);white-space:nowrap;font-variant-numeric:tabular-nums}
.ag-cost.muted{color:var(--t3);font-weight:500}
.ag-cost .micro{color:var(--t2);font-weight:500}
.ag-set{gap:12px}
.ag-toggle{display:flex;align-items:center;gap:12px}
.ag-num{display:flex;align-items:center;gap:12px}
.ag-num input{width:84px;flex:none;padding:8px 10px;border-radius:10px;background:var(--raised);border:1px solid var(--line2);color:var(--t1);font-size:15px;text-align:right;font-variant-numeric:tabular-nums}
.ag-num input:focus{border-color:var(--cyan)}

.my-hero{display:flex;flex-direction:column;gap:6px;padding:18px;border-color:var(--cyan);background:linear-gradient(135deg,var(--cyan-soft),transparent 70%)}
.my-hero-v{font-size:44px;line-height:48px;font-weight:800;color:var(--cyan);letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:10px}
.my-hero-v small{font-size:16px;font-weight:700;letter-spacing:0}
.my-hero-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:6px}
.my-hero-row span{display:flex;flex-direction:column;min-width:0}
.my-hero-row b{font-size:17px;line-height:22px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.my-hero-row i{font-style:normal;font-size:12px;line-height:16px;color:var(--t3)}
@media (max-width:560px){.my-hero-v{font-size:36px;line-height:40px}.my-per .seg{font-size:13px}}
.my-tabs{width:100%}
.my-tabs>button{padding:8px 6px;font-size:14px}
.my-per{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.my-per>.seg{flex:none}
@media (max-width:560px){.my-tabs>button{font-size:13px;padding:7px 4px}.my-per .seg button{padding:6px 9px;font-size:13px}}
.ag-topics{display:flex;flex-direction:column;gap:12px}
.ag-topic{padding-top:10px;border-top:1px solid var(--line)}
.ag-topic input{width:100%;min-height:36px;padding:6px 10px;border-radius:10px;border:1px solid var(--line);background:var(--bg2,transparent);color:inherit;font:inherit;font-size:14px}
.ag-rework{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin:2px 0 4px;border-radius:12px;background:var(--red-soft,rgba(255,90,90,.08));border:1px solid var(--line)}
.ag-audit{display:flex;flex-direction:column;gap:12px}
.ag-atiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.ag-atile{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface-2,rgba(255,255,255,.03));border:1px solid var(--line)}
.ag-atile b{font-size:20px;line-height:26px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.ag-atable{overflow-x:auto;margin:0 -4px}
.ag-atable table{width:100%;border-collapse:collapse;font-size:13px;min-width:720px}
.ag-atable th{text-align:left;font-weight:600;color:var(--t3);padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.ag-atable td{padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top;font-variant-numeric:tabular-nums}
.ag-atable .r{text-align:right;white-space:nowrap}
.ag-aprod{max-width:280px}
@media (max-width:560px){.ag-atiles{grid-template-columns:repeat(2,1fr)}.ag-atile b{font-size:18px}}

/* Нетворкинг (screens/net.mjs) */
.nt .ag-hero{gap:14px}
.nt-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (min-width:900px){.nt-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}}
.nt-grid2{display:grid;grid-template-columns:1fr;gap:10px}
.nt-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (min-width:700px){.nt-grid2{grid-template-columns:1fr 1fr}}
.nt-item{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.nt-item:first-of-type{border-top:0}
.nt-head{width:100%;text-align:left;align-items:center;min-height:32px}
.nt-bubble{max-width:min(560px,88%);padding:9px 12px;border-radius:14px;font-size:14px;line-height:19px;white-space:pre-wrap;word-break:break-word;display:flex;flex-direction:column;gap:2px}
.nt-bubble.in{background:var(--raised);color:var(--t1);align-self:flex-start;border-bottom-left-radius:4px}
.nt-bubble.out{background:var(--cyan-soft);color:var(--t1);align-self:flex-end;border-bottom-right-radius:4px}
.nt-bubble.own{outline:1px dashed var(--line2)}
.nt-time{font-size:11px;line-height:14px;color:var(--t3);align-self:flex-end}
.nt-cand{padding:8px 0;border-top:1px solid var(--line)}
.nt-cand .ell2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nt textarea{width:100%;resize:vertical;font:inherit;background:transparent;border:0;outline:0}
.nt .row.wrap>.field.grow{min-width:200px}

/* Шопс-клипы */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.card.clip-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; }
.clip-thumb { position: relative; flex: 0 0 96px; height: 170px; border-radius: 10px; overflow: hidden; background: var(--raised); display: flex; align-items: center; justify-content: center; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip-views { position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }
.clip-body { min-width: 0; flex: 1; }
.clip-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .clip-grid { grid-template-columns: 1fr; } }

/* «Мои шопсы»: в верхней плашке 4 цифры периода (на телефоне — 2×2) */
.my-hero-row{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:560px){.my-hero-row{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:10px}}
/* Раскладка по товарам на телефоне: главные цифры периода прямо под названием (колонки уезжают за прокрутку) */
.my-mob-line{display:none}
@media (max-width:560px){.my-mob-line{display:block;margin-top:4px;font-size:13px;line-height:18px;color:var(--t2);white-space:normal}}
/* ▲/▼ процент к прошлому такому же срезу */
.my-dl{font-size:12px;line-height:16px;font-weight:700;letter-spacing:0;margin-left:6px;white-space:nowrap;vertical-align:middle}
.my-dl.t3{color:var(--t3)}
.my-bigv .my-dl{font-size:13px}
.my-hero-v .my-dl{font-size:16px;margin-left:0}
.my-hero-row .my-dl,.my-small .my-dl{font-size:11px;margin-left:5px}
/* график на странице шопса: по дням — подписи дат шире; маленький переключатель под графиком */
.hd-bars.days{grid-template-columns:repeat(var(--n),minmax(38px,1fr));min-width:calc(var(--n) * 41px)}
.seg.seg-s button{font-size:13px;padding:6px 12px;min-height:32px}
/* «Мои шопсы»: свои даты — кнопка «Даты» и выпадающий календарь (панель привязана к .my-perwrap, чтобы её не обрезала прокрутка ряда) */
.my-perwrap{position:relative}
.drp{flex:none}
.drp-btn{display:inline-flex;align-items:center;gap:6px;height:100%;min-height:38px;padding:0 14px;border-radius:100px;background:var(--raised);color:var(--t2);font-weight:600;white-space:nowrap}
.drp-btn.on{background:var(--cyan);color:var(--on)}
.drp-btn:hover{color:var(--t1)}.drp-btn.on:hover{color:var(--on)}
.drp-panel{position:absolute;z-index:60;top:calc(100% + 8px);left:var(--drp-left,0);width:320px;max-width:calc(100vw - 32px);padding:14px;border-radius:16px;background:var(--sheet);border:1px solid var(--line2);box-shadow:0 18px 50px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:10px}
.drp-head{display:flex;align-items:center;justify-content:space-between}
.drp-head b{font-size:15px}
.drp-nav{width:36px;height:36px;border-radius:18px;background:var(--raised);color:var(--t1);font-size:20px;line-height:1}
.drp-nav:disabled{opacity:.3;cursor:default}
.drp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.drp-wd{text-align:center;font-size:11px;line-height:24px;color:var(--t3)}
.drp-day{height:38px;border-radius:10px;color:var(--t1);font-variant-numeric:tabular-nums;font-size:14px}
.drp-day:hover:not(:disabled){background:var(--raised)}
.drp-day:disabled{color:var(--t3);opacity:.35;cursor:default}
.drp-day.today{box-shadow:inset 0 0 0 1px var(--line2)}
.drp-day.in{background:var(--cyan-soft);border-radius:4px}
.drp-day.edge{background:var(--cyan);color:var(--on);font-weight:700;border-radius:10px}
.drp-hint{min-height:16px}
.drp-presets{display:flex;gap:6px;flex-wrap:wrap}
.drp-presets .chip{padding:6px 12px;font-size:13px}
.drp-acts{display:flex;gap:8px}.drp-acts .btn{flex:1;padding:10px 14px}
.drp-acts .btn:disabled{opacity:.4}
@media (max-width:560px){.drp-btn{padding:0 11px;font-size:13px;min-height:34px}.drp-panel{position:fixed;left:16px;right:16px;top:auto;bottom:calc(16px + env(safe-area-inset-bottom));width:auto;max-width:none}}

/* админ смотрит чужой кабинет: плашка сверху (ui/impstrip.mjs) и глазок в списке пользователей */
.opt-row{display:flex;align-items:stretch;gap:8px}
.opt-row .opt{flex:1 1 auto;min-width:0}
.opt-eye{flex:none;width:52px;display:flex;align-items:center;justify-content:center;border-radius:16px;border:1px solid var(--line);background:var(--surface);color:var(--cyan)}
.opt-eye:hover{border-color:var(--cyan)}
