.cga-body{margin:0;overflow:hidden;background:#f2f2f8;color:#1f2330;font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:14.5px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
.cga-body *{box-sizing:border-box}
.cga,.cga-lb,.cga-pop,.cga-dlg,.cga-studio-sheet{--ink:#1f2330;--ink2:#3a3f52;--muted:#6f7282;--faint:#9a9caa;--brass:#804fed;--brass-d:#5b34ae;--gold:#c285fc;--soft:#ede9ff;--bg:#f2f2f8;--paper:#f9f8fe;--line:#e2dff1;--line2:#d2cee6;--side:#1b1e29;--side2:#262a3a;--side-t:#e9e8ee;--side-m:#9a9dad;--ok:#2f7a55;--err:#6909dc;--sh:0 1px 2px rgba(31,35,48,.05),0 10px 30px -16px rgba(48,41,79,.35);--serif:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.cga{--cga-header-height:48px;display:grid;grid-template-columns:272px minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);position:fixed;inset:0;height:100vh;height:100dvh;overflow:clip}
.cga svg,.cga-lb svg,.cga-pop svg,.cga-dlg svg,.cga-toasts svg,.cga-studio-sheet svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
:where(.cga,.cga-lb,.cga-pop,.cga-dlg,.cga-studio-sheet) button{font:inherit;color:inherit;cursor:pointer}
:where(.cga,.cga-lb,.cga-pop,.cga-dlg,.cga-studio-sheet) :focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.cga [hidden],.cga-lb[hidden],.cga-pop[hidden],.cga-lb [hidden],.cga-dlg[hidden]{display:none!important}
.cga-nojs{position:fixed;inset:auto 16px 16px;padding:14px;border-radius:12px;background:#1f2330;color:#fff;text-align:center}
.cga-ic{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--ink2);transition:background .15s,color .15s}
.cga-ic:hover{background:rgba(31,35,48,.06);color:var(--ink)}

.cga-sb::-webkit-scrollbar,.cga-hs::-webkit-scrollbar{width:10px;height:10px}
.cga-sb::-webkit-scrollbar-track,.cga-hs::-webkit-scrollbar-track{background:transparent}
.cga-sb::-webkit-scrollbar-thumb,.cga-hs::-webkit-scrollbar-thumb{background-color:rgba(31,35,48,.16);border-radius:10px;border:3px solid transparent;background-clip:padding-box}
.cga-sb::-webkit-scrollbar-thumb:hover,.cga-hs::-webkit-scrollbar-thumb:hover{background-color:rgba(128,79,237,.6)}
.cga-sb::-webkit-scrollbar-corner{background:transparent}
.cga-side .cga-sb::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.12)}
.cga-side .cga-sb::-webkit-scrollbar-thumb:hover{background-color:rgba(194,133,252,.5)}
.cga-lb .cga-hs::-webkit-scrollbar-thumb,.cga-lb .cga-sb::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.18)}
.cga-lb-side .cga-sb::-webkit-scrollbar-thumb,.cga-lb-side .cga-hs::-webkit-scrollbar-thumb{background-color:rgba(31,35,48,.16)}
@supports not selector(::-webkit-scrollbar){.cga-sb,.cga-hs{scrollbar-width:thin;scrollbar-color:rgba(31,35,48,.22) transparent}.cga-side .cga-sb{scrollbar-color:rgba(255,255,255,.16) transparent}}

/* ---------- боковая колонка ---------- */
.cga-side{display:flex;flex-direction:column;min-height:0;background:var(--side);color:var(--side-t);padding:14px 12px 12px;gap:10px;position:relative;z-index:30}
.cga-side-h{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 4px 8px;min-height:36px}
.cga-side-hb{display:flex;align-items:center;gap:2px;flex:none}
.cga-brand{display:flex;align-items:baseline;gap:7px;text-decoration:none;color:#fff;min-width:0}
.cga-brand b{font-size:19px;font-weight:800;letter-spacing:-.02em}
.cga-brand em{font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:16.8px;font-weight:800;font-style:normal;color:var(--gold);letter-spacing:-.03em}
.cga-side .cga-ic{color:var(--side-m)}
.cga-side .cga-ic:hover{background:var(--side2);color:#fff}
.cga-new{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid rgba(194,133,252,.35);border-radius:12px;background:rgba(194,133,252,.08);color:#fff;font-weight:700;font-size:14px;transition:background .15s,border-color .15s}
.cga-new:hover{background:rgba(194,133,252,.16);border-color:rgba(194,133,252,.6)}
.cga-new svg{color:var(--gold)}
.cga-nav{display:flex;flex-direction:column;gap:2px}
.cga-nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;color:var(--side-t);text-decoration:none;font-size:13.5px;font-weight:600}
.cga-nav a svg{width:18px;height:18px;color:var(--side-m)}
.cga-nav a:hover{background:var(--side2)}
.cga-nav a.is-on{background:rgba(194,133,252,.13)}
.cga-nav a.is-on svg{color:var(--gold)}
.cga-search{display:flex;align-items:center;gap:8px;padding:0 10px;height:38px;border-radius:10px;background:var(--side2);color:var(--side-m)}
.cga-search svg{width:17px;height:17px}
.cga-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:13.5px}
.cga-search input::placeholder{color:var(--side-m)}
.cga-chats{flex:1;min-height:0;overflow:auto;margin:2px -4px 0;padding:0 4px}
.cga-cg{margin:12px 0 4px;padding:0 8px;font-size:12px;font-weight:600;color:#7d8194}
.cga-ci{position:relative;display:flex;align-items:center;gap:10px;padding:7px 8px;margin:0 0 3px;border-radius:11px;color:var(--side-t);text-decoration:none;transition:background .12s}
.cga-ci:hover{background:var(--side2)}
.cga-ci.is-on{background:rgba(194,133,252,.13)}
.cga-ci.is-on::before{content:"";position:absolute;left:-4px;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--gold)}
.cga-ci-th{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--side2);overflow:hidden;flex:none;color:var(--side-m)}
.cga-ci-th img{width:100%;height:100%;object-fit:cover;display:block}
.cga-ci-th svg{width:17px;height:17px}
.cga-ci-b{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.cga-ci-b b{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-ci-b i{font-style:normal;font-size:11.5px;color:var(--side-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-ci-busy{width:8px;height:8px;border-radius:50%;background:var(--gold);flex:none;animation:cga-pulse 1.6s ease-in-out infinite}
.cga-ci-m{opacity:0;width:28px;height:28px;padding:0;margin:0;border:0;border-radius:8px;background:transparent;color:var(--side-m);display:grid;place-items:center;flex:none;line-height:0}
.cga-ci:hover .cga-ci-m,.cga-ci.is-on .cga-ci-m{opacity:1}
.cga-ci-m:hover{background:rgba(255,255,255,.08);color:#fff}
.cga-ci-m svg{width:17px;height:17px;display:block;margin:0}
.cga-chats-empty{padding:18px 10px;color:var(--side-m);font-size:13px;text-align:center}
.cga-more{display:block;width:100%;margin:6px 0;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--side-m);font-size:13px}
.cga-more:hover{background:var(--side2);color:#fff}
.cga-side-f{display:flex;flex-direction:column;gap:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.07)}
.cga-bal{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-radius:11px;background:var(--side2);color:#fff;text-align:left}
.cga-bal svg{color:var(--gold);width:18px;height:18px}
.cga-bal b{font-size:15px;font-variant-numeric:tabular-nums}
.cga-bal span{color:var(--side-m);font-size:12.5px;flex:1}
.cga-bal i{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:8px;background:var(--gold);color:var(--side);font-style:normal;line-height:0}
.cga-bal i svg{width:14px;height:14px;color:var(--side);stroke-width:2.6}
.cga-bal:hover{background:#2e3345}
.cga-links{display:flex;gap:6px}
.cga-links a,.cga-links button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--side-m);font-size:13px;text-decoration:none}
.cga-links a:hover,.cga-links button:hover{background:var(--side2);color:#fff}
.cga-links svg{width:17px;height:17px}
html.cga-mini .cga{grid-template-columns:minmax(0,1fr) auto}
html.cga-mini .cga-side{display:none}

/* ---------- шапка ---------- */
.cga-main{display:grid;overflow:clip;grid-template-rows:var(--cga-header-height) auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;background:var(--bg);position:relative}
/* 1.1.44: строки сетки закреплены — лента, страница раздела и поле ввода не уходят в лишние строки и не сжимают поле ввода */
.cga-main>.cga-top{grid-area:1 / 1 / 2 / 2;position:absolute;inset:0 0 auto;height:var(--cga-header-height);background:var(--paper)}
/* 1.1.110: шапка нужна только на главной агента и в чате. Нет скрытого отступа в scrollport раздела. */
.cga-section .cga-main>.cga-page{grid-area:3 / 1 / 5 / 2;padding-top:0}
.cga-section .cga-main{grid-template-rows:0 auto minmax(0,1fr) auto}
.cga-section .cga-main>.cga-top{display:none}
.cga-section-nav{display:none}
.cga-main>.cga-nts{grid-row:2}
.cga-main>.cga-scroll{grid-row:3}
.cga-main>.cga-dock{grid-row:4;min-height:min-content}
.cga-top{display:flex;align-items:center;gap:10px;height:var(--cga-header-height);padding:0 16px;border-bottom:1px solid var(--line);background:rgba(249,248,254,.9);backdrop-filter:saturate(1.2) blur(10px);-webkit-backdrop-filter:saturate(1.2) blur(10px);position:relative;z-index:5}
.cga-top-l{display:none;align-items:center;gap:2px;margin-left:-6px}
html.cga-mini .cga-top-l{display:flex}
.cga-title-w{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.cga-title{min-width:0;max-width:100%;padding:6px 8px;margin-left:-8px;border:0;border-radius:9px;background:transparent;font-weight:700;font-size:15.5px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.cga-title:not(:disabled):hover{background:rgba(31,35,48,.05)}
.cga-title:disabled{cursor:default;color:var(--ink);opacity:1}
.cga-wf{display:inline-flex;align-items:center;gap:5px;padding:4px 10px 4px 8px;border-radius:999px;background:var(--soft);color:var(--brass-d);font-size:12px;font-weight:700;white-space:nowrap;flex:none}
.cga-wf svg{width:14px;height:14px}
.cga-top-a{display:flex;align-items:center;gap:4px;flex:none}
.cga-tb{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink2);font-size:13px;font-weight:600}
.cga-tb:hover{background:#fff;border-color:var(--line)}
.cga-tb.on{background:#fff;border-color:var(--line2);color:var(--ink)}
.cga-tb svg{width:18px;height:18px;color:var(--brass-d)}
.cga-tb em{font-style:normal;font-size:11px;font-weight:700;min-width:18px;padding:1px 5px;border-radius:9px;background:var(--soft);color:var(--brass-d);text-align:center}
.cga-tb em:empty{display:none}

/* ---------- лента ---------- */
.cga-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.cga-feed{max-width:860px;margin:0 auto;padding:24px 22px 26px;display:flex;flex-direction:column;gap:26px}
.cga-feed:empty{padding:0}
.cga-older{align-self:center;padding:7px 14px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink2);font-size:13px}

.cga-hero{max-width:880px;margin:0 auto;padding:clamp(24px,7vh,72px) 22px 24px;text-align:center}
.cga-hero h1{margin:0 0 10px;font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-weight:800;font-size:clamp(30.24px,4.54vw,48.72px);line-height:1.02;letter-spacing:-.03em;color:var(--ink)}
.cga-hero h1 span{display:block;color:var(--brass-d);font-style:italic}
.cga-hero p{max-width:600px;margin:0 auto;color:var(--muted);font-size:15.5px}
/* 0.87: компактное приветствие и карусель сценариев вместо сетки */
.cga-hero.has-car{max-width:960px;padding:clamp(16px,4.5vh,44px) 22px 16px}
.cga-hero.has-car h1{margin:0 0 6px;font-size:clamp(22px,2.3vw,30px);line-height:1.15;letter-spacing:-.025em}
.cga-hero.has-car h1 span{display:inline}
/* 0.88.7: подзаголовок целиком — без обрезки на 2 строки (длинный текст обрывался на полуслове даже на десктопе) */
.cga-hero.has-car .cga-hi p{max-width:720px;font-size:14px;line-height:1.45;text-wrap:balance}
.cga-hero .cgb-p{max-width:none;margin:0;color:var(--cgb-mut);font-size:12.5px;text-align:left}
@media (min-width:900px) and (min-height:760px){.cga-hero.has-car{padding-top:clamp(40px,13vh,140px)}}
.cga-car-h button{margin-left:auto;padding:0;border:0;background:none;color:var(--brass-d,#6d28d9);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.cga-car-h button:hover{text-decoration:underline}
.cga-car-h{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:22px 2px 10px;text-align:left}
.cga-car-h b{font-size:14px;font-weight:800;color:var(--ink)}
.cga-car-h span{font-size:12.5px;color:var(--muted)}
.cga-car{text-align:left}
.cga-car .cgb-nav{justify-content:flex-end;margin-top:6px}
.cga-hero-warn{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;max-width:620px;margin:16px auto 0;padding:10px 14px;border-radius:12px;background:#fff4e5;color:#8a5a12;font-size:13.5px}
.cga-qh,.cga-hero .cga-qh{max-width:none;margin:34px 2px 12px;text-align:left;font-size:14px;font-weight:700;color:var(--ink2)}
.cga-qgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;text-align:left}
.cga-q{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left;transition:box-shadow .15s,border-color .15s;min-width:0}
.cga-q:hover{border-color:var(--line2);box-shadow:var(--sh)}
.cga-q i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--soft);color:var(--brass-d)}
.cga-q i svg{width:19px;height:19px}
.cga-q b{font-size:14px;font-weight:700;line-height:1.25}
.cga-q span{font-size:12.5px;color:var(--muted);line-height:1.35}
.cga-q.is-wf-videos i{background:#efe7f6;color:#6a4b8c}
.cga-q.is-wf-commerce i{background:#e6f1ec;color:#2f6d52}
.cga-q.is-wf-photoshoot i{background:#eceaf9;color:#5920b5}

.cga-m{display:flex;gap:12px;min-width:0}
.cga-m.is-user{justify-content:flex-end}
.cga-m-u{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:min(78%,640px);min-width:0}
.cga-bub{max-width:100%;min-width:0;padding:10px 14px;border-radius:18px 18px 6px 18px;background:var(--ink);color:#fff;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;font-size:14.5px}
.cga-bub .cga-mn{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.18)}
.cga-bub .cga-sc{background:rgba(194,133,252,.22);color:#e6e0ff}
.cga-m-att{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.cga-m-att button{width:64px;height:64px;padding:0;border:0;border-radius:12px;overflow:hidden;background:#e5e2f3}
.cga-m-att img{width:100%;height:100%;object-fit:cover;display:block}
.cga-m-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:var(--soft);color:var(--brass-d);font-size:12px;font-weight:700}
.cga-m-tag svg{width:13px;height:13px}
.cga-m-b{display:flex;flex-direction:column;gap:12px;min-width:0;flex:1}
.cga-txt{color:var(--ink);font-size:15px;line-height:1.65;overflow-wrap:anywhere;max-width:72ch}
.cga-txt p{margin:0 0 8px}
.cga-txt p:last-child{margin-bottom:0}
.cga-txt ul,.cga-txt ol{margin:4px 0 8px;padding-left:22px}
.cga-txt li{margin:3px 0}
.cga-txt b{font-weight:700}
.cga-txt code{padding:1px 5px;border-radius:5px;background:#ebe9f8;font-size:.92em}
.cga-m.is-err .cga-txt{color:var(--err)}
.cga-m.is-stopped .cga-txt{color:var(--muted)}
/* 0.87: точки не сжимаются в узком пузыре и не «прыгают» при перерисовке (фазу выравнивает syncDots() в agent.js) */
.cga-think{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;flex-wrap:nowrap;min-width:0}
.cga-think>span:last-child{min-width:0}
.cga-dots{display:inline-flex;align-items:center;flex:none;gap:5px;height:14px;padding:0 1px}
.cga-dots i{display:block;flex:none;width:7px;height:7px;min-width:7px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#d946ef);animation:cga-dot 1.2s ease-in-out infinite;will-change:transform,opacity;backface-visibility:hidden;background-origin:border-box}
.cga-dots i:nth-child(2){animation-delay:.16s}.cga-dots i:nth-child(3){animation-delay:.32s}

.cga-work{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.cga-work-b{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12.5px}
.cga-work-b:hover{border-color:var(--line2);color:var(--ink2)}
.cga-work-b i{font-style:normal;font-weight:800;color:var(--ok)}
.cga-work-b.is-err i{color:var(--err)}
.cga-work-b svg{width:14px;height:14px;transition:transform .15s}
.cga-work-b[aria-expanded=true] svg{transform:rotate(180deg)}
.cga-steps{display:flex;flex-direction:column;gap:6px;padding:2px 0 2px 12px;border-left:2px solid var(--line);max-width:680px}
.cga-st{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--muted);min-width:0;line-height:1.45}
.cga-st b{font-weight:600;color:var(--ink2);white-space:nowrap}
.cga-st span{min-width:0;overflow-wrap:anywhere}
.cga-st .cga-st-refs{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:-2px}
.cga-st-refs .cga-mn{margin:0;font-size:12px;line-height:1.45;vertical-align:0}
.cga-st-refs .cga-mn img,.cga-st-refs .cga-mn em{width:18px;height:18px}
.cga-st-refs em{font-style:normal;font-size:12px;font-weight:600;color:var(--muted)}
.cga-st .cga-mn,.cga-st .cga-sc{font-size:12px}
.cga-st i{display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:50%;flex:none;font-style:normal;font-size:11px;font-weight:800}
.cga-st.is-run i{border:2px solid var(--line2);border-top-color:var(--brass);animation:cga-spin 1s linear infinite}
.cga-st.is-ok i{background:#e3f1e8;color:var(--ok)}
.cga-st.is-err i{background:#eeeafe;color:var(--err)}
.cga-st.is-err b{color:var(--err)}
.cga-st.is-say{color:var(--ink2)}
.cga-st-md{min-width:0;overflow-wrap:anywhere}
.cga-st-md p{margin:0 0 4px}
.cga-st-md p:last-child,.cga-st-md ul:last-child,.cga-st-md ol:last-child{margin-bottom:0}
.cga-st-md ul,.cga-st-md ol{margin:2px 0 4px;padding-left:18px}
.cga-st-md li{margin:1px 0}
.cga-st-md b{white-space:normal;font-weight:700;color:var(--ink)}
.cga-st.is-say i{background:var(--soft);color:var(--brass-d);font-style:normal}
.cga-thk{max-width:680px;padding:10px 12px;border-radius:12px;background:#eeecf9;color:#5d6070;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
.cga-thk-h{display:block;margin:0 0 4px;font-size:12px;font-weight:700;color:var(--brass-d);font-style:normal;white-space:normal}

.cga-sug{display:flex;flex-direction:column;gap:8px;min-width:0}
.cga-sug p{margin:0;font-size:13px;color:var(--ink2);font-weight:600}
.cga-sug div{display:flex;flex-wrap:wrap;gap:6px}
.cga-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink);font-size:13.5px;font-weight:600;transition:border-color .15s,background .15s;white-space:nowrap}
.cga-chip:hover{border-color:var(--brass);background:#fdfdff}
.cga-chip svg{width:15px;height:15px;color:var(--brass-d)}
.cga-mn{display:inline-flex;align-items:center;gap:5px;vertical-align:-3px;padding:1px 7px 1px 2px;margin:2px 3px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--ink);font-size:.92em;font-weight:600;line-height:1.5;cursor:pointer;white-space:nowrap;position:relative}
.cga-mn img,.cga-mn em{width:20px;height:20px;border-radius:6px;object-fit:cover;display:block;background:#e5e2f3}
.cga-mn em{display:grid;place-items:center;font-style:normal;font-size:10px;color:var(--faint)}
.cga-mn em svg{width:12px;height:12px}
.cga-mn em.is-pend{background:none;border:2px solid var(--line2);border-top-color:var(--brass);border-radius:50%;width:14px;height:14px;margin:0 3px;animation:cga-spin 1s linear infinite}
.cga-sc{display:inline-flex;align-items:center;gap:4px;vertical-align:-2px;padding:1px 8px;margin:2px 3px;line-height:1.5;border-radius:8px;background:var(--soft);color:var(--brass-d);font-size:.92em;font-weight:700;white-space:nowrap;position:relative}
.cga-sc svg{width:13px;height:13px}
.cga-scn{display:inline-flex;align-items:center;gap:5px;vertical-align:-2px;padding:1px 9px 1px 7px;margin:0 2px 0 0;border-radius:8px;background:var(--ink);color:#e6e0ff;font-size:.9em;font-weight:700;white-space:nowrap;position:relative}
.cga-scn svg{width:13px;height:13px;color:var(--gold)}

/* ---------- медиа в ленте ---------- */
.cga-mc{display:flex;flex-direction:column;gap:8px;min-width:0}
.cga-mg-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;font-size:13px;color:var(--muted)}
.cga-mg-h b{font-weight:700;color:var(--ink2)}
.cga-mst{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:999px;background:#ebe9f8;font-size:12px;font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums}
.cga-mst.is-ok{background:#e3f1e8;color:var(--ok)}
.cga-mst.is-err{background:#eeeafe;color:var(--err)}
.cga-mst i{width:7px;height:7px;border-radius:50%;background:var(--brass);animation:cga-pulse 1.6s ease-in-out infinite}
.cga-mg{display:grid;gap:8px;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));max-width:640px}
.cga-mg.is-1{--cols:1;max-width:min(460px,100%)}
.cga-mg.is-2{--cols:2;max-width:540px}
.cga-mg.is-3,.cga-mg.is-4{--cols:2;max-width:540px}
.cga-mg.is-many{--cols:4;max-width:760px}
.cga-t{position:relative;border-radius:14px;overflow:hidden;background:#e7e5f4;aspect-ratio:var(--ar,1);min-height:90px;isolation:isolate;container-type:inline-size}
.cga-mg.is-1 .cga-t{max-height:540px}
.cga-t img,.cga-t video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cga-t.is-alpha{background-color:#fff;background-image:linear-gradient(45deg,#e9e7f4 25%,transparent 25%),linear-gradient(-45deg,#e9e7f4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9e7f4 75%),linear-gradient(-45deg,transparent 75%,#e9e7f4 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0;background-origin:border-box}
.cga-t.is-alpha img{object-fit:contain}
.cga-t-open{position:absolute;inset:0;z-index:1;border:0;background:transparent;padding:0;cursor:zoom-in}
.cga-t-ref{position:absolute;top:8px;left:8px;z-index:3;padding:2px 8px;border-radius:8px;background:rgba(20,22,30,.66);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font-size:12px;font-weight:700;pointer-events:none}
.cga-t-play{position:absolute;inset:0;z-index:2;display:grid;place-items:center;pointer-events:none}
/* 0.88.1: кнопка Play — сплошной светлый кружок без обводки и «стекла», тёмный скруглённый треугольник; на наведении — фирменный градиент */
.cga-t-play span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 10px 26px -8px rgba(10,8,24,.55),0 2px 6px rgba(10,8,24,.18);color:#17171f;transition:transform .22s cubic-bezier(.2,.8,.2,1),background .22s,color .22s,box-shadow .22s}
.cga-t-play svg{display:block;width:19px;height:19px;fill:currentColor;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;margin-left:0}
@media (hover:hover){
  .cga-t:hover .cga-t-play span{transform:scale(1.08);background:linear-gradient(135deg,#7c5cff,#e0479e);color:#fff;box-shadow:0 14px 30px -10px rgba(124,58,237,.7);background-origin:border-box}
}
@media (max-width:640px){.cga-t-play span{width:46px;height:46px}.cga-t-play svg{width:17px;height:17px}}
.cga-t-dur{position:absolute;right:8px;top:8px;z-index:3;padding:2px 7px;border-radius:8px;background:rgba(20,22,30,.6);color:#fff;font-size:11.5px;font-weight:700}
.cga-t-bar{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;gap:4px;align-items:center;padding:28px 8px 8px;background:linear-gradient(transparent,rgba(15,16,22,.5));opacity:0;transition:opacity .15s;background-origin:border-box}
.cga-t:hover .cga-t-bar,.cga-t:focus-within .cga-t-bar{opacity:1}
.cga-t-bar button,.cga-t-bar a{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:rgba(255,255,255,.94);color:var(--ink);text-decoration:none;flex:none}
.cga-t-bar button:hover,.cga-t-bar a:hover{background:#fff}
.cga-t-bar svg{width:17px;height:17px}
.cga-t-bar .is-t{width:auto;padding:0 10px;gap:5px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;margin-right:auto;white-space:nowrap}
@container (max-width:260px){.cga-t-bar .is-t span{display:none}.cga-t-bar .is-t{width:32px;padding:0;justify-content:center}.cga-t-bar{padding:20px 6px 6px}}
@container (max-width:150px){.cga-t-bar a{display:none}}
.cga-t.is-pend{background:#e7e5f4}
.cga-t.is-pend::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.45) 45%,transparent 60%);background-size:300% 100%;animation:cga-shim 2.2s linear infinite;z-index:1;pointer-events:none;background-origin:border-box}
.cga-t-w{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;text-align:center;color:var(--ink2)}
.cga-t-w b{font-size:13px;font-weight:700}
.cga-t-w span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cga-ring{display:inline-block;width:30px;height:30px;border-radius:50%;border:3px solid rgba(128,79,237,.2);border-top-color:var(--brass);animation:cga-spin 1s linear infinite;flex:none}
.cga-t.is-fail{background:#eeebf9}
.cga-t.is-fail .cga-t-w{color:var(--err)}
.cga-t.is-fail .cga-t-w span{color:#6538c1;max-width:300px}

.cga-styles{display:flex;flex-direction:column;gap:8px;min-width:0}
.cga-styles-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cga-styles-h b{min-width:0;font-size:13px;font-weight:700;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-styles-h button{flex:none;white-space:nowrap;border:0;background:none;color:var(--brass-d);font-size:12.5px;font-weight:700;padding:0;display:inline-flex;align-items:center;gap:2px}
.cga-styles-h button svg{width:15px;height:15px;transform:rotate(-90deg)}
.cga-srow{display:flex;gap:8px;overflow-x:auto;padding:6px 30px 10px 12px;margin:-6px 0 -4px -12px;scroll-snap-type:x proximity;scroll-padding-left:6px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
.cga-srow .cga-sc-card{flex:0 0 148px;border-radius:14px}
.cga-srow .cga-sc-card:hover{box-shadow:0 1px 2px rgba(31,35,48,.06),0 8px 18px -12px rgba(48,41,79,.5)}
.cga-srow .cga-sc-img{grid-template-columns:1fr;grid-template-rows:1fr;aspect-ratio:4/5}
.cga-srow .cga-sc-img img:first-child{grid-row:auto}
.cga-srow .cga-sc-img img:not(:first-child){display:none}
.cga-srow .cga-sc-b{padding:8px 9px 9px;gap:2px}
.cga-srow .cga-sc-b b{font-size:12.5px;-webkit-line-clamp:1}
.cga-srow .cga-sc-b span{font-size:11.5px}
.cga-srow .cga-sc-f{padding-top:5px}
.cga-srow .cga-sc-f em{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cga-srow .cga-sc-f button{flex:none}
.cga-srow .cga-sc-f button{padding:4px 9px;font-size:12px;border-radius:8px}
.cga-sc-card{flex:0 0 190px;scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;transition:box-shadow .15s,border-color .15s}
.cga-sc-card:hover{box-shadow:var(--sh);border-color:var(--line2)}
.cga-sc-img{position:relative;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:2px;aspect-ratio:4/5;background:#e7e5f4;border:0;padding:0;cursor:zoom-in}
.cga-sc-img img{width:100%;height:100%;object-fit:cover;display:block;min-height:0}
.cga-sc-img img:first-child{grid-row:1/3}
.cga-sc-img.is-1{grid-template-columns:1fr;grid-template-rows:1fr}
.cga-sc-img.is-1 img:first-child{grid-row:auto}
.cga-sc-img.is-2 img:nth-child(2){grid-row:1/3}
.cga-sc-b{display:flex;flex-direction:column;gap:3px;padding:10px 11px 11px;flex:1}
.cga-sc-b b{font-size:13.5px;font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cga-sc-b span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-sc-f{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding-top:6px}
.cga-sc-f em{font-style:normal;font-size:12px;font-weight:600;color:var(--muted)}
.cga-sc-f button{padding:5px 11px;border:0;border-radius:9px;background:var(--ink);color:#fff;font-size:12.5px;font-weight:700}
.cga-sc-f button:hover{background:var(--ink2)}
.cga-topup{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #ded7ff;border-radius:14px;background:#faf9ff;max-width:560px}
.cga-topup span{flex:1;font-size:13.5px;color:#561ab1}
.cga-topup button{padding:8px 14px;border:0;border-radius:10px;background:var(--ink);color:#fff;font-weight:700;font-size:13.5px}

/* ---------- поле ввода ---------- */
.cga-dock{position:relative;padding:0 22px max(10px,env(safe-area-inset-bottom));background:linear-gradient(rgba(242,242,248,0),var(--bg) 26%);background-origin:border-box}
.cga-comp{position:relative;max-width:836px;margin:0 auto;border:1px solid var(--line2);border-radius:22px;background:#fff;box-shadow:0 1px 2px rgba(31,35,48,.04),0 18px 40px -26px rgba(48,41,79,.5);transition:border-color .15s,box-shadow .15s}
.cga-comp:focus-within{border-color:#c0b8df;box-shadow:0 0 0 4px rgba(128,79,237,.1),0 18px 40px -26px rgba(48,41,79,.5)}
.cga-comp.is-off{opacity:.6;pointer-events:none}
.cga-tray{display:flex;gap:8px;flex-wrap:wrap;padding:10px 12px 0}
.cga-tr{position:relative;display:flex;align-items:center;gap:8px;max-width:100%}
.cga-tr-img{position:relative;width:56px;height:56px;border-radius:12px;overflow:hidden;background:#e7e5f4;flex:none;transition:box-shadow .15s}
.cga-tr-img[data-open]{cursor:zoom-in}
.cga-tr-img[data-open]::after{content:"";position:absolute;inset:0;background:rgba(20,22,30,0);transition:background .15s}
.cga-tr:hover .cga-tr-img{box-shadow:0 0 0 2px var(--gold)}
.cga-tr:hover .cga-tr-img[data-open]::after{background:rgba(20,22,30,.18)}
.cga-tr-img img{transition:transform .2s}
.cga-tr:hover .cga-tr-img img{transform:scale(1.05)}
.cga-tr-img img{width:100%;height:100%;object-fit:cover;display:block}
.cga-tr-img b{position:absolute;left:4px;bottom:4px;padding:0 5px;border-radius:6px;background:rgba(20,22,30,.66);color:#fff;font-size:10.5px;line-height:16px}
.cga-tr-img i{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.6)}
.cga-tr-img i span{position:absolute;left:6px;right:6px;bottom:6px;height:4px;border-radius:2px;background:rgba(31,35,48,.12);overflow:hidden}
.cga-tr-img i span::after{content:"";position:absolute;inset:0;width:var(--p,0%);background:var(--brass);transition:width .2s}
.cga-tr-x{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:20px;height:20px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--ink);color:#fff;font-size:12px;line-height:1;z-index:2;transition:background .15s,transform .15s}
.cga-tr-x:hover{background:var(--err);transform:scale(1.12)}
.cga-input{position:relative;min-height:calc(1.6em + 14px);max-height:min(240px,34vh);overflow-y:auto;padding:11px 16px 3px;outline:0;font-size:15.5px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;color:var(--ink);caret-color:var(--brass)}
/* 1.1.44: пустое поле не прокручивается и не сжимается ниже одной строки — иначе подсказка обрезалась и появлялась полоса прокрутки (окно чата «сворачивалось» во время ответа) */
.cga-input.is-empty{overflow:hidden}
.cga-input.is-empty::before{content:attr(data-ph);color:var(--faint);pointer-events:none;position:absolute;left:16px;right:16px;top:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-input .cga-mn,.cga-input .cga-sc,.cga-input .cga-scn{user-select:all;-webkit-user-select:all;cursor:default}
.cga-chx{position:absolute;top:-7px;right:-7px;display:none;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--ink);color:#fff;font-style:normal;font-size:11px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 0 0 2px #fff;z-index:2}
.cga-scn .cga-chx{background:var(--brass)}
.cga-input .cga-mn:hover .cga-chx,.cga-input .cga-sc:hover .cga-chx,.cga-input .cga-scn:hover .cga-chx{display:grid}
@media (hover:none){.cga-input .cga-chx{display:grid}}
.cga-comp-b{display:flex;align-items:center;gap:2px;padding:2px 7px 7px}
.cga-cb{display:inline-flex;align-items:center;gap:6px;height:34px;min-width:34px;padding:0 9px;border:0;border-radius:11px;background:transparent;color:var(--ink2);font-size:13px;font-weight:600;justify-content:center;white-space:nowrap}
.cga-cb:hover{background:var(--bg);color:var(--ink)}
.cga-cb.on{background:var(--soft);color:var(--brass-d)}
.cga-cb svg{width:19px;height:19px}
.cga-mdl-b span{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.cga-mdl-b.is-set{color:var(--brass-d)}
.cga-sp{flex:1}
.cga-send{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:12px;background:var(--ink);color:#fff;transition:background .15s,opacity .15s;flex:none}
.cga-send:hover{background:#2c3245}
.cga-send:disabled{opacity:.35;cursor:default}
.cga-send svg{width:20px;height:20px;stroke-width:2.2}
.cga-send.is-stop{background:var(--brass)}
.cga-send.is-stop svg{fill:currentColor;stroke:none}
.cga-viewonly{max-width:836px;margin:0 auto 8px;padding:9px 14px;border-radius:12px;background:#eef2f8;color:#3d5373;font-size:13px;text-align:center}

.cga-sheet{position:absolute;left:22px;right:22px;bottom:calc(100% - 4px);max-width:836px;margin:0 auto;max-height:min(460px,58vh);overflow:auto;padding:14px;border:1px solid var(--line2);border-radius:20px;background:#fff;box-shadow:0 24px 60px -24px rgba(31,35,48,.45);z-index:20}
.cga-sheet-h{display:flex;align-items:center;gap:10px;margin:0 2px 12px}
.cga-sheet-h b{font-size:14px;font-weight:700;color:var(--ink)}
.cga-sheet-h span{font-size:12.5px;color:var(--muted);flex:1;min-width:0}
.cga-sheet-h .cga-ic{width:32px;height:32px;margin:-4px -4px -4px 0}
.cga-quick .cga-qgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.cga-qg{grid-column:1/-1;margin:6px 2px -2px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cga-qg:first-child{margin-top:0}
.cga-quick .cga-q{padding:11px 12px;flex-direction:row;align-items:center;gap:10px;border-radius:14px}
.cga-quick .cga-q i{width:32px;height:32px;flex:none}
.cga-quick .cga-q div{display:flex;flex-direction:column;min-width:0}
.cga-quick .cga-q b{font-size:13.5px}
.cga-quick .cga-q span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.cga-fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.cga-fi{position:relative;aspect-ratio:1;padding:0;border:0;border-radius:12px;overflow:hidden;background:#e7e5f4;outline:2px solid transparent;outline-offset:2px;transition:outline-color .12s}
.cga-fi img{width:100%;height:100%;object-fit:cover;display:block}
.cga-fi b{position:absolute;left:5px;bottom:5px;padding:0 6px;border-radius:6px;background:rgba(20,22,30,.7);color:#fff;font-size:11px;line-height:18px}
.cga-fi.on,.cga-fi:hover{outline-color:var(--brass)}
.cga-fi.is-pend img{opacity:.45}
.cga-fi .cga-ring{position:absolute;inset:0;margin:auto;width:22px;height:22px;border-width:2px}
.cga-fi.is-up{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--bg);border:1.5px dashed var(--line2);color:var(--ink2);font-size:12px;font-weight:600}
.cga-fi.is-up svg{width:20px;height:20px;color:var(--brass-d)}
.cga-fe{padding:6px 2px 2px;color:var(--muted);font-size:13px}

.cga-mtabs{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:var(--bg);margin:0 0 12px}
.cga-mtabs button{padding:6px 14px;border:0;border-radius:9px;background:transparent;font-size:13px;font-weight:600;color:var(--muted)}
.cga-mtabs button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(31,35,48,.08)}
.cga-mlist{display:flex;flex-direction:column;gap:4px}
.cga-mrow{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid transparent;border-radius:13px;background:transparent;text-align:left}
.cga-mrow:hover{background:var(--paper);border-color:var(--line)}
.cga-mrow.on{background:#fcfbff;border-color:#d8d0f8}
.cga-mrow > i{width:18px;height:18px;border-radius:50%;border:2px solid var(--line2);flex:none;position:relative}
.cga-mrow.on > i{border-color:var(--brass)}
.cga-mrow.on > i::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--brass)}
.cga-mrow div{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.35}
.cga-mrow b{font-size:14px;font-weight:700;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cga-mrow b small{font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px;background:var(--bg);color:var(--muted)}
.cga-mrow b small.is-q{background:#efe7f6;color:#6a4b8c}
.cga-mrow span{font-size:12.5px;color:var(--muted)}
.cga-mrow em{font-style:normal;font-size:13px;font-weight:700;color:var(--brass-d);white-space:nowrap;text-align:right}
.cga-mrow em small{display:block;font-size:11px;font-weight:500;color:var(--faint)}

/* ---------- правая панель ---------- */
.cga-panel{width:380px;min-height:0;display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--line);position:relative;z-index:12}
.cga-panel-h{display:flex;align-items:center;gap:6px;padding:12px 10px 4px 16px}
.cga-panel-h b{flex:1;font-size:15px;font-weight:700}
.cga-ptabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;margin:8px 12px 4px;padding:3px;border-radius:12px;background:var(--bg)}
.cga-ptabs button{padding:7px 4px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-ptabs button:hover{color:var(--ink)}
.cga-ptabs button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(31,35,48,.08)}
.cga-panel-b{flex:1;min-height:0;overflow:auto;padding:12px 14px 16px}
.cga-pf{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.cga-pf button{padding:5px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink2);font-size:12.5px;font-weight:600;white-space:nowrap}
.cga-pf button.on{background:var(--ink);border-color:var(--ink);color:#fff}
/* 0.90.3: категории одной лентой */
.cga-pfw{position:relative;min-width:0;margin:0 0 12px}
div.cga-pfw>.cga-pf{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin:0;padding:1px 0;scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab}
div.cga-pfw>.cga-pf button{flex:none}
div.cga-pfw>.cga-pf.is-drag{cursor:grabbing}
.cga-pfw .cga-pf::-webkit-scrollbar{display:none}
.cga-pfw.has-r .cga-pf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent)}
.cga-pfw.has-l .cga-pf{-webkit-mask-image:linear-gradient(90deg,transparent,#000 56px);mask-image:linear-gradient(90deg,transparent,#000 56px)}
.cga-pfw.has-l.has-r .cga-pf{-webkit-mask-image:linear-gradient(90deg,transparent,#000 56px,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,transparent,#000 56px,#000 calc(100% - 56px),transparent)}
.cga-pfw-a{position:absolute;top:50%;z-index:2;display:none;place-items:center;width:28px;height:28px;margin-top:-14px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink2);box-shadow:0 4px 12px -6px rgba(31,35,48,.35);cursor:pointer;transition:border-color .15s,color .15s}
.cga-pfw-a:hover{border-color:var(--line2);color:var(--ink)}
.cga-pfw-a svg{width:15px;height:15px}
.cga-pfw-a.is-l{left:0}.cga-pfw-a.is-l svg{transform:rotate(90deg)}
.cga-pfw-a.is-r{right:0}.cga-pfw-a.is-r svg{transform:rotate(-90deg)}
.cga-pfw.has-l .cga-pfw-a.is-l,.cga-pfw.has-r .cga-pfw-a.is-r{display:grid}
@media (hover:none){.cga-pfw-a{display:none!important}}
.cga-pfw.is-md{margin:0}
.cga-pfw.is-md .cga-pfw-a{top:48px}
.cga-pq{display:flex;align-items:center;gap:8px;height:38px;padding:0 11px;margin:0 0 10px;border:1px solid var(--line);border-radius:11px;color:var(--muted);background:#fff}
.cga-pq svg{width:17px;height:17px}
.cga-pq input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;color:var(--ink)}
.cga-pgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.cga-pi{position:relative;aspect-ratio:1;border-radius:11px;overflow:hidden;background:#e7e5f4;border:0;padding:0;display:block}
.cga-pi img{width:100%;height:100%;object-fit:cover;display:block}
.cga-pi b{position:absolute;left:5px;top:5px;padding:0 6px;border-radius:6px;background:rgba(20,22,30,.66);color:#fff;font-size:11px;line-height:18px}
.cga-pi em{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-size:12px;color:var(--muted)}
.cga-pi .cga-ring{width:22px;height:22px;border-width:2px}
.cga-pi u{position:absolute;left:5px;bottom:5px;text-decoration:none;padding:0 6px;border-radius:6px;background:rgba(20,22,30,.66);color:#fff;font-size:10.5px;line-height:18px}
.cga-pi-a{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--ink);opacity:0;transform:translateY(2px);transition:opacity .15s,transform .15s,background .15s,color .15s;box-shadow:0 4px 12px -2px rgba(20,22,30,.35)}
.cga-pi-a svg{width:16px;height:16px;stroke-width:2}
.cga-pi:hover .cga-pi-a,.cga-pi:focus-within .cga-pi-a{opacity:1;transform:none}
.cga-pi-a:hover{background:var(--ink);color:#fff}
.cga-pi-add{position:absolute;inset:auto 6px 6px 6px;display:flex;align-items:center;justify-content:center;gap:4px;height:28px;padding:0 6px;border-radius:9px;background:var(--ink);color:#fff;font-size:11.5px;font-weight:700;white-space:nowrap;opacity:0;transform:translateY(2px);transition:opacity .15s,transform .15s,background .15s;pointer-events:none}
.cga-pi-add svg{width:13px;height:13px;stroke-width:2.4}
.cga-pi:hover .cga-pi-add{opacity:1;transform:none}
.cga-pi[data-lib-add]:hover .cga-pi-add{background:var(--brass-d)}
.cga-pi{cursor:pointer;-webkit-user-select:none;user-select:none}
.cga-pi.is-alpha{background-color:#fff;background-image:linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%);background-size:14px 14px;background-position:0 0,0 7px,7px -7px,-7px 0;background-origin:border-box}
.cga-pi img{transition:transform .2s}
.cga-pi:hover img{transform:scale(1.04)}
.cga-pe{padding:28px 12px;text-align:center;color:var(--muted);font-size:13.5px}
.cga-pe b{display:block;margin:0 0 4px;color:var(--ink);font-size:14.5px}
.cga-pmore{display:block;width:100%;margin:12px 0 0;padding:9px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink2);font-size:13px;font-weight:600}
.cga-sgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cga-sgrid .cga-sc-card{flex:auto}
.cga-sgrid .cga-sc-img{aspect-ratio:1}
.cga-ptxt{margin:-2px 0 10px;font-size:12.5px;color:var(--muted)}

.cga-dd{position:relative;margin:0 0 10px}
.cga-dd-b{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:1px solid var(--line2);border-radius:12px;background:#fff;text-align:left}
.cga-dd-b:hover{border-color:var(--brass)}
.cga-dd-b div{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.cga-dd-b b{font-size:14px;font-weight:700}
.cga-dd-b span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-dd-b svg{width:18px;height:18px;color:var(--muted);transition:transform .15s}
.cga-dd.is-open .cga-dd-b{border-color:var(--brass)}
.cga-dd.is-open .cga-dd-b svg{transform:rotate(180deg)}
.cga-dd-m{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;max-height:340px;overflow:auto;padding:6px;border:1px solid var(--line2);border-radius:14px;background:#fff;box-shadow:0 20px 50px -20px rgba(31,35,48,.45)}
.cga-dd-m button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;text-align:left}
.cga-dd-m button:hover,.cga-dd-m button.on{background:var(--bg)}
.cga-dd-m button b{font-size:13.5px;font-weight:700}
.cga-dd-m button span{font-size:12px;color:var(--muted);line-height:1.35}

.cga-mem p.cga-mem-d{margin:0 0 14px;color:var(--muted);font-size:13px}
.cga-mem h4{margin:4px 0 8px;font-size:13.5px;font-weight:700;color:var(--ink2)}
.cga-mem ul{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}
.cga-fact{display:flex;align-items:center;gap:6px;padding:6px 6px 6px 12px;min-height:44px;border:1px solid var(--line);border-radius:12px;font-size:13.5px;line-height:1.45;background:#fff}
.cga-fact span{flex:1;min-width:0;overflow-wrap:anywhere;cursor:text;border-radius:6px;padding:3px 0}
.cga-fact span:hover{background:var(--paper)}
.cga-fact input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:13.5px;padding:0;background:transparent}
.cga-fact button{display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:8px;background:none;color:var(--faint);padding:0;flex:none}
.cga-fact button:hover{background:#eeeafe;color:var(--err)}
.cga-fact button svg{width:15px;height:15px}
.cga-fact.is-edit{border-color:var(--brass)}
.cga-mem-e{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:var(--paper);color:var(--muted);font-size:13px}
.cga-madd{display:flex;gap:6px;margin:0 0 18px}
.cga-madd input{flex:1;min-width:0;height:38px;padding:0 12px;border:1px solid var(--line2);border-radius:11px;font:inherit;font-size:13.5px;color:var(--ink);background:#fff;outline:0}
.cga-madd input:focus{border-color:var(--brass)}
.cga-madd button{height:38px;padding:0 14px;border:0;border-radius:11px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;white-space:nowrap}
.cga-madd button:disabled{opacity:.4;cursor:default}

/* ---------- страницы: библиотека, память ---------- */
.cga-page{min-height:0;overflow-y:auto;grid-row:3/5}
.cga-pg{max-width:1120px;margin:0 auto;padding:34px 26px 60px}
.cga-pg-h{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 22px}
.cga-pg-h div{flex:1;min-width:240px}
.cga-pg-h h1,.cga-pg-h h2{margin:0 0 4px;font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-weight:800;font-size:33.6px;line-height:1.05;letter-spacing:-.03em}
.cga-pg-h p{margin:0;color:var(--muted);font-size:14.5px;max-width:60ch}
.cga-pg-f{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 18px}
.cga-pg-f .cga-pq{margin:0;width:min(320px,100%)}
@media (max-width:640px){.cga-pg-f .cga-pq{width:100%}}
.cga-pg-f .cga-pf{margin:0}
.cga-lgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.cga-lc{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0;border:0;background:none;text-align:left}
.cga-lc-i{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#e7e5f4;width:100%}
.cga-lc-i img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.cga-lc:hover .cga-lc-i img{transform:scale(1.03)}
.cga-lc-i b{position:absolute;left:8px;top:8px;padding:1px 7px;border-radius:7px;background:rgba(20,22,30,.66);color:#fff;font-size:11.5px;font-weight:700}
.cga-lc-i u{position:absolute;right:8px;top:8px;text-decoration:none;padding:1px 7px;border-radius:7px;background:rgba(20,22,30,.66);color:#fff;font-size:11px}
.cga-lc span{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-lc em{font-style:normal;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:-4px}
.cga-pgm{max-width:720px}
.cga-pgm .cga-madd{margin-bottom:22px}
.cga-pgm .cga-madd input{height:46px;font-size:15px}
.cga-pgm .cga-madd button{height:46px;padding:0 18px;font-size:14px}
.cga-pgm .cga-fact{padding:8px 8px 8px 14px;min-height:50px;font-size:14.5px}
.cga-ideas{display:flex;flex-wrap:wrap;gap:6px;margin:-12px 0 24px}
.cga-ideas button{padding:5px 11px;border:1px dashed var(--line2);border-radius:999px;background:transparent;color:var(--ink2);font-size:12.5px}
.cga-ideas button:hover{border-color:var(--brass);color:var(--brass-d)}

/* ---------- ссылки: в сообщениях, окошко в сценарии, загрузка по ссылке ---------- */
.cga-url{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:-3px;padding:1px 8px 1px 6px;margin:0 2px;border:1px solid var(--line2);border-radius:8px;background:var(--paper);color:var(--brass-d);font-size:.92em;font-weight:600;line-height:1.5;text-decoration:none;white-space:nowrap;transition:border-color .15s,background-color .15s}
.cga-url svg{width:14px!important;height:14px!important;flex:none}
.cga-url span{overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:min(52vw,440px)}
.cga-url:hover{border-color:var(--brass);background:#fff}
.cga-bub .cga-url{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);color:#e6e0ff}
.cga-bub .cga-url:hover{background:rgba(255,255,255,.18);border-color:rgba(194,133,252,.6)}
.cga-st .cga-url{font-size:12px}
.cga-slot{display:inline-flex;align-items:center;gap:10px;flex-wrap:nowrap;vertical-align:middle;margin:2px 0;max-width:100%;white-space:nowrap;user-select:none;-webkit-user-select:none}
@media (max-width:640px){.cga-slot{flex-wrap:wrap;white-space:normal;gap:6px 10px}.cga-slot label{width:100%}}
.cga-slot label{display:inline-flex;align-items:center;gap:6px;width:min(320px,100%);height:34px;padding:0 10px;border:1.5px dashed var(--brass);border-radius:10px;background:var(--paper);color:var(--brass-d);cursor:text;transition:border-color .15s,background-color .15s}
.cga-slot label:focus-within{border-style:solid;background:#fff;box-shadow:0 0 0 3px rgba(128,79,237,.12)}
.cga-slot label svg{width:16px;height:16px;flex:none}
.cga-slot input{flex:1;min-width:0;height:100%;border:0;outline:0;padding:0;background:transparent;font:inherit;font-size:14px;color:var(--ink)}
.cga-slot input::placeholder{color:var(--faint)}
.cga-slot .cga-slot-up{padding:0;border:0;background:none;color:var(--brass-d);font-size:13.5px;font-weight:600;text-decoration:underline;text-decoration-color:rgba(128,79,237,.45);text-underline-offset:3px}
.cga-slot .cga-slot-up:hover{color:var(--ink);text-decoration-color:var(--ink)}
.cga-slot .cga-slot-x{display:grid;place-items:center;width:22px;height:22px;margin-right:-4px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--faint);font-size:16px;line-height:1;flex:none;transition:background-color .15s,color .15s}
.cga-slot .cga-slot-x:hover{background:#eeeafe;color:var(--err)}
.cga-pop.cga-attm{width:300px;padding:6px}
.cga-pop.cga-attm>button{align-items:flex-start;padding:9px 10px}
.cga-pop.cga-attm>button svg{margin-top:1px}
.cga-attm button span{display:flex;flex-direction:column;gap:1px;min-width:0}
.cga-attm button b{font-size:13.5px;font-weight:700}
.cga-attm button i{font-style:normal;font-size:12px;color:#6f7282;line-height:1.35}
.cga-attl{display:flex;flex-wrap:wrap;gap:8px;padding:4px}
.cga-attl label{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:38px;padding:0 10px;border:1px solid #d2cee6;border-radius:10px;background:#fff}
.cga-attl label:focus-within{border-color:#804fed}
.cga-attl input{flex:1;min-width:0;border:0;outline:0;padding:0;font:inherit;font-size:14px;color:#1f2330;background:transparent}
.cga-pop .cga-attl button{width:auto;height:38px;padding:0 14px;border-radius:10px;background:#1f2330;color:#fff;font-weight:700;font-size:13px;justify-content:center}
.cga-pop .cga-attl button:hover{background:#2c3245}
.cga-attl p{flex-basis:100%;margin:0 2px 2px;color:#6f7282;font-size:12px;line-height:1.4}
.cga-attl.is-busy{opacity:.55;pointer-events:none}
.cga-tr-dl{position:absolute;inset:0;display:grid;place-items:center;background:#e7e5f4}
.cga-tr-dl .cga-ring{width:20px;height:20px}
.cga-tr-dl.is-err{background:#eeeafe;color:var(--err);font-weight:800;font-size:18px}

/* ---------- разбор ролика (ремейк) ---------- */
.cga-rm{max-width:680px;margin:6px 0 4px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:#fff}
.cga-rm-h{display:flex;flex-direction:column;gap:2px;margin:0 0 8px}
.cga-rm-h span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--brass-d)}
.cga-rm-h span svg{width:15px;height:15px}
.cga-rm-h span .cga-mn{font-size:11.5px}
.cga-rm-h b{font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:19.32px;font-weight:800;line-height:1.15;color:var(--ink);letter-spacing:-.03em}
.cga-rm-h em{font-style:normal;font-size:12.5px;color:var(--muted)}
.cga-rm-s{margin:0 0 10px;font-size:14px;color:var(--ink2)}
.cga-rm-hook{display:flex;gap:10px;align-items:baseline;margin:0 0 12px;padding:9px 12px;border-radius:12px;background:var(--soft);font-size:13.5px;color:var(--ink)}
.cga-rm-hook b{flex:none;font-size:11.5px;font-weight:800;color:var(--brass-d)}
.cga-rm-hook.is-cta{margin:12px 0 0;background:#f4f3fa;border:1px solid var(--line)}
.cga-rm-hook.is-voice{margin:12px 0 0;align-items:center;background:linear-gradient(120deg,rgba(124,92,255,.1),rgba(224,71,158,.08));background-origin:border-box}
.cga-rm-hook.is-voice b{display:inline-flex;align-items:center;gap:5px}
.cga-rm-hook.is-voice b svg{width:14px;height:14px}
.cga-rm-shots{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.cga-rm-shots li{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.cga-rm.is-long:not(.is-open) .cga-rm-shots li:nth-child(n+5){display:none}
.cga-rm-shots time{font-size:12px;font-weight:700;color:var(--brass-d);font-variant-numeric:tabular-nums;padding-top:1px}
.cga-rm-shots b{display:block;font-size:13px;font-weight:700;color:var(--ink)}
.cga-rm-shots p{margin:1px 0 0;font-size:13px;color:var(--ink2)}
.cga-rm-shots q{display:block;margin:4px 0 0;padding-left:9px;border-left:2px solid var(--gold);font-size:13px;color:var(--ink);quotes:"«" "»"}
.cga-rm-shots small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.cga-rm-more{margin:8px 0 0;padding:0;border:0;background:none;color:var(--brass-d);font-size:13px;font-weight:700}
.cga-rm-more:hover{color:var(--ink)}
.cga-rm-st{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:12px 0 0;font-size:12.5px}
.cga-rm-st dt{color:var(--muted)}
.cga-rm-st dd{margin:0;color:var(--ink2)}
.cga-rm-why{margin:12px 0 0}
.cga-rm-why b{display:block;margin:0 0 4px;font-size:12px;font-weight:800;color:var(--brass-d)}
.cga-rm-why ul{margin:0;padding-left:18px;font-size:13px;color:var(--ink2)}
@media (max-width:640px){.cga-rm{padding:14px}.cga-rm-shots li{grid-template-columns:64px minmax(0,1fr)}}

/* ---------- память: вкладки, бренд-кит, съёмки ---------- */
.cga-mtabs2{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-6px 0 22px}
.cga-mtabs2 .cga-pf{margin:0}
.cga-mtabs2 .cga-pf button{padding:7px 14px;font-size:13.5px}
.cga-mtabs2 .cga-pf button svg{width:16px;height:16px}
.cga-kit-saved{display:inline-flex;align-items:center;gap:5px;color:var(--ok);font-size:12.5px;font-weight:600}
.cga-kit-saved svg{width:15px;height:15px}
.cga-kit{display:flex;flex-direction:column;gap:14px}
.cga-kit-s{padding:20px 22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.cga-kit-s h3{margin:0 0 3px;font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:21px;font-weight:800;line-height:1.15;color:var(--ink);letter-spacing:-.03em}
.cga-kit-n{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.45;max-width:62ch}
.cga-kit-s>.cga-kit-n:last-child{margin:16px 0 0}
.cga-kit-id{display:grid;grid-template-columns:148px minmax(0,1fr);gap:22px;align-items:start}
.cga-kit-logo{position:relative;display:grid;place-items:center;width:148px;height:148px;padding:14px;border:1.5px dashed var(--line2);border-radius:16px;background:var(--paper);color:var(--muted);font-size:13px;font-weight:600;transition:border-color .15s,opacity .15s}
.cga-kit-logo span{display:flex;flex-direction:column;align-items:center;gap:6px}
.cga-kit-logo.has{border-style:solid;border-color:var(--line);background-color:#fff;background-image:linear-gradient(45deg,#efedfa 25%,transparent 25%),linear-gradient(-45deg,#efedfa 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#efedfa 75%),linear-gradient(-45deg,transparent 75%,#efedfa 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;background-origin:border-box}
.cga-kit-logo.is-flat{background-image:none}
.cga-kit-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.cga-kit-logo:hover{border-color:var(--brass)}
.cga-kit-logo.is-up{opacity:.45;pointer-events:none}
.cga-kit-f{display:flex;flex-direction:column;gap:12px;min-width:0}
.cga-kit-f label{display:flex;flex-direction:column;gap:5px}
.cga-kit-f label span,.cga-kit-r>span{font-size:12.5px;font-weight:700;color:var(--ink2)}
.cga-kit-f input{height:42px;padding:0 12px;border:1px solid var(--line2);border-radius:11px;font:inherit;font-size:14px;color:var(--ink);background:#fff;outline:0;min-width:0}
.cga-kit-f input:focus{border-color:var(--brass)}
.cga-kit-f .cga-kit-n{margin:0}
.cga-kit-lb{display:flex;gap:8px;flex-wrap:wrap}
.cga-kit-lb button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border:1px solid var(--line2);border-radius:10px;background:#fff;font-size:13px;font-weight:600;color:var(--ink);transition:border-color .15s,color .15s,background-color .15s}
.cga-kit-lb button svg{width:16px;height:16px}
.cga-kit-lb button:hover{border-color:var(--brass);color:var(--brass-d)}
.cga-kit-lb button.is-del:hover{border-color:#c8c0e8;color:var(--err);background:#f5f5fb}
.cga-kit-lb button small{margin-left:2px;padding:1px 7px;border-radius:999px;background:#f1ecff;color:#6d28d9;font-size:11.5px;font-weight:700}
.cga-kit-lb button.is-acc{border-color:transparent;background:linear-gradient(135deg,#7c5cff,#e0479e);color:#fff;background-origin:border-box}
.cga-kit-lb button.is-acc:hover{color:#fff;filter:brightness(1.06)}
.cga-kit-lb button.is-acc small{background:rgba(255,255,255,.22);color:#fff}
.cga-kit-lb button.is-busy{opacity:.6;pointer-events:none}
.cga-kit-logo.is-work::after{box-sizing:border-box;content:"";position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border:3px solid #e4defa;border-top-color:var(--brass);border-radius:50%;animation:cga-kit-spin .8s linear infinite}
.cga-kit-logo.is-work{opacity:1}
.cga-kit-logo.is-work img{opacity:.35}
@keyframes cga-kit-spin{to{transform:rotate(360deg)}}
.cga-kit-rst{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--paper)}
.cga-kit-rst h3{font-size:16px}
.cga-kit-rst .cga-kit-n{margin:0}
.cga-kit-rst>button{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 15px;border:1px solid var(--line2);border-radius:11px;background:#fff;font-size:13.5px;font-weight:600;color:var(--ink);flex:none;transition:border-color .15s,color .15s}
.cga-kit-rst>button svg{width:16px;height:16px}
.cga-kit-rst>button:hover{border-color:#e6b4b4;color:var(--err)}
.cga-kit-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.cga-kc{display:flex;align-items:center;gap:10px;padding:7px 6px 7px 7px;border:1px solid var(--line);border-radius:13px;background:#fff;min-width:0}
.cga-kc-sw{position:relative;width:40px;height:40px;border-radius:10px;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);flex:none;cursor:pointer;overflow:hidden}
.cga-kc-sw input,.cga-kc-add input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.cga-kc-t{display:flex;flex-direction:column;min-width:0;flex:1}
.cga-kc-t input{border:0;outline:0;padding:0;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink);background:transparent;min-width:0;border-radius:4px}
.cga-kc-t input:focus{background:var(--paper)}
.cga-kc-t input::placeholder{color:var(--faint);font-weight:500}
.cga-kc-t code{font-family:inherit;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;text-transform:uppercase}
.cga-kc>button{display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:8px;background:none;color:var(--faint);padding:0;flex:none}
.cga-kc>button:hover{background:#eeeafe;color:var(--err)}
.cga-kc>button svg{width:14px;height:14px}
.cga-kc-add{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:56px;border:1.5px dashed var(--line2);border-radius:13px;color:var(--ink2);font-size:13px;font-weight:600;cursor:pointer;transition:border-color .15s,color .15s}
.cga-kc-add:hover{border-color:var(--brass);color:var(--brass-d)}
.cga-kc-add svg{width:16px;height:16px}
.cga-kit-pal{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px;font-size:12.5px;color:var(--muted)}
.cga-kit-pal span{margin-right:3px}
.cga-kit-pal button{position:relative;width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:var(--c);box-shadow:0 0 0 1px var(--line2);padding:0}
.cga-kit-pal button:hover{box-shadow:0 0 0 2px var(--brass)}
.cga-kit-pal button::after{content:"+";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:800;font-size:15px;opacity:0;text-shadow:0 1px 2px rgba(0,0,0,.55);transition:opacity .12s}
.cga-kit-pal button:hover::after,.cga-kit-pal button:focus-visible::after{opacity:1}
.cga-kit-pl{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;align-items:start;margin-top:12px}
.cga-kit-pv{position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:linear-gradient(150deg,#e4dffa,#bbb4db);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);background-origin:border-box}
.cga-kit-pv-ph{position:absolute;inset:0;width:100%!important;height:100%!important;display:block}
.cga-kit-pv-ph,.cga-kit-pv-ph *{stroke:none!important}
.cga-kit-pv i{position:absolute;display:block;transition:all .2s}
.cga-kit-pv.is-br i{right:4%;bottom:4%}
.cga-kit-pv.is-bl i{left:4%;bottom:4%}
.cga-kit-pv.is-tr i{right:4%;top:4%}
.cga-kit-pv.is-tl i{left:4%;top:4%}
.cga-kit-pv.is-bc i{left:50%;bottom:4%;transform:translateX(-50%)}
.cga-kit-pv i img{display:block;width:100%;height:auto}
.cga-kit-pv i b{display:block;padding:4px 0;border:1.5px solid rgba(255,255,255,.9);border-radius:5px;color:#fff;font-size:10px;font-weight:800;letter-spacing:.06em;text-align:center}
.cga-kit-pv.is-light i,.cga-kit-pv.is-dark i{padding:3.5%;border-radius:7px;box-sizing:content-box}
.cga-kit-pv.is-light i{background:rgba(255,255,255,.88)}
.cga-kit-pv.is-dark i{background:rgba(18,20,28,.72)}
.cga-kit-pv.is-light i b{color:var(--ink);border-color:var(--ink)}
.cga-kit-po{display:flex;flex-direction:column;gap:14px;min-width:0}
.cga-kit-r{display:flex;flex-direction:column;gap:6px}
.cga-kit-r .cga-pf{margin:0}
.cga-kit-ck{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--ink2);cursor:pointer;margin-top:2px}
.cga-tg{appearance:none;-webkit-appearance:none;position:relative;width:40px;height:24px;margin:0;border-radius:999px;background:#d4d0e4;flex:none;cursor:pointer;transition:background-color .15s}
.cga-tg::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(31,35,48,.25);transition:transform .15s}
.cga-tg:checked{background:var(--brass)}
.cga-tg:checked::after{transform:translateX(16px)}
.cga-tg:disabled{opacity:.45;cursor:default}
.cga-sh{display:flex;flex-direction:column}
.cga-sh-r{display:flex;align-items:center;gap:18px;padding:15px 0;border-top:1px solid var(--line);cursor:pointer}
.cga-sh-r:first-child{border-top:0;padding-top:6px}
.cga-sh-r:last-child{padding-bottom:2px}
.cga-sh-r>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.cga-sh-r b{font-size:15px;font-weight:700;color:var(--ink)}
.cga-sh-r em{font-style:normal;font-size:13px;color:var(--muted);line-height:1.45}
.cga-sh-r.is-off{cursor:default}
.cga-sh-r.is-off b{color:var(--faint)}
.cga-kit-lead{margin-bottom:6px}
@media (max-width:640px){
  .cga-kit-s{padding:16px;border-radius:16px}
  .cga-kit-id{grid-template-columns:1fr;gap:16px}
  .cga-kit-logo{width:120px;height:120px}
  .cga-kit-pl{grid-template-columns:1fr}
  .cga-kit-pv{max-width:200px}
}

/* ---------- просмотрщик ---------- */
.cga-lb{position:fixed;inset:0;z-index:100000;display:grid;grid-template-columns:minmax(0,1fr) 360px;background:#121318;color:#fff;font-family:'Inter','Inter Fallback',system-ui,sans-serif}
.cga-lb button{border:0;background:transparent;color:inherit}
.cga-lb-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}
.cga-lb-top{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:64px;min-width:0}
.cga-lb-x{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08)!important;flex:none}
.cga-lb-x:hover{background:rgba(255,255,255,.16)!important}
.cga-lb-strip{flex:1 1 0;display:flex;gap:6px;justify-content:flex-start;overflow-x:auto;padding:3px 4px;min-width:0}
.cga-lb-strip button:first-child{margin-left:auto}
.cga-lb-strip button:last-child{margin-right:auto}
.cga-lb-strip button{width:44px;height:44px;flex:none;padding:0;border-radius:9px;overflow:hidden;opacity:.5;outline:2px solid transparent;outline-offset:1px;background:#2a2c35!important;transition:opacity .15s}
.cga-lb-strip button:hover{opacity:.85}
.cga-lb-strip button.on{opacity:1;outline-color:#c285fc}
.cga-lb-strip img{width:100%;height:100%;object-fit:cover;display:block}
.cga-lb-n{font-size:12.5px;color:#a9abb8;white-space:nowrap;font-variant-numeric:tabular-nums}
.cga-lb-m{position:relative;display:grid;place-items:center;min-height:0;padding:0 72px 24px}
.cga-lb-m img,.cga-lb-m video{max-width:100%;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);object-fit:contain;border-radius:12px;display:block;background:#1d1f27}
.cga-lb-m img.is-alpha{background-color:#fff;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;background-origin:border-box}
.cga-lb-nav{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.1)!important;font-size:24px;line-height:1}
.cga-lb-nav:hover{background:rgba(255,255,255,.2)!important}
.cga-lb-nav.is-p{left:14px}.cga-lb-nav.is-n{right:14px}
.cga-lb-w{display:flex;flex-direction:column;align-items:center;gap:12px;color:#c9cbd6;text-align:center;padding:20px}
.cga-lb-w .cga-ring{border-color:rgba(255,255,255,.2);border-top-color:#c285fc}
.cga-lb-side{display:flex;flex-direction:column;min-height:0;background:#fff;color:var(--ink)}
.cga-lb-hd{padding:20px 20px 12px}
.cga-lb-hd b{display:block;font-size:16px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.cga-lb-hd span{display:block;margin-top:3px;font-size:12.5px;color:var(--muted)}
.cga-lb-pa{display:flex;gap:8px;padding:0 20px 14px}
.cga-lb-pa a,.cga-lb-pa button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 12px;border-radius:12px;font-size:13.5px;font-weight:700;text-decoration:none;white-space:nowrap;border:1px solid var(--line2)!important;background:#fff!important;color:var(--ink)!important}
.cga-lb-pa .is-main{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
.cga-lb-pa svg{width:17px;height:17px}
.cga-lb-tabs{display:flex;gap:18px;padding:0 20px;border-bottom:1px solid var(--line)}
.cga-lb-tabs button{padding:10px 0;margin-bottom:-1px;border-bottom:2px solid transparent!important;font-size:13.5px;font-weight:600;color:var(--muted)!important}
.cga-lb-tabs button.on{color:var(--ink)!important;border-bottom-color:var(--ink)!important}
.cga-lb-body{flex:1;min-height:0;overflow:auto;padding:8px 10px 12px}
.cga-lb-list{display:flex;flex-direction:column;gap:2px}
.cga-lb-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 10px;border-radius:12px;text-align:left;color:var(--ink)!important}
.cga-lb-row:hover{background:var(--bg)!important}
.cga-lb-row.on{background:var(--bg)!important}
.cga-lb-row > svg{width:19px;height:19px;color:var(--brass-d)}
.cga-lb-row span{flex:1;font-size:14px;font-weight:600}
.cga-lb-row em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--muted)}
.cga-lb-row i{display:grid;place-items:center;width:18px;height:18px;color:var(--faint);font-style:normal;transition:transform .15s}
.cga-lb-row i svg{width:16px;height:16px;transform:rotate(-90deg)}
.cga-lb-row.on i{transform:rotate(90deg)}
.cga-lb-opt{margin:2px 4px 10px;padding:12px;border-radius:14px;background:var(--paper);border:1px solid var(--line)}
.cga-lb-opt p{margin:0 0 10px;font-size:12.5px;color:var(--muted)}
.cga-lb-opt label{display:block;margin:0 0 6px;font-size:12px;font-weight:700;color:var(--ink2)}
.cga-lb-ch{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.cga-lb-ch button{padding:6px 11px;border-radius:999px;border:1px solid var(--line2)!important;background:#fff!important;font-size:12.5px;font-weight:600;color:var(--ink)!important}
.cga-lb-ch button.on{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
.cga-lb-ch.is-th button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px;border-radius:12px;width:74px}
.cga-lb-ch.is-th img{width:64px;height:64px;border-radius:9px;object-fit:cover;display:block}
.cga-lb-ch.is-th span{font-size:11.5px;max-width:64px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-lb-opt textarea{width:100%;min-height:76px;margin:0 0 10px;padding:9px 11px;border:1px solid var(--line2);border-radius:11px;font:inherit;font-size:13.5px;color:var(--ink);resize:vertical;outline:0;background:#fff}
.cga-lb-opt textarea:focus{border-color:var(--brass)}
.cga-lb-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:40px;border-radius:12px;background:var(--ink)!important;color:#fff!important;font-size:13.5px;font-weight:700}
.cga-lb-go:hover{background:#2c3245!important}
.cga-lb-info{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:0;padding:12px 10px;font-size:13px}
.cga-lb-info dt{color:var(--muted)}
.cga-lb-info dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.cga-lb-foot{padding:10px 20px 16px;border-top:1px solid var(--line)}
.cga-lb-del{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;margin-left:-10px;border-radius:10px;color:var(--err)!important;font-size:13px;font-weight:600}
.cga-lb-del:hover{background:#eeeafe!important}
.cga-lb-del svg{width:16px;height:16px}

/* ---------- всплывающее, тосты, бросание файлов ---------- */
.cga-pop{position:fixed;z-index:100001;min-width:200px;padding:6px;border:1px solid #dedbee;border-radius:14px;background:#fff;box-shadow:0 20px 50px -20px rgba(31,35,48,.5);font-family:'Inter','Inter Fallback',system-ui,sans-serif}
.cga-pop button{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#1f2330;font-size:13.5px;text-align:left}
.cga-pop button:hover{background:#f2f2f8}
.cga-pop button.is-del{color:#6909dc}
.cga-pop svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#5b34ae}
.cga-pop button.is-del svg{color:#6909dc}
.cga-pop hr{border:0;border-top:1px solid #eae7f7;margin:4px 6px}
.cga-toasts{position:fixed;left:50%;top:calc(68px + env(safe-area-inset-top));transform:translateX(-50%);z-index:100002;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.cga-toast{padding:10px 16px;border-radius:12px;background:#1f2330;color:#fff;font:600 13.5px/1.4 'Inter','Inter Fallback',system-ui,sans-serif;box-shadow:0 14px 34px -14px rgba(0,0,0,.5);animation:cga-in .2s ease-out;pointer-events:auto}
.cga-toast.is-err{background:#4e09a6}
.cga-drop{position:absolute;inset:10px;z-index:60;display:grid;place-items:center;border:2px dashed var(--brass);border-radius:22px;background:rgba(249,248,254,.92);pointer-events:none}
.cga-drop div{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--brass-d)}
.cga-drop svg{width:34px;height:34px}
.cga-drop b{font-size:17px}
.cga-drop span{font-size:13px;color:var(--muted)}
.cga-veil{display:none}

/* ---------- 0.68: выбор нейросети — компактное окно у кнопки ---------- */
.cga-sheet.cga-mdl{left:22px;right:auto;width:360px;max-width:calc(100% - 20px);margin:0;padding:8px;max-height:min(420px,62vh);overflow:hidden;display:flex;flex-direction:column;border-radius:16px}
.cga-mdl-h{display:flex;align-items:center;gap:8px;padding:2px 2px 8px 8px}
.cga-mdl-h b{font-size:13.5px;font-weight:700;color:var(--ink);flex:1}
.cga-mdl-h .cga-mtabs{margin:0;padding:2px;border-radius:10px}
.cga-mdl-h .cga-mtabs button{padding:4px 11px;font-size:12px;border-radius:8px}
.cga-mdl-h .cga-ic{width:30px;height:30px}
.cga-mdl .cga-mlist{gap:1px;overflow-y:auto;min-height:0;margin:0 -2px;padding:0 2px}
.cga-mdl .cga-mrow{gap:10px;padding:7px 9px;border-radius:10px}
.cga-mdl .cga-mrow > i{width:16px;height:16px}
.cga-mdl .cga-mrow b{font-size:13px;gap:6px;flex-wrap:nowrap;white-space:nowrap}
.cga-mdl .cga-mrow b small{font-size:10px;padding:0 6px;line-height:16px}
.cga-mdl .cga-mrow span{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-mdl .cga-mrow em{font-size:12px}
.cga-mdl .cga-mrow em small{display:inline;font-size:11px}
.cga-mdl-f{margin:6px 8px 2px;font-size:11px;color:var(--faint)}

/* ---------- 0.69: настройки вывода в окне нейросети ---------- */
.cga-sheet.cga-mdl{width:384px;max-height:min(520px,70vh);contain:layout paint;transform-origin:bottom left}
.cga-sheet.cga-mdl.is-in{animation:cga-mdl-in .14s ease-out}
@keyframes cga-mdl-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.cga-mitem{border:1px solid transparent;border-radius:11px}
.cga-mitem.on{background:#fcfbff;border-color:#d8d0f8}
.cga-mitem.on > .cga-mrow{background:transparent;border-color:transparent}
.cga-mopts{display:flex;flex-direction:column;gap:7px;padding:2px 10px 10px 35px}
.cga-mo{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:start;gap:8px}
.cga-mo > span{font-size:11.5px;font-weight:600;color:var(--muted);padding-top:5px}
.cga-mo-c{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.cga-mo-c.is-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;margin-right:-10px;padding-right:10px}
.cga-mo-c button{flex:none;padding:3px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:12px;font-weight:600;color:var(--ink2);line-height:18px;white-space:nowrap;cursor:pointer}
.cga-mo-c button:hover{border-color:var(--line2);color:var(--ink)}
.cga-mo-c button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.cga-mo-n{margin:0;padding-left:94px;font-size:11.5px;line-height:1.4;color:var(--faint)}
.cga-mdl .cga-mrow em small{display:block;text-align:right}

/* ---------- 0.69: время, нейросеть и списание под сообщением ---------- */
.cga-m-time{font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums;margin-top:-2px}
.cga-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-top:-4px;font-size:12px;line-height:1.4;color:var(--faint);font-variant-numeric:tabular-nums}
.cga-meta > span,.cga-meta > time{white-space:nowrap}
.cga-meta-n{color:var(--muted);max-width:min(420px,100%);overflow:hidden;text-overflow:ellipsis}
.cga-meta-c{color:var(--brass-d);font-weight:600}
.cga-meta-b{color:var(--ok);font-weight:600}
.cga-meta-x{padding:0 6px;border-radius:6px;background:var(--bg);color:var(--muted);font-size:11px}
.cga-meta-r{display:inline-flex;align-items:center;gap:5px;margin-left:-6px;padding:3px 8px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-weight:600;cursor:pointer}
.cga-meta-r svg{width:14px;height:14px;stroke-width:2}
.cga-meta-r:hover,.cga-meta-r:focus-visible{background:var(--soft);color:var(--brass-d)}
.cga-t.is-fail .cga-t-w{padding:30px 12px 12px;gap:6px}
.cga-t.is-fail .cga-t-w span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cga-t-rd{white-space:nowrap}
@container (max-width:260px){.cga-t.is-fail .cga-t-w{padding:28px 8px 8px;gap:4px}.cga-t.is-fail .cga-t-w span{-webkit-line-clamp:2;font-size:11.5px;line-height:1.35}.cga-t-rd{padding:4px 9px;font-size:11.5px}}
@container (max-width:210px){.cga-t.is-fail .cga-t-w span{display:none}.cga-t-rd svg{display:none}}
.cga-t-rd{position:relative;z-index:3;display:inline-flex;align-items:center;gap:5px;margin-top:2px;padding:5px 10px;border:1px solid #d2cde8;border-radius:999px;background:#fff;color:var(--ink2);font-size:12px;font-weight:600;cursor:pointer}
.cga-t-rd svg{width:14px;height:14px;stroke-width:2}
.cga-t-rd:hover{border-color:var(--brass);color:var(--brass-d)}
.cga-t-svg{letter-spacing:.03em}

/* окно «Другая нейросеть» */
.cga-pop.is-rd{width:330px;max-width:calc(100vw - 16px);padding:6px}
.cga-rd-h{display:flex;flex-direction:column;gap:1px;padding:6px 10px 8px}
.cga-rd-h b{font-size:13.5px;font-weight:700;color:#1f2330}
.cga-rd-h span{font-size:12px;color:#6f7282;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-rd-l{display:flex;flex-direction:column;gap:1px;max-height:min(330px,52vh);overflow-y:auto}
.cga-pop .cga-rd-r{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px}
.cga-rd-r > span{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.35}
.cga-rd-r b{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#1f2330}
.cga-rd-r b small{font-size:10.5px;font-weight:700;padding:0 6px;line-height:16px;border-radius:999px;background:#ede9ff;color:#5b34ae}
.cga-rd-r i{font-style:normal;font-size:11.5px;color:#6f7282;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-rd-r em{font-style:normal;font-size:12.5px;font-weight:700;color:#5b34ae;white-space:nowrap}
.cga-pop .cga-rd-r:disabled{opacity:.5;cursor:not-allowed;background:transparent}
.cga-rd-f{margin:4px 10px 4px;font-size:11px;line-height:1.4;color:#9a9caa}
.cga-lb-redo{display:flex;align-items:center;gap:7px;margin:-6px 20px 12px;padding:6px 0;border:0;background:none;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer}
.cga-lb-redo svg{width:16px;height:16px;stroke-width:2}
.cga-lb-redo:hover{color:var(--brass-d)}

/* библиотека: выбор и удаление нескольких файлов */
.cga-lp-selb{display:inline-flex;align-items:center;gap:6px;margin-left:auto;height:36px;padding:0 14px;border:1px solid var(--line2);border-radius:11px;background:#fff;color:var(--ink2);font-size:13px;font-weight:600;cursor:pointer}
.cga-lp-selb svg{width:16px;height:16px;stroke-width:2.2}
.cga-lp-selb:hover{border-color:#cbbcff;color:var(--ink)}
.cga-lp-bar{position:sticky;top:10px;z-index:5;display:flex;align-items:center;gap:8px;margin:0 0 16px;padding:8px 8px 8px 16px;border-radius:14px;background:var(--ink);color:#fff;box-shadow:0 14px 34px -18px rgba(15,16,22,.7)}
.cga-lp-bar[hidden]{display:none}
.cga-lp-bar b{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.cga-lp-bar span{flex:1}
.cga-lp-bar button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.cga-lp-bar button:hover{background:rgba(255,255,255,.18)}
.cga-lp-bar button.is-del{background:#762aee}
.cga-lp-bar button.is-del:hover{background:#6804db}
.cga-lp-bar button:disabled{opacity:.45;cursor:default}
.cga-lp-bar button svg{width:16px;height:16px}
.cga-lp-bar button em{font-style:normal}
.cga-lp-bar.is-busy{opacity:.7;pointer-events:none}
.cga-lc-ck{position:absolute;top:8px;right:8px;z-index:2;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:2px solid #fff;background:rgba(20,22,30,.28);color:transparent;opacity:0;transition:opacity .15s,background .15s;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.cga-lc-ck svg{width:15px;height:15px;stroke-width:3}
.cga-lc:hover .cga-lc-ck,.cga-lc:focus-visible .cga-lc-ck,.cga-lgrid.is-sel .cga-lc-ck{opacity:1}
.cga-lc-ck:hover{background:rgba(20,22,30,.5)}
.cga-lc.is-on .cga-lc-ck{background:var(--brass);border-color:var(--brass);color:#fff}
.cga-lgrid.is-sel .cga-lc{cursor:pointer}
.cga-lgrid.is-sel .cga-lc-i img{transition:transform .15s}
.cga-lgrid.is-sel .cga-lc:hover .cga-lc-i img{transform:none}
.cga-lc.is-on .cga-lc-i{outline:3px solid var(--brass);outline-offset:-3px}
.cga-lc.is-on .cga-lc-i img{transform:scale(.92)!important;border-radius:10px}
.cga-lc-i u{top:auto;right:auto;left:8px;bottom:8px}
.cga-lc-i.is-alpha{background-color:#fff;background-image:linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;background-origin:border-box}
.cga-lc-i.is-alpha img{object-fit:contain}
.cga-pmore small{margin-left:8px;font-size:12px;font-weight:500;color:var(--faint)}
@media (hover:none){.cga-lc-ck{opacity:0}.cga-lgrid.is-sel .cga-lc-ck{opacity:1}}

/* ---------- 0.70: отклик кнопок при наведении ---------- */
.cga-lb-pa a,.cga-lb-pa button,.cga-lb-ch button,.cga-lb-grp button,.cga-lb-tabs button,.cga-pmore,.cga-older,.cga-pf button,.cga-topup button,.cga-madd button,.cga-mtabs button,.cga-styles-h button,.cga-lb-go,.cga-lb-del,.cga-lb-redo,.cga-sc-f button,.cga-lp-selb,.cga-dlg-f button{transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.cga-lb-pa a:hover,.cga-lb-pa button:hover{border-color:#cbbcff!important;background:var(--paper)!important;box-shadow:0 2px 8px -4px rgba(31,35,48,.25)}
.cga-lb-pa .is-main:hover{background:#2c3245!important;border-color:#2c3245!important}
.cga-lb-pa a:active,.cga-lb-pa button:active,.cga-lb-go:active{transform:translateY(1px)}
.cga-lb-ch button:not(.on):hover,.cga-lb-grp button:not(.on):hover{border-color:#cbbcff!important;color:var(--ink)!important}
.cga-lb-tabs button:not(.on):hover{color:var(--ink)!important}
.cga-lb-av button:hover img{outline:2px solid var(--line2);outline-offset:1px}
.cga-pmore:hover,.cga-older:hover{border-color:var(--line2);background:var(--paper);color:var(--ink)}
.cga-pf button:not(.on):hover{border-color:var(--line2);color:var(--ink)}
.cga-topup button:hover,.cga-madd button:not(:disabled):hover{background:#2c3245}
.cga-mtabs button:not(.on):hover{color:var(--ink)}
.cga-styles-h button:hover{color:var(--brass)}

/* ---------- перетаскивание в поле ввода ---------- */
.cga-comp.is-dropt{border-color:#c0b8df;border-style:dashed}
.cga-comp.is-dropon{border-color:var(--brass);box-shadow:0 0 0 4px rgba(128,79,237,.16),0 18px 40px -26px rgba(48,41,79,.5)}
[draggable=true]{-webkit-user-drag:element}
.cga-t[draggable=true],.cga-pi[draggable=true],.cga-md[draggable=true],.cga-sc-card[draggable=true]{cursor:grab}
.cga-t[draggable=true]:active,.cga-pi[draggable=true]:active,.cga-md[draggable=true]:active{cursor:grabbing}

/* ---------- окна: подтверждение, переименование, память ---------- */
.cga-dlg{position:fixed;inset:0;z-index:100003;display:grid;place-items:center;padding:16px;background:rgba(15,16,22,.45);font-family:'Inter','Inter Fallback',system-ui,sans-serif;color:var(--ink);animation:cga-fade .15s ease-out}
.cga-dlg-box{width:min(440px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 30px 80px -24px rgba(15,16,22,.55);animation:cga-pop .18s ease-out}
.cga-dlg-box.is-sm{width:min(400px,100%);padding-bottom:4px}
.cga-dlg-h{display:flex;align-items:center;gap:8px;padding:16px 12px 6px 20px}
.cga-dlg-h b{flex:1;font-size:16px;font-weight:700;line-height:1.3}
.cga-dlg-h .cga-ic{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted)}
.cga-dlg-h .cga-ic:hover{background:var(--bg);color:var(--ink)}
.cga-dlg-p{margin:0;padding:2px 20px 4px;font-size:14px;line-height:1.5;color:var(--ink2)}
.cga-dlg-in{display:block;width:calc(100% - 40px);margin:6px 20px 2px;height:44px;padding:0 13px;border:1px solid var(--line2);border-radius:12px;font:inherit;font-size:15px;color:var(--ink);background:#fff;outline:0;box-sizing:border-box}
.cga-dlg-in:focus{border-color:var(--brass);box-shadow:0 0 0 4px rgba(128,79,237,.12)}
.cga-dlg-f{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px 16px}
.cga-dlg-f button{height:40px;padding:0 16px;border:1px solid var(--line2);border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:700}
.cga-dlg-f button:hover{background:var(--bg)}
.cga-dlg-f .cga-dlg-ok{background:var(--ink);border-color:var(--ink);color:#fff}
.cga-dlg-f .cga-dlg-ok:hover{background:#2c3245}
.cga-dlg-f .cga-dlg-ok.is-del{background:var(--err);border-color:var(--err)}
.cga-dlg-f .cga-dlg-ok.is-del:hover{background:#5609b7}
.cga-mwin-b{width:min(520px,100%);max-height:min(640px,calc(100dvh - 32px))}
.cga-mwin-c{min-height:120px}
.cga-mwin-c{flex:1;min-height:0;overflow-y:auto;padding:6px 20px 4px}
.cga-mwin-f{display:flex;flex-wrap:wrap;gap:6px 18px;padding:10px 20px 16px;border-top:1px solid var(--line)}
.cga-mwin-f a{display:inline-flex;align-items:center;gap:7px;color:var(--brass-d);font-size:13px;font-weight:700;text-decoration:none}
.cga-mwin-f a:hover{text-decoration:underline}
.cga-mwin-f svg{width:16px;height:16px}
@keyframes cga-fade{from{opacity:0}to{opacity:1}}
@keyframes cga-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

/* ---------- панель: наши модели ---------- */
.cga-mdgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
.cga-md{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0}
.cga-md-i{display:block;width:100%;aspect-ratio:3/4;padding:0;border:0;border-radius:12px;overflow:hidden;background:#e7e5f4;color:var(--faint);cursor:zoom-in}
.cga-md-i img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.cga-md-i svg{width:28px;height:28px}
.cga-md:hover .cga-md-i img{transform:scale(1.04)}
.cga-md b{margin-top:4px;font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-md span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-md-a{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--ink);box-shadow:0 4px 12px -2px rgba(20,22,30,.35);opacity:0;transform:scale(.9);transition:opacity .15s,transform .15s,background .15s,color .15s}
.cga-md-a svg{width:15px;height:15px;stroke-width:2.2}
.cga-md:hover .cga-md-a,.cga-md:focus-within .cga-md-a{opacity:1;transform:none}
.cga-md-a:hover{background:var(--ink);color:#fff}
@media (hover:none){.cga-md-a{opacity:1;transform:none}}

/* ---------- просмотрщик: выбор модели ---------- */
.cga-lb-avh{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px}
.cga-lb-avh label{margin:0!important}
.cga-lb-avh span{font-size:12px;font-weight:700;color:var(--brass-d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-lb-grp{display:flex;gap:4px;margin:0 0 8px;flex-wrap:wrap}
.cga-lb-grp button{padding:3px 10px;border-radius:999px;border:1px solid var(--line2)!important;background:#fff!important;font-size:12px;font-weight:600;color:var(--muted)!important}
.cga-lb-grp button.on{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
.cga-lb-av{display:flex;gap:8px;overflow-x:auto;margin:0 -12px 10px;padding:3px 12px 8px;scroll-snap-type:x proximity;scroll-padding-left:12px}
.cga-lb-av button{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;width:62px;padding:0;scroll-snap-align:start}
.cga-lb-av img,.cga-lb-av i{display:grid;place-items:center;width:62px;height:78px;border-radius:11px;object-fit:cover;background:#e7e5f4;outline:2px solid transparent;outline-offset:2px;transition:outline-color .12s,opacity .12s;opacity:.88}
.cga-lb-av i{color:var(--faint);font-style:normal}
.cga-lb-av button:hover img{opacity:1}
.cga-lb-av button.on img{outline-color:var(--ink);opacity:1}
.cga-lb-av span{width:62px;font-size:11.5px;font-weight:600;color:var(--muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-lb-av button.on span{color:var(--ink)}
.cga-lb-pa button.is-busy{opacity:.6;pointer-events:none}

@keyframes cga-spin{to{transform:rotate(360deg)}}
@keyframes cga-dot{0%,80%,100%{opacity:.35;transform:translate3d(0,0,0)}40%{opacity:1;transform:translate3d(0,-3px,0)}}
@keyframes cga-shim{0%{background-position:100% 0}100%{background-position:-100% 0}}
@keyframes cga-pulse{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes cga-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.cga-m.is-new{animation:cga-in .22s ease-out}

@media (max-width:1240px){
  .cga{grid-template-columns:260px minmax(0,1fr)}
  html.cga-mini .cga{grid-template-columns:minmax(0,1fr)}
  .cga-panel{position:fixed;top:0;right:0;bottom:0;width:min(400px,100vw);box-shadow:-24px 0 60px -24px rgba(31,35,48,.4);z-index:50}
}
@media (max-width:1100px){.cga-qgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.cga-tb span{display:none}.cga-tb{padding:0 9px}.cga-lb{grid-template-columns:minmax(0,1fr) 320px}}
@media (max-width:900px){
  .cga,html.cga-mini .cga{grid-template-columns:minmax(0,1fr)}
  .cga-side,html.cga-mini .cga-side{display:flex;position:fixed;top:0;left:0;bottom:0;width:min(300px,86vw);transform:translateX(-102%);transition:transform .22s ease,box-shadow .22s ease;box-shadow:none;z-index:70}
  .cga.is-side .cga-side{transform:none;box-shadow:24px 0 60px -24px rgba(0,0,0,.5)}
  .cga.is-side .cga-veil{display:block;position:fixed;inset:0;background:rgba(15,16,22,.45);z-index:65}
  .cga-top-l,html.cga-mini .cga-top-l{display:flex}
  .cga-top-new{display:none}
  .cga-top{padding:0 8px 0 12px;gap:6px}
  .cga-feed{padding:16px 14px 20px;gap:22px}
  .cga-dock{padding:0 10px max(8px,env(safe-area-inset-bottom))}
  .cga-sheet{left:10px;right:10px}
  .cga-sheet.cga-mdl{left:10px}
  .cga-mg.is-many{--cols:3}
  .cga-ci-m{opacity:1}
  .cga-pg{padding:24px 16px 50px}
  .cga-pg-h h1,.cga-pg-h h2{font-size:26.88px}
}
@media (max-width:760px){
  .cga-lb{display:flex;flex-direction:column;overflow-y:auto}
  .cga-lb-stage{flex:none;display:flex;flex-direction:column}
  .cga-lb-top{min-height:56px;padding:8px 10px}
  .cga-lb-strip{justify-content:flex-start}
  .cga-lb-strip button{width:38px;height:38px}
  .cga-lb-m{padding:0 10px 12px}
  .cga-lb-m img,.cga-lb-m video{max-height:58vh;max-height:58dvh}
  .cga-lb-nav{display:none}
  .cga-lb-side{flex:1 0 auto;border-radius:20px 20px 0 0}
  .cga-lb-hd{padding:16px 16px 10px}
  .cga-lb-pa{padding:0 16px 12px}
  .cga-lb-tabs{padding:0 16px}
  .cga-lb-body{overflow:visible;padding:10px 12px max(16px,env(safe-area-inset-bottom))}
  .cga-lb-list{flex-direction:row;overflow-x:auto;gap:8px;padding:2px 2px 8px;scroll-snap-type:x proximity}
  .cga-lb-row{flex:none;width:auto;scroll-snap-align:start;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px;min-width:118px;border:1px solid var(--line)!important;background:#fff!important}
  .cga-lb-row.on{border-color:var(--ink)!important;background:var(--bg)!important}
  .cga-lb-row span{font-size:13px;white-space:nowrap}
  .cga-lb-row i{display:none}
  .cga-lb-opt{margin:4px 0 8px}
  .cga-lb-foot{padding:6px 16px max(16px,env(safe-area-inset-bottom))}
}
@media (max-width:640px){
  .cga-body{font-size:14px}
  .cga-hero{padding:22px 14px 12px}
  .cga-hero p{font-size:14.5px}
  .cga-hero.has-car{padding:14px 14px 10px}
  .cga-hero.has-car h1{font-size:21px}
  .cga-hero.has-car .cga-hi p{font-size:13px}
  .cga-car-h{margin:14px 2px 8px}
  .cga-car-h span{display:none}
  .cga-car .cgb-nav{justify-content:center}
  /* объёмная карусель — от края до края экрана: соседние карточки уходят за край, а не обрезаются у полей */
  .cga-car .cgb.is-cf{width:calc(100% + 28px);margin:0 -14px}
  .cga-qgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cga-q{padding:12px}
  .cga-quick .cga-qgrid{grid-template-columns:1fr 1fr}
  .cga-quick .cga-q{flex-direction:column;align-items:flex-start}
  .cga-quick .cga-q span{white-space:normal}
  .cga-m-u{max-width:88%}
  .cga-txt{font-size:14.5px}
  .cga-mg.is-many{--cols:2}
  .cga-cb.is-t span{display:none}
  .cga-mdl-b.is-set span{display:inline;max-width:92px}
  .cga-input{font-size:16px;padding:10px 14px 2px;min-height:calc(1.6em + 12px)}
  .cga-input.is-empty::before{content:attr(data-phs);left:14px;right:14px;top:10px}
  .cga-wf{display:none}
  .cga-srow .cga-sc-card{flex-basis:138px}
  .cga-srow .cga-sc-f{gap:4px}
  .cga-srow .cga-sc-f button{padding:4px 8px;font-size:11.5px}
  .cga-srow{padding-right:24px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
  .cga-panel{width:100vw}
  .cga-toasts{top:calc(62px + env(safe-area-inset-top))}
  .cga-sug div{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:2px 16px 6px;scroll-snap-type:x proximity;scroll-padding:0 16px;scrollbar-width:none}
  .cga-sug div::-webkit-scrollbar{display:none}
  .cga-sug .cga-chip{scroll-snap-align:start;flex:none}
  .cga-lgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cga-fgrid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
  .cga-mrow{padding:9px 8px;gap:10px}
  .cga-sheet.cga-mdl{left:10px;right:10px;width:auto;max-width:none;max-height:min(560px,78vh)}
  .cga-mopts{padding-left:10px}
  .cga-mo{grid-template-columns:78px minmax(0,1fr)}
  .cga-mo-n{padding-left:86px}
  .cga-mdgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cga-dlg{place-items:end center;padding:10px}
  .cga-dlg-box{border-radius:18px}
  .cga-mwin-b{max-height:min(86dvh,640px)}
  .cga-lp-bar{padding:6px 6px 6px 12px;gap:6px;top:6px}
  .cga-lp-bar b{font-size:13px}
  .cga-lp-bar button{padding:0 10px;font-size:12.5px}
  .cga-lp-bar span{display:none}
  .cga-lp-bar b{flex:1}
  .cga-lp-bar .is-del em{display:none}
  .cga-lp-bar .is-del{width:38px;padding:0;justify-content:center}
  .cga-lp-selb{height:34px}
}
@media (hover:none){.cga-t-bar{display:none}.cga-pi-a,.cga-pi-add{opacity:1;transform:none}.cga-pi-add{inset:auto 6px 6px auto;width:28px;padding:0;border-radius:50%;font-size:0;gap:0;box-shadow:0 4px 12px -2px rgba(20,22,30,.35)}.cga-t-open{cursor:pointer}}
@media (prefers-reduced-motion:reduce){
  /* 1.1.98: было transition-duration:.01ms — с ним ЛЮБОЕ изменение стиля (transition-property по умолчанию all) становилось
     переходом, и замеры сразу после изменения брали старые значения: выпадающие списки («Нейросеть» в истории трендов)
     улетали за экран у тех, у кого в системе «Уменьшить движение». Переходы просто выключены. */
  .cga *,.cga *::before,.cga *::after,.cga-lb *{transition:none!important}
  .cga-ring,.cga-st.is-run i{animation-duration:2.4s!important}
  .cga-dots i{animation:cga-pulse 2.4s ease-in-out infinite!important}
  .cga-t.is-pend::after,.cga-m.is-new,.cga-toast,.cga-dlg,.cga-dlg-box,.cga-sheet.cga-mdl.is-in{animation:none!important}
  .cga-ci-busy,.cga-mst i{animation:none!important;opacity:1}
}

/* ---------- 0.71: избранное ---------- */
.cga-fav{display:grid;place-items:center;padding:0;border:0;cursor:pointer;color:#fff;transition:opacity .15s,transform .15s,background .15s,color .15s}
.cga-fav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.cga-fav.is-on{color:#cd8cfc}
.cga-fav.is-on svg{fill:currentColor}
.cga-fav:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.cga-pi-fav,.cga-lc-fav{position:absolute;z-index:3;width:28px;height:28px;border-radius:50%;background:rgba(20,22,30,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0}
.cga-pi-fav{top:5px;right:5px;width:26px;height:26px}
.cga-pi-fav svg{width:14px;height:14px}
.cga-lc-fav{right:8px;bottom:8px}
.cga-pi:hover .cga-pi-fav,.cga-pi:focus-within .cga-pi-fav,.cga-lc:hover .cga-lc-fav,.cga-lc:focus-visible .cga-lc-fav,.cga-fav.is-on{opacity:1}
.cga-pi-fav:hover,.cga-lc-fav:hover{background:rgba(20,22,30,.78);transform:scale(1.08)}
.cga-lgrid.is-sel .cga-lc-fav{pointer-events:none;opacity:0}
.cga-lb-hd.has-fav{position:relative;padding-right:60px}
.cga-lb-fav{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;background:transparent;border:1px solid var(--line);color:var(--ink2)}
.cga-lb-fav svg{width:18px;height:18px}
.cga-lb-fav:hover{background:#f3f1fe;color:var(--ink)}
.cga-lb-fav.is-on{color:#ae7cf9;border-color:#eca2fb;background:#f9f8ff}
.cga-t-ref{display:flex;align-items:center;gap:3px}
.cga-t-star{display:grid;place-items:center;color:#cd8cfc}
.cga-t-star svg{width:12px;height:12px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
.cga-pf button[data-pf-i]{display:inline-flex;align-items:center;gap:4px}
.cga-pf button[data-pf-i] svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.cga-pf button[data-pf-i="star"].on svg{fill:#cd8cfc;stroke:#cd8cfc}
.cga-mtabs2 .cga-pf button[data-pf-i] svg{width:15px;height:15px;stroke-width:1.8}
@media (hover:none){.cga-pi-fav,.cga-lc-fav{opacity:.92}}

/* ---------- 0.71: товар по ссылке, конкуренты, картинки страницы, видео во вложениях ---------- */
.cga-pr{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 16px 14px;display:flex;flex-direction:column;gap:8px;max-width:620px;box-shadow:var(--sh)}
.cga-pr-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cga-pr-mk{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:var(--soft);color:var(--brass-d);font-size:11.5px;font-weight:700;letter-spacing:.01em}
.cga-pr[data-m="wb"] .cga-pr-mk{background:#f3e8fb;color:#7b2a9e}
.cga-pr[data-m="ozon"] .cga-pr-mk{background:#e6effd;color:#1f4fbf}
.cga-pr-top a{display:inline-flex;align-items:center;gap:4px;color:var(--brass-d);font-size:12.5px;font-weight:700;text-decoration:none}
.cga-pr-top a svg{width:14px;height:14px}
.cga-pr-top a:hover{text-decoration:underline}
.cga-pr-t{margin:0;font-size:15px;font-weight:700;line-height:1.3;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cga-pr-s{margin:-4px 0 0;font-size:12.5px;color:var(--muted)}
.cga-pr-pr{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.cga-pr-p{font-size:18px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.cga-pr-pr s{color:var(--faint);font-size:13px}
.cga-pr-r{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--ink2)}
.cga-pr-r svg{width:14px;height:14px;fill:#cd8cfc;stroke:#cd8cfc}
.cga-pr-r em{font-style:normal;font-weight:500;color:var(--muted);margin-left:2px}
.cga-pr-ph{display:flex;gap:6px;overflow-x:auto;padding:2px 0 6px}
.cga-pr-ph button{position:relative;flex:0 0 74px;aspect-ratio:3/4;border:0;padding:0;border-radius:10px;overflow:hidden;background:#e7e5f4;cursor:pointer;display:grid;place-items:center}
.cga-pr-ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.cga-pr-ph button:hover img{transform:scale(1.05)}
.cga-pr-ph b{position:absolute;left:4px;bottom:4px;padding:0 5px;border-radius:5px;background:rgba(20,22,30,.66);color:#fff;font-size:10px;line-height:16px}
.cga-pr-ph .cga-ring{width:18px;height:18px;border-width:2px}
.cga-pr-sp{display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:4px 14px;margin:2px 0 0;padding:10px 0 0;border-top:1px solid var(--line);font-size:12.5px}
.cga-pr-sp dt{color:var(--muted)}
.cga-pr-sp dd{margin:0;color:var(--ink2);overflow-wrap:anywhere}
.cga-pr-more{margin:0;font-size:12px;color:var(--faint)}
@media (max-width:560px){.cga-pr-sp{grid-template-columns:1fr}.cga-pr-sp dd{margin-bottom:4px}}

.cga-mk{display:flex;flex-direction:column;gap:8px;min-width:0}
.cga-mk-h{display:flex;flex-direction:column;gap:2px}
.cga-mk-h b{font-size:13px;font-weight:700;color:var(--ink2)}
.cga-mk-h span{font-size:12px;color:var(--muted)}
.cga-mk-row{display:flex;gap:8px;overflow-x:auto;padding:4px 30px 14px 6px;margin:-4px 0 -8px -6px;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
.cga-mk-c{flex:0 0 132px;scroll-snap-align:start;display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;color:inherit;text-decoration:none;padding:0 0 9px;transition:box-shadow .15s,border-color .15s}
.cga-mk-c:hover{border-color:var(--line2);box-shadow:0 1px 2px rgba(31,35,48,.06),0 8px 18px -12px rgba(48,41,79,.5)}
.cga-mk-i{position:relative;aspect-ratio:3/4;background:#e7e5f4;overflow:hidden;display:block}
.cga-mk-i img{width:100%;height:100%;object-fit:cover;display:block}
.cga-mk-i i{position:absolute;left:6px;top:6px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:7px;background:rgba(20,22,30,.66);color:#fff;font:700 11px/20px system-ui,sans-serif;text-align:center;font-style:normal}
.cga-mk-i u{position:absolute;right:6px;top:6px;width:22px;height:22px;border-radius:50%;background:rgba(20,22,30,.6);display:grid;place-items:center;color:#fff}
.cga-mk-i u svg{width:11px;height:11px;fill:currentColor}
.cga-mk-p{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:6px 9px 0;font-size:13.5px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.cga-mk-p em{display:inline-flex;align-items:center;gap:2px;font-style:normal;font-size:11.5px;font-weight:700;color:var(--ink2)}
.cga-mk-p em svg{width:12px;height:12px;fill:#cd8cfc;stroke:#cd8cfc}
.cga-mk-t{padding:0 9px;font-size:11.5px;line-height:1.3;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cga-mk-n{padding:0 9px;font-size:11px;color:var(--faint)}

.cga-pk{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px;display:flex;flex-direction:column;gap:10px;max-width:640px}
.cga-pk-h{display:flex;flex-direction:column;gap:2px;padding:0 2px}
.cga-pk-h b{font-size:13px;font-weight:700;color:var(--ink2)}
.cga-pk-h span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cga-pk-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:6px}
.cga-pk-i{position:relative;aspect-ratio:1;border:0;padding:0;border-radius:10px;overflow:hidden;background:#e7e5f4;cursor:pointer;outline:0 solid var(--brass);outline-offset:-3px;transition:outline-width .12s}
.cga-pk-i img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .15s}
.cga-pk-i:not(:disabled):hover img{transform:scale(1.04)}
.cga-pk-i i{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:rgba(20,22,30,.3);display:grid;place-items:center;color:transparent;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.cga-pk-i i svg{width:13px;height:13px;stroke-width:3}
.cga-pk-i em{position:absolute;left:5px;bottom:5px;padding:0 5px;border-radius:5px;background:rgba(20,22,30,.6);color:#fff;font-size:10px;line-height:16px;font-style:normal}
.cga-pk-i.is-on{outline-width:3px}
.cga-pk-i.is-on i{background:var(--brass);border-color:var(--brass);color:#fff}
.cga-pk-i.is-on img{transform:scale(.92);border-radius:8px}
.cga-pk-i.is-done{cursor:default}
.cga-pk-i.is-done img{opacity:.45}
.cga-pk-i.is-done b{position:absolute;inset:auto 5px 5px auto;padding:1px 7px;border-radius:7px;background:var(--ok);color:#fff;font-size:10.5px}
.cga-pk-i:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.cga-pk-f{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:0 2px}
.cga-pk-f span{font-size:12.5px;color:var(--muted)}
.cga-pk-f button{display:inline-flex;align-items:center;gap:5px;border:0;border-radius:10px;background:var(--ink);color:#fff;font-weight:700;font-size:13px;padding:8px 14px;cursor:pointer;transition:background .15s,opacity .15s}
.cga-pk-f button svg{width:15px;height:15px;stroke-width:2.2}
.cga-pk-f button:hover:not(:disabled){background:var(--brass-d)}
.cga-pk-f button:disabled{opacity:.4;cursor:default}
.cga-pk-f button.is-busy{opacity:.6}

.cga-tr.is-vid video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.cga-tr-v{position:absolute;right:4px;bottom:4px;width:18px;height:18px;border-radius:50%;background:rgba(20,22,30,.6);display:grid;place-items:center;color:#fff;text-decoration:none}
.cga-tr-v svg{width:9px;height:9px;fill:currentColor}
.cga-tr-proc{position:absolute;inset:auto 0 0 0;padding:2px 0;background:rgba(20,22,30,.66);color:#fff;font-size:9.5px;font-style:normal;text-align:center}
.cga-mk-i img.is-broken,.cga-pk-i img.is-broken{visibility:hidden}
.cga-mk-i:has(img.is-broken)::after,.cga-pk-i:has(img.is-broken)::after{content:"Нет превью";position:absolute;inset:0;display:grid;place-items:center;font-size:11px;color:var(--faint)}
.cga-panel-b .cga-pf{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.cga-panel-b .cga-pf::-webkit-scrollbar{display:none}
@media (max-width:560px){.cga-pf{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.cga-pf::-webkit-scrollbar{display:none}.cga-pf button{flex:none}}
.cga-tr.is-dl .cga-tr-v{display:none}

/* «Тренд со мной»: ролик, персонажи и кого кем заменить */
.cga-cast{max-width:640px;margin:6px 0 4px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--sh)}
.cga-cast-top{display:grid;grid-template-columns:124px minmax(0,1fr);gap:14px;align-items:start}
.cga-cast-m{position:relative;border-radius:12px;overflow:hidden;background:var(--side);aspect-ratio:9/16}
.cga-cast-pv{display:block;width:100%;height:100%;padding:0;border:0;background:none;position:relative;cursor:pointer}
.cga-cast-pv img,.cga-cast-v{display:block;width:100%;height:100%;object-fit:cover}
.cga-cast-pv u{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:rgba(249,248,254,.92);color:var(--ink);text-decoration:none;transition:transform .15s}
.cga-cast-pv:hover u{transform:scale(1.08)}
.cga-cast-pv u svg{width:18px;height:18px;margin-left:2px}
.cga-cast-h{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:2px}
.cga-cast-h span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--brass-d)}
.cga-cast-h span svg{width:15px;height:15px}
.cga-cast-h b{font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:20.16px;font-weight:800;line-height:1.1;color:var(--ink);overflow-wrap:anywhere;letter-spacing:-.03em}
.cga-cast-h p{margin:3px 0 0;font-size:14px;line-height:1.45;color:var(--ink2)}
.cga-cast-h em{margin-top:4px;font-style:normal;font-size:12.5px;color:var(--muted)}
.cga-cast-rows{display:flex;flex-direction:column;gap:8px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.cga-cast-r{display:grid;grid-template-columns:52px minmax(0,1fr) 22px 64px;gap:10px;align-items:center}
.cga-cast-face{display:grid;place-items:center;width:52px;height:64px;border-radius:10px;overflow:hidden;background:var(--paper);color:var(--faint)}
.cga-cast-face img{width:100%;height:100%;object-fit:cover}
.cga-cast-who{display:flex;flex-direction:column;min-width:0}
.cga-cast-who b{font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-cast-who span{font-size:12px;color:var(--muted)}
.cga-cast-to{display:grid;place-items:center;color:var(--gold)}
.cga-cast-to svg{width:20px;height:20px}
.cga-cast-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;height:64px;padding:0;border:1.5px dashed var(--line2);border-radius:12px;background:var(--paper);color:var(--brass-d);font-size:10.5px;font-weight:700;line-height:1.1;text-align:center;overflow:hidden;cursor:pointer;transition:border-color .15s,background .15s}
.cga-cast-slot:hover{border-color:var(--brass);background:var(--soft)}
.cga-cast-slot svg{width:18px;height:18px}
.cga-cast-slot .cga-ring{width:20px;height:20px;border-width:2px}
.cga-cast-slot.is-set{border:2px solid var(--brass);background:#fff}
.cga-cast-slot.is-set img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cga-cast-slot.is-set b{position:absolute;left:4px;bottom:4px;padding:0 5px;border-radius:6px;background:rgba(31,35,48,.78);color:#fff;font-size:10.5px;line-height:1.6}
span.cga-cast-slot{cursor:default;color:var(--faint)}
.cga-cast-o{display:flex;align-items:center;gap:10px;margin:12px 0 0;flex-wrap:wrap}
.cga-cast-o label{min-width:74px;font-size:12.5px;font-weight:700;color:var(--muted)}
.cga-cast-ch{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.cga-cast-ch button{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink2);font-size:13px;font-weight:600}
.cga-cast-ch button em{font-style:normal;font-size:12px;font-weight:700;color:var(--muted)}
.cga-cast-ch button:hover{border-color:var(--brass)}
.cga-cast-ch button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.cga-cast-ch button.on em{color:var(--gold)}
.cga-cast-f{display:flex;align-items:center;gap:12px;margin:14px 0 0;flex-wrap:wrap}
.cga-cast-go{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 18px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-size:14.5px;font-weight:700}
.cga-cast-go svg{width:16px;height:16px}
.cga-cast-go:hover:not(:disabled){background:#2c3245}
.cga-cast-go:disabled{background:var(--line);color:var(--muted);cursor:not-allowed}
.cga-cast-f span{flex:1 1 180px;font-size:12.5px;line-height:1.4;color:var(--muted)}
.cga-cast.is-busy .cga-cast-go{opacity:.6;pointer-events:none}
.cga-cast.is-done .cga-cast-f span{color:var(--ok);font-weight:600}
.cga-pop.cga-cpop{width:316px;padding:10px}
.cga-cpk>p{margin:0 0 8px;font-size:13px;font-weight:700;color:#1f2330}
.cga-cpk .cga-cpk-e{font-weight:400;color:#6f7282;line-height:1.45}
.cga-cpk-g{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-height:228px;overflow:auto}
.cga-pop .cga-cpk-g button{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#f2f2f8}
.cga-pop .cga-cpk-g button img{width:100%;height:100%;object-fit:cover;display:block}
.cga-pop .cga-cpk-g button b{position:absolute;left:3px;bottom:3px;padding:0 4px;border-radius:5px;background:rgba(31,35,48,.75);color:#fff;font-size:10px;font-weight:700;line-height:1.5}
.cga-pop .cga-cpk-g button.on{border-color:#804fed}
.cga-pop .cga-cpk-g button:hover{border-color:#c285fc;background:#f2f2f8}
.cga-cpk-f{display:flex;gap:6px;margin:8px 0 0}
.cga-pop .cga-cpk-f button{width:auto;flex:1;justify-content:center;border:1px solid #d2cee6;font-weight:600}
.cga-pop .cga-cpk-f button.is-x{flex:0 0 auto;color:#6909dc}
@media (max-width:640px){
  .cga-cast{padding:12px}
  .cga-cast-top{grid-template-columns:96px minmax(0,1fr);gap:12px}
  .cga-cast-h b{font-size:16.8px}
  .cga-cast-r{grid-template-columns:44px minmax(0,1fr) 18px 58px;gap:8px}
  .cga-cast-face{width:44px;height:54px}
  .cga-cast-slot{width:58px;height:58px}
  .cga-cast-o label{min-width:0;width:100%}
}

.cga-sc.is-click{cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.cga-sc.is-click:hover,.cga-sc.is-click:focus-visible{background:#ddd5fd;color:var(--ink);box-shadow:0 0 0 2px rgba(128,79,237,.18);outline:0}
.cga-bub .cga-sc.is-click:hover{background:rgba(194,133,252,.38);color:#fff}
.cga-m-att button{position:relative;cursor:zoom-in;transition:transform .18s ease,box-shadow .18s ease}
.cga-m-att button::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(20,22,30,0);transition:background .18s}
.cga-m-att button:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 10px 22px -12px rgba(31,35,48,.55),0 0 0 2px var(--gold)}
.cga-m-att button:hover::after{background:rgba(20,22,30,.08)}
.cga-m-att button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}

.cga-is-drag,.is-drag{cursor:grabbing!important;user-select:none}
.is-drag *{pointer-events:none}
.cga-panel-b .cga-pf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);padding-right:22px;cursor:grab}
@media (pointer:fine){.cga-panel-b .cga-pf{flex-wrap:wrap;-webkit-mask-image:none;mask-image:none;padding-right:0;cursor:auto}}

.cga-vc{position:relative;min-width:0;display:flex;flex-direction:column;gap:6px}
.cga-vc-i{position:relative;display:block;width:100%;aspect-ratio:3/4;padding:0;border:0;border-radius:14px;overflow:hidden;background:var(--side);cursor:zoom-in;isolation:isolate}
.cga-vc-i img,.cga-vc-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cga-vc-vid{z-index:1;opacity:0;transition:opacity .25s}
.cga-vc-i.is-play .cga-vc-vid{opacity:1}
.cga-vc-i>i{position:absolute;inset:0;display:grid;place-items:center;color:var(--side-m)}
.cga-vc-i>i svg{width:26px;height:26px}
.cga-vc-i::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(20,22,30,0) 52%,rgba(20,22,30,.78));pointer-events:none;background-origin:border-box}
.cga-vc-p{position:absolute;left:50%;top:44%;z-index:3;display:grid;place-items:center;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:rgba(249,248,254,.9);color:var(--ink);text-decoration:none;transition:opacity .2s,transform .2s}
.cga-vc-p svg{width:15px;height:15px;margin-left:2px;fill:currentColor;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.cga-vc-i.is-play .cga-vc-p{opacity:0;transform:scale(.8)}
.cga-vc-d,.cga-vc-b{position:absolute;top:7px;z-index:3;padding:2px 7px;border-radius:999px;background:rgba(20,22,30,.62);color:#fff;font-size:10.5px;font-style:normal;font-weight:700;line-height:1.5;backdrop-filter:blur(4px)}
.cga-vc-d{right:7px}
.cga-vc-b{left:7px}
.cga-vc-t{position:absolute;left:9px;right:9px;bottom:8px;z-index:3;color:#fff;font-size:12px;font-weight:700;line-height:1.25;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.cga-vc-a{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:30px;padding:0 8px;border:0;border-radius:10px;background:var(--ink);color:#fff;font-size:12px;font-weight:700;line-height:1;cursor:pointer;transition:background .15s}
.cga-vc-a svg{width:14px;height:14px;flex:none}
.cga-vc-a:hover{background:var(--ink2)}
.cga-vc[draggable=true]{cursor:grab}
.cga-srow.is-v .cga-vc{flex:0 0 118px;scroll-snap-align:start}
.cga-sgrid.is-v{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
@media (max-width:380px){.cga-sgrid.is-v{grid-template-columns:repeat(2,minmax(0,1fr))}}

.cga-rm-go{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.cga-chip.is-main{background:var(--ink);border-color:var(--ink);color:#fff}
.cga-chip.is-main svg{width:15px;height:15px;color:var(--gold)}
.cga-chip.is-main:hover{background:#2c3245;border-color:#2c3245}

.cga-fm{max-width:680px;margin:6px 0 4px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--sh)}
.cga-fm-hd{display:flex;flex-direction:column;gap:2px;margin:0 0 12px}
.cga-fm-hd span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--brass-d)}
.cga-fm-hd span svg{width:15px;height:15px}
.cga-fm-hd span .cga-mn{font-size:11.5px}
.cga-fm-hd b{font-family:'Inter','Inter Fallback','Inter Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:19.32px;font-weight:800;line-height:1.15;color:var(--ink);letter-spacing:-.03em}
.cga-fm-hd p{margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink2)}
.cga-fm-q{padding:11px 0;border-top:1px solid var(--line)}
.cga-fm-q>label{display:flex;align-items:baseline;gap:5px;margin:0 0 7px;font-size:13px;font-weight:700;color:var(--ink)}
.cga-fm-q>label i{color:var(--err);font-style:normal}
.cga-fm-q>label em{font-style:normal;font-weight:600;font-size:11.5px;color:var(--muted)}
.cga-fm-o{display:flex;flex-wrap:wrap;gap:6px}
.cga-fm-o button{padding:6px 12px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink2);font-size:13px;font-weight:600;transition:border-color .15s,background .15s,color .15s}
.cga-fm-o button.on,.cga-fm-o button.on:hover{border-color:#cbbcff;background:var(--ink);color:#fff}
.cga-fm-o button{position:relative}
.cga-fm-pl{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#efe9ff;color:#6d28d9;font-style:normal;cursor:pointer;transition:background .15s,color .15s,transform .15s}
.cga-fm-pl svg{width:12px;height:12px;fill:currentColor;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;margin-left:1px}
.cga-fm-pl:hover{background:#e2d8ff;transform:scale(1.06)}
/* играет — «стоп» на фирменном градиенте и мягкие расходящиеся кольца */
.cga-fm-pl.is-on{background:linear-gradient(135deg,#8b5cf6,#d946ef);color:#fff;animation:cga-au 1.4s ease-out infinite;background-origin:border-box}
.cga-fm-pl.is-on svg{margin-left:0}
@keyframes cga-au{0%{box-shadow:0 0 0 0 rgba(139,92,246,.55)}100%{box-shadow:0 0 0 9px rgba(139,92,246,0)}}
.cga-fm-o button.on .cga-fm-pl:not(.is-on){background:rgba(255,255,255,.18);color:#fff}
.cga-fm-o.is-rich button:has(.cga-fm-pl){padding-right:40px}
@media (hover:hover){.cga-fm-o button:not(.on):hover:not(:disabled){border-color:var(--brass);color:var(--ink);background:#fdfdff}.cga-fm-o button.on:hover:not(:disabled){background:#2c3142}}
.cga-fm-o.is-rich{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:6px}
.cga-fm-o.is-rich button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 11px;border-radius:12px;text-align:left}
.cga-fm-o.is-rich button b{font-size:13px;font-weight:700}
.cga-fm-o.is-rich button small{font-size:11.5px;font-weight:500;line-height:1.35;color:var(--muted)}
.cga-fm-o.is-rich button.on small,.cga-fm-o.is-rich button.on:hover small{color:#d8d5e2}
.cga-fm-q textarea,.cga-fm-q input[type=text]{display:block;width:100%;box-sizing:border-box;padding:9px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;line-height:1.4;resize:vertical}
.cga-fm-q textarea:focus,.cga-fm-q input[type=text]:focus{outline:0;border-color:var(--brass);background:#fff;box-shadow:0 0 0 3px rgba(128,79,237,.14)}
.cga-fm-hint{margin:6px 0 0;font-size:12px;color:var(--muted)}
.cga-fm-md,.cga-fm-ph{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 4px;margin:6px -2px 0;scrollbar-width:thin}
.cga-fm-md button{flex:0 0 72px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;border:0;background:none;color:var(--ink2);font-size:11.5px;font-weight:600}
.cga-fm-md button img{width:64px;height:80px;object-fit:cover;border-radius:12px;border:2px solid transparent;transition:border-color .15s,transform .15s}
.cga-fm-md button span{max-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.cga-fm-md button:not(.on):hover:not(:disabled) img{border-color:var(--gold)}}
.cga-fm-md button.on img{border-color:var(--ink);transform:translateY(-2px)}
.cga-fm-md button.on span{color:var(--ink)}
.cga-fm-md button{position:relative}
.cga-fm-md button>i{position:absolute;top:4px;right:6px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,#9b6cf5,#d27cf2);color:#fff;box-shadow:0 2px 6px rgba(91,52,174,.35)}
.cga-fm-md button>i svg{width:10px;height:10px;fill:currentColor;stroke:none}
.cga-fm-md button.is-all em{display:grid;place-items:center;width:64px;height:80px;border-radius:12px;border:1.5px dashed var(--line2);background:var(--paper);color:var(--brass-d);font-style:normal;transition:border-color .15s,background .15s}
.cga-fm-md button.is-all em svg{width:20px;height:20px}
@media (hover:hover){.cga-fm-md button.is-all:hover em{border-color:var(--brass);background:#fff}}
.cga-fm-cast{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin:0 0 10px;padding:10px 12px 10px 10px;border:1px solid #d9cdfc;border-radius:14px;background:linear-gradient(135deg,#f6f1ff,#fdfbff 70%);color:var(--ink);text-align:left;font:inherit;transition:border-color .15s,box-shadow .15s,transform .15s}
button.cga-fm-cast{cursor:pointer}
@media (hover:hover){button.cga-fm-cast:hover:not(:disabled){border-color:var(--brass);box-shadow:0 10px 26px -16px rgba(128,79,237,.55);transform:translateY(-1px)}}
.cga-fm-cast-av{display:flex;flex:none;padding-left:8px}
.cga-fm-cast-av img{width:36px;height:46px;object-fit:cover;margin-left:-10px;border-radius:10px;border:2px solid #fff;box-shadow:0 2px 8px rgba(48,41,79,.18)}
.cga-fm-cast-av>svg{width:26px;height:26px;color:var(--brass-d)}
.cga-fm-cast-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cga-fm-cast-t b{font-size:14px;font-weight:800;line-height:1.25;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.cga-fm-cast-t small{font-size:12px;line-height:1.35;color:var(--muted)}
.cga-fm-cast>em{display:inline-flex;align-items:center;gap:5px;flex:none;height:32px;padding:0 12px;border-radius:10px;background:var(--ink);color:#fff;font-style:normal;font-size:12.5px;font-weight:700}
.cga-fm-cast>em svg{width:14px;height:14px;color:var(--gold)}
.cga-fm-cast.is-on{border-color:var(--brass);background:linear-gradient(135deg,#f1eaff,#fbf8ff 70%)}
.cga-fm-cast-im{display:grid;place-items:center;flex:none;width:46px;height:58px;border-radius:12px;overflow:hidden;background:var(--soft);color:var(--brass-d);box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--brass)}
.cga-fm-cast-im img{width:100%;height:100%;object-fit:cover;display:block}
.cga-fm-cast-im svg{width:22px;height:22px}
.cga-fm-cast.is-on .cga-fm-cast-t small{font-weight:700;color:var(--brass-d)}
.cga-fm-cast-b{flex:none;height:32px;padding:0 12px;border:1px solid var(--line2);border-radius:10px;background:#fff;color:var(--ink);font-size:12.5px;font-weight:700;cursor:pointer}
.cga-fm-cast-b:hover{border-color:var(--brass)}
.cga-fm-cast-x{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}
.cga-fm-cast-x:hover{background:var(--soft);color:var(--ink)}
.cga-fm-cast-x svg{width:15px;height:15px}
@media (max-width:560px){
  .cga-fm-cast{flex-wrap:wrap;gap:10px}
  .cga-fm-cast>em{order:3;width:100%;justify-content:center}
  .cga-fm-cast-t small{font-size:11.5px}
}
.cga-fm-ph button{position:relative;flex:0 0 64px;height:64px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:var(--paper)}
.cga-fm-ph button img{width:100%;height:100%;object-fit:cover;display:block}
.cga-fm-ph button b{position:absolute;left:3px;bottom:3px;padding:0 4px;border-radius:5px;background:rgba(31,35,48,.75);color:#fff;font-size:9.5px;font-weight:700;line-height:1.5}
.cga-fm-ph button i{position:absolute;right:3px;top:3px;display:none;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--ink);color:#fff}
.cga-fm-ph button i svg{width:11px;height:11px}
.cga-fm-ph button.on{border-color:var(--ink)}
.cga-fm-ph button.on i{display:grid}
@media (hover:hover){.cga-fm-ph button:not(.on):hover:not(:disabled){border-color:var(--gold)}}
.cga-fm-ph .cga-fm-up{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1.5px dashed var(--line2);color:var(--brass-d);font-size:10.5px;font-weight:700}
.cga-fm-ph .cga-fm-up svg{width:17px;height:17px}
.cga-fm-ph .cga-fm-up .cga-ring{width:18px;height:18px;border-width:2px}
.cga-fm-f{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0 0;border-top:1px solid var(--line)}
.cga-fm-go{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 18px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-size:14.5px;font-weight:700}
.cga-fm-go svg{width:16px;height:16px;color:var(--gold)}
.cga-fm-go:hover:not(:disabled){background:#2c3245}
.cga-fm-go:disabled{background:var(--line);color:var(--muted);cursor:default}
.cga-fm-go:disabled svg{color:var(--ok)}
.cga-fm-f span{flex:1 1 180px;font-size:12.5px;line-height:1.4;color:var(--muted)}
.cga-fm.is-sent .cga-fm-q{opacity:.72}

.cga-vp{max-width:760px;margin:6px 0 4px;padding:16px 16px 14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--sh);min-width:0}
.cga-vp-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;margin:10px -8px 0;padding:2px 8px 8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
.cga-vp.is-multi .cga-vp-row{grid-auto-columns:minmax(250px,1fr)}
.cga-vp-c{display:flex;flex-direction:column;min-width:0;padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--bg);scroll-snap-align:start}
.cga-vp-top{display:flex;align-items:center;gap:7px;margin:0 0 7px;min-width:0}
.cga-vp-top em{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--ink);color:var(--gold);font-style:normal;font-size:12px;font-weight:800}
.cga-vp-top span{min-width:0;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--brass-d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-vp-top i{margin-left:auto;flex:none;font-style:normal;font-size:11.5px;font-weight:600;color:var(--muted)}
.cga-vp-t{display:block;font-size:14.5px;font-weight:800;line-height:1.25;color:var(--ink)}
.cga-vp-i{margin:4px 0 0;font-size:12.5px;line-height:1.42;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cga-vp-hook{margin:8px 0 0;padding:7px 9px;border-radius:10px;background:#fff;border:1px solid var(--line);box-shadow:inset 3px 0 0 #c9b8ff;font-size:12.5px;line-height:1.42;color:var(--ink)}
.cga-vp-hook b{margin-right:6px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--brass-d)}
.cga-vp-ln{display:flex;flex-direction:column;gap:4px;margin:8px 0 0;padding:8px 9px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.cga-vp-ln>b{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--brass-d)}
.cga-vp-ln>b svg{width:13px;height:13px}
.cga-vp-ln.is-vo q{font-style:normal}
.cga-vp-ln q{display:block;overflow-wrap:anywhere;padding-left:8px;border-left:2px solid var(--gold);font-size:12.5px;line-height:1.4;font-style:italic;color:var(--ink);quotes:"«" "»"}
.cga-vp-ln small{font-size:11.5px;color:var(--muted)}
.cga-vp-vn{display:block;align-self:flex-start;max-width:100%;box-sizing:border-box;margin:0 0 2px;padding:2px 9px;border-radius:9px;background:var(--soft);color:var(--brass-d);font-size:11.5px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.cga-vp-snd{display:flex;align-items:flex-start;gap:6px;margin:8px 0 0;font-size:12px;font-weight:600;line-height:1.4;color:var(--brass-d)}
.cga-vp-snd svg{width:14px;height:14px;flex:none;margin-top:1px}
.cga-vp-more{align-self:flex-start;display:inline-flex;align-items:center;gap:3px;margin:8px 0 0;padding:0;border:0;background:none;color:var(--brass-d);font-size:12px;font-weight:700}
.cga-vp-more svg{width:14px;height:14px;transition:transform .15s}
.cga-vp-more.is-on svg{transform:rotate(180deg)}
.cga-vp-more:hover{color:var(--brass)}
.cga-vp-s{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.cga-vp-s li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:7px;align-items:start}
.cga-vp-s time{padding:1px 0;border-radius:6px;background:#fff;border:1px solid var(--line);font-size:10.5px;font-weight:700;color:var(--ink2);text-align:center;font-variant-numeric:tabular-nums}
.cga-vp-s p{margin:0;font-size:12.5px;line-height:1.4;color:var(--ink)}
.cga-vp-s small{display:block;margin-top:1px;font-size:11px;color:var(--muted)}
.cga-vp-s small.is-t{color:var(--brass-d)}
.cga-vp-x{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;margin:8px 0 0;font-size:11.5px;line-height:1.35}
.cga-vp-x dt{color:var(--faint);font-weight:600}
.cga-vp-x dd{margin:0;color:var(--muted)}
.cga-vp-n{margin:8px 0 0;font-size:11.5px;color:var(--muted)}
.cga-vp-c .cga-cr-f{padding-top:10px}
.cga-vp-ph{margin:10px 0 0;padding:10px 12px 4px;border:1px dashed #cbc3eb;border-radius:14px;background:#fbfbff}
.cga-vp-ph>b{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink)}
.cga-vp-ph>b svg{width:15px;height:15px;color:var(--brass-d)}
.cga-vp-ph>p{margin:2px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
.cga-vp-ph .cga-fm-ph{margin-top:2px}
.cga-vp-ph .cga-fm-ph button i{font-style:normal;font-size:14px;line-height:1}
.cga-vp-go{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 15px;border:0;border-radius:11px;background:var(--ink);color:#fff;font-size:13.5px;font-weight:700;white-space:nowrap}
.cga-vp-go svg{width:15px;height:15px;color:var(--gold)}
.cga-vp-go:hover{background:#2c3245}
.cga-vp-ed{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;border:1px solid var(--line2);border-radius:11px;background:#fff;color:var(--ink2);font-size:13px;font-weight:600}
.cga-vp-ed svg{width:14px;height:14px}
.cga-vp-ed:hover{border-color:var(--brass);color:var(--ink)}

.cga-cast-ch.is-row{flex-wrap:nowrap;overflow-x:auto;padding:2px 24px 4px 1px;margin:-2px 0 -4px -1px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);cursor:grab}
.cga-cast-ch.is-row::-webkit-scrollbar{display:none}
.cga-cast-ch.is-row button{flex:none;white-space:nowrap}
.cga-cast-o:has(.is-row){flex-wrap:nowrap}
.cga-cast-o:has(.is-row) .cga-cast-ch{flex:1 1 auto}
.cga-cast-ex{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:rgba(20,22,30,.6);color:#fff;opacity:.85;transition:opacity .15s,background .15s}
.cga-cast-ex svg{width:14px;height:14px}
.cga-cast-pv:hover .cga-cast-ex{opacity:1;background:rgba(20,22,30,.82)}
@media (max-width:640px){
  .cga-fm{padding:13px}
  .cga-vp,.cga-cr{padding:13px 12px 12px}
  .cga-mc .cga-mg.is-1{max-width:min(74vw,300px,calc(var(--ar1,.75) * 50vh))!important}
  .cga-mc .cga-mg.is-2{max-width:min(100%,360px)}
  .cga-vp.is-multi .cga-vp-row,.cga-cr-row{grid-auto-columns:minmax(232px,82%)}
  .cga-fm-hd b{font-size:16.8px}
  .cga-fm-o.is-rich{grid-template-columns:1fr 1fr}
  .cga-cast-o:has(.is-row){flex-wrap:wrap}
  .cga-cast-o:has(.is-row) .cga-cast-ch{width:100%}
}

.cga-mg-dl{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:5px 11px 5px 9px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink);font-size:12.5px;font-weight:700;line-height:1;transition:border-color .15s,background .15s}
.cga-mg-dl svg{width:15px;height:15px;color:var(--brass-d)}
.cga-mg-dl em{min-width:18px;padding:2px 5px;border-radius:999px;background:var(--paper);color:var(--muted);font-style:normal;font-size:11px;text-align:center}
.cga-mg-dl.is-busy{pointer-events:none;opacity:.6}
.cga-mg-dl.is-busy svg{animation:cga-pulse 1s infinite}
@media (hover:hover){.cga-mg-dl:hover{border-color:var(--brass);background:#fdfdff}}
@media (hover:hover){.cga-vp-ph .cga-fm-ph button.on:hover i{background:#5f09c9}}
@media (min-width:1241px){
  html.cga-mini .cga-panel{width:clamp(440px,40vw,660px)}
  html.cga-mini .cga-sgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  html.cga-mini .cga-sgrid.is-v{grid-template-columns:repeat(4,minmax(0,1fr))}
  html.cga-mini .cga-pgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1600px){
  html.cga-mini .cga-sgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  html.cga-mini .cga-sgrid.is-v{grid-template-columns:repeat(5,minmax(0,1fr))}
}

.cga-cr{max-width:760px;margin:6px 0 4px;padding:16px 16px 14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--sh)}
.cga-cr-h>span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--brass-d);text-transform:uppercase;letter-spacing:.04em}
.cga-cr-h>span svg{width:14px;height:14px}
.cga-cr-h>b{display:block;margin:4px 0 2px;font-size:16px;font-weight:800;color:var(--ink)}
.cga-cr-h>p{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}
.cga-cr-h>p.cga-cr-w{display:flex;gap:6px;margin-top:6px;padding:7px 10px;border-radius:10px;background:#f3efff;border:1px solid #e6defd;color:var(--ink2);font-size:12.5px}
.cga-cr-h>p.cga-cr-w svg{flex:none;width:15px;height:15px;margin-top:1px;color:var(--brass-d)}
.cga-cr-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,1fr);gap:10px;margin:8px -8px -4px;padding:4px 8px 12px;overflow-x:auto;scrollbar-width:thin}
.cga-cr-c{display:flex;flex-direction:column;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.cga-cr-sw{position:relative;display:flex;align-items:flex-end;gap:5px;height:74px;margin:0 0 9px;padding:9px;border-radius:10px;background:linear-gradient(135deg,var(--c1),var(--c2));background-origin:border-box}
.cga-cr-sw em{position:absolute;left:9px;top:7px;font-style:normal;font-size:12px;font-weight:800;color:rgba(255,255,255,.92);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.cga-cr-sw i{width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.9);box-shadow:0 2px 6px rgba(0,0,0,.18)}
.cga-cr-c>b{font-size:14px;font-weight:800;color:var(--ink)}
.cga-cr-c>p{margin:3px 0 0;font-size:12.5px;line-height:1.4;color:var(--ink2)}
.cga-cr-c dl{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;margin:8px 0 0;font-size:11.5px;line-height:1.35}
.cga-cr-c dt{color:var(--faint);font-weight:600}
.cga-cr-c dd{margin:0;color:var(--muted)}
.cga-cr-f{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:auto;padding-top:10px}
.cga-cr-f button{min-width:0;justify-content:center;white-space:nowrap}
.cga-cr-f .cga-vp-go{padding-left:10px;padding-right:10px}
.cga-cr-f .cga-vp-go small{font-size:11.5px;font-weight:600;opacity:.75}
.cga-cr-f .cga-vp-ed{height:34px;padding-left:10px;padding-right:10px}
/* 0.88.1: одна карточка (сценарий, идея) — кнопки «Снять» и «Изменить» в ряд, а не две полосы на всю ширину */
.cga-vp:not(.is-multi) .cga-cr-f,.cga-cr-row>.cga-cr-c:only-child .cga-cr-f{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.cga-vp:not(.is-multi) .cga-cr-f .cga-vp-ed,.cga-cr-row>.cga-cr-c:only-child .cga-cr-f .cga-vp-ed{height:38px}
.cga-cr-q{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;padding:10px 0 0;border-top:1px solid var(--line)}
.cga-ban{max-width:836px;margin:0 auto 8px;padding:10px 14px;border:1px solid #f1c9c4;border-radius:14px;background:#f6f4ff;color:#4b00a2;font-size:13px;line-height:1.45}

/* Встраивание в студию (/app): только чат, без списка чатов — панель справа в студии. */
html.cga-emb .cga,html.cga-emb.cga-mini .cga{grid-template-columns:minmax(0,1fr) auto}
html.cga-emb .cga-side,html.cga-emb .cga-veil,html.cga-emb .cga-burger,html.cga-emb .cga-top-new{display:none!important}
html.cga-emb .cga-top{padding-left:14px}
/* 0.88.7: панели (Медиа, Стили, Модели) в окне студии — всегда внутри окна. Студия расширяет окно, когда панель открыта:
   хватает ширины — панель колонкой справа, чат не перекрыт; узкий экран — аккуратная карточка поверх чата */
@media (min-width:980px){
  html.cga-emb .cga-panel{position:relative;top:auto;right:auto;bottom:auto;width:400px;box-shadow:none;z-index:12}
}
@media (min-width:641px) and (max-width:979px){
  html.cga-emb .cga-panel{top:8px;right:8px;bottom:8px;width:min(400px,calc(100% - 16px));border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 24px 60px -20px rgba(31,35,48,.45)}
}

/* ---------- лимиты файлов (0.85): полоска над полем ввода, окно «нет места», сводка в библиотеке ---------- */
.cga-limn{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;max-width:836px;margin:0 auto 8px;padding:8px 8px 8px 12px;border-radius:14px;background:linear-gradient(135deg,#f5f1ff,#fdf0f7);border:1px solid #e4d9ff;color:#3b2a6e;font-size:13px;line-height:1.4;background-origin:border-box}
.cga-limn>svg{width:17px;height:17px;color:#7c3aed}
.cga-limn span{flex:1;min-width:180px}
.cga-limn a,.cga-limn button{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid #d9ccff;border-radius:999px;background:#fff;color:#4c1d95;font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap}
.cga-limn .is-prem{border:0;background:linear-gradient(135deg,#7c5cff,#e0479e);color:#fff;background-origin:border-box}
@media (hover:hover){.cga-limn a:hover,.cga-limn button:not(.is-prem):hover{background:#f5f1ff}.cga-limn .is-prem:hover{filter:brightness(1.08)}}
.cga-limd .cga-dlg-h{align-items:center}
.cga-limd-i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#ede7ff,#fde7f3);color:#7c3aed;background-origin:border-box}
.cga-limd-i svg{width:18px;height:18px}
.cga-limd-m{margin:10px 20px 0}
.cga-limd-bar,.cga-lpi-bar{height:8px;border-radius:999px;background:#ece9f6;overflow:hidden}
.cga-limd-bar i,.cga-lpi-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8b5cf6,#ec4899);background-origin:border-box}
.cga-limd-m p{margin:6px 0 0;font-size:12.5px;color:var(--muted)}
.cga-limd-p{display:flex;flex-direction:column;gap:2px;margin:14px 20px 0;padding:11px 14px;border-radius:14px;background:linear-gradient(135deg,#f3eeff,#fdeef6);font-size:13px;line-height:1.4;color:#4c1d95;background-origin:border-box}
.cga-limd-p b{font-size:13.5px}
.cga-dlg-f .cga-limd-pb{border:0;background:linear-gradient(135deg,#7c5cff,#e0479e);color:#fff;box-shadow:0 8px 18px -10px rgba(109,40,217,0.59);background-origin:border-box}
.cga-dlg-f .cga-limd-pb:hover{background:linear-gradient(135deg,#7c5cff,#e0479e);filter:brightness(1.07);background-origin:border-box}
.cga-lp-info{display:flex;flex-direction:column;gap:0;margin:0 0 16px;padding:12px 16px;border-radius:18px;background:linear-gradient(135deg,#fbf9ff,#fdf6fb);border:1px solid #ece6fb;font-size:13px;line-height:1.45;color:var(--ink2);background-origin:border-box}
.cga-lp-info[hidden]{display:none}
.cga-lpi-h{display:flex;align-items:center;gap:6px 10px;width:100%;margin:0;padding:0;border:0;background:none;font:inherit;text-align:left;color:inherit;cursor:pointer}
.cga-lpi-h>i{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:linear-gradient(135deg,#ede7ff,#fde7f3);color:#7c3aed;background-origin:border-box}
.cga-lpi-h>i svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cga-lpi-h b{flex:none;font-size:14px;font-weight:800;color:var(--ink)}
.cga-lpi-h span{font-size:12.5px;color:var(--muted)}
.cga-lpi-h .cga-lpi-sum{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-lpi-h .cga-lpi-bar.is-mini{flex:0 0 72px;height:5px}
.cga-lpi-chev{display:grid;place-items:center;flex:none;width:26px;height:26px;margin-left:auto;border-radius:8px;color:var(--muted);transition:transform .2s,background .15s}
.cga-lpi-chev svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cga-lp-info.is-open .cga-lpi-chev{transform:rotate(180deg)}
@media (hover:hover){.cga-lpi-h:hover .cga-lpi-chev{background:#f1ecff;color:var(--ink)}}
/* 0.89: аккордеон без скачка — отступы блока постоянные, тело раскрывается анимацией высоты */
.cga-lpi-b{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .26s ease,opacity .2s ease}
.cga-lp-info.is-open .cga-lpi-b{grid-template-rows:1fr;opacity:1}
.cga-lpi-bi{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:hidden}
.cga-lpi-bi>:first-child{margin-top:12px}
@media (prefers-reduced-motion:reduce){.cga-lpi-b,.cga-lpi-chev{transition:none}}
@media (max-width:640px){.cga-lpi-h .cga-lpi-bar.is-mini{display:none}}
.cga-lpi-h span.is-prem{padding:2px 9px;border-radius:999px;background:linear-gradient(135deg,#7c5cff,#e0479e);color:#fff;font-size:11.5px;font-weight:700;background-origin:border-box}
.cga-lpi-s{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.cga-lpi-c{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #efeaf9;min-width:0}
.cga-lpi-c>i{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#ede7ff,#fde7f3);color:#7c3aed;background-origin:border-box}
.cga-lpi-c>i svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cga-lpi-c>span{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.cga-lpi-c em{font-style:normal;font-size:11.5px;color:var(--muted)}
.cga-lpi-c b{font-size:14px;font-weight:800;color:var(--ink)}
.cga-lpi-c small{font-size:11.5px;color:var(--muted)}
.cga-lpi-c u{display:block;margin-top:6px;text-decoration:none}
.cga-lpi-bar{height:6px;border-radius:999px;background:#ece9f6;overflow:hidden}
.cga-lpi-bar.is-hot i{background:linear-gradient(90deg,#f59e0b,#ec4899);background-origin:border-box}
.cga-lpi-n{margin:0;font-size:12.5px;color:var(--muted)}
.cga-lpi-p{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:9px 12px;border-radius:12px;background:linear-gradient(135deg,#f3eeff,#fdeef6);color:#6d28d9;font-weight:600;background-origin:border-box}
.cga-lpi-p span{flex:1;min-width:200px}
.cga-lpi-p button{height:30px;padding:0 12px;border:0;border-radius:999px;background:linear-gradient(135deg,#7c5cff,#e0479e);color:#fff;font-size:12.5px;font-weight:700;cursor:pointer;background-origin:border-box}
.cga-lpi-p.is-on{background:#ecfdf3;color:#15803d}
.cga-lc-left{position:absolute;left:8px;bottom:8px;z-index:2;padding:1px 7px;border-radius:7px;background:rgba(245,158,11,.92);color:#fff;font-size:11px;font-weight:700;text-decoration:none}
@media (max-width:640px){.cga-limn{padding:8px 10px}.cga-limn span{min-width:100%}}
.cga-limd .cga-dlg-f button{flex:1;white-space:nowrap;padding:0 12px}
@media (max-width:420px){.cga-limd .cga-dlg-f{flex-direction:column-reverse}.cga-limd .cga-dlg-f button{flex:none;width:100%}}

/* ---------- 0.87: «Стили» — Тренды / Бизнес и подменю как в Студии ---------- */
.cga-slsec{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 10px;border-radius:14px;background:#f1eef9}
.cga-slsec button{display:flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 10px;border:0;border-radius:11px;background:transparent;color:var(--ink2);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;transition:background .15s,color .15s}
.cga-slsec button.on{background:linear-gradient(120deg,#7c5cff,#a855f7 50%,#e0479e);color:#fff;box-shadow:0 8px 18px -10px rgba(91,33,182,.6);background-origin:border-box}
.cga-slg{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.cga-slg button{flex:1 1 auto;justify-content:center}
.cga-slg svg{display:none}
.cga-slg::-webkit-scrollbar{display:none}
.cga-slg button{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink2);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.cga-slg button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.cga-slsec svg,.cga-slg svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cga-slsub{display:inline-flex;gap:2px;padding:3px;margin:0 0 8px;border-radius:999px;background:#f1eef9}
.cga-slsub button{height:28px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.cga-slsub button.on{background:#fff;color:var(--ink);box-shadow:0 2px 8px -4px rgba(20,8,50,.3)}
.cga-sl-d{margin:0 0 8px!important}
@media (hover:hover){.cga-slsec button:not(.on):hover{background:#fff;color:var(--ink)}.cga-slg button:not(.on):hover{border-color:#cbbcff;color:var(--ink)}.cga-slsub button:not(.on):hover{color:var(--ink)}}

/* ---------- проекты (0.89) ---------- */
.cga-nav .cga-nav-pj{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--side-t);font:inherit;font-size:13.5px;font-weight:600;text-align:left;cursor:pointer}
.cga-nav .cga-nav-pj>svg{width:18px;height:18px;color:var(--side-m)}
.cga-nav .cga-nav-pj span{flex:1;min-width:0}
.cga-nav .cga-nav-pj em{font-style:normal;font-size:11.5px;font-weight:600;color:var(--side-m);min-width:0}
.cga-nav .cga-nav-pj:hover{background:var(--side2)}
.cga-nav .cga-nav-pj.is-on{background:rgba(194,133,252,.13)}
.cga-nav .cga-nav-pj.is-on>svg,.cga-nav .cga-nav-pj.has-cur>svg{color:var(--gold)}
.cga-nav-chev{display:grid;place-items:center;width:18px;height:18px;color:var(--side-m);transition:transform .2s}
.cga-nav-chev svg{width:15px;height:15px}
.cga-nav-pj[aria-expanded="true"] .cga-nav-chev{transform:rotate(180deg)}
/* аккордеон проектов: высота анимируется (grid 0fr → 1fr), шапка и список чатов не дёргаются */
.cga-pjs{display:grid;grid-template-rows:0fr;margin:-8px 0 0;opacity:0;transition:grid-template-rows .24s ease,opacity .18s ease,margin .24s ease}
.cga-pjs.is-open{grid-template-rows:1fr;opacity:1;margin:-6px 0 0}
.cga-pjs-in{display:flex;flex-direction:column;gap:1px;min-height:0;overflow:hidden;padding:0 0 0 12px}
.cga-pjs-in>:first-child{margin-top:2px}
.cga-pjs a{display:flex;align-items:center;gap:9px;min-width:0;padding:6px 10px;border-radius:9px;color:var(--side-m);text-decoration:none;font-size:13px;font-weight:600;transition:background .12s,color .12s}
.cga-pjs a svg{width:15px;height:15px;flex:none;opacity:.8}
.cga-pjs a span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjs a:hover{background:var(--side2);color:var(--side-t)}
.cga-pjs a.is-on{background:rgba(194,133,252,.13);color:#fff}
.cga-pjs a.is-on svg{color:var(--gold);opacity:1}
.cga-pjs-pin{display:grid;place-items:center;flex:none;color:var(--side-m)}
.cga-pjs-pin svg{width:12px!important;height:12px!important}
.cga-pjs-e{margin:4px 10px 6px;font-size:12px;line-height:1.4;color:var(--side-m)}
.cga-pjs-f{display:flex;align-items:center;gap:4px;margin:2px 0 6px}
.cga-pjs-f button{display:inline-flex;align-items:center;gap:6px;flex:none;max-width:100%;min-width:0;height:30px;padding:0 10px;border:1px dashed rgba(194,133,252,.35);border-radius:9px;background:transparent;color:var(--side-t);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:background .12s,border-color .12s}
.cga-pjs-f button svg{width:14px;height:14px;color:var(--gold)}
.cga-pjs-f button:hover{background:var(--side2);border-color:rgba(194,133,252,.6)}
.cga-pjs .cga-pjs-f a{flex:none;padding:6px 10px;font-size:12px;font-weight:600}
@media (prefers-reduced-motion:reduce){.cga-pjs,.cga-nav-chev{transition:none}}
.cga-pjc{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:34%;padding:4px 10px 4px 8px;border-radius:999px;background:var(--soft);color:var(--brass-d);font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap;flex:none;transition:background .15s}
.cga-pjc[hidden]{display:none}
.cga-pjc svg{width:14px;height:14px;flex:none}
.cga-pjc span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.cga-pjc:hover{background:#e2dafd}
/* 0.90.1: заготовки запросов под мудборд — над полем сообщения */
.cga-mideas{margin:0 0 8px;padding:9px 10px 10px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--sh)}
.cga-mideas[hidden]{display:none}
.cga-mideas-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12.5px;color:var(--muted);line-height:1.35}
.cga-mideas-h>svg{width:16px;height:16px;color:var(--brass);flex:none}
.cga-mideas-h span{flex:1;min-width:0}
.cga-mideas-x{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--faint);flex:none}
.cga-mideas-x svg{width:14px;height:14px}
.cga-mideas-x:hover{background:rgba(31,35,48,.06);color:var(--ink)}
.cga-mideas-l{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.cga-mideas-l::-webkit-scrollbar{display:none}
.cga-mideas-l button{display:inline-flex;align-items:center;gap:7px;flex:none;height:36px;padding:0 13px 0 10px;border:1px solid var(--line2);border-radius:11px;background:var(--paper);font-size:13px;font-weight:650;color:var(--ink);transition:border-color .15s,background .15s}
.cga-mideas-l button svg{width:16px;height:16px;color:var(--brass)}
.cga-mideas-l button:hover{border-color:var(--brass);background:var(--soft)}
/* 0.90: мудборд чата в шапке */
.cga-mdc{display:inline-flex;align-items:center;min-width:0;max-width:30%;flex:none;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line2)}
.cga-mdc[hidden]{display:none}
.cga-mdc-b{display:inline-flex;align-items:center;gap:6px;min-width:0;height:28px;padding:0 4px 0 3px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-size:12.5px;font-weight:700;white-space:nowrap}
.cga-mdc-b img{width:22px;height:22px;border-radius:50%;object-fit:cover;flex:none}
.cga-mdc-b svg{width:16px;height:16px;color:var(--brass);margin-left:4px}
.cga-mdc-b span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.cga-mdc-x{display:grid;place-items:center;width:24px;height:24px;margin-right:2px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);flex:none}
.cga-mdc-x svg{width:14px;height:14px}
.cga-mdc-x:hover{background:rgba(31,35,48,.07);color:var(--ink)}
.cga-mdc:hover{box-shadow:inset 0 0 0 1px var(--brass)}
.cga-pg-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:42px;padding:0 18px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-size:14px;font-weight:700;white-space:nowrap;flex:none;transition:background .15s,box-shadow .15s}
.cga-pg-btn svg{width:17px;height:17px}
.cga-pg-btn:hover{background:var(--brass-d);box-shadow:0 8px 22px -10px rgba(91,52,174,.7)}
.cga-pg-btn.is-sec{height:38px;padding:0 14px;border:1px solid var(--line2);background:#fff;color:var(--ink);font-size:13.5px}
.cga-pg-btn.is-sec:hover{border-color:var(--brass);color:var(--brass-d);box-shadow:none}
.cga-pjg{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;transition:opacity .15s}
.cga-pjg.is-busy{opacity:.55;pointer-events:none}
.cga-pjk{position:relative;min-width:0;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .2s,transform .2s}
.cga-pjk:hover{border-color:var(--line2);box-shadow:var(--sh);transform:translateY(-2px)}
.cga-pjk>a{display:flex;flex-direction:column;color:inherit;text-decoration:none;min-width:0}
.cga-pjk-cv{position:relative;display:grid;gap:2px;aspect-ratio:16/10;width:100%;background:var(--line);overflow:hidden}
.cga-pjk-cv>span{position:relative;min-width:0;min-height:0;overflow:hidden;background:#e7e5f4}
.cga-pjk-cv img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.cga-pjk:hover .cga-pjk-cv img{transform:scale(1.03)}
.cga-pjk-cv s{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(20,22,30,.6);color:#fff;text-decoration:none}
.cga-pjk-cv s svg{width:12px;height:12px;fill:currentColor;stroke:none;margin-left:1px}
.cga-pjk-cv.is-2{grid-template-columns:1fr 1fr}
.cga-pjk-cv.is-3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.cga-pjk-cv.is-3>span:first-child{grid-row:1/3}
.cga-pjk-cv.is-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.cga-pjk-cv.is-0{display:grid;place-items:center;background:linear-gradient(135deg,#efeaff,#fdeef6);color:#8b5cf6;background-origin:border-box}
.cga-pjk-cv.is-0 i{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:rgba(255,255,255,.75);box-shadow:0 10px 26px -14px rgba(91,52,174,.55)}
.cga-pjk-cv.is-0 svg{width:28px;height:28px}
.cga-pjk-b{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px 44px 14px 14px}
.cga-pjk-b b{display:flex;align-items:center;gap:5px;min-width:0;font-size:15px;font-weight:800;color:var(--ink);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjk-pin{display:inline-grid;place-items:center;flex:none;color:var(--brass)}
.cga-pjk-pin svg{width:14px;height:14px}
.cga-pjk-b em{font-style:normal;font-size:12.5px;line-height:1.4;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cga-pjk-b small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjk-m{position:absolute;right:8px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);transition:background .15s,color .15s}
.cga-pjk-m svg{width:18px;height:18px}
.cga-pjk-m:hover{background:var(--bg);color:var(--ink)}
.cga-pgr{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;margin:26px 0 0}
.cga-pgr button{min-width:38px;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink2);font-size:13.5px;font-weight:700;font-variant-numeric:tabular-nums;transition:border-color .15s,background .15s,color .15s}
.cga-pgr button:hover:not(:disabled){border-color:var(--brass);color:var(--brass-d)}
.cga-pgr button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.cga-pgr button:disabled{opacity:.35;cursor:default}
.cga-pgr button.is-ar{display:grid;place-items:center;padding:0}
.cga-pgr button.is-ar svg{width:17px;height:17px;transform:rotate(90deg)}
.cga-pgr button.is-ar.is-nx svg{transform:rotate(-90deg)}
.cga-pgr span{padding:0 4px;color:var(--faint)}
.cga-pgr-n{margin:10px 0 0;text-align:center;font-size:12.5px;color:var(--muted)}
.cga-pj-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:46px 18px;border:1.5px dashed var(--line2);border-radius:20px;background:var(--paper)}
.cga-pj-empty>i{display:grid;place-items:center;width:56px;height:56px;margin:0 0 6px;border-radius:17px;background:linear-gradient(135deg,#ede7ff,#fde7f3);color:#7c3aed;background-origin:border-box}
.cga-pj-empty>i svg{width:26px;height:26px}
.cga-pj-empty b{font-size:16px;color:var(--ink)}
.cga-pj-empty p{margin:0;max-width:52ch;font-size:13.5px;line-height:1.5;color:var(--muted)}
.cga-pj-empty>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.cga-pj-back{display:inline-flex;align-items:center;gap:4px;margin:0 0 14px -4px;padding:4px 8px 4px 4px;border-radius:9px;color:var(--muted);font-size:13px;font-weight:600;text-decoration:none}
.cga-pj-back svg{width:16px;height:16px;transform:rotate(90deg)}
.cga-pj-back:hover{background:var(--bg);color:var(--ink)}
.cga-pj-hd{display:flex;align-items:center;gap:18px;margin:0 0 18px;flex-wrap:wrap}
.cga-pjk-cv.is-hd{width:132px;flex:none;aspect-ratio:1;border-radius:20px;box-shadow:0 14px 34px -22px rgba(48,41,79,.6)}
.cga-pjk-cv.is-hd.is-0 i{width:52px;height:52px}
.cga-pj-ht{flex:1;min-width:220px}
.cga-pj-ht h2{margin:0 0 4px;font-family:var(--serif);font-weight:800;font-size:31px;line-height:1.08;letter-spacing:-.03em;overflow-wrap:anywhere}
.cga-pj-ht p{margin:0;color:var(--muted);font-size:13.5px}
.cga-pj-ha{display:flex;align-items:center;gap:6px;flex:none}
.cga-pj-mb{width:42px;height:42px;border:1px solid var(--line2);border-radius:12px;background:#fff}
.cga-pj-ins{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;margin:0 0 18px;padding:12px 16px;border:1px solid #ece6fb;border-radius:16px;background:linear-gradient(135deg,#fbf9ff,#fdf6fb);text-align:left;color:var(--ink2);background-origin:border-box;transition:border-color .15s}
.cga-pj-ins:hover{border-color:#d9cdf7}
.cga-pj-ins b{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;color:#6d28d9}
.cga-pj-ins b svg{width:15px;height:15px}
.cga-pj-ins span{font-size:13.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cga-pj-tb{display:flex;justify-content:flex-end;margin:-6px 0 12px}
.cga-pj-tip{margin:-8px 0 14px;font-size:13px;color:var(--muted)}
.cga-pjl{display:flex;flex-direction:column;gap:6px}
.cga-pjr{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:10px 10px 10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.cga-pjr:hover{border-color:var(--line2);box-shadow:0 8px 24px -18px rgba(48,41,79,.5)}
.cga-pjr-th{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:11px;overflow:hidden;background:var(--bg);color:var(--muted)}
.cga-pjr-th img{width:100%;height:100%;object-fit:cover;display:block}
.cga-pjr-th svg{width:19px;height:19px}
.cga-pjr-b{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.cga-pjr-b b{font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjr-b i{font-style:normal;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjr .cga-ci-m{opacity:1;color:var(--muted)}
.cga-pjr .cga-ci-m:hover{background:var(--bg);color:var(--ink)}
.cga-pj-mem{display:flex;flex-direction:column;gap:14px;max-width:760px}
.cga-pj-ta{display:block;width:100%;min-height:120px;padding:12px 14px;border:1px solid var(--line2);border-radius:13px;font:inherit;font-size:14px;line-height:1.5;color:var(--ink);background:#fff;outline:0;resize:vertical;box-sizing:border-box}
.cga-pj-ta:focus{border-color:var(--brass);box-shadow:0 0 0 4px rgba(128,79,237,.1)}
.cga-pj-ta-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.cga-pj-ta-f span{font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
.cga-pj-ta-f button{height:38px;padding:0 16px;border:0;border-radius:11px;background:var(--ink);color:#fff;font-size:13.5px;font-weight:700;transition:background .15s,opacity .15s}
.cga-pj-ta-f button:hover:not(:disabled){background:var(--brass-d)}
.cga-pj-ta-f button:disabled{opacity:.4;cursor:default}
.cga-pj-mem .cga-mem .cga-madd{margin:0 0 14px}
.cga-mem h4 a{color:var(--brass-d);text-decoration:none}
.cga-mem h4 a:hover{text-decoration:underline}
.cga-dlg-ck{display:flex;align-items:flex-start;gap:10px;margin:10px 20px 0;padding:10px 12px;border-radius:12px;background:var(--paper);font-size:13.5px;line-height:1.45;color:var(--ink2);cursor:pointer}
.cga-dlg-ck input{width:17px;height:17px;margin:1px 0 0;flex:none;accent-color:var(--err)}
.cga-pjp{width:min(480px,100%)}
.cga-pjp .cga-dlg-p{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjp-n{display:flex;gap:6px;margin:8px 20px 0}
.cga-pjp-n .cga-dlg-in{flex:1;width:auto;margin:0;height:42px;font-size:14px}
.cga-pjp-n button{display:inline-flex;align-items:center;gap:5px;height:42px;padding:0 14px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-size:13.5px;font-weight:700;white-space:nowrap}
.cga-pjp-n button svg{width:16px;height:16px}
.cga-pjp-n button:hover{background:var(--brass-d)}
.cga-pjp-q{margin:12px 20px 6px}
.cga-pjp-l{display:flex;flex-direction:column;gap:2px;min-height:120px;max-height:min(46vh,380px);overflow:auto;padding:4px 14px 4px}
.cga-pjp-i{display:flex;align-items:center;gap:11px;width:100%;min-width:0;padding:8px;border:0;border-radius:12px;background:transparent;text-align:left;color:var(--ink);cursor:pointer;transition:background .12s}
.cga-pjp-i:hover,.cga-pjp-i.is-on{background:var(--bg)}
.cga-pjp-i:disabled{cursor:default}
.cga-pjp-i>span:not(.cga-pjp-th){display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.cga-pjp-i b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjp-i i{font-style:normal;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-pjp-i>svg{width:17px;height:17px;flex:none;color:var(--faint)}
.cga-pjp-i.is-on>svg{color:var(--ok)}
.cga-pjp-th{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;overflow:hidden;background:linear-gradient(135deg,#efeaff,#fdeef6);color:#8b5cf6;background-origin:border-box}
.cga-pjp-th img{width:100%;height:100%;object-fit:cover;display:block}
.cga-pjp-th svg{width:18px;height:18px}
.cga-pja-ck{width:18px;height:18px;margin:0 4px 0 0;flex:none;accent-color:var(--brass)}
.cga-pjp-e{margin:18px 6px;text-align:center;font-size:13px;color:var(--muted)}
.cga-pjp-sp{height:14px}
.cga-pjp .cga-dlg-f{border-top:1px solid var(--line);margin-top:8px}
.cga-pjp .cga-dlg-f .cga-dlg-c{display:inline-flex;align-items:center;gap:6px}
.cga-pjp .cga-dlg-f .cga-dlg-c svg{width:15px;height:15px}
@media (max-width:640px){
  .cga-pjg{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cga-pjk{border-radius:15px}
  .cga-pjk-b{padding:10px 36px 12px 11px}
  .cga-pjk-b b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;font-size:14px;line-height:1.25}
  .cga-pjk-pin{display:inline-block;vertical-align:-2px;margin-right:3px}
  .cga-pjk-b em{display:none}
  .cga-pjk-m{right:4px;bottom:8px}
  .cga-pj-hd{gap:12px}
  .cga-pjk-cv.is-hd{width:84px;border-radius:16px}
  .cga-pj-ht h2{font-size:24px}
  .cga-pj-ha{width:100%}
  .cga-pj-ha .cga-pg-btn{flex:1}
  .cga-pg-h .cga-pg-btn{width:100%}
  .cga-pjc{padding:6px;max-width:none}
  .cga-pjc span{display:none}
  .cga-pjc svg{width:16px;height:16px}
  .cga-mdc{max-width:none}
  .cga-mdc-b span{display:none}
  .cga-mdc-b{padding:0 2px 0 3px}
}
@media (max-width:380px){.cga-pjg{grid-template-columns:minmax(0,1fr)}}
.cga-hero-pj{display:inline-flex;align-items:center;gap:8px;margin:14px 0 0;padding:8px 14px 8px 10px;border-radius:999px;background:var(--soft);color:var(--brass-d);font-size:13.5px;text-decoration:none;max-width:100%}
.cga-hero-pj svg{width:17px;height:17px;flex:none}
.cga-hero-pj span{min-width:0}
.cga-hero-pj:hover{background:#e2dafd}
/* 0.90: библиотека в чате проекта — «Проект / Все файлы» */
.cga-lib-sc .cga-pf{margin:0 0 10px;padding:3px;border-radius:12px;background:var(--bg);gap:2px;flex-wrap:nowrap}
.cga-lib-sc .cga-pf button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:9px;background:transparent;color:var(--muted)}
.cga-lib-sc .cga-pf button svg{width:14px;height:14px}
.cga-lib-sc .cga-pf button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(31,35,48,.08)}

/* ---------- 0.91: мозг агента, бесплатные сообщения, «Что дальше» ---------- */
.cga-mind-b span{max-width:170px;overflow:hidden;text-overflow:ellipsis}
.cga-mind-b.is-set{color:var(--brass-d)}
.cga-sheet.cga-mind{width:360px}
.cga-mind .cga-mrow span{white-space:normal}
.cga-mind-lv{padding:8px 8px 2px;border-top:1px solid var(--line);margin-top:6px}
.cga-meta-m{display:inline-flex;align-items:center;gap:4px;color:var(--brass-d);font-weight:600}
.cga-meta-m svg{width:14px;height:14px}
.cga-next{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fbfaff,#f6f3ff);max-width:620px}
.cga-next-h{display:flex;align-items:center;gap:7px;margin:0 2px 8px}
.cga-next-h svg{width:17px;height:17px;color:var(--brass)}
.cga-next-h b{font-size:13.5px;font-weight:700;color:var(--ink)}
.cga-next.is-wait{padding:10px 12px}
.cga-next.is-wait .cga-next-h{margin:0}
.cga-next-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cga-next-i{display:flex;align-items:flex-start;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;min-width:0;transition:border-color .15s,box-shadow .15s,transform .15s}
.cga-next-i:hover{border-color:var(--gold);box-shadow:0 4px 14px rgba(128,79,237,.12)}
.cga-next-i > i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--soft);color:var(--brass-d);flex:none}
.cga-next-i > i svg{width:17px;height:17px}
.cga-next-i > span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cga-next-i b{font-size:13px;font-weight:700;color:var(--ink);line-height:1.3}
.cga-next-i small{font-size:12px;color:var(--muted);line-height:1.35}
.cga-next-i > svg{width:16px;height:16px;color:var(--faint);margin-top:7px}
.cga-next-i:hover > svg{color:var(--brass)}
@media (max-width:760px){
  .cga-next-l{grid-template-columns:minmax(0,1fr)}
  .cga-mind-b.is-set span{display:inline;max-width:80px}
}
/* 0.91: анкета по шагам */
.cga-fm.is-steps{padding-top:14px}
.cga-fm-nav{margin:0 0 14px;display:flex;flex-direction:column;gap:9px}
.cga-fm-bar{height:4px;border-radius:4px;background:var(--soft);overflow:hidden}
.cga-fm-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--brass),var(--gold));transition:width .25s ease}
.cga-fm-nav ol{display:flex;gap:6px;margin:0;padding:0 0 2px;list-style:none;overflow-x:auto;scrollbar-width:none}
.cga-fm-nav ol::-webkit-scrollbar{display:none}
.cga-fm-nav li{flex:none}
.cga-fm-nav button{display:inline-flex;align-items:center;gap:7px;max-width:200px;padding:5px 11px 5px 5px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12.5px;font-weight:600;transition:border-color .15s,color .15s,background .15s}
.cga-fm-nav button em{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--bg);color:var(--ink2);font-style:normal;font-size:11.5px;font-weight:700;flex:none}
.cga-fm-nav button em svg{width:13px;height:13px}
.cga-fm-nav button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cga-fm-nav button:hover{border-color:var(--gold);color:var(--ink)}
.cga-fm-nav button.on{border-color:var(--brass);background:var(--soft);color:var(--ink)}
.cga-fm-nav button.on em{background:var(--brass);color:#fff}
.cga-fm-nav button.done em{background:#e6f6ec;color:#1f7a45}
.cga-fm-bk{height:42px;padding:0 16px;border:1px solid var(--line2);border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:700}
.cga-fm-bk:hover{border-color:var(--ink2)}
.cga-fm-go svg{width:17px;height:17px}
@media (max-width:760px){
  .cga-fm-nav button span{display:none}
  .cga-fm-nav button{padding:4px}
  .cga-fm-nav button.on span{display:inline;max-width:150px}
  .cga-fm-nav button.on{padding-right:10px}
}
/* 0.91: «Повтор видео» по своему ролику — герои описаны текстом */
.cga-cast.is-vid .cga-cast-face{height:52px;border-radius:50%;background:var(--soft);color:var(--brass-d)}
.cga-cast.is-vid .cga-cast-face em{font-style:normal;font-weight:800;font-size:17px}
.cga-cast-who small{display:block;margin:1px 0 2px;font-size:12.5px;line-height:1.35;color:var(--ink2);white-space:normal}
.cga-cast-lead{margin:2px 0 10px;font-size:13px;line-height:1.45;color:var(--ink2)}
.cga-cast-tips{margin:4px 0 10px;padding:9px 12px 9px 28px;border-radius:12px;background:var(--paper);font-size:12.5px;line-height:1.45;color:var(--ink2)}
.cga-cast-tips li+li{margin-top:2px}
.cga-cast-note{margin:2px 0 8px;font-size:12.5px;line-height:1.4;color:var(--muted)}
@media (max-width:760px){.cga-cast.is-vid .cga-cast-face{height:44px}}
@media (max-width:640px){
  .cga-cast.is-vid .cga-cast-r{grid-template-columns:30px minmax(0,1fr) 64px;grid-template-areas:"face title title" "desc desc slot" "meta meta slot";column-gap:10px;row-gap:4px;align-items:start;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
  .cga-cast.is-vid .cga-cast-who{display:contents}
  .cga-cast.is-vid .cga-cast-face{grid-area:face;width:30px;height:30px;align-self:center}
  .cga-cast.is-vid .cga-cast-face em{font-size:14px}
  .cga-cast.is-vid .cga-cast-who b{grid-area:title;align-self:center;white-space:normal;font-size:14px;line-height:1.25}
  .cga-cast.is-vid .cga-cast-who small{grid-area:desc;margin:2px 0 0;font-size:12.5px}
  .cga-cast.is-vid .cga-cast-who>span{grid-area:meta;align-self:end}
  .cga-cast.is-vid .cga-cast-to{display:none}
  .cga-cast.is-vid .cga-cast-slot{grid-area:slot;width:64px;height:64px;align-self:start;background:#fff}
  .cga-cast.is-vid .cga-cast-r:not(.has-d){grid-template-areas:"face title title" "meta meta slot"}
}
/* 0.91: треки — плеер в чате, текст песни */
.cga-mc.is-aud{max-width:560px}
.cga-aul{display:flex;flex-direction:column;gap:8px}
.cga-au{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 10px 8px 8px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--sh)}
.cga-au.is-on{border-color:var(--gold)}
.cga-au-cv{position:relative;display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,var(--brass),var(--gold));color:#fff}
.cga-au-cv img{width:100%;height:100%;object-fit:cover}
.cga-au-cv > i svg{width:26px;height:26px}
.cga-au-cv u{position:absolute;inset:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(17,19,28,.62);color:#fff;text-decoration:none;transition:transform .15s,background .15s}
.cga-au-cv u svg{width:16px;height:16px;fill:currentColor}
.cga-au-cv:hover u{transform:scale(1.08);background:rgba(17,19,28,.8)}
.cga-au-cv .cga-ring{position:absolute}
.cga-au-b{display:flex;flex-direction:column;gap:2px;min-width:0}
.cga-au-b b{font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-au-b > span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-au-b em{font-style:normal}
.cga-au-b small{font-size:11.5px;color:var(--faint);font-variant-numeric:tabular-nums}
.cga-au-bar{position:relative;height:6px;margin:5px 0 2px;border-radius:6px;background:var(--soft);cursor:pointer}
.cga-au-bar::before{content:"";position:absolute;inset:-6px 0}
.cga-au-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,var(--brass),var(--gold))}
.cga-au-a{display:flex;align-items:center;gap:2px}
.cga-au-a button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--ink2)}
.cga-au-a button:hover{background:var(--bg);color:var(--ink)}
.cga-au-a button svg{width:17px;height:17px}
.cga-au-ref{margin-right:4px;font-size:11.5px;font-weight:700;color:var(--muted)}
.cga-au.is-pend .cga-au-cv,.cga-au.is-fail .cga-au-cv{opacity:.85}
.cga-au.is-pend .cga-au-ref,.cga-au.is-fail .cga-au-ref{position:absolute;right:12px;top:10px}
.cga-au.is-fail b{color:#a33}
.cga-lb-au{display:flex;flex-direction:column;align-items:center;gap:10px;width:min(520px,92vw);max-height:100%;overflow:auto;padding:10px;color:#fff;text-align:center}
.cga-lb-au > img,.cga-lb-au > i{width:min(300px,60vw);aspect-ratio:1;border-radius:18px;object-fit:cover;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.cga-lb-au > i{display:grid;place-items:center;background:linear-gradient(135deg,#804fed,#c285fc)}
.cga-lb-au > i svg{width:64px;height:64px}
.cga-lb-au b{font-size:18px;font-weight:800}
.cga-lb-au > span{font-size:13px;opacity:.75}
.cga-lb-au audio{width:100%;max-width:460px}
.cga-lb-lyr{width:100%;margin:6px 0 0;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.08);font:inherit;font-size:13.5px;line-height:1.6;text-align:left;white-space:pre-wrap}
.cga-ly-t{font-family:inherit;line-height:1.55;min-height:180px}
.cga-ly-ch{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.cga-ly-ch button{padding:6px 12px;border:1px solid var(--line2);border-radius:999px;background:#fff;color:var(--ink);font-size:13px;font-weight:600}
.cga-ly-ch button.on{border-color:var(--brass);background:var(--soft)}
.cga-ly-ch button:disabled{opacity:.6;cursor:default}
.cga-fm-q label em{margin-left:6px;font-style:normal;font-weight:500;font-size:11.5px;color:var(--faint)}
@media (max-width:760px){
  .cga-au{grid-template-columns:52px minmax(0,1fr);gap:10px}
  .cga-au-cv{width:52px;height:52px}
  .cga-au-a{grid-column:1 / -1;justify-content:flex-end;margin-top:-4px}
}
.cga-tcat{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(135deg,var(--soft),#fff);color:var(--ink);text-align:left;cursor:pointer}
.cga-tcat:hover{border-color:var(--brass)}
.cga-tcat>svg{flex:none;width:20px;height:20px;color:var(--brass)}
.cga-tcat>svg:last-child{width:16px;height:16px;color:var(--muted);transform:rotate(-90deg)}
.cga-tcat span{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.3}
.cga-tcat b{font-size:13.5px}
.cga-tcat em{font-style:normal;font-size:12px;color:var(--muted)}

.cga-dkc{display:flex;align-items:center;gap:14px;max-width:560px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f6f2ff 100%);color:var(--ink);text-decoration:none;box-shadow:var(--sh);transition:border-color .15s,transform .15s}
.cga-dkc:hover{border-color:var(--gold);transform:translateY(-1px)}
.cga-dkc i{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--ink);color:var(--gold);flex:none}
.cga-dkc i svg{width:24px;height:24px}
.cga-dkc span{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.cga-dkc b{font-size:15px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cga-dkc em{font-style:normal;font-size:12.5px;color:var(--muted);line-height:1.35}
.cga-dkc u{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:13px;font-weight:700;color:var(--brass);white-space:nowrap}
.cga-dkc u svg{width:16px;height:16px}
.cga-dkc.is-vtl{max-width:600px}
.cga-dkc .cga-vtl-t{display:flex;flex-direction:row;gap:0;flex:none;min-width:0;padding-left:10px}
.cga-vtl-t img{width:40px;height:62px;margin-left:-10px;border-radius:10px;object-fit:cover;border:2px solid #fff;background:#1b1626;box-shadow:0 6px 14px -8px rgba(40,10,80,.55)}
.cga-vtl-t img:nth-child(odd){transform:rotate(-4deg)}
.cga-vtl-t img:nth-child(even){transform:rotate(4deg) translateY(2px)}
@media (max-width:560px){.cga-dkc{flex-wrap:wrap}.cga-dkc u{width:100%;justify-content:flex-end}}
.cga.is-dke .cga-page{overflow:hidden}
.cga-mind-web{padding:8px 12px 2px}
.cga-wtg{position:relative;display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--paper);cursor:pointer;transition:border-color .15s,background .15s}
.cga-wtg:hover{border-color:var(--line2)}
.cga-wtg input{position:absolute;left:0;top:0;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.cga-wtg>i{position:relative;flex:none;width:34px;height:20px;border-radius:999px;background:var(--line2);transition:background .18s}
.cga-wtg>i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(31,35,48,.3);transition:transform .18s}
.cga-wtg input:checked+i{background:var(--brass)}
.cga-wtg input:checked+i::after{transform:translateX(14px)}
.cga-wtg input:focus-visible+i{outline:2px solid var(--brass);outline-offset:2px}
.cga-wtg span{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.35}
.cga-wtg b{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700}
.cga-wtg b svg{width:15px;height:15px;color:var(--brass-d)}
.cga-wtg small{font-size:11.5px;color:var(--muted)}
.cga-wtg em{font-style:normal;font-size:12.5px;font-weight:700;color:var(--brass-d);white-space:nowrap;text-align:right}
.cga-wtg em small{display:block;font-size:10.5px;font-weight:500;color:var(--faint)}
.cga-wtg:has(input:checked){border-color:#d8d0f8;background:#fcfbff}
.cga-wsrc{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:8px 0 2px}
.cga-wsrc>span{display:inline-flex;align-items:center;gap:4px;margin-right:2px;font-size:11.5px;font-weight:700;color:var(--muted)}
.cga-wsrc>span svg{width:13px;height:13px}
.cga-wsrc a{max-width:190px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;background:var(--paper);font-size:11.5px;color:var(--ink2);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-wsrc a:hover{border-color:var(--brass);color:var(--brass-d)}
/* 0.97: «Видеореклама» и «Презентации» — ссылка раздела + раскрывающийся список последних роликов и презентаций */
.cga-nav-acc{display:flex;align-items:center;gap:2px;border-radius:10px}
.cga-nav-acc>a{flex:1;min-width:0}
.cga-nav-tg{display:inline-flex;align-items:center;gap:4px;flex:none;height:34px;padding:0 8px;border:0;border-radius:10px;background:transparent;color:var(--side-m);font:inherit;cursor:pointer}
.cga-nav-tg em{font-style:normal;font-size:11.5px;font-weight:600;color:var(--side-m)}
.cga-nav-tg:hover{background:var(--side2);color:var(--side-t)}
.cga-nav-tg[aria-expanded="true"] .cga-nav-chev{transform:rotate(180deg)}
.cga-nav-acc.has-cur>a svg{color:var(--gold)}
.cga-accl{margin:-4px 0 0}
.cga-accl.is-open{margin:-2px 0 4px}
.cga-accl .cga-pjs-f{justify-content:flex-start}
.cga-accl .cga-pjs-f a{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px dashed rgba(194,133,252,.35);border-radius:9px;color:var(--side-t)}
.cga-accl .cga-pjs-f a:hover,.cga-accl .cga-pjs-f a.is-on{background:var(--side2);border-color:rgba(194,133,252,.6)}
.cga-acc-busy{width:7px;height:7px;flex:none;border-radius:50%;background:var(--gold);animation:cga-acc-p 1.2s ease-in-out infinite}
@keyframes cga-acc-p{0%,100%{opacity:.35}50%{opacity:1}}
/* 0.99: «Память» — последним пунктом разделов, сразу под «Проектами» */
.cga-nav.cga-nav-mem{margin-top:-8px}
/* 0.99.1: «Дизайн» — заголовок страницы до загрузки скрипта (для поиска и первого экрана) */
.cga-dzseo{max-width:1180px;margin:0 auto;padding:32px 26px}
.cga-dzseo h1{margin:0 0 8px;font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-.03em}
.cga-dzseo p{margin:0;max-width:72ch;color:var(--mut,#6f7282);font-size:15px;line-height:1.5}
@media (max-width:900px){.cga-dzseo{padding:20px 16px}.cga-dzseo h1{font-size:26px}}

/* 1.0.9: картинка не загрузилась — заглушка вместо «битой» картинки */
.cga-page img.is-broken{opacity:0!important}
.cga-noimg{position:relative}
.cga-noimg::before{content:"";position:absolute;left:50%;top:50%;z-index:0;width:34px;height:34px;margin:-17px 0 0 -17px;background:currentColor;opacity:.28;color:#7c6fa8;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.7'/%3E%3Cpath d='M20.5 15.5l-4.5-4.5-8 8.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.7'/%3E%3Cpath d='M20.5 15.5l-4.5-4.5-8 8.5'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}

/* 1.1.2: срок хранения в разделах — строка-подсказка и метка на карточке */
.cga-keep-n{display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.cga-keep-n>svg{width:15px;height:15px;flex:none;color:var(--muted)}
.cga-keep-n button{flex:none;height:24px;padding:0 10px;border:0;border-radius:999px;background:rgba(122,70,242,.1);color:#6a3df0;font-size:12px;font-weight:700;cursor:pointer}
.cga-keep-n button:hover{background:rgba(122,70,242,.18)}
.cga-keep{position:absolute;z-index:3;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 16px);padding:4px 9px 4px 7px;border-radius:999px;font-style:normal;font-size:11.5px;font-weight:700;line-height:1.2;white-space:nowrap;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none}
.cga-keep svg{width:13px;height:13px;flex:none}
.cga-keep span{overflow:hidden;text-overflow:ellipsis}
.cga-keep.is-soon{background:rgba(255,244,214,.94);color:#8a5a00}
.cga-keep.is-gone{background:rgba(31,35,48,.78);color:#fff}
.is-kgone img,.is-kgone video{filter:grayscale(1) blur(2px);opacity:.45}

/* 1.1.12: шапки разделов — коротко и компактно.
   1.1.14: пиксельный эффект — фон самой страницы раздела (.cga-page.is-hxp, класс ставит agent.js): второй слой после фона страницы,
   под всеми элементами (z-index:-1 в изоляции страницы), во всю ширину до края окна и от верха страницы; при смене вкладок не перерисовывается.
   ::before — пиксели свисают с верхней кромки + облако справа; ::after — падающие пиксели справа. */
.cga-hx{position:relative}
.cga-hx-fx{display:none}
.cga-page.is-hxp{position:relative;isolation:isolate}
/* корни модулей (Графика, Видео, Презентации, Реклама, Клипы) красили фон страницы сами — их цвет теперь у страницы, иначе слой пикселей под ними не виден */
.cga-page.is-hxp>.dz,.cga-page.is-hxp>.vd,.cga-page.is-hxp>.dk,.cga-page.is-hxp>.va,.cga-page.is-hxp>.cl,.cga-page.is-hxp>.mu,.cga-page.is-hxp>.cga-pg{background-color:transparent}
.cga-page.is-hxp::before,.cga-page.is-hxp::after{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;height:200px;pointer-events:none;background:linear-gradient(100deg,#6d3ff0 0%,#8f5cf7 24%,#c285fc 46%,#e052c0 72%,#f2a07b 100%) 0 0/160% 100% no-repeat;will-change:transform;animation:cga-hx-in .35s ease-out}
.cga-page.is-hxp::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 17' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M0 0h1v1h-1zM3 0h1v1h-1zM3 1h1v1h-1zM4 2h1v1h-1zM5 0h1v1h-1zM6 0h1v1h-1zM9 0h1v1h-1zM11 0h1v1h-1zM11 1h1v1h-1zM19 0h1v1h-1zM20 1h1v1h-1zM29 0h1v1h-1zM37 11h1v1h-1zM41 0h1v1h-1zM43 13h1v1h-1zM44 8h1v1h-1zM46 0h1v1h-1zM51 3h1v1h-1zM53 1h1v1h-1zM53 15h1v1h-1zM54 0h1v1h-1zM59 8h1v1h-1zM60 0h1v1h-1zM61 3h1v1h-1zM61 5h1v1h-1zM61 9h1v1h-1zM61 10h1v1h-1zM62 2h1v1h-1zM63 4h1v1h-1zM64 0h1v1h-1zM64 1h1v1h-1zM64 4h1v1h-1zM65 11h1v1h-1zM66 3h1v1h-1zM66 4h1v1h-1zM67 3h1v1h-1zM67 12h1v1h-1zM69 12h1v1h-1zM70 7h1v1h-1zM71 7h1v1h-1zM72 1h1v1h-1zM72 7h1v1h-1zM73 3h1v1h-1zM73 4h1v1h-1zM74 2h1v1h-1zM74 3h1v1h-1zM74 7h1v1h-1zM74 11h1v1h-1zM75 1h1v1h-1zM75 3h1v1h-1zM76 5h1v1h-1zM76 7h1v1h-1zM77 8h1v1h-1zM78 2h1v1h-1zM78 4h1v1h-1zM79 1h1v1h-1zM80 9h1v1h-1zM80 13h1v1h-1zM81 6h1v1h-1zM82 3h1v1h-1zM82 4h1v1h-1zM82 10h1v1h-1zM83 1h1v1h-1zM84 4h1v1h-1zM85 4h1v1h-1zM86 3h1v1h-1zM87 8h1v1h-1zM87 10h1v1h-1zM89 6h1v1h-1zM90 14h1v1h-1zM91 1h1v1h-1zM91 3h1v1h-1zM91 9h1v1h-1zM91 10h1v1h-1zM93 4h1v1h-1zM93 7h1v1h-1zM95 4h1v1h-1zM95 5h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M4 0h1v1h-1zM10 0h1v1h-1zM11 2h1v1h-1zM13 1h1v1h-1zM16 1h1v1h-1zM28 1h1v1h-1zM31 0h1v1h-1zM33 1h1v1h-1zM35 0h1v1h-1zM35 1h1v1h-1zM36 0h1v1h-1zM37 8h1v1h-1zM38 5h1v1h-1zM38 6h1v1h-1zM39 0h1v1h-1zM43 10h1v1h-1zM47 5h1v1h-1zM50 0h1v1h-1zM52 12h1v1h-1zM53 10h1v1h-1zM56 6h1v1h-1zM56 14h1v1h-1zM60 1h1v1h-1zM64 5h1v1h-1zM66 1h1v1h-1zM66 2h1v1h-1zM68 10h1v1h-1zM69 1h1v1h-1zM69 7h1v1h-1zM70 0h1v1h-1zM71 3h1v1h-1zM72 5h1v1h-1zM73 10h1v1h-1zM74 0h1v1h-1zM74 1h1v1h-1zM74 4h1v1h-1zM74 5h1v1h-1zM75 4h1v1h-1zM75 8h1v1h-1zM75 11h1v1h-1zM76 1h1v1h-1zM77 11h1v1h-1zM77 13h1v1h-1zM78 5h1v1h-1zM79 5h1v1h-1zM80 6h1v1h-1zM81 3h1v1h-1zM81 4h1v1h-1zM82 1h1v1h-1zM82 9h1v1h-1zM83 5h1v1h-1zM83 6h1v1h-1zM83 9h1v1h-1zM84 1h1v1h-1zM84 3h1v1h-1zM84 12h1v1h-1zM85 0h1v1h-1zM85 1h1v1h-1zM85 2h1v1h-1zM85 3h1v1h-1zM86 1h1v1h-1zM86 2h1v1h-1zM86 4h1v1h-1zM86 6h1v1h-1zM86 7h1v1h-1zM86 8h1v1h-1zM86 12h1v1h-1zM87 7h1v1h-1zM88 0h1v1h-1zM88 1h1v1h-1zM89 2h1v1h-1zM89 4h1v1h-1zM89 7h1v1h-1zM89 12h1v1h-1zM90 2h1v1h-1zM90 3h1v1h-1zM90 4h1v1h-1zM90 5h1v1h-1zM90 10h1v1h-1zM91 0h1v1h-1zM91 7h1v1h-1zM92 6h1v1h-1zM92 13h1v1h-1zM93 0h1v1h-1zM93 1h1v1h-1zM93 2h1v1h-1zM93 3h1v1h-1zM93 6h1v1h-1zM93 8h1v1h-1zM94 0h1v1h-1zM94 2h1v1h-1zM94 8h1v1h-1zM94 11h1v1h-1zM95 1h1v1h-1zM95 2h1v1h-1z'/%3E%3Cpath d='M26 0h1v1h-1zM27 1h1v1h-1zM45 0h1v1h-1zM54 6h1v1h-1zM57 0h1v1h-1zM57 2h1v1h-1zM58 0h1v1h-1zM59 10h1v1h-1zM63 0h1v1h-1zM67 2h1v1h-1zM69 2h1v1h-1zM73 2h1v1h-1zM76 2h1v1h-1zM78 0h1v1h-1zM79 0h1v1h-1zM80 4h1v1h-1zM83 0h1v1h-1zM83 2h1v1h-1zM85 7h1v1h-1zM86 0h1v1h-1zM87 2h1v1h-1zM88 3h1v1h-1zM88 11h1v1h-1zM89 0h1v1h-1zM89 8h1v1h-1zM89 13h1v1h-1zM90 0h1v1h-1zM90 1h1v1h-1zM91 2h1v1h-1zM91 5h1v1h-1zM92 0h1v1h-1zM92 2h1v1h-1zM93 5h1v1h-1zM94 5h1v1h-1zM94 13h1v1h-1zM94 14h1v1h-1zM95 0h1v1h-1zM95 3h1v1h-1zM95 6h1v1h-1zM95 9h1v1h-1zM95 13h1v1h-1z'/%3E%3C/svg%3E") right top/auto 170px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 3' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M2 0h1v1h-1zM4 1h1v1h-1zM11 0h1v1h-1zM15 0h1v1h-1zM18 0h1v1h-1zM20 0h1v1h-1zM23 0h1v1h-1zM26 0h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M0 0h1v1h-1zM1 0h1v1h-1zM3 0h1v1h-1zM6 0h1v1h-1zM9 1h1v1h-1zM10 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM17 0h1v1h-1zM19 0h1v1h-1zM19 1h1v1h-1zM21 2h1v1h-1zM23 1h1v1h-1z'/%3E%3C/svg%3E") right top/320px 30px repeat-x;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 17' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M0 0h1v1h-1zM3 0h1v1h-1zM3 1h1v1h-1zM4 2h1v1h-1zM5 0h1v1h-1zM6 0h1v1h-1zM9 0h1v1h-1zM11 0h1v1h-1zM11 1h1v1h-1zM19 0h1v1h-1zM20 1h1v1h-1zM29 0h1v1h-1zM37 11h1v1h-1zM41 0h1v1h-1zM43 13h1v1h-1zM44 8h1v1h-1zM46 0h1v1h-1zM51 3h1v1h-1zM53 1h1v1h-1zM53 15h1v1h-1zM54 0h1v1h-1zM59 8h1v1h-1zM60 0h1v1h-1zM61 3h1v1h-1zM61 5h1v1h-1zM61 9h1v1h-1zM61 10h1v1h-1zM62 2h1v1h-1zM63 4h1v1h-1zM64 0h1v1h-1zM64 1h1v1h-1zM64 4h1v1h-1zM65 11h1v1h-1zM66 3h1v1h-1zM66 4h1v1h-1zM67 3h1v1h-1zM67 12h1v1h-1zM69 12h1v1h-1zM70 7h1v1h-1zM71 7h1v1h-1zM72 1h1v1h-1zM72 7h1v1h-1zM73 3h1v1h-1zM73 4h1v1h-1zM74 2h1v1h-1zM74 3h1v1h-1zM74 7h1v1h-1zM74 11h1v1h-1zM75 1h1v1h-1zM75 3h1v1h-1zM76 5h1v1h-1zM76 7h1v1h-1zM77 8h1v1h-1zM78 2h1v1h-1zM78 4h1v1h-1zM79 1h1v1h-1zM80 9h1v1h-1zM80 13h1v1h-1zM81 6h1v1h-1zM82 3h1v1h-1zM82 4h1v1h-1zM82 10h1v1h-1zM83 1h1v1h-1zM84 4h1v1h-1zM85 4h1v1h-1zM86 3h1v1h-1zM87 8h1v1h-1zM87 10h1v1h-1zM89 6h1v1h-1zM90 14h1v1h-1zM91 1h1v1h-1zM91 3h1v1h-1zM91 9h1v1h-1zM91 10h1v1h-1zM93 4h1v1h-1zM93 7h1v1h-1zM95 4h1v1h-1zM95 5h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M4 0h1v1h-1zM10 0h1v1h-1zM11 2h1v1h-1zM13 1h1v1h-1zM16 1h1v1h-1zM28 1h1v1h-1zM31 0h1v1h-1zM33 1h1v1h-1zM35 0h1v1h-1zM35 1h1v1h-1zM36 0h1v1h-1zM37 8h1v1h-1zM38 5h1v1h-1zM38 6h1v1h-1zM39 0h1v1h-1zM43 10h1v1h-1zM47 5h1v1h-1zM50 0h1v1h-1zM52 12h1v1h-1zM53 10h1v1h-1zM56 6h1v1h-1zM56 14h1v1h-1zM60 1h1v1h-1zM64 5h1v1h-1zM66 1h1v1h-1zM66 2h1v1h-1zM68 10h1v1h-1zM69 1h1v1h-1zM69 7h1v1h-1zM70 0h1v1h-1zM71 3h1v1h-1zM72 5h1v1h-1zM73 10h1v1h-1zM74 0h1v1h-1zM74 1h1v1h-1zM74 4h1v1h-1zM74 5h1v1h-1zM75 4h1v1h-1zM75 8h1v1h-1zM75 11h1v1h-1zM76 1h1v1h-1zM77 11h1v1h-1zM77 13h1v1h-1zM78 5h1v1h-1zM79 5h1v1h-1zM80 6h1v1h-1zM81 3h1v1h-1zM81 4h1v1h-1zM82 1h1v1h-1zM82 9h1v1h-1zM83 5h1v1h-1zM83 6h1v1h-1zM83 9h1v1h-1zM84 1h1v1h-1zM84 3h1v1h-1zM84 12h1v1h-1zM85 0h1v1h-1zM85 1h1v1h-1zM85 2h1v1h-1zM85 3h1v1h-1zM86 1h1v1h-1zM86 2h1v1h-1zM86 4h1v1h-1zM86 6h1v1h-1zM86 7h1v1h-1zM86 8h1v1h-1zM86 12h1v1h-1zM87 7h1v1h-1zM88 0h1v1h-1zM88 1h1v1h-1zM89 2h1v1h-1zM89 4h1v1h-1zM89 7h1v1h-1zM89 12h1v1h-1zM90 2h1v1h-1zM90 3h1v1h-1zM90 4h1v1h-1zM90 5h1v1h-1zM90 10h1v1h-1zM91 0h1v1h-1zM91 7h1v1h-1zM92 6h1v1h-1zM92 13h1v1h-1zM93 0h1v1h-1zM93 1h1v1h-1zM93 2h1v1h-1zM93 3h1v1h-1zM93 6h1v1h-1zM93 8h1v1h-1zM94 0h1v1h-1zM94 2h1v1h-1zM94 8h1v1h-1zM94 11h1v1h-1zM95 1h1v1h-1zM95 2h1v1h-1z'/%3E%3Cpath d='M26 0h1v1h-1zM27 1h1v1h-1zM45 0h1v1h-1zM54 6h1v1h-1zM57 0h1v1h-1zM57 2h1v1h-1zM58 0h1v1h-1zM59 10h1v1h-1zM63 0h1v1h-1zM67 2h1v1h-1zM69 2h1v1h-1zM73 2h1v1h-1zM76 2h1v1h-1zM78 0h1v1h-1zM79 0h1v1h-1zM80 4h1v1h-1zM83 0h1v1h-1zM83 2h1v1h-1zM85 7h1v1h-1zM86 0h1v1h-1zM87 2h1v1h-1zM88 3h1v1h-1zM88 11h1v1h-1zM89 0h1v1h-1zM89 8h1v1h-1zM89 13h1v1h-1zM90 0h1v1h-1zM90 1h1v1h-1zM91 2h1v1h-1zM91 5h1v1h-1zM92 0h1v1h-1zM92 2h1v1h-1zM93 5h1v1h-1zM94 5h1v1h-1zM94 13h1v1h-1zM94 14h1v1h-1zM95 0h1v1h-1zM95 3h1v1h-1zM95 6h1v1h-1zM95 9h1v1h-1zM95 13h1v1h-1z'/%3E%3C/svg%3E") right top/auto 170px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 3' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M2 0h1v1h-1zM4 1h1v1h-1zM11 0h1v1h-1zM15 0h1v1h-1zM18 0h1v1h-1zM20 0h1v1h-1zM23 0h1v1h-1zM26 0h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M0 0h1v1h-1zM1 0h1v1h-1zM3 0h1v1h-1zM6 0h1v1h-1zM9 1h1v1h-1zM10 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM17 0h1v1h-1zM19 0h1v1h-1zM19 1h1v1h-1zM21 2h1v1h-1zM23 1h1v1h-1z'/%3E%3C/svg%3E") right top/320px 30px repeat-x}
.cga-page.is-hxp::after{opacity:.75;-webkit-mask-image:linear-gradient(#000 0,#000 15%,transparent 85%),linear-gradient(90deg,transparent 45%,rgba(0,0,0,.6) 70%,#000 95%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M10 6h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M10 5h1v1h-1z'/%3E%3Cpath d='M3 11h1v1h-1zM10 4h1v1h-1z'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 48' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M14 34h1v1h-1z'/%3E%3Cpath d='M14 32h1v1h-1zM14 35h1v1h-1z'/%3E%3C/svg%3E");mask-image:linear-gradient(#000 0,#000 15%,transparent 85%),linear-gradient(90deg,transparent 45%,rgba(0,0,0,.6) 70%,#000 95%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M10 6h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M10 5h1v1h-1z'/%3E%3Cpath d='M3 11h1v1h-1zM10 4h1v1h-1z'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 48' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M14 34h1v1h-1z'/%3E%3Cpath d='M14 32h1v1h-1zM14 35h1v1h-1z'/%3E%3C/svg%3E");-webkit-mask-size:100% 100%,100% 100%,160px 240px,200px 480px;mask-size:100% 100%,100% 100%,160px 240px,200px 480px;-webkit-mask-repeat:no-repeat,no-repeat,repeat,repeat;mask-repeat:no-repeat,no-repeat,repeat,repeat;-webkit-mask-position:0 0,0 0,0 0,40px 0;mask-position:0 0,0 0,0 0,40px 0;-webkit-mask-composite:source-in,source-in,source-over,source-over;mask-composite:intersect,intersect,add,add;animation:cga-hx-in .35s ease-out}
@keyframes cga-hx-in{from{opacity:0}}
.cga-hx.cga-hx h1,.cga-hx.cga-hx h2{margin:0 0 4px;max-width:none;font-size:30px;font-weight:800;line-height:1.1;letter-spacing:-.03em}
.cga-hx.cga-hx p{margin:0;max-width:62ch;font-size:14.5px;line-height:1.45}
@media (max-width:760px){
  .cga-page.is-hxp::before,.cga-page.is-hxp::after{height:96px}
  .cga-page.is-hxp::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M0 0h1v1h-1zM1 0h1v1h-1zM2 0h1v1h-1zM13 0h1v1h-1zM19 0h1v1h-1zM22 1h1v1h-1zM24 0h1v1h-1zM27 0h1v1h-1zM32 0h1v1h-1zM33 0h1v1h-1zM44 0h1v1h-1zM45 0h1v1h-1zM47 0h1v1h-1zM48 0h1v1h-1zM48 1h1v1h-1zM49 0h1v1h-1zM52 4h1v1h-1zM53 0h1v1h-1zM53 7h1v1h-1zM54 0h1v1h-1zM55 9h1v1h-1zM57 3h1v1h-1zM58 0h1v1h-1zM58 8h1v1h-1zM59 2h1v1h-1zM59 6h1v1h-1zM62 0h1v1h-1zM64 7h1v1h-1zM67 0h1v1h-1zM68 0h1v1h-1zM68 6h1v1h-1zM69 0h1v1h-1zM69 1h1v1h-1zM70 6h1v1h-1zM71 6h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M4 0h1v1h-1zM22 0h1v1h-1zM33 1h1v1h-1zM38 0h1v1h-1zM45 3h1v1h-1zM51 1h1v1h-1zM51 2h1v1h-1zM55 0h1v1h-1zM56 3h1v1h-1zM59 0h1v1h-1zM60 0h1v1h-1zM60 2h1v1h-1zM61 4h1v1h-1zM62 2h1v1h-1zM62 6h1v1h-1zM66 1h1v1h-1zM66 3h1v1h-1zM67 3h1v1h-1zM69 2h1v1h-1zM69 4h1v1h-1zM70 3h1v1h-1zM70 4h1v1h-1zM71 1h1v1h-1z'/%3E%3Cpath d='M64 0h1v1h-1zM64 2h1v1h-1zM67 1h1v1h-1zM67 2h1v1h-1zM68 3h1v1h-1zM69 5h1v1h-1zM70 0h1v1h-1zM70 1h1v1h-1zM70 2h1v1h-1zM71 0h1v1h-1z'/%3E%3C/svg%3E") right top/auto 60px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 2' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M6 1h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M2 1h1v1h-1zM16 0h1v1h-1zM20 0h1v1h-1z'/%3E%3C/svg%3E") right top/144px 12px repeat-x;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M0 0h1v1h-1zM1 0h1v1h-1zM2 0h1v1h-1zM13 0h1v1h-1zM19 0h1v1h-1zM22 1h1v1h-1zM24 0h1v1h-1zM27 0h1v1h-1zM32 0h1v1h-1zM33 0h1v1h-1zM44 0h1v1h-1zM45 0h1v1h-1zM47 0h1v1h-1zM48 0h1v1h-1zM48 1h1v1h-1zM49 0h1v1h-1zM52 4h1v1h-1zM53 0h1v1h-1zM53 7h1v1h-1zM54 0h1v1h-1zM55 9h1v1h-1zM57 3h1v1h-1zM58 0h1v1h-1zM58 8h1v1h-1zM59 2h1v1h-1zM59 6h1v1h-1zM62 0h1v1h-1zM64 7h1v1h-1zM67 0h1v1h-1zM68 0h1v1h-1zM68 6h1v1h-1zM69 0h1v1h-1zM69 1h1v1h-1zM70 6h1v1h-1zM71 6h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M4 0h1v1h-1zM22 0h1v1h-1zM33 1h1v1h-1zM38 0h1v1h-1zM45 3h1v1h-1zM51 1h1v1h-1zM51 2h1v1h-1zM55 0h1v1h-1zM56 3h1v1h-1zM59 0h1v1h-1zM60 0h1v1h-1zM60 2h1v1h-1zM61 4h1v1h-1zM62 2h1v1h-1zM62 6h1v1h-1zM66 1h1v1h-1zM66 3h1v1h-1zM67 3h1v1h-1zM69 2h1v1h-1zM69 4h1v1h-1zM70 3h1v1h-1zM70 4h1v1h-1zM71 1h1v1h-1z'/%3E%3Cpath d='M64 0h1v1h-1zM64 2h1v1h-1zM67 1h1v1h-1zM67 2h1v1h-1zM68 3h1v1h-1zM69 5h1v1h-1zM70 0h1v1h-1zM70 1h1v1h-1zM70 2h1v1h-1zM71 0h1v1h-1z'/%3E%3C/svg%3E") right top/auto 60px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 2' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='0.32' d='M6 1h1v1h-1z'/%3E%3Cpath fill-opacity='0.6' d='M2 1h1v1h-1zM16 0h1v1h-1zM20 0h1v1h-1z'/%3E%3C/svg%3E") right top/144px 12px repeat-x;opacity:.85}
  .cga-page.is-hxp::after{opacity:.45;-webkit-mask-size:100% 100%,100% 100%,112px 168px,140px 336px;mask-size:100% 100%,100% 100%,112px 168px,140px 336px;-webkit-mask-position:0 0,0 0,0 0,28px 0;mask-position:0 0,0 0,0 0,28px 0;animation:cga-hx-in .35s ease-out}
  .cga-hx.cga-hx h1,.cga-hx.cga-hx h2{font-size:24px}
  .cga-hx.cga-hx p{font-size:13.5px}
}
@media (prefers-reduced-motion:reduce){.cga-page.is-hxp::before,.cga-page.is-hxp::after{animation:none}}

/* 1.1.12: одна кнопка удаления на карточках «Всей истории» Графики, «Всех видео» и клипов — маленький круг с простой корзиной */
.cga-delb.cga-delb{position:absolute;top:7px;right:7px;z-index:3;display:grid;place-items:center;width:26px;height:26px;padding:0;border-radius:50%;background:rgba(16,14,24,.48);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transform:scale(.9);transition:opacity .15s,transform .15s,background .15s;cursor:pointer}
.cga-delb.cga-delb svg{width:13px;height:13px;stroke-width:1.9}
:hover>*>.cga-delb.cga-delb,:focus-within>*>.cga-delb.cga-delb,.cga-delb.cga-delb:focus-visible{opacity:1;transform:none}
.cga-delb.cga-delb:hover{background:#c2324f}
@media (hover:none){.cga-delb.cga-delb{opacity:1;transform:none}}

.cga-qwin{place-items:start center;padding-top:min(14vh,120px)}
.cga-qwin-b{width:min(600px,100%);max-height:min(620px,calc(100dvh - 140px));overflow:hidden}
.cga-qwin-h{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 18px;border-bottom:1px solid var(--line)}
.cga-qwin-h>svg{width:20px;height:20px;color:var(--muted)}
.cga-qwin-h input{flex:1;min-width:0;height:36px;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;font-weight:500}
.cga-qwin-h input::placeholder{color:var(--faint)}
.cga-qwin-h input::-webkit-search-cancel-button{display:none}
.cga-qwin-l{flex:1;min-height:0;overflow-y:auto;padding:6px 8px 8px}
.cga-qwin-g{padding:10px 10px 6px;font-size:12px;font-weight:700;color:var(--faint);letter-spacing:.02em;text-transform:uppercase}
.cga-qwin-g:empty{display:none}
.cga-qwin-e{display:flex;justify-content:center;padding:28px 16px;color:var(--muted);font-size:14px;text-align:center}
.cga-qi{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;color:var(--ink);text-decoration:none;scroll-margin:8px}
.cga-qi.is-act{background:var(--soft)}
.cga-qi-th{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;background:var(--bg);overflow:hidden;color:var(--muted)}
.cga-qi-th img{width:100%;height:100%;object-fit:cover;display:block}
.cga-qi-th svg{width:18px;height:18px}
.cga-qi-b{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.cga-qi-b b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-qi-b i{font-style:normal;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cga-qi-go{display:grid;place-items:center;width:28px;height:28px;flex:none;color:var(--brass);opacity:0;transition:opacity .12s}
.cga-qi-go svg{width:17px;height:17px}
.cga-qi.is-act .cga-qi-go{opacity:1}
.cga-qwin-f{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 18px;border-top:1px solid var(--line);color:var(--faint);font-size:12px}
.cga-qwin-f span{display:inline-flex;align-items:center;gap:4px}
.cga-qwin-f kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:1px solid var(--line2);border-radius:6px;background:var(--paper);color:var(--ink2);font:600 11px/1 'Inter',system-ui,sans-serif}
@media (max-width:900px){.cga-qwin{place-items:start center;padding:10px}.cga-qwin-b{max-height:calc(100dvh - 20px)}.cga-qwin-f{display:none}}

.cga-ctx{display:grid;place-items:center;width:34px;height:34px;padding:0;margin-right:2px;border:0;border-radius:11px;background:transparent;color:var(--brass);flex:none;--p:.04;transition:background .15s}
.cga-ctx:hover,.cga-ctx.on{background:rgba(31,35,48,.06)}
.cga-ctx svg{width:20px;height:20px;transform:rotate(-90deg);stroke-width:2.6;stroke-linecap:round}
.cga-ctx .b{stroke:var(--line2);opacity:.8}
.cga-ctx .f{stroke:currentColor;stroke-dasharray:47.124;stroke-dashoffset:calc(47.124px * (1 - var(--p)));transition:stroke-dashoffset .5s ease,stroke .2s}
.cga-ctx.is-warn{color:#c27a12}
.cga-ctx.is-hot{color:#d0342c}
.cga-sheet.cga-ctxp{left:auto;right:22px;width:330px;max-width:calc(100% - 20px);margin:0;padding:8px;border-radius:16px;overflow:hidden}
.cga-ctxp-b{padding:2px 8px 6px}
.cga-ctxp-bar{height:8px;border-radius:99px;background:var(--soft);overflow:hidden}
.cga-ctxp-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brass),var(--gold));transition:width .4s ease}
.cga-ctxp-bar.is-warn i{background:linear-gradient(90deg,#e0a03a,#c27a12)}
.cga-ctxp-bar.is-hot i{background:linear-gradient(90deg,#ef6b4a,#d0342c)}
.cga-ctxp-n{display:flex;align-items:baseline;gap:8px;margin:8px 0 4px;color:var(--muted);font-size:12.5px}
.cga-ctxp-n b{font-size:20px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.cga-ctxp-l{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.cga-ctxp-l li{display:flex;gap:9px;align-items:flex-start;color:var(--ink2);font-size:12.5px;line-height:1.4}
.cga-ctxp-l svg{width:16px;height:16px;margin-top:1px;color:var(--brass)}
.cga-ctxp-w{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:10px;border-radius:12px;background:#fff6ec;color:#7a4a08;font-size:12.5px;line-height:1.4}
.cga-ctxp-w button{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:9px;background:var(--ink);color:#fff;font-size:12.5px;font-weight:700}
.cga-ctxp-w button svg{width:15px;height:15px}
@media (max-width:760px){.cga-sheet.cga-ctxp{left:10px;right:10px;width:auto}}

.cga-auart{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:radial-gradient(120% 90% at 18% 12%,rgba(255,255,255,.28),transparent 55%),linear-gradient(140deg,var(--a1),var(--a2));color:#fff}
.cga-auart svg:first-child{position:absolute;left:8%;right:8%;bottom:16%;width:84%;height:40%;fill:rgba(255,255,255,.55);stroke:none}
.cga-auart > svg:not(:first-child){position:relative;width:30%;height:30%;max-width:42px;max-height:42px;margin-bottom:22%;stroke:#fff;filter:drop-shadow(0 4px 10px rgba(0,0,0,.18))}
.cga-auart em{position:absolute;right:9%;top:8%;font-style:normal;font-weight:800;font-size:clamp(12px,22%,40px);line-height:1;opacity:.85;letter-spacing:-.02em}
.cga-pi .cga-auart,.cga-lc-i .cga-auart{border-radius:inherit}
.cga-au-cv .cga-auart.is-sm{border-radius:inherit}
.cga-au-cv .cga-auart.is-sm svg:first-child{display:none}
.cga-au-cv .cga-auart.is-sm > svg:not(:first-child){width:46%;height:46%;margin:0}
.cga-au-cv .cga-auart.is-sm em{display:none}
.cga-lb-au > .cga-auart.is-big{position:relative;inset:auto;width:min(300px,60vw);aspect-ratio:1;border-radius:22px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.cga-lb-au > .cga-auart.is-big > svg:not(:first-child){width:64px;height:64px;max-width:none;max-height:none}
.cga-lb-au > .cga-auart.is-big em{font-size:54px}
.cga-lbp{display:flex;align-items:center;gap:8px;width:100%;max-width:480px;margin-top:6px;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.cga-lbp button{display:grid;place-items:center;flex:none;border:0;color:#fff;background:transparent;padding:0}
.cga-lbp-pp{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#804fed,#c285fc)!important;box-shadow:0 8px 22px -8px rgba(128,79,237,.9);transition:transform .15s}
.cga-lbp-pp:hover{transform:scale(1.05)}
.cga-lbp-pp svg{width:22px;height:22px;stroke-width:2.4}
.cga-lbp.is-on .cga-lbp-pp svg{stroke-width:3}
.cga-lbp-sk{width:34px;height:34px;border-radius:10px;font-size:11.5px;font-weight:700;opacity:.8}
.cga-lbp-sk:hover,.cga-lbp-v:hover{background:rgba(255,255,255,.12)!important;opacity:1}
.cga-lbp-v{width:36px;height:36px;border-radius:10px;opacity:.85}
.cga-lbp-v svg{width:20px;height:20px}
.cga-lbp-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding:0 4px}
.cga-lbp-bar{position:relative;height:6px;border-radius:99px;background:rgba(255,255,255,.18);cursor:pointer;touch-action:none}
.cga-lbp-bar::before{content:"";position:absolute;inset:-9px 0}
.cga-lbp-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:inherit;background:linear-gradient(90deg,#c285fc,#fff)}
.cga-lbp-bar b{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.35);transition:transform .15s}
.cga-lbp-bar:hover b{transform:scale(1.2)}
.cga-lbp-t{display:flex;justify-content:space-between;font-size:11.5px;font-variant-numeric:tabular-nums;opacity:.75}
@media (max-width:560px){.cga-lbp{gap:4px;padding:8px}.cga-lbp-sk{width:30px}.cga-lbp-v{width:32px}}
.cga-auart em{display:none}
.cga-auart.is-big em{display:block}
.cga-lb-strip button{position:relative}
.cga-lb-strip .cga-auart.is-sm svg:first-child,.cga-lb-strip .cga-auart.is-sm em{display:none}
.cga-lb-strip .cga-auart.is-sm > svg:not(:first-child){width:50%;height:50%;margin:0}
.cga-auart.is-3d > svg:not(:first-child),.cga-auart.is-3d svg{position:relative;inset:auto;width:34%;height:34%;max-width:64px;max-height:64px;margin:0;fill:rgba(255,255,255,.14);stroke:#fff;stroke-width:1.4;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25))}
.cga-t .cga-auart{border-radius:inherit}
.cga-t-play.is-3d span{width:48px;height:48px;background:rgba(18,18,28,.46);border:1px solid rgba(255,255,255,.32);color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 10px 24px -10px rgba(10,8,24,.6)}
.cga-t-play.is-3d svg{width:24px;height:24px;margin:0;fill:rgba(255,255,255,.12);stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
@media (hover:hover){.cga-t:hover .cga-t-play.is-3d span{background:linear-gradient(135deg,#7c5cff,#e0479e);border-color:transparent}}
.cga-lb-3d{position:relative;width:min(92vw,980px);height:min(78vh,760px);max-width:100%;max-height:100%}
.cga-3d{position:absolute;inset:0;border-radius:20px;overflow:hidden;background:radial-gradient(120% 100% at 50% 0%,#3a3550 0%,#1b1d27 70%)}
.cga-3d model-viewer{position:absolute;inset:0;width:100%;height:100%;--poster-color:transparent;--progress-bar-color:transparent;background:transparent;opacity:0;transition:opacity .35s}
.cga-3d.is-on model-viewer{opacity:1}
.cga-3d-po{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.5;filter:blur(1px)}
.cga-3d.is-on .cga-3d-po,.cga-3d.is-on .cga-3d-ld{display:none}
.cga-3d-ld{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;text-align:center;padding:20px}
.cga-3d-ld b{font-size:15px}
.cga-3d-ld span:not(.cga-ring){font-size:13px;opacity:.75}
.cga-3d-ld i{display:block;width:200px;height:4px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}
.cga-3d-ld u{display:block;height:100%;background:linear-gradient(90deg,#804fed,#c285fc);transition:width .2s}
@media (max-width:760px){.cga-lb-3d{width:100vw;height:62vh}.cga-3d{border-radius:0}}

.cga-sheet-h{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:2px;align-items:start}
.cga-sheet-h b{grid-column:1;grid-row:1}
.cga-sheet-h span{grid-column:1;grid-row:2;line-height:1.4}
.cga-sheet-h span:empty{display:none}
.cga-sheet-h .cga-ic{grid-column:2;grid-row:1/span 2;align-self:start}
.cga-dlg{grid-template-columns:minmax(0,1fr)}
.cga-dlg-box{min-width:0;max-width:100%}
@media (max-width:760px){
  .cga-lb-m img,.cga-lb-m video{max-height:58svh}
  .cga-lb-list,.cga-sug div,.cga-lb-av,.cga-mk-row,.cga-srow,.cga-vp-row{scroll-snap-type:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
}
@media (max-width:640px){
  .cga-sheet.cga-mdl,.cga-sheet.cga-mdl.cga-mind{left:10px;right:10px;width:auto;max-width:none}
  .cga-mdl-h{flex-wrap:wrap;row-gap:8px}
  .cga-mdl-h .cga-mtabs{order:3;flex:1 1 100%;display:flex;overflow-x:auto;scrollbar-width:none}
  .cga-mdl-h .cga-mtabs::-webkit-scrollbar{display:none}
  .cga-mdl-h .cga-mtabs button{flex:1 0 auto}
  .cga-mind-lv .cga-mo{grid-template-columns:minmax(0,1fr);gap:6px}
  .cga-mind-lv .cga-mo>span{padding-top:0}
  .cga-mopts{padding-left:12px}
  .cga-mdl-b span,.cga-mind-b span,.cga-mdl-b.is-set span,.cga-mind-b.is-set span{display:none!important}
  .cga-mdl-b.is-set,.cga-mind-b.is-set{background:var(--soft)}
  .cga-st{flex-wrap:wrap;row-gap:3px}
  .cga-st b{white-space:normal}
  .cga-st>span{flex:1 1 100%;padding-left:26px}
  .cga-st.is-say .cga-st-md{flex:1 1 0;min-width:0}
}
.cga-lbp-m{position:relative;align-self:stretch;justify-content:center;gap:0;min-height:46px}
.cga-lbp-t{position:absolute;left:4px;right:4px;top:calc(50% + 9px);line-height:1}
.cga-sf{display:flex;align-items:center;gap:6px}
.cga-cab{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:40px;padding:0 10px 0 5px;border:0;border-radius:12px;background:transparent;color:var(--side-t);font-size:13.5px;font-weight:600;text-align:left;transition:background .15s}
.cga-cab:hover,.cga-cab[aria-expanded="true"]{background:var(--side2)}
.cga-cab-av{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,rgba(194,133,252,.28),rgba(128,79,237,.28));box-shadow:inset 0 0 0 1px rgba(194,133,252,.35)}
.cga-cab-av svg{width:16px;height:16px;color:#e7d6ff}
.cga-cab-t{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cga-sf .cga-bal{flex:none;width:auto;height:40px;gap:5px;padding:0 5px 0 9px;border-radius:12px}
.cga-sf .cga-bal svg{width:16px;height:16px}
.cga-sf .cga-bal b{font-size:14px}
.cga-sf .cga-bal i{width:28px;height:28px;border-radius:9px;margin-left:3px}
.cga-pop.cga-cabm{width:268px;max-width:calc(100vw - 16px);padding:6px;border-radius:16px;box-shadow:0 24px 60px -22px rgba(31,35,48,.55),0 0 0 1px rgba(31,35,48,.04)}
.cga-cabm a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:11px;color:#1f2330;text-decoration:none;transition:background .12s}
.cga-cabm a:hover,.cga-cabm a:focus-visible{background:#f4f2fb;outline:0}
.cga-cabm a>span:not(.cga-cabm-av){display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.cga-cabm b{font-size:13.5px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cga-cabm em{font-style:normal;font-size:12px;color:#7a7d8c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cga-cabm-h{margin-bottom:4px;background:linear-gradient(135deg,#f5f0ff,#fbf9ff)}
.cga-cabm-h>svg{width:16px!important;height:16px!important;color:#9a9caa!important}
.cga-cabm-av{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#9b6cf5,#5b34ae);color:#fff;font-size:15px;font-weight:800}
.cga-cabm-av svg{color:#fff!important}
.cga-cabm-l{display:flex;flex-direction:column;gap:2px;padding-top:4px;border-top:1px solid #eeebf8}
.cga-cabm-i>i{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:#f2eefc;line-height:0;font-style:normal}
.cga-cabm-i>i svg{width:16px;height:16px}
.cga-cabm-i.is-prem>i{background:linear-gradient(135deg,#fff3d6,#ffe6a8)}
.cga-cabm-i.is-prem>i svg{color:#b7791f}
.cga-cabm-i.is-hist>i{background:#ebf3ff}
.cga-cabm-i.is-hist>i svg{color:#2f6fd6}
.cga-cabm-i.is-help>i{background:#eaf7f0}
.cga-cabm-i.is-help>i svg{color:#2f7a55}
.cga-pjs:not(.cga-accl) .cga-pjs-f a{display:inline-flex;align-items:center;height:30px;border-radius:9px;color:var(--side-m)}
.cga-pjs:not(.cga-accl) .cga-pjs-f a:hover{background:var(--side2);color:var(--side-t)}

.cga-spv{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;aspect-ratio:16/10;padding:0 6px 9px;border-radius:9px;overflow:hidden;background:radial-gradient(120% 90% at 30% 20%,#7d8fa8 0,#3c4a63 45%,#1c2231 100%);isolation:isolate}
.cga-spv::before{content:"";position:absolute;inset:auto -20% -30% 30%;height:70%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,196,140,.55),transparent);z-index:-1}
.cga-spv i{font-style:normal;font-family:Inter,system-ui,sans-serif;font-size:11.5px;font-weight:700;line-height:1.15;color:#fff;text-align:center;white-space:nowrap;letter-spacing:.01em}
.cga-spv.is-clean i{text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 1px #000}
.cga-spv.is-outline i{font-weight:900;-webkit-text-stroke:3px #0c0c0c;paint-order:stroke fill}
.cga-spv.is-box i{padding:3px 7px;border-radius:5px;background:rgba(10,10,14,.68)}
.cga-spv.is-karaoke i{font-weight:800;text-shadow:0 1px 2px rgba(0,0,0,.8)}
.cga-spv.is-karaoke u{text-decoration:none;color:#ffd400}
.cga-spv.is-big{align-items:center;padding-bottom:0}
.cga-spv.is-big i{font-size:15px;font-weight:900;letter-spacing:-.01em;-webkit-text-stroke:2px #0c0c0c;paint-order:stroke fill;text-shadow:0 3px 6px rgba(0,0,0,.5)}
.cga-spv.is-neon i{color:#fff;text-shadow:0 0 3px #ff4fb8,0 0 8px #ff4fb8,0 0 14px #ff4fb8}
.cga-spv.is-minimal i{font-size:9.5px;font-weight:500;letter-spacing:.04em;opacity:.95;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.cga-spv.is-pop i{font-size:12.5px;font-weight:900;color:#ffe600;-webkit-text-stroke:3px #000;paint-order:stroke fill}
.cga-spv.is-story i{padding:3px 8px;border-radius:7px;background:#fff;color:#16141f;font-weight:700}
.cga-ppv{position:relative;display:block;width:30px;height:46px;margin:0 auto;border:2px solid currentColor;border-radius:7px;opacity:.85}
.cga-ppv i{position:absolute;left:4px;right:4px;height:5px;border-radius:3px;background:linear-gradient(90deg,#804fed,#c285fc)}
.cga-ppv.is-top i{top:6px}
.cga-ppv.is-center i{top:calc(50% - 2.5px)}
.cga-ppv.is-bottom i{bottom:7px}

.cga-fm-o.is-subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.cga-fm-o.is-pos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:360px}
.cga-fm-o.is-subs button,.cga-fm-o.is-pos button{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px 6px 8px;border-radius:12px;text-align:center}
.cga-fm-o.is-pos button{padding:10px 6px 8px}
.cga-fm-o.is-subs button b,.cga-fm-o.is-pos button b{font-size:12.5px;font-weight:700}
.cga-fm-o.is-subs button.on,.cga-fm-o.is-pos button.on{background:var(--ink);color:#fff}
.cga-fm-o.is-subs button.on .cga-spv{box-shadow:0 0 0 2px #cbbcff}
@media (max-width:640px){.cga-fm-o.is-subs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cga-spv i{font-size:10.5px}.cga-spv.is-big i{font-size:13px}.cga-fm-o.is-pos{max-width:none}}

.cga-cpv{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/10;padding:0 6px;border-radius:9px;overflow:hidden;background:radial-gradient(120% 90% at 70% 15%,#a9b6c9 0,#56657f 48%,#262c3b 100%)}
.cga-cpv i{font-style:normal;font-family:Inter,system-ui,sans-serif;font-size:11.5px;font-weight:800;line-height:1.1;white-space:nowrap;color:#fff}
.cga-cpv.is-plate i{padding:4px 8px;border-radius:999px;background:#fff;color:#16141f;box-shadow:0 0 0 1px #d6d0e4}
.cga-cpv.is-dark i{padding:4px 8px;border-radius:999px;background:#12101c}
.cga-cpv.is-accent i{padding:4px 8px;border-radius:999px;background:linear-gradient(90deg,#7442f0,#c07af8)}
.cga-cpv.is-outline i{font-weight:900;-webkit-text-stroke:3px #0a0a0c;paint-order:stroke fill}
.cga-cpv.is-pop i{font-weight:900;color:#ffe600;-webkit-text-stroke:3px #000;paint-order:stroke fill}
.cga-cpv.is-neon i{text-shadow:0 0 2px #ff4fb8,0 0 6px #ff4fb8,0 0 12px #ff4fb8;-webkit-text-stroke:1px #ff4fb8;paint-order:stroke fill}
.cga-fm-o.is-caps{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.cga-fm-o.is-caps button{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px 6px 8px;border-radius:12px;text-align:center}
.cga-fm-o.is-caps button b{font-size:12.5px;font-weight:700}
.cga-fm-o.is-caps button.on{background:var(--ink);color:#fff}
@media (max-width:640px){.cga-fm-o.is-caps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cga-cpv i{font-size:10.5px}}

/* 1.1.66: бейдж хранения на превью — компактнее */
.cga-keep{padding:3px 8px 3px 6px;font-size:10.5px;gap:4px}
.cga-keep svg{width:11px;height:11px}
/* 1.1.70: на узком экране полоса прокрутки страницы не занимает место — иначе справа отступ шире, чем слева
   (в узком окне браузера и в режиме телефона без касаний); прокрутка пальцем, колесом и клавишами работает как прежде */
@media (max-width:760px){
  .cga-page.cga-sb,.cga-scroll.cga-sb{scrollbar-width:none}
  .cga-page.cga-sb::-webkit-scrollbar,.cga-scroll.cga-sb::-webkit-scrollbar{width:0;height:0;display:none}
}
/* 1.1.77: между пунктами меню — зазор: подсветка соседних вкладок (активной и при наведении) больше не слипается */
.cga-nav{gap:4px}
.cga-accl{margin:-4px 0 0}
.cga-accl.is-open{margin:-1px 0 4px}

/* 1.1.80: уведомления администратора под шапкой агента */
.cga-nts{display:flex;flex-direction:column;gap:0;position:relative;z-index:4}
.cga-nts[hidden]{display:none}
.cga-ntc{--nb:#eef2f8;--nl:#d9e1ee;--nc:#2d4a7a;--ni:#3b64a8;display:flex;align-items:center;gap:10px;padding:8px 14px 8px 16px;background:var(--nb);border-bottom:1px solid var(--nl);color:var(--nc);transition:opacity .18s,transform .18s}
.cga-ntc.is-warn{--nb:#fdf6e3;--nl:#f0e0b0;--nc:#6d5210;--ni:#c08a14}
.cga-ntc.is-bad{--nb:#fdf0f0;--nl:#f3d2d3;--nc:#7c2429;--ni:#b3363c}
.cga-ntc.is-ok{--nb:#eef8f2;--nl:#cfe8da;--nc:#1f5a3c;--ni:#2f7a55}
.cga-ntc.is-promo{--nb:linear-gradient(90deg,#f5f3ff,#ebe4ff);--nl:#d8d1f8;--nc:#4a4077;--ni:#804fed;background:var(--nb)}
.cga-ntc.is-dark{--nb:radial-gradient(120% 220% at 0% 0%,#3a2f5c 0%,#1f2330 60%);--nl:#1f2330;--nc:#fff;--ni:#f0a3fc;background:var(--nb)}
.cga-ntc.is-out{opacity:0;transform:translateY(-4px)}
.cga-ntc-i{flex:none;display:flex;width:20px;height:20px;color:var(--ni)}
.cga-ntc-i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cga-ntc-t{flex:1;min-width:0;margin:0;font-size:13.5px;line-height:1.45}
.cga-ntc-t b{font-weight:800}
.cga-ntc-b{display:inline-block;margin:0 8px 0 0;padding:2px 8px;border-radius:999px;background:var(--ni);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;vertical-align:1px;white-space:nowrap}
.cga-ntc.is-dark .cga-ntc-b{color:#1f2330}
.cga-ntc-a{flex:none;display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:999px;background:#fff;color:var(--nc);font-size:12.5px;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 0 0 1px var(--nl)}
.cga-ntc-a svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cga-ntc-a:hover{box-shadow:0 0 0 1px var(--ni)}
.cga-ntc.is-dark .cga-ntc-a{color:#1f2330;box-shadow:none}
.cga-ntc-x{flex:none;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--nc);font-size:20px;line-height:1;cursor:pointer;opacity:.7}
.cga-ntc-x:hover{opacity:1;background:rgba(255,255,255,.55)}
.cga-ntc.is-dark .cga-ntc-x:hover{background:rgba(255,255,255,.12)}
@media (max-width:640px){
  .cga-ntc{flex-wrap:wrap;align-items:flex-start;gap:6px 10px;padding:9px 8px 10px 12px}
  .cga-ntc-i{margin-top:1px}
  .cga-ntc-t{flex-basis:calc(100% - 70px);font-size:13px}
  .cga-ntc-a{order:4;margin-left:30px;padding:5px 11px}
  .cga-ntc-x{order:3;margin:-4px 0 0 auto}
}

/* 1.1.81: тема сайта (глобальные стили Elementor и т. п.: «.elementor-kit-N button:hover{color:…}») перекрашивала текст
   главных кнопок приложений при наведении в чёрный на фиолетовом. Главные кнопки — всегда белый текст и иконки. */
:is(.vd-go,.vd-pk-up,.vd-tc-go,.cl-go,.dz-go,.dk-go,.cga-cast-go,.cga-fm-go,.cga-vp-go,.cga-lb-go),
:is(.vd-go,.vd-pk-up,.vd-tc-go,.cl-go,.dz-go,.dk-go,.cga-cast-go,.cga-fm-go,.cga-vp-go,.cga-lb-go):is(:hover,:focus,:focus-visible,:active){color:#fff!important;text-decoration:none!important}
:is(.vd-go,.vd-pk-up,.vd-tc-go,.cl-go,.dz-go,.dk-go):is(:hover,:focus,:active):not(:disabled){border-color:transparent!important}
.vd-hc-seg button.is-on,.vd-hc-seg button.is-on:hover{color:#fff!important}

/* 1.1.83: подсказка под кнопкой «Скачать» — «Скачивание началось…» */
.cga-dln{position:fixed;z-index:2147483000;max-width:min(300px,calc(100vw - 16px));padding:8px 12px;border-radius:11px;background:#1d1530;color:#fff;font-size:12.5px;font-weight:650;line-height:1.35;text-align:center;box-shadow:0 12px 28px -12px rgba(20,10,50,.55);pointer-events:none;animation:cga-dln-in .18s ease-out;transition:opacity .25s,transform .25s}
.cga-dln.is-out{opacity:0;transform:translateY(-4px)}
@keyframes cga-dln-in{from{opacity:0;transform:translateY(-4px)}}

/* 1.1.93: пиксельная шапка разделов убрана везде — фон страницы чистый (класс is-hxp оставлен ради прозрачного фона модулей) */
.cga-page.is-hxp::before,.cga-page.is-hxp::after{content:none;display:none;animation:none}
/* 1.1.96: страница раздела прокручивается целиком и плавно, как было в 1.1.91. Невидимый слой пиксельной шапки
   (will-change) заставлял браузер прокручивать её «одним куском»; без него на обычных (не Retina) мониторах страница
   с прозрачным фоном перерисовывалась при прокрутке, а превью карточек со своими слоями ехали отдельно — блоки «плыли».
   Сплошной фон (как у «Презентаций») и will-change: scroll-position возвращают плавную прокрутку без пиксельной шапки. */
:where(.cga-page){background-color:var(--bg)}
.cga-page{will-change:scroll-position}

/* 1.1.97: фон всех разделов агента — чистый однотонный, как в чате: без фиолетовых и розовых «свечений» сверху
   (Тренды, Музыка, Фотосессии, Графика, Презентации, Реклама, Клипы, Библиотека…) */
.cga .cga-page>:is(.vd,.mu,.sht,.dz,.dk,.va,.cl,.cga-pg),.cga .cga-page :is(.dk-home,.dk-prog,.dk-plan,.va-home,.va-ad){background:var(--bg)}
/* 1.1.97: страницы разделов (Тренды, Фотосессии, Музыка…) не «тянут» за собой всё окно на краю прокрутки (как чат):
   шапка агента стоит на месте, а не уезжает вместе со страницей при «резинке» прокрутки */
.cga-page{overscroll-behavior-y:contain}
/* 1.1.97: скрыто визуально, но остаётся для поиска и экранных дикторов — заголовки разделов (в шапке агента он уже есть) */
.cga-vh{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.cga-pg-h.is-bare{justify-content:flex-start;margin:0 0 18px}
/* 1.1.97: «Ещё» в боковой панели — аккордеон с «Библиотекой», «Проектами» и «Памятью»; «Библиотека» — ещё и иконкой в шапке панели */
.cga-xtra{display:grid;grid-template-rows:0fr;opacity:0;margin:-2px 0 0;transition:grid-template-rows .24s ease,opacity .18s ease}
.cga-xtra.is-open{grid-template-rows:1fr;opacity:1}
.cga-xtra-in{display:flex;flex-direction:column;gap:2px;min-height:0;overflow:hidden;padding:0 0 0 12px}
.cga-xtra-in>.cga-nav:first-child{margin-top:2px}
.cga-xtra-in>.cga-nav-mem{margin:0}
.cga-nav .cga-nav-xt.has-cur:not([aria-expanded="true"])>svg{color:var(--gold)}
.cga-side-lib.is-on{background:rgba(194,133,252,.13);color:var(--gold)}
@media (prefers-reduced-motion:reduce){.cga-xtra{transition:none}}
.cga-xtra-in>.cga-pjs{margin:0}
.cga-xtra-in>.cga-pjs.is-open{margin:-2px 0 2px}

.cga-body:not(.is-in) :is(.cga-mrow>em,.cga-mind-web .cga-wtg>em){display:none}

/* 1.1.111: навигация разделов, отдельно от чатовой шапки. */
.cga-section-brand{display:none}
@media (min-width:901px){
  html.cga-mini:not(.cga-emb) .cga.cga-section{grid-template-columns:48px minmax(0,1fr) auto;--cga-app-wide:1760px}
  html.cga-mini:not(.cga-emb) .cga.cga-section>.cga-section-nav{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px;background:var(--side);color:var(--side-t);z-index:30}
  .cga-section-nav .cga-ic{color:inherit}
  .cga-section-nav .cga-ic:hover{background:var(--side2);color:#fff}

  /* Широкий режим только у витрины «Тренды» и её каталогов. Остальные разделы сохраняют исходные размеры. */
  html.cga-mini:not(.cga-emb) .cga.cga-section.is-trends-catalog .cga-page .vd-wrap{max-width:var(--cga-app-wide)}
  .cga.is-trends-catalog .cga-page .vd-ct-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 14px}
}
@media (max-width:900px){
  /* 1.1.112: хаб фиксирован к viewport, первая строка сетки резервирует его точную высоту; скролл — только во второй.
     Нет плавающих кнопок, перекрытия карточек или отступа над липкими панелями внутри scrollport. */
  html:not(.cga-emb) .cga.cga-section{--cga-section-hub-height:calc(44px + env(safe-area-inset-top,0px));grid-template-rows:var(--cga-section-hub-height) minmax(0,1fr)}
  html:not(.cga-emb) .cga.cga-section>.cga-section-nav{position:fixed;inset:0 0 auto;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:4px;height:var(--cga-section-hub-height);padding:env(safe-area-inset-top,0px) max(8px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));border-bottom:1px solid var(--line);background:var(--paper);color:var(--ink2);z-index:60;touch-action:manipulation}
  html:not(.cga-emb) .cga.cga-section>.cga-main{grid-area:2 / 1 / 3 / 2}
  .cga-section-nav .cga-ic{width:40px;height:40px;color:var(--ink2)}
  .cga-section-nav .cga-ic:hover{background:var(--soft);color:var(--brass-d)}
  .cga-section-brand{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:13.5px;font-weight:750;letter-spacing:-.02em;color:var(--ink)}
  .cga-section-brand em{font-style:normal;color:var(--brass-d);font-weight:750}
  .cga.is-side>.cga-section-nav{visibility:hidden}
  .cga.is-trends-catalog .cga-page .vd-ct-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
}
html.cga-emb .cga-section-nav{display:none!important}

/* 1.1.116: repeat cast card — compact ordinal, larger picture target, full-width description. */
.cga-cast-top{grid-template-areas:"poster head" "poster descr";grid-template-rows:auto 1fr;gap:5px 14px}
.cga-cast-m{grid-area:poster}.cga-cast-h{grid-area:head}.cga-cast-desc{grid-area:descr;min-width:0;color:var(--ink2);font-size:14px;line-height:1.5;align-self:start}
.cga-cast-desc p{margin:0 0 5px;overflow-wrap:anywhere}.cga-cast-desc details{font-size:12.5px}.cga-cast-desc summary{cursor:pointer;color:var(--brass-d);font-weight:650}.cga-cast-desc details p{margin-top:5px}
.cga-cast.is-vid .cga-cast-r{grid-template-columns:30px minmax(0,1fr) 18px 80px;padding:9px;border:1px solid var(--line);border-radius:14px;background:var(--paper);gap:10px}
.cga-cast.is-vid .cga-cast-face{height:28px;width:28px}.cga-cast.is-vid .cga-cast-face em{font-size:12px}
.cga-cast.is-vid .cga-cast-slot{width:80px;height:80px;background:#fff}.cga-cast.is-vid .cga-cast-slot span{font-size:11px}
.cga-cast-mode{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.cga-cast-mode label,.cga-cast-wish b{display:block;font-size:13px;font-weight:750;color:var(--ink);margin:0 0 7px}
.cga-cast-mode p{font-size:13px;line-height:1.4;color:var(--muted);margin:7px 0 0}.cga-cast-mode .cga-cast-ch button.on{background:var(--soft);color:var(--brass-d);border-color:var(--brass)}
.cga-cast-wish{display:block;margin-top:14px}.cga-cast-wish textarea{box-sizing:border-box;width:100%;resize:vertical;border:1px solid var(--line2);border-radius:12px;padding:10px 12px;font:inherit;font-size:13px;color:var(--ink);background:var(--paper)}
.cga-cast-go{background:linear-gradient(120deg,#7037ea,#a467f0)}.cga-cast-go:hover:not(:disabled){background:linear-gradient(120deg,#5d29c7,#8d52db)}
@media(max-width:640px){
 .cga-cast-top{grid-template-columns:88px minmax(0,1fr);grid-template-areas:"poster head" "descr descr";grid-template-rows:auto auto;align-items:center;gap:10px}
 .cga-cast-desc{font-size:13.5px}.cga-cast.is-vid .cga-cast-r{grid-template-columns:28px minmax(0,1fr) 70px;grid-template-areas:"face title slot" "desc desc slot" "meta meta slot";gap:5px 9px}
 .cga-cast.is-vid .cga-cast-r:not(.has-d){grid-template-areas:"face title slot" "meta meta slot"}
 .cga-cast.is-vid .cga-cast-slot{width:70px;height:70px;align-self:center}
 .cga-cast.is-vid .cga-cast-face{height:26px;width:26px}.cga-cast-mode .cga-cast-ch button{flex:1}
}

@media(max-width:640px){.cga-cast-top{display:flow-root}.cga-cast-top .cga-cast-m{float:left;width:88px;margin:0 12px 7px 0}.cga-cast-top .cga-cast-h{display:block;padding:3px 0}.cga-cast-h>span,.cga-cast-h>b,.cga-cast-h>em{display:block;margin-bottom:5px}.cga-cast-h>span{display:flex;flex-wrap:wrap}.cga-cast-desc{display:block;margin-top:4px}.cga-cast-desc p{line-height:1.48}.cga-cast-desc details{display:flow-root}}


/* Studio pickers use the main agent sheet, positioned outside both composers. */
.cga-sheet.cga-mdl.cga-studio-sheet{position:fixed;inset:auto;z-index:100058;margin:0;max-width:calc(100vw - 16px);display:block;overflow-y:auto;overscroll-behavior:contain;font-family:var(--serif);color:var(--ink);border-color:var(--line2);box-shadow:0 14px 40px -10px rgba(32,25,55,.28),0 3px 9px rgba(32,25,55,.09)}
.cga-studio-sheet .cga-mdl-h{position:sticky;top:-8px;background:#fff;z-index:1}
.cga-studio-sheet .cga-mlist{overflow:visible}
.cga-studio-sheet[aria-busy=true] :is(.cga-mrow,.cga-mo-c button){opacity:.7;cursor:progress}
.cga-studio-trigger{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:6px 8px;border:0;border-radius:9px;background:transparent;color:#663bb7;font:inherit;font-size:12px;font-weight:650;line-height:18px;cursor:pointer}
.cga-studio-trigger[aria-expanded=true],.cga-studio-trigger:hover{background:#efeafa}
.cga-studio-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cga-studio-trigger svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
