/* studio.grubaka.ru (15.11.2026): narrow navigation · the section's control panel · the output — the layout Dima picked */
:root{--bg:#0b0b0d;--panel:#141416;--panel2:#1b1b1e;--line:#2a2a2e;--ink:#ececee;--muted:#8d8d94;--acc:#8b5cf6;--acc2:#22c55e;--err:#f87171}
*{box-sizing:border-box}
[hidden]{display:none!important}
/* Dima 15.11.2026: dark scrollbars in the site's style, not the browser's light grey ones */
:root{color-scheme:dark;scrollbar-color:#3a3a42 transparent;scrollbar-width:thin}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#34343b;border-radius:99px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#4a4a53;background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-button{display:none}
html,body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 "Segoe UI",system-ui,-apple-system,sans-serif}
button,input,textarea,select{font:inherit;color:inherit}
a{color:#c4b5fd}
.hint{font-size:12.5px;color:var(--muted)}
.msg{padding:9px 12px;border-radius:10px;margin:8px 0}
.msg.err{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#fecaca}
.msg.ok{background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.4)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--panel2);border-radius:10px;padding:7px 12px;cursor:pointer;text-decoration:none;color:var(--ink)}
.btn:hover:not(:disabled){background:#24242a}
.btn:disabled{opacity:.45;cursor:default}
.btn.green{background:var(--acc2);border-color:var(--acc2);color:#04130a;font-weight:700}
.btn.green:hover:not(:disabled){background:#2fd56b}
.btn.wide{width:100%;padding:10px}
.link{background:none;border:0;color:var(--muted);cursor:pointer;padding:0}
.link:hover{color:var(--ink)}
input,select,textarea{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:8px 10px;outline:none}
input:focus,textarea:focus,select:focus{border-color:#4b4b52}
.logo{display:flex;align-items:center;gap:8px;padding:4px 8px 14px;font-weight:800;letter-spacing:.02em}
.logo i{width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,#8b5cf6,#ec4899);display:inline-block;flex:none}
.logo small{font-weight:500;color:var(--muted);font-size:11px}

/* sign-in pages */
body.auth{min-height:100vh;display:grid;place-items:center;padding:16px;background:radial-gradient(900px 500px at 30% 20%,#2b1b4d 0,#120f1c 50%,#0b0b0d 100%)}
.authcard{width:100%;max-width:380px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px}
.authcard h1{margin:0 0 10px;font-size:22px}
.authcard label{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:13px;color:var(--muted)}
.authcard label input{color:var(--ink);font-size:15px}

/* the app: three columns */
body.app{height:100vh;display:flex;gap:8px;padding:8px;overflow:hidden}
.nav{width:220px;flex:none;display:flex;flex-direction:column;background:var(--panel);border-radius:14px;padding:12px 8px;overflow:auto}
.nav > a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;color:var(--ink);text-decoration:none}
.nav > a:hover{background:var(--panel2)}
.nav > a.on{background:#26262b}
.nav > a.soon{color:var(--muted);cursor:default}
.nav > a.soon::after{content:"скоро";margin-left:auto;font-size:10px;padding:1px 6px;border-radius:99px;border:1px solid var(--line)}
.nav .sec{margin:14px 10px 6px;font-size:11px;color:var(--muted)}
.nav .grow{flex:1}
.wallet{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 2px}
.wallet b{font-size:18px}
.wallet .row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}
/* the person at the bottom left and its menu (Dima 16.11.2026, as on 99photo.ru) */
.mewrap{position:relative}
.me{display:flex;align-items:center;gap:8px;padding:8px 10px;width:100%;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer;text-align:left;font:inherit}
.me:hover,.me[aria-expanded=true]{background:#1d1d22}
.me .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me .dots{color:var(--muted)}
.ava{width:28px;height:28px;flex:none;border-radius:99px;background:linear-gradient(135deg,#f97316,#ef4444);display:grid;place-items:center;font-weight:700;color:#fff;overflow:hidden}
.ava img{width:100%;height:100%;object-fit:cover;display:block}
.ava.big{width:52px;height:52px;font-size:22px}
.umenu{position:fixed;left:12px;bottom:70px;width:280px;max-width:calc(100vw - 24px);background:#16161a;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 18px 50px rgba(0,0,0,.55);z-index:60;display:flex;flex-direction:column;gap:6px}
.um-who{display:flex;align-items:center;gap:12px;padding:4px 4px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.um-who div{display:flex;flex-direction:column;min-width:0}
.um-who b{font-size:16px;overflow:hidden;text-overflow:ellipsis}
.um-who span,.um-who small{color:var(--muted);font-size:12.5px}
.ava-up{position:relative;cursor:pointer;flex:none}
.ava-pen{position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:99px;background:#c6f432;color:#111;font-size:11px;display:grid;place-items:center}
.um-link{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;color:var(--ink);text-decoration:none}
.um-link:hover{background:#1f1f25}
.um-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.um-row{display:flex;align-items:center;gap:10px;padding:8px;border-top:1px solid #222228;font-size:13.5px}
.um-row > span:nth-child(2){flex:1;min-width:0}
.um-coin{width:24px;height:24px;flex:none;border-radius:99px;background:#16324a;display:grid;place-items:center;font-size:16px}
/* Dima 17.11.2026: the unit is a blue crystal, «более понятно людям, что это единица расчёта, а не просто буква» */
.crystal{display:inline-block;width:1em;height:1em;vertical-align:-.14em;background:url(gem.svg) center/contain no-repeat;font-style:normal}
.get{border:0;border-radius:99px;padding:6px 14px;background:#c6f432;color:#111;font-weight:700;cursor:pointer}
.get:disabled{opacity:.45;cursor:default}
.um-out{margin-top:6px}
.prof .panel{max-width:560px}
.prof label{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:13px;color:var(--muted)}
.prof label input{color:var(--ink);font-size:15px}

.ctl{width:420px;flex:none;display:flex;flex-direction:column;background:var(--panel);border-radius:14px;overflow:hidden}
.ctl h1{margin:0;padding:14px 16px 8px;font-size:20px}
.ctl .scroll{flex:1;overflow:auto;padding:0 14px 14px;display:flex;flex-direction:column;gap:12px}
.ctl .hint{margin:0}
.drop{border:1px dashed #3a3a40;border-radius:12px;padding:16px;text-align:center;color:var(--muted);background:var(--panel2);transition:border-color .15s,background .15s}
.drop.over{border-color:var(--acc);background:rgba(139,92,246,.08)}
.drop b{display:block;color:var(--ink);margin:4px 0 10px;font-weight:600}
.drop-ico{font-size:18px}
.refs{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.refs:not(:empty){margin-top:12px}
.ref{position:relative;width:60px;height:60px;border-radius:8px;overflow:hidden;background:#222}
.ref img{width:100%;height:100%;object-fit:cover;display:block}
.ref b{position:absolute;left:3px;top:3px;margin:0;font-size:10px;padding:0 4px;border-radius:5px;background:rgba(0,0,0,.65)}
.ref button{position:absolute;right:2px;top:2px;width:18px;height:18px;border-radius:99px;border:0;background:rgba(0,0,0,.7);cursor:pointer;font-size:11px;line-height:1;padding:0}
textarea{width:100%;min-height:130px;resize:vertical}
.box{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--panel2)}
.box > .t{font-size:12px;color:var(--muted);margin-bottom:8px;display:flex;justify-content:space-between}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{border:1px solid transparent;background:transparent;border-radius:9px;padding:6px 10px;cursor:pointer;color:var(--muted)}
.seg button:hover{color:var(--ink)}
.seg button.on{background:#2b2b31;color:var(--ink);border-color:#3a3a40}
.ar button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;font-size:12px;min-width:52px;height:52px}
.ar i{display:block;background:#3f3f46;border-radius:2px}
.ar button.on i{background:#e4e4e7}
.models{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.models button{text-align:left;border:1px solid var(--line);background:transparent;border-radius:9px;padding:7px 9px;cursor:pointer}
.models button small{display:block;color:var(--muted);font-size:11px}
.models button.on{border-color:var(--acc);background:rgba(139,92,246,.15)}
.go{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--line)}
.go .chip{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;padding:0 10px;white-space:nowrap}
.go .chip i{width:10px;height:10px;border-radius:3px;background:var(--acc)}
.go .btn.green{flex:1;padding:10px}

.out{flex:1;min-width:0;background:radial-gradient(1200px 600px at 30% 20%,#2b1b4d 0,#120f1c 45%,#0d0d10 100%);border-radius:14px;position:relative;overflow:auto;padding:16px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;align-items:start}
.card{border-radius:12px;overflow:hidden;background:#1a1a1f;border:1px solid #26262c}
.card .img{position:relative;background:#141418;display:grid;place-items:center;cursor:zoom-in}
.card .img img{width:100%;height:100%;object-fit:cover;display:block}
.card .img.wait{cursor:default;color:#c4b5fd;font-size:13px;background:repeating-linear-gradient(135deg,#1d1830 0 12px,#211b38 12px 24px);background-size:34px 34px;animation:slide 1.2s linear infinite}
.card .img.bad{cursor:default;color:var(--err);font-size:12.5px;padding:12px;text-align:center;background:#1c1416}
@keyframes slide{to{background-position:34px 0}}
.card .meta{padding:8px 10px;font-size:12px;color:var(--muted)}
.card .meta p{margin:0 0 4px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .meta .row{display:flex;justify-content:space-between;gap:8px;align-items:center}
.card .acts{display:flex;gap:4px}
.card .acts button,.card .acts a{font-size:11.5px;padding:3px 7px;border-radius:7px}
.empty{position:absolute;left:24px;bottom:22px}
.empty h2{margin:0 0 4px;font-size:24px}

.viewer{position:fixed;inset:0;z-index:50;background:rgba(5,5,8,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}
.viewer img{max-width:100%;max-height:calc(100vh - 110px);border-radius:10px}
.viewer .x{position:absolute;top:14px;right:16px;width:38px;height:38px;border-radius:99px;border:1px solid var(--line);background:var(--panel);cursor:pointer}
.viewer .vbar{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap;justify-content:center}
.viewer .vbar span{color:var(--muted);font-size:13px;margin-right:6px}

/* admin */
.adm{flex:1;min-width:0;overflow:auto;background:var(--panel);border-radius:14px;padding:16px 20px}
.adm h1{margin:0 0 6px}
.panel{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:14px 0;background:var(--panel2)}
.panel h2{margin:0 0 10px;font-size:16px}
.panel .row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.panel label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.panel code{display:block;margin-top:6px;padding:8px;border-radius:8px;background:#0e0e10;color:var(--ink);word-break:break-all;user-select:all}
table{width:100%;border-collapse:collapse;margin-top:10px;font-size:13px}
th,td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
th{color:var(--muted);font-weight:600}
form.inline{display:flex;gap:4px;align-items:center}
form.inline input,form.inline select{padding:4px 6px}

@media (max-width:900px){
  body.app{flex-direction:column;overflow:auto;height:auto}
  .nav,.ctl{width:auto}
  .ctl .scroll{overflow:visible}
  .out{min-height:60vh}
}

/* the project in Image and «Мои работы» (15.11.2026) */
.proj{display:flex;gap:6px}
.proj select{flex:1;min-width:0}
.projbox{max-width:520px;max-height:86vh;overflow:auto}
.pset{border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:10px;display:flex;flex-direction:column;gap:8px}
.pset .row{display:flex;gap:6px}
.pset .row input{flex:1;min-width:0}
.members{display:flex;flex-wrap:wrap;gap:6px}
.member{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border-radius:99px;background:#26262b;font-size:13px}
.member button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0 4px}
.member button:hover{color:#ff6b6b}
.works{padding:16px 18px}
.wbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.wbar h1{margin:0;font-size:22px}
.wnote{margin:0 0 12px}
.works .more{display:flex;justify-content:center;margin:16px 0}

.works .empty{position:static;margin-top:30px}

/* the top-up window (16.11.2026) */
.viewer.pay{background:rgba(5,5,8,.8)}
.paybox{position:relative;width:100%;max-width:400px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px}
.paybox h2{margin:0 0 8px}
.paybox label{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:13px;color:var(--muted)}
.paybox label input{color:var(--ink);font-size:15px}
.paybox .seg{margin-bottom:6px}
.paybox img{display:block;width:240px;height:240px;margin:8px auto;background:#fff;border-radius:10px}
.paybox .x{position:absolute;top:10px;right:10px;width:32px;height:32px}
@media (max-width:600px){.paybox img{display:none}}

/* «Мои работы»: under a picture — the number, the model and weights, the project, the approval light (16.11.2026) */
.wmeta{display:flex;flex-direction:column;gap:3px}
.wrow{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wnum{font-size:17px;color:var(--ink);letter-spacing:.01em}
.wmodel{font-size:12px;color:#b9b9c0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wproj{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lights{display:flex;gap:5px}
.light{width:16px;height:16px;border-radius:99px;border:2px solid transparent;cursor:pointer;padding:0;opacity:.28;transition:opacity .15s,transform .15s}
.light:hover{opacity:.7;transform:scale(1.1)}
.light.on{opacity:1;border-color:rgba(255,255,255,.85)}
.light.red{background:#ef4444}.light.yellow{background:#facc15}.light.green{background:#22c55e}
.wmeta .btn.dl{font-size:11.5px;padding:3px 7px;border-radius:7px}

/* the Image section, 16.11.2026 (Dima: the layout of a big image service): the works fill the screen, a compact panel floats at the bottom */
.imgpage{display:flex;flex-direction:column;padding:12px 12px 0}
.imgpage .grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));padding-bottom:24px}
/* Dima 18.11.2026: «Все ячейки в галереях должны быть вот такого размера, как галерея в программе GS. А то получатся разномастные ячейки
   и дыра будет» — every grid of the site («Фото», «Видео», «Галерея», Ninjutsu, the guest's examples): one 4:3 frame, the picture or
   the clip fitted whole inside it on the dark (16:9 fills it across, 9:16 stands in the middle), the caption below the same; the cells
   of a row stretch to one height */
.grid{align-items:stretch}.grid>.card{display:flex;flex-direction:column}.grid>.card>.meta{flex:1}
.grid .card .img{aspect-ratio:4/3;overflow:hidden;min-height:0;background:#0e0e11}
.grid .card .img>img,.grid .card .img>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.imgpage .empty{position:static;margin:30vh auto 0;text-align:center}
.composer{position:sticky;bottom:12px;z-index:5;width:100%;max-width:900px;margin:auto auto 12px;background:rgba(28,28,31,.96);border:1px solid #2f2f35;
  border-radius:18px;padding:10px 12px 12px;box-shadow:0 20px 60px -10px rgba(0,0,0,.7);backdrop-filter:blur(12px)}
.composer.over{border-color:var(--acc)}
.composer textarea{min-height:46px;max-height:30vh;border:0;background:transparent;padding:6px 4px;resize:none;font-size:14.5px}
.composer textarea:focus{border:0}
.crefs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:4px}
.crefs .ref{width:52px;height:52px}
.crefs .ref b{left:auto;right:auto}
.crefs .trash{height:36px;width:36px}
.cbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;border:1px solid #34343b;border-radius:10px;background:#232327;color:var(--ink);
  cursor:pointer;font-size:13px;white-space:nowrap}
.chip:hover{background:#2b2b31}
.chip.icon{width:36px;padding:0;justify-content:center;font-size:17px}
.chip .dot{width:9px;height:9px;border-radius:3px;background:var(--acc)}
.chip .more{color:var(--muted)}
.chip .gem{font-style:normal;color:var(--muted)}
.frame{display:inline-block;border:1.5px solid currentColor;border-radius:2px;opacity:.85}
.chip.stepper{gap:2px;padding:0 4px;cursor:default}
.chip.stepper button{width:26px;height:28px;border:0;background:transparent;color:var(--muted);cursor:pointer;border-radius:7px;font-size:15px}
.chip.stepper button:hover{background:#34343b;color:var(--ink)}
.chip.stepper span{min-width:32px;text-align:center}
.chip.unl{cursor:not-allowed;opacity:.75;color:#c6f432}
.chip.unl input{display:none}
.tog{width:30px;height:17px;border-radius:99px;background:#4a4a52;position:relative}
.tog::after{content:"";position:absolute;left:2px;top:2px;width:13px;height:13px;border-radius:99px;background:#d4d4d8}
.gen{margin-left:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:130px;height:52px;padding:0 18px;border:0;border-radius:12px;
  background:linear-gradient(180deg,#d9ff3f,#b8e81a);color:#111;font-weight:800;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;
  box-shadow:0 4px 0 #8fb30f}
.gen small{font-weight:700;letter-spacing:0;text-transform:none;font-size:12px}
.gen:disabled{opacity:.5;cursor:default}
.composer .msg{margin:8px 0 0}
.pick{position:relative}
.pop{display:none;position:absolute;bottom:44px;left:0;z-index:10;min-width:280px;max-height:60vh;overflow:auto;background:#1f1f23;border:1px solid #34343b;
  border-radius:14px;padding:6px;box-shadow:0 20px 50px -10px rgba(0,0,0,.8)}
.pop.narrow{min-width:170px}
.pick.open .pop{display:block}
.poph{padding:6px 10px;font-size:11.5px;color:var(--muted)}
.opt{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:1px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink);
  cursor:pointer;text-align:left}
.opt.row{flex-direction:row;align-items:center;gap:10px}
.opt small{color:var(--muted);font-size:11.5px}
.opt.row small{margin-left:auto}
.opt:hover{background:#2a2a30}
.opt.on{background:#2f2f37}
.opt.on::after{content:"✓";margin-left:auto;color:#c6f432;align-self:center}
.opt:not(.row).on{position:relative;padding-right:28px}
.opt:not(.row).on::after{position:absolute;right:10px;top:50%;transform:translateY(-50%)}
/* the library of references */
.viewer.lib{background:rgba(5,5,8,.75)}
.libpanel{width:min(900px,100%);max-height:86vh;display:flex;flex-direction:column;background:#1c1c20;border:1px solid #2f2f35;border-radius:18px;overflow:hidden}
.viewer.lib.over .libpanel{border-color:var(--acc)}
.libtabs{display:flex;align-items:center;gap:6px;padding:12px 14px;border-bottom:1px solid #2a2a2e}
.libtabs button{border:0;border-radius:99px;padding:7px 14px;background:transparent;color:var(--muted);cursor:pointer}
.libtabs button.on{background:#fff;color:#111;font-weight:600}
.libtabs button:disabled{cursor:default;opacity:.6}
.libtabs .hint{margin-left:auto}
.libtabs .x{position:static;width:34px;height:34px;border-radius:99px;border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.libgrid{flex:1;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;padding:14px}
.libadd,.libitem{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;border:2px solid transparent;background:#26262b;cursor:pointer;padding:0}
.libadd{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #3a3a40;color:var(--muted)}
.libadd span{font-size:24px;color:var(--ink)}
.libadd b{color:var(--ink);font-weight:600}
.libitem img{width:100%;height:100%;object-fit:cover;display:block}
.libitem.on{border-color:#c6f432}
.libdel{position:absolute;right:6px;top:6px;width:28px;height:28px;border-radius:8px;background:rgba(0,0,0,.65);display:grid;place-items:center;font-size:14px;opacity:0;transition:opacity .15s}
.libitem:hover .libdel,.libitem:focus-visible .libdel{opacity:1}
.libdel:hover{background:#c62828}
@media (hover:none){.libdel{opacity:1}}
.libmore{grid-column:1/-1;justify-self:center}
.libnone{grid-column:1/-1;text-align:center}
.libitem b{position:absolute;left:6px;top:6px;min-width:22px;height:22px;border-radius:7px;background:#c6f432;color:#111;font-size:12px;display:grid;place-items:center}
.libfoot{display:flex;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid #2a2a2e}
.libfoot .btn{margin-left:auto}
@media (max-width:900px){.composer{position:sticky}.gen{width:100%;margin-left:0}}

/* the viewer (16.11.2026): the picture with zoom and the arrows on the left, the studio card's panel on the right */
.vw{position:fixed;inset:0;z-index:60;display:flex;background:#0a0a0c}
.vw-stage{position:relative;flex:1;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;user-select:none}
.vw-stage img{max-width:calc(100% - 120px);max-height:calc(100vh - 40px);object-fit:contain;transform-origin:center center;transition:transform .06s linear}
.vw-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:72px;border:0;border-radius:12px;background:rgba(255,255,255,.07);color:#fff;
  font-size:34px;cursor:pointer;z-index:2}
.vw-nav:hover{background:rgba(255,255,255,.16)}
.vw-nav.prev{left:12px}.vw-nav.next{right:12px}
.vw-zoom{position:absolute;left:16px;bottom:14px;color:var(--muted);font-size:12px}
.vw-side{width:340px;flex:none;overflow:auto;background:#17181a;border-left:1px solid #26272a;padding:18px 18px 22px}
.vw-head{display:flex;align-items:center;justify-content:space-between}
.vw-head h2{margin:0;font-size:24px}
.vw-x{width:34px;height:34px;border:0;background:transparent;color:var(--ink);font-size:20px;cursor:pointer}
.lights.big{margin:14px 0 6px;gap:10px}
.lights.big .light{width:24px;height:24px}
.vw-params{margin:12px 0;display:grid;gap:5px;font-size:13px}
.vw-params div{display:flex;justify-content:space-between;gap:12px}
.vw-params dt{color:var(--muted)}
.vw-params dd{margin:0;text-align:right;word-break:break-word}
.vw-sec{font-size:13px;color:var(--muted);margin:14px 0 6px;font-weight:600}
.vw-refs{display:flex;gap:8px;flex-wrap:wrap}
.vw-refs figure{margin:0;width:92px}
.vw-refs img{width:92px;height:92px;object-fit:cover;border-radius:10px;display:block}
.vw-refs figcaption{font-size:11px;color:var(--muted);margin-top:3px}
.vw-prompt{border-top:1px solid #2a2a2e;padding-top:12px;margin:14px 0;font-size:13.5px;line-height:1.5;white-space:pre-wrap}
.vw-acts{display:flex;flex-wrap:wrap;gap:8px}
.vw-acts .btn{padding:8px 12px}
.btn.danger{color:#f87171}
.btn.danger:hover{background:rgba(248,113,113,.12)}
@media (max-width:900px){.vw{flex-direction:column}.vw-side{width:auto;max-height:45vh}.vw-stage img{max-width:100%}}

/* the prompt with cells and the samples over it (16.11.2026, as in the studio's «Фото») */
.cprompt{min-height:46px;max-height:30vh;overflow:auto;padding:6px 4px;font-size:14.5px;line-height:1.9;white-space:pre-wrap;word-break:break-word;outline:none}
.cprompt:empty::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.ph-chip{display:inline-flex;align-items:center;gap:5px;padding:1px 8px 1px 3px;border:1px solid #6d9a5f;border-radius:8px;background:#26331f;color:var(--ink);
  font-size:13px;line-height:1.4;vertical-align:middle;user-select:all;margin:0 1px}
.ph-chip img{width:22px;height:22px;object-fit:cover;border-radius:5px}
.ph-chip em{font-style:normal;font-weight:700;font-size:11px;padding:1px 5px;border-radius:5px;background:#111;color:#b7e2a4}
.ph-chip.bad{border-color:#e4495a;background:#3a1c20;padding-left:8px}
.crefs .ref{width:auto;height:auto;display:inline-flex;align-items:center;gap:6px;padding:3px 26px 3px 3px;border:1px solid #6d9a5f;border-radius:10px;background:#1f2a1b;
  cursor:pointer;overflow:visible}
.crefs .ref img{width:40px;height:40px;border-radius:7px}
.crefs .ref b{position:static;margin:0;font-size:11px;padding:1px 5px;border-radius:5px;background:#111;color:#b7e2a4}
.crefs .ref i{font-style:normal;font-size:12.5px}
.crefs .ref button{top:50%;right:4px;transform:translateY(-50%)}
.crefs .ref.used{border-color:#9bd38a;background:#26331f}
.crefs .ref.dragging{opacity:.4}
.crefs .ref.drop{outline:2px dashed #c6f432;outline-offset:2px}

/* «Админка → Модели» (16.11.2026) */
.admtabs,.sectabs{margin:4px 0 12px}
.admtabs a,.sectabs a{display:inline-block;padding:6px 12px;border-radius:9px;color:var(--muted);text-decoration:none;border:1px solid transparent}
.admtabs a.on,.sectabs a.on{background:#2b2b31;color:var(--ink);border-color:#3a3a40}
.sectabs a.soon{opacity:.5;cursor:default}
.mtable td{vertical-align:middle}
.mtable tr.off td:not(:first-child):not(:nth-child(2)){opacity:.55}
.mtable .ord{white-space:nowrap}
.mtable .ord .btn{padding:2px 6px;font-size:11px}
.mtable .mst small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.mtable input:not([type=checkbox]){width:100%;min-width:90px;padding:5px 7px}
.mtable input.wide{min-width:200px}
.mtable input[data-price]{width:70px;min-width:60px}
.tag{font-size:10.5px;padding:1px 6px;border-radius:6px;background:#2b2b31;color:#c9c9cf;margin-left:4px}
.tag.bad{background:rgba(248,113,113,.15);color:#fca5a5}
.mfoot{display:flex;align-items:center;gap:12px;margin:14px 0}

.gen{flex-direction:row;gap:6px;font-size:14px;min-width:150px}
.gen [data-cost]{font-weight:800;text-transform:none;letter-spacing:0}
.wline{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.wline span{color:var(--muted)}
.wline b{font-size:16px}
.libfoot .danger:disabled{opacity:.4}

/* the mark of grubaka.ru and the title in capitals (Dima, 16.11.2026) */
.logo{gap:10px;font-size:15px;letter-spacing:.06em}
.logo img{width:34px;height:34px;border-radius:9px;flex:none;object-fit:contain}
.logo small{display:none}
a.logo{color:inherit;text-decoration:none}
a.logo:hover{opacity:.85}


/* active tasks at the bottom right (Dima 16.11.2026, as in GS) */
.tasks{position:fixed;right:16px;bottom:16px;z-index:40;width:280px;max-width:calc(100vw - 32px);background:rgba(22,22,26,.97);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.5);overflow:hidden}
.tasks-head{display:flex;align-items:center;gap:6px;width:100%;padding:9px 12px;border:0;background:transparent;color:var(--ink);cursor:pointer;font:inherit}
.tasks-head span{color:var(--muted)}
.tasks-head i{margin-left:auto;font-style:normal;color:var(--muted);transition:transform .15s}
.tasks.min .tasks-head i{transform:rotate(180deg)}
.tasks.min .tasks-list{display:none}
.tasks-list{max-height:40vh;overflow:auto;padding:0 8px 8px;display:flex;flex-direction:column;gap:6px}
.task{display:flex;flex-direction:column;gap:5px;padding:7px 8px;border-radius:10px;background:#1d1d22;color:var(--ink);text-decoration:none;font-size:12.5px}
.task:hover{background:#24242a}
.task-top{display:flex;gap:8px;align-items:baseline}
.task-top span{flex:1;min-width:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-top em{font-style:normal;color:#c6f432;font-variant-numeric:tabular-nums}
.task.queued em{color:var(--muted)}
.task.failed em{color:var(--err)}
.bar{height:4px;border-radius:99px;background:#2a2a30;overflow:hidden}
.bar i{display:block;height:100%;background:#c6f432;transition:width .4s}
.task.queued .bar i{width:30%!important;background:#3a3a44;animation:tq 1.2s ease-in-out infinite alternate}
@keyframes tq{from{margin-left:0}to{margin-left:70%}}

/* the sections in the navigation with icons (Dima 16.11.2026) */
.nav a.navi{display:flex;align-items:center;gap:10px}
.navi svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* the weights' precision (Dima 16.11.2026): one line per option */
.pop.prec{min-width:240px}
.pop.prec .opt{white-space:nowrap;gap:10px}

/* the resolution in the cell's corner (Dima 16.11.2026) */
.card .img .res{position:absolute;left:8px;top:8px;padding:2px 7px;border-radius:7px;background:rgba(0,0,0,.62);color:#fff;font-size:11.5px;font-weight:700;letter-spacing:.03em;pointer-events:none;font-variant-numeric:tabular-nums}
.pop.prec{max-height:60vh;overflow:auto}
.wgroup{padding:8px 10px 2px;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}

/* the Gallery's folders (Dima 16.11.2026) */
.folders{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 12px;min-height:34px}
.fchip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:#1a1a1f;color:var(--ink);font:inherit;font-size:13px;cursor:pointer;transition:background .12s,border-color .12s,transform .12s}
.fchip:hover{background:#24242a}
.fchip.on{background:#2a2a32;border-color:#3a3a46;font-weight:700}
.fchip small{color:var(--muted);font-size:11.5px}
.fchip.add{width:32px;justify-content:center;padding:0;font-size:16px}
.fchip.back{color:#c4b5fd}
.fchip.over{border-color:#c6f432;background:rgba(198,244,50,.12);transform:scale(1.06)}
body.dragjob .fchip[data-fdrop]{border-style:dashed}
.fpath{font-size:13px;color:var(--muted);padding:0 4px}
.fpath a{color:var(--muted)}
.fpath b{color:var(--ink)}
.fico{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:14px;padding:4px 6px;border-radius:8px}
.fico:hover{background:#24242a;color:var(--ink)}
.card.dragging{opacity:.4}
.works .card[draggable="true"]{cursor:grab}
.card .img .infolder{position:absolute;right:8px;top:8px;padding:1px 6px;border-radius:7px;background:rgba(0,0,0,.62);font-size:12px;pointer-events:none}

/* «Видео» (Dima 16.11.2026) */
.chip.secs{gap:8px}
.chip.secs input[type=range]{width:110px;accent-color:#c6f432}
.chip.secs span{min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.ref.frame i{font-style:normal}
.card .img.vid{cursor:default}
.card .img.vid video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.wcell details summary{cursor:pointer;color:var(--muted);white-space:nowrap}
.wcell .wopt{display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:12.5px;padding:2px 0}
.fchip.fixed{background:#1d1d24}
.ftrash{position:relative}
.fpop{position:absolute;top:38px;left:0;z-index:30;min-width:240px;display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:12px;border:1px solid var(--line);background:#16161a;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.frow{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.card .img .infolder{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card.src .img audio{width:90%}
.addpop{min-width:220px}.addpop .opt.row{gap:8px}.opt .tags{display:flex;gap:5px;margin-top:4px}.opt .tags i{font-style:normal;font-size:10.5px;font-weight:600;padding:2px 7px;border-radius:5px;background:#2c2c33;color:#d7d7de}
.wtabs{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 18px;margin:2px 0 8px}
.wtab{display:flex;flex-wrap:wrap;gap:6px}
.wtags{display:flex;flex-wrap:wrap;gap:4px;padding:6px 10px 0}
.wtag{border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:11.5px;padding:1px 8px;cursor:pointer}
.wtag:hover{color:var(--ink);border-color:#3a3a46}
.wtag.add{opacity:.55}
.card:hover .wtag.add{opacity:1}
.wkind{position:absolute;left:8px;bottom:8px;padding:2px 7px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px}
.wsound{font-size:42px;color:var(--muted)}
.card .img audio{position:absolute;left:8px;right:8px;bottom:8px;width:calc(100% - 16px)}

/* the home (PLAN.md 1.5) */
.homepage{padding:28px 30px}
.homepage h1{margin:0 0 20px;font-size:26px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.tile{position:relative;display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(160deg,#1d1d24,#141418);color:var(--ink);text-decoration:none;min-height:150px;transition:transform .15s,border-color .15s}
.tile:hover{transform:translateY(-2px);border-color:#c6f432}
.tile .ti{width:42px;height:42px;border-radius:12px;background:#24242c;display:grid;place-items:center}
.tile .ti svg{width:24px;height:24px;fill:none;stroke:#c6f432;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tile b{font-size:17px}
.tile small{color:var(--muted);font-size:13px;line-height:1.4}
.tile.soon{opacity:.55;cursor:default}
.tile.soon:hover{transform:none;border-color:var(--line)}
.tile em{position:absolute;right:14px;top:14px;font-style:normal;font-size:11px;padding:2px 8px;border-radius:99px;background:#2a2a32;color:var(--muted)}
.taskbtn{border:0;background:transparent;font:inherit;cursor:pointer;width:100%;text-align:left}
.tcount{margin-left:auto;min-width:20px;padding:0 6px;border-radius:99px;background:#c6f432;color:#111;font-size:11.5px;font-weight:700;text-align:center}
.tnone{margin:4px 6px 6px}
/* the packages (PLAN.md 1.4) */
.packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:8px 0}
.pack{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:14px;border:1px solid var(--line);background:#18181d}
.pack.best{border-color:#c6f432}
.pack b{font-size:22px}
.pbonus{color:#c6f432;font-size:13px}
.pbonus.none{color:var(--muted)}
.pack small{color:var(--muted)}
/* «Тарифы» (Dima, 18.11.2026): price tables by model and version; «Подписка» — a stub in the layout of Dima's price picture */
.prof .panel.wide{max-width:820px}
.prof .panel.subs{max-width:1180px}
.ptable{overflow-x:auto}
table.prices td,table.prices th{white-space:nowrap}
table.prices tr.gstart td{border-top:1px solid #3a3a42}
table.prices td.pmodel{font-weight:700;vertical-align:top;color:var(--ink)}
.subs>input{display:none}
.period{display:inline-flex;gap:4px;padding:4px;border-radius:99px;background:#111114;border:1px solid var(--line);margin:4px 0 16px}
.prof .period label{flex-direction:row;align-items:center;gap:6px;margin:0;padding:7px 16px;border-radius:99px;cursor:pointer;color:var(--muted);font-size:14px}
.period em{font-style:normal;font-size:12px;color:#c6f432}
#per-year:checked~.period label[for=per-year],#per-month:checked~.period label[for=per-month]{background:#2a2a31;color:var(--ink)}
#per-year:checked~.plans .plan-per.month,#per-month:checked~.plans .plan-per.year{display:none}
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.plan{--c:#22c55e;display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 14%,#18181d),#18181d 45%);border:1px solid color-mix(in srgb,var(--c) 45%,var(--line))}
.plan.violet{--c:#8b5cf6}.plan.orange{--c:#f59e0b}
.plan-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.plan-head b{font-size:20px;letter-spacing:.06em;color:var(--c)}
.plan-tag{font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--c);color:#0b0b0d}
.plan-per{display:flex;flex-direction:column;gap:6px}
.plan-price{display:flex;align-items:center;gap:8px;color:var(--muted)}
.plan-off{font-size:12px;font-weight:700;padding:2px 8px;border-radius:99px;background:color-mix(in srgb,var(--c) 22%,transparent);color:var(--c)}
.plan-now{color:var(--muted)}
.plan-now b{font-size:34px;color:var(--ink);margin-right:4px}
.plan-cr{font-size:16px;font-weight:700}
.plan-buy{font-size:13px;color:var(--muted)}
.plan-inc small{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:11px}
.plan-inc ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:5px;font-size:13.5px}
.plan-inc li::before{content:"✓";color:var(--c);margin-right:8px}
.plan-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin-top:14px;padding:10px;border-radius:12px;background:#111114;color:var(--muted);font-size:13px}
@media(max-width:1100px){.plans{grid-template-columns:minmax(0,1fr)}}
.authcard .check{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.4}
.authcard .check input{width:auto;margin-top:2px}
.legal .panel h2{font-size:15px;margin:14px 0 6px}
.legal .panel p{line-height:1.55}
.crefs.fframes{display:flex;align-items:flex-start;justify-content:center;gap:10px;flex-wrap:wrap}.fslot{position:relative;width:92px;min-height:76px;margin:0;border-radius:12px;border:1.5px dashed var(--fc);background:color-mix(in srgb,var(--fc) 9%,transparent);color:var(--fc);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;font:inherit;overflow:hidden}.fslot.first{--fc:#63c76a}.fslot.mid{--fc:#e2c044}.fslot.last{--fc:#e2685f}.fslot.blank{cursor:pointer}.fslot.blank:hover{background:color-mix(in srgb,var(--fc) 20%,transparent)}.fslot b{font-size:20px;font-weight:400;line-height:1}.fslot i{font-style:normal;font-size:10.5px;font-weight:600}.fslot:not(.blank){border-style:solid;justify-content:flex-start;padding-bottom:3px}.fslot img{width:100%;height:56px;object-fit:cover;display:block}.fslot label{font-size:10.5px;color:#d7d7de;display:flex;align-items:center;gap:2px}.fslot input{width:38px;padding:1px 2px;font:inherit;font-size:11px;text-align:center;background:#111;color:#fff;border:1px solid #3a3a44;border-radius:5px}.fslot button{position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:99px;border:0;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;font-size:11px;line-height:1;padding:0}.fswap{align-self:center}
.chip.sw{cursor:pointer;gap:8px}.chip.sw input{display:none}.chip.sw input:checked+.tog{background:#c6f432}.chip.sw input:checked+.tog::after{left:15px;background:#111}
.r2va{width:360px;flex:none;overflow:auto;background:#141416;border:1px solid #2a2a30;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}.r2va[hidden]{display:none}.r2top{display:flex;align-items:baseline;gap:8px}.r2top b{font-size:15px}.r2top span{color:#a9a9b3;font-size:12.5px}.r2hint{margin:0 0 6px;color:#8d8d97;font-size:12px;line-height:1.35}.r2sec{background:#1b1b1f;border:1px solid #2a2a30;border-radius:12px;padding:0 10px}.r2sec>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:10px 0;font-size:13.5px}.r2sec>summary::-webkit-details-marker{display:none}.r2sec>summary i{font-style:normal;width:20px;height:20px;border-radius:99px;background:#2c2c33;display:grid;place-items:center;font-size:11px}.r2sec>summary u{text-decoration:none;margin-left:auto;font-size:11px;padding:1px 7px;border-radius:99px;background:#c6f432;color:#111}.r2sec[open]{padding-bottom:10px}.r2card{border:1px solid #2f2f36;border-radius:10px;padding:8px;margin-bottom:8px;display:flex;flex-direction:column;gap:7px;background:#16161a}.r2head{display:flex;align-items:center;gap:6px}.r2head b{font-size:12px;color:#c6f432;min-width:22px}.r2head input,.r2head select{flex:1;min-width:0}.r2va input,.r2va select,.r2va textarea{background:#0f0f12;border:1px solid #33333b;border-radius:7px;color:#eee;padding:5px 7px;font:inherit;font-size:12.5px;width:100%}.r2va textarea{resize:vertical}.r2row{display:flex;gap:6px}.r2row label,.r2field{flex:1;display:flex;flex-direction:column;gap:3px;font-size:11.5px;color:#a9a9b3}.r2field small{color:#6f6f78}.r2x{border:0;background:#2a2a30;color:#ddd;width:22px;height:22px;border-radius:99px;cursor:pointer;flex:none}.r2pics{display:flex;gap:6px;flex-wrap:wrap}.r2pic{position:relative;width:72px;height:72px;margin:0;border-radius:9px;overflow:hidden;border:1.5px solid var(--fc,#3a3a44);background:#101013;padding:0;color:var(--fc,#a9a9b3)}.r2pic.wide{width:150px;height:84px}.r2pic img{width:100%;height:100%;object-fit:cover;display:block}.r2pic em{position:absolute;left:3px;bottom:3px;font-style:normal;font-size:10px;padding:0 4px;border-radius:4px;background:rgba(0,0,0,.7);color:#fff}.r2pic button{position:absolute;right:2px;top:2px;width:18px;height:18px;border-radius:99px;border:0;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;font-size:11px;padding:0}.r2pic.add{border-style:dashed;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.r2pic.add b{font-weight:400;font-size:18px;line-height:1}.r2pic.add small{font-size:10px}.r2pic.first{--fc:#63c76a}.r2pic.mid{--fc:#e2c044}.r2pic.last{--fc:#e2685f}.r2mid{display:flex;flex-direction:column;align-items:center;gap:3px}.r2mid label{font-size:10.5px;color:#a9a9b3;display:flex;align-items:center;gap:2px}.r2mid input{width:44px;padding:1px 3px;text-align:center}.r2ins,.r2add{align-self:flex-start;border:1px dashed #4a4a55;background:transparent;color:#c6f432;border-radius:8px;padding:4px 9px;font-size:12px;cursor:pointer}.r2add{width:100%;text-align:center}.r2locked{margin:0;white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:1.4;color:#c9c9d2;background:#0f0f12;border-radius:8px;padding:8px;max-height:260px;overflow:auto}@media (max-width:900px){.r2va{width:auto;max-height:none}}
body.app{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px;padding:8px;height:100vh;overflow:hidden}body.app.with-panel{grid-template-columns:360px minmax(0,1fr)}body.app>.nav{grid-column:1/-1;grid-row:1;width:auto;flex-direction:row;align-items:center;gap:4px;padding:6px 10px;overflow:visible;min-height:54px}body.app>.r2va{grid-column:1;grid-row:2;width:auto;min-height:0}body.app>main{grid-column:1/-1;grid-row:2;min-height:0}body.app.with-panel>main{grid-column:2}.nav .logo{padding:0 10px 0 2px;font-size:13px;white-space:nowrap}.nav .logo img{width:30px;height:30px}.nav .navproj{display:flex;align-items:center;margin-right:6px}.nav .navproj .sec,.nav .navproj .hint{display:none}.nav .navproj .proj{display:flex;gap:4px;align-items:center}.nav .navproj select{max-width:180px}.nav > a.navi,.nav .navi{padding:7px 10px;font-size:13.5px;white-space:nowrap;width:auto}.nav .grow{flex:1}.nav .wallet{display:flex;align-items:center;gap:10px;margin:0 4px;padding:4px 5px 4px 10px;border-radius:10px}.nav .wallet .wline{display:flex;gap:4px;align-items:baseline;font-size:11.5px;color:var(--muted)}.nav .wallet b{font-size:13.5px;color:var(--ink)}.nav .wallet .row{margin:0}.nav .wallet .btn{padding:5px 10px;font-size:12.5px}.nav .upgrade{display:flex;align-items:center;gap:7px;padding:7px 14px;border-radius:9px;background:#fff;color:#111;font-weight:700;font-size:13px;letter-spacing:.03em;text-decoration:none;white-space:nowrap;margin-right:4px}.nav .upgrade svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}.nav .taskbtn{border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);cursor:pointer;font:inherit}.nav .mewrap{flex:none;margin-left:4px}.nav .me{width:auto;padding:3px}.nav .me .name,.nav .me .dots{display:none}.umenu{left:auto;right:12px;top:66px;bottom:auto}.tasks{top:66px;bottom:auto}@media (max-width:1200px){.nav .navi.topi,.nav .logo div{display:none}}@media (max-width:900px){body.app,body.app.with-panel{height:auto;overflow:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:auto}body.app>.nav{flex-wrap:wrap}body.app>.r2va{grid-column:1;grid-row:2}body.app>main,body.app.with-panel>main{grid-column:1;grid-row:3}}
@media (max-width:1500px){.nav .wallet .wline span{display:none}.nav .wallet .wline+.wline b::before{content:"+";margin-right:2px;color:var(--muted)}}@media (max-width:1300px){.nav .navi.topi,.nav .taskbtn,.nav a.navi[href="/works"]{font-size:0;gap:0;padding:8px}.nav .navi.topi{display:flex}.nav .taskbtn .tcount{font-size:11px}.nav .wallet .btn{font-size:0;padding:5px 9px}.nav .wallet .btn::before{content:"+";font-size:14px}.nav .upgrade{padding:7px 10px}}@media (max-width:1100px){.nav .upgrade{font-size:0;gap:0}.nav .navproj select{max-width:120px}}
.r2card .r2field{flex:none}
.fadd{align-self:center;width:26px;height:26px;border-radius:99px;border:1px dashed #e2c044;background:transparent;color:#e2c044;cursor:pointer;font:inherit;font-size:15px;line-height:1;padding:0}.fadd:hover{background:color-mix(in srgb,#e2c044 18%,transparent)}.fframes{gap:6px}.fslot .ftime{margin-top:1px}.fslot.blank .ftime{color:inherit;opacity:.9}.fslot.blank{min-height:92px}
.r2pics.frames{align-items:flex-start;gap:4px}.r2pics.frames .r2pic{width:66px;height:66px}.r2pics.frames .r2pic.add small{font-size:9px}.r2pics.frames .fadd{width:22px;height:22px;font-size:13px;margin-top:22px}.r2mid{position:relative}.r2gapx{position:absolute;right:2px;top:2px;width:18px;height:18px;border-radius:99px;border:0;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;font-size:11px;padding:0}
.cextra{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 6px}.cextra .xcont,.cextra .xsnd{display:flex;align-items:center;gap:6px;padding:4px 6px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.03);font-size:12.5px}.cextra .xcont img{width:44px;height:26px;object-fit:cover;border-radius:5px}.cextra select{font:inherit;font-size:12px;padding:1px 3px;background:#111;color:#fff;border:1px solid #3a3a44;border-radius:5px}.cextra .xsnd input[type=text]{width:170px;font:inherit;font-size:12px;padding:3px 6px;background:#111;color:#fff;border:1px solid #3a3a44;border-radius:6px}.cextra .xsnd small{color:var(--muted)}.cextra .xsnd.over{border-color:#e2685f}.cextra .xover{display:flex;align-items:center;gap:3px;color:var(--muted)}.cextra button{border:0;background:transparent;color:var(--muted);cursor:pointer;font:inherit;padding:2px 4px}.cextra button:hover{color:var(--ink)}.cextra .play{color:#63c76a}.cextra .xwarn{color:#e2685f;font-size:12px;align-self:center}.contpop{width:340px;max-height:360px;overflow:auto}.contpop .cont{display:flex;gap:8px;align-items:center;text-align:left}.contpop .cont img{width:64px;height:36px;object-fit:cover;border-radius:5px;flex:none}.contpop .cont small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}

/* Dima 17.11.2026: the griffins of grubaka.ru on the pages — the griffin stands on the left, the page's own content to the right of it */
.gsside{display:grid;grid-template-columns:minmax(200px,330px) minmax(0,1fr);column-gap:26px;align-content:start}
.gsside>*{grid-column:2}
.gsside>.gsart{grid-column:1;grid-row:1/span 40;position:sticky;top:0;align-self:start;width:100%;height:auto;max-height:calc(100vh - 110px);object-fit:contain;object-position:top;filter:drop-shadow(0 18px 40px rgba(0,0,0,.55));pointer-events:none;user-select:none}
@media(max-width:900px){.gsside{display:block}.gsside>.gsart{display:none}}
.cmode{font-size:13px;color:var(--muted);letter-spacing:.02em;padding:0 2px 6px}.cmode b{color:var(--ink);font-weight:800}.cmode[hidden]{display:none}
/* Dima 17.11.2026: on the home and in every section the griffin takes the whole height of the screen (griffin.js: drops under the mouse) */
.gsside{grid-template-columns:auto minmax(0,1fr)}
.gsside>.gsart{width:auto;height:calc(100vh - 150px);max-height:none;max-width:42vw}
/* Dima 17.11.2026: a small griffin of the section stands in its tile on the home */
.homepage .tiles{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
.tile.art{padding-left:128px;min-height:176px;overflow:hidden}
.tile .tgs{position:absolute;left:6px;bottom:0;height:164px;width:auto;pointer-events:none;filter:drop-shadow(0 6px 14px rgba(0,0,0,.6));transition:transform .2s}
.tile.art:hover .tgs{transform:scale(1.05)}
.homepage .tmore{margin:26px 0 12px;font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.homepage .tiles.main{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
/* Dima 17.11.2026: «Видео» — the switch of the way at the top right of the section */
.vsw{position:sticky;top:0;z-index:6;height:0;display:flex;justify-content:flex-end}
.vsw>div{display:flex;gap:4px;padding:4px;height:max-content;border-radius:12px;background:rgba(20,20,22,.92);border:1px solid #2a2a30;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.vsw button{border:0;background:none;color:var(--muted);font:inherit;font-size:13px;padding:7px 12px;border-radius:9px;cursor:pointer;white-space:nowrap}
.vsw button b{color:inherit;font-weight:800;letter-spacing:.03em}
.vsw button:hover{color:var(--ink)}
.vsw button.on{background:#c6f432;color:#111}
.vsw button:disabled{opacity:.4;cursor:default}
@media(max-width:700px){.vsw button{padding:6px 8px;font-size:12px}}
/* Dima 17.11.2026: the switch stands at the top left — over the left panel when there is one (its own line), else over the corner of the works */
body.app>.vsw{position:static;height:auto;grid-column:1;grid-row:2;justify-content:flex-start;align-self:start;z-index:6;margin:8px 0 0 8px}
body.app>.vsw>div{width:max-content}
body.app.with-panel{grid-template-rows:auto auto minmax(0,1fr)}
body.app.with-panel>.vsw{margin:0}
body.app.with-panel>.vsw>div{width:100%}
body.app.with-panel>.vsw button{flex:1;padding:7px 6px;font-size:12.5px}
body.app.with-panel>.r2va{grid-row:3}
body.app.with-panel>main{grid-row:2/4}
/* Dima 17.11.2026: the panel on the left in FL2VA too — «Продолжить сцену», the cells, the speech files, the switches */
.r2va .xcont{flex-direction:row;align-items:center;gap:8px}.r2va .xcont img{width:72px;height:40px;object-fit:cover;border-radius:6px;flex:none}.r2va .xcont>div{flex:1;display:flex;flex-direction:column;gap:4px;font-size:12.5px}.r2va .xcont label{color:#a9a9b3;font-size:11.5px}
.r2va select,.r2va .xsnd input[type=text],.r2va .xsnd textarea{font:inherit;font-size:12px;padding:3px 6px;background:#111;color:#fff;border:1px solid #3a3a44;border-radius:6px}
.r2va .xsnd textarea{resize:vertical}.r2va .xsnd.over{border-color:#e2685f}.r2va .xsnd small{color:#a9a9b3;font-size:11.5px;flex:1}
.r2va .xsnd .play{border:0;background:#2a2a30;color:#63c76a;width:22px;height:22px;border-radius:99px;cursor:pointer;flex:none}
.r2va .xover{flex-direction:row!important;align-items:center;gap:4px}.r2va .xwarn{color:#e2685f;font-size:12px;margin:0 0 6px}
.r2va .contlist{display:flex;flex-direction:column;gap:4px;max-height:300px;overflow:auto;margin-top:6px}
.r2va .contlist .cont{display:flex;gap:8px;align-items:center;text-align:left;width:100%}.r2va .contlist .cont img{width:64px;height:36px;object-fit:cover;border-radius:5px;flex:none}
.r2va .contlist .cont span{min-width:0}.r2va .contlist .cont small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r2soon{margin:0;color:#e0b25a;font-size:12px}.r2sw{display:flex;flex-wrap:wrap;gap:6px}
.r2va .crefs.fframes{display:flex;flex-wrap:wrap;gap:4px;padding:0}
/* Dima 17.11.2026: the griffins give advice — the tip's bubble (tips.js) */
[data-tips]{cursor:help}.crow .cgs[data-tips]{pointer-events:auto}
.gstip{position:fixed;z-index:60;display:flex;flex-direction:column;gap:5px;padding:10px 12px;border-radius:12px;background:#1d1d22;border:1px solid #c6f432;color:#e9e9ee;font-size:13px;line-height:1.4;box-shadow:0 10px 30px rgba(0,0,0,.55);pointer-events:none}
.gstip[hidden]{display:none}.gstip b{color:#c6f432;font-size:11.5px;letter-spacing:.03em;text-transform:uppercase}.gstip small{color:#8d8d97;font-size:11px}
/* before / after (Dima, 17.11.2026): the sample over the result, cut by a curtain with a handle; «ДО» on the left, «ПОСЛЕ» on the right */
.vw-stage img.ba-before{position:absolute;max-width:none;max-height:none;object-fit:contain;pointer-events:none;transition:none}
.ba-before[hidden],.ba-handle[hidden],.ba-tag[hidden]{display:none}
/* the video curtain everywhere, not in Ninjutsu only (Dima 18.11.2026: BLENDER2VA opens with «ДО и ПОСЛЕ» on) — as ninjutsu.css has it */
.vw-stage video.ba-before{position:absolute;object-fit:fill;pointer-events:none;background:none}
.vw-stage video.ba-before[hidden]{display:none}
.vw-stage video.ba-before:not([hidden])~.ba-handle{bottom:64px}
/* the pair's own control of «ДО и ПОСЛЕ» (Dima 18.11.2026): over the bottom of the clip, above the source */
.vba-bar{position:absolute;z-index:4;display:flex;align-items:center;gap:8px;padding:8px 10px;box-sizing:border-box;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;font-size:12.5px}
.vba-bar[hidden]{display:none}
.vba-load{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;color:#fff;font-size:18px;pointer-events:none;text-shadow:0 1px 6px rgba(0,0,0,.8)}
.vba-load i{display:block;width:min(320px,60%);height:6px;border-radius:99px;background:rgba(255,255,255,.25);overflow:hidden}
.vba-load u{display:block;height:100%;background:#a78bfa;transition:width .2s linear}.vba-load[hidden]{display:none}
.vba-bar button{border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:8px;min-width:34px;height:30px;cursor:pointer;font-size:14px}
.vba-bar button:hover{background:rgba(255,255,255,.26)}
.vba-bar input[type=range]{flex:1;min-width:60px;accent-color:#fff}
.vba-bar select{background:rgba(0,0,0,.5);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:8px;height:30px}
/* Dima 18.11.2026: «текст уехал за поле, обрезался» — the speed list wide enough for «0,25×» and its arrow */
.vba-bar select{flex:none;width:auto;min-width:78px;padding:0 24px 0 10px;font-size:12.5px;line-height:28px;text-overflow:clip;box-sizing:border-box}
.vba-bar span{font-variant-numeric:tabular-nums;white-space:nowrap}
/* the time ruler (Dima 18.11.2026): the bar under every clip, the ruler in its middle; the stage keeps room for it */
.vba-bar{left:0;right:0;bottom:0;height:72px;padding:6px 12px;background:#121214;border-top:1px solid #26272a}
.vruler{position:relative;flex:1;min-width:120px;height:60px;cursor:ew-resize;touch-action:none;user-select:none}
.vruler canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.vba-bar [data-vtime]{min-width:96px;text-align:right;color:#c9c9d0}
.vw-stage.has-bar{padding-bottom:72px;box-sizing:border-box}
.vw-stage.has-bar .vw-video{max-height:calc(100vh - 112px)}
.vw.full .vw-stage.has-bar>.vw-video{width:min(calc(100vw - 120px),calc((100vh - 72px) * var(--ar,1.7778)));max-height:calc(100vh - 72px)}
@media (max-width:900px){.vw.full .vw-stage.has-bar>.vw-video{width:min(100vw,calc((100vh - 72px) * var(--ar,1.7778)))}}
@media (max-width:600px){.vba-bar{gap:6px;padding:6px 8px}.vba-bar [data-vtime]{display:none}.vba-bar select{min-width:64px;padding:0 18px 0 6px}}
.ba-handle{position:absolute;top:0;bottom:0;width:30px;margin-left:-15px;cursor:ew-resize;z-index:3;display:flex;justify-content:center}
.ba-handle::before{content:'';width:2px;height:100%;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.6)}
.ba-handle i{position:absolute;top:50%;width:34px;height:34px;margin-top:-17px;border-radius:99px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.5)}
.ba-handle i::before{content:'‹ ›';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#111;font-weight:800;font-style:normal;font-size:15px}
.ba-tag{position:absolute;top:14px;z-index:3;padding:4px 10px;border-radius:8px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;letter-spacing:.06em}
.ba-tag.left{left:70px}.ba-tag.right{right:70px}
.vw-acts .btn[data-ba].on{background:#c6f432;color:#111}
.vw-refs figure[data-baref]{cursor:pointer}.vw-refs figure[data-baref].on img{outline:2px solid #c6f432;outline-offset:2px}
/* the activity of «Профиль» (Dima, 17.11.2026): GitHub's year of squares */
.prof .panel.act{max-width:920px}
.acthead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.acthead h2{margin:0}
.acttabs{display:flex;gap:4px;padding:3px;border-radius:10px;background:#141416;border:1px solid #2a2a30}
.acttabs button{border:0;background:none;color:var(--muted);font:inherit;font-size:12.5px;padding:5px 10px;border-radius:7px;cursor:pointer}.acttabs button.on{background:#c6f432;color:#111}
.actsum{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0;font-size:13px;color:var(--muted)}.actsum b{color:var(--ink);font-size:15px}
.actwrap{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
.actdays{display:grid;grid-template-rows:16px repeat(7,13px);row-gap:3px;font-size:10px;color:var(--muted)}.actdays i{font-style:normal;line-height:13px}
.actgrid{display:flex;flex-direction:column;gap:3px}
.actmonths{display:grid;column-gap:3px;height:13px;font-size:10px;color:var(--muted)}.actmonths span{white-space:nowrap}
.actcells{display:grid;grid-template-rows:repeat(7,13px);grid-auto-flow:column;gap:3px}
.actcells i,.actlegend i{display:inline-block;width:13px;height:13px;border-radius:3px;box-sizing:border-box}
.act .l0{background:#1e1e24}.act .l1{background:#3b4a14}.act .l2{background:#62801c}.act .l3{background:#93bd26}.act .l4{background:#c6f432}
.act .in{box-shadow:inset 0 0 0 1px #c6f432}.act .l0.in{background:#1e1e24}
.actcells i:hover{outline:1px solid #fff;outline-offset:1px}
.actfoot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:12px}
.actlegend{display:flex;align-items:center;gap:3px;color:var(--muted)}

/* the panel as v0 (Dima, 17.11.2026): one calm box — the text without its own black field; under the text «＋ Образец» on the left,
   the microphone, the price and «send» on the right, all in one quiet style; the settings stand as pills under the box (more air).
   Small (until the mouse comes or the text is typed; 📌 keeps it open): a round line with the text and the microphone only */
.composer{background:none;border:0;padding:0;box-shadow:none;backdrop-filter:none;transition:max-width .18s}
.cbox{position:relative;background:rgba(24,24,27,.96);border:1px solid #2c2c32;border-radius:16px;padding:12px 12px 10px;
  box-shadow:0 20px 60px -12px rgba(0,0,0,.7);backdrop-filter:blur(12px);transition:border-color .15s,border-radius .18s,padding .18s}
.cbox:focus-within{border-color:#3f3f46}
.composer.over .cbox{border-color:var(--acc)}
.composer .crefs{margin-bottom:8px}.composer .crefs[hidden]{display:none}
.crow{position:relative}
.cprompt{background:none;border:0;border-radius:0;min-height:60px;padding:4px 96px 4px 4px;margin:0}
.crow .cgs{transform:scaleX(-1);position:absolute;right:0;bottom:-4px;height:calc(100% + 30px);max-height:120px;width:auto;pointer-events:none;filter:drop-shadow(0 4px 10px rgba(0,0,0,.6))}
.cfoot{display:flex;align-items:center;gap:8px;margin-top:8px}
.cfoot>.pick[hidden]{display:none}
.chip.refadd{height:32px;padding:0 12px;gap:6px;border:1px dashed #4a4a52;border-radius:10px;background:none;color:#a1a1aa;transition:border-color .15s,color .15s}
.chip.refadd b{font-size:15px;font-weight:400;line-height:1}
.chip.refadd small{font-size:12.5px}
.chip.refadd:hover{background:none;border-color:#8a8a94;color:var(--ink)}
.send{margin-left:auto;display:flex;align-items:center;gap:6px}
.send .mic,.send .go{width:32px;height:32px;border-radius:10px;border:1px solid #34343b;background:none;color:#a1a1aa;cursor:pointer;display:grid;place-items:center;transition:background .15s,color .15s,border-color .15s}
.send .mic:hover,.send .go:hover:not(:disabled){background:#27272a;color:var(--ink);border-color:#3f3f46}
.send .mic.on{color:#f87171;border-color:#7f1d1d;animation:pulse 1.2s ease-in-out infinite}
.send .mic:disabled{opacity:.35;cursor:not-allowed}
@keyframes pulse{50%{box-shadow:0 0 0 5px rgba(248,113,113,.15)}}
.send .go{background:#27272a;color:#e4e4e7}
.send .go svg{width:17px;height:17px;display:block}
/* Dima 18.11.2026: «иконка отправки не по центру» — the old `.go` row's padding (10px 14px) reached this button too */
.send .go{padding:0;gap:0}
.send .go:disabled{opacity:.4;cursor:default}
.send .price{height:32px;display:inline-flex;align-items:center;padding:0 10px;border-radius:10px;border:1px solid #34343b;color:#d4d4d8;font-weight:600;font-size:12.5px;white-space:nowrap}
.composer .cbar{justify-content:center;gap:8px;margin-top:10px}
.composer .cbar .chip{height:34px;padding:0 13px;border-radius:99px;border-color:#2c2c32;background:rgba(24,24,27,.92);color:#b4b4bc;backdrop-filter:blur(8px)}
.composer .cbar .chip:hover{background:#232327;color:var(--ink)}
.composer .cbar .chip.unl{color:#8a8a94}
.composer .cbar .chip.stepper{padding:0 4px}
.send .cpin{width:32px;height:32px;border-radius:10px;border:1px solid #34343b;background:none;font-size:13px;line-height:1;cursor:pointer;opacity:.45;filter:grayscale(1);transition:opacity .15s}
.send .cpin:hover{opacity:.9}.send .cpin.on{opacity:1;filter:none;border-color:#52525b}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))){max-width:680px}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) .cbox{display:flex;align-items:center;gap:8px;border-radius:99px;padding:6px 6px 6px 20px}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) :is(.crefs,.cmode,.cextra,.cbar,.cgs,.cfoot>.pick,.price,.go,.cpin){display:none}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) .crow{flex:1;min-width:0}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) .cprompt{min-height:0;max-height:26px;overflow:hidden;line-height:1.6;padding:3px 0}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) .cfoot{margin:0}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) .send .mic{width:36px;height:36px;border-radius:99px;border:0;background:#e4e4e7;color:#18181b}
.composer .cbar .chip.sw input:checked+.tog{background:#d4d4d8}.composer .cbar .secs input[type=range]{accent-color:#a1a1aa}
/* a guest (Dima, 17.11.2026): «Войти» and «Регистрация» in the bar; the box that asks to sign in on «Создать» */
.nav .guestin,.nav .guestup{padding:7px 14px;font-size:13px;white-space:nowrap}
.guestbox .row{display:flex;gap:8px;margin-top:12px}.guestbox .row .btn{flex:1;text-align:center}
/* people (Dima, 17.11.2026): the members of the project as an avatar group, the person's card, the admin's user card, the avatar crop */
.team{display:flex;align-items:center;padding-left:6px}.team[hidden]{display:none}
.tava{position:relative;width:28px;height:28px;margin-left:-8px;border-radius:99px;border:2px solid #141416;background:#2a2a30;display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;font-size:12px;transition:transform .12s}
.tava:first-child{margin-left:0}.tava>img{width:100%;height:100%;border-radius:99px;object-fit:cover}.tava:hover{transform:translateY(-2px);z-index:3}
.tava .tcard{display:none;position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:70;padding:10px;border-radius:12px;background:#1d1d22;border:1px solid #3a3a42;box-shadow:0 10px 30px rgba(0,0,0,.55);flex-direction:column;align-items:center;gap:4px;min-width:120px}
.tava:hover .tcard{display:flex}.tcard img,.tcard>b{width:96px;height:96px;border-radius:99px;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#2a2a30;font-size:36px}
.tcard em{font-style:normal;font-weight:700;font-size:13px;white-space:nowrap}.tcard small{color:var(--muted);font-size:11px}
.ava.huge{width:112px;height:112px;font-size:44px;flex:none}.ava.huge img{width:100%;height:100%;border-radius:99px;object-fit:cover}
.uhead{display:flex;gap:18px;align-items:flex-start;max-width:920px}.uhead h1{margin:0 0 4px}.uabout{white-space:pre-wrap;margin:8px 0}
.badge{display:inline-block;padding:2px 8px;border-radius:7px;background:#2a2a30;font-size:12px;vertical-align:middle}.badge.red{background:#5a1f1f;color:#ffb4ac}
.ucard .panel{max-width:920px}
.uworks{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}.uworks a{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#141416}
.uworks img,.uworks video{width:100%;height:100%;object-fit:cover;display:block}.uworks i{position:absolute;inset:auto 6px 6px auto;font-style:normal;color:#fff;text-shadow:0 1px 4px #000}
.uwarn{border-left:3px solid #e0b25a;padding:4px 10px;margin:8px 0;font-size:13px}
.warnbar{position:fixed;top:66px;left:50%;transform:translateX(-50%);z-index:80;display:flex;gap:12px;align-items:center;max-width:min(760px,calc(100vw - 32px));padding:10px 14px;border-radius:12px;background:#3a2a10;border:1px solid #e0b25a;color:#fbe7c0;font-size:13px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.pava{display:flex;gap:16px;align-items:center;margin-bottom:10px}
.avabox{width:380px}.avastage{position:relative;width:320px;height:320px;margin:8px auto;cursor:grab;touch-action:none;border-radius:12px;overflow:hidden}
.avastage canvas{display:block}.avaring{position:absolute;inset:0;pointer-events:none;box-shadow:0 0 0 999px rgba(0,0,0,.55);border-radius:50%;outline:2px solid rgba(255,255,255,.8);outline-offset:-2px}
.avazoom{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;justify-content:center}.avazoom input{flex:1}
.avabox .row{display:flex;gap:8px}.avabox .row .btn{flex:1}

/* «Галерея» as «Фото» (Dima, 17.11.2026): the same card width — 6 in a row on a 1920 screen */
.works .grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.vw-video{max-width:calc(100% - 120px);max-height:calc(100vh - 40px);background:#000}
@media (max-width:900px){.vw-video{max-width:100%}}
/* the clip takes its full size at once, by its shape (Dima 18.11.2026: «ужатый плеер… сразу широким»); the zoom of the wheel moves it */
.vw-stage>.vw-video{aspect-ratio:var(--ar,1.7778);width:min(calc(100% - 120px),calc((100vh - 40px) * var(--ar,1.7778)));height:auto;object-fit:contain;transform-origin:center center}
@media (max-width:900px){.vw-stage>.vw-video{width:min(100%,calc((100vh - 40px) * var(--ar,1.7778)))}}
/* BLENDER2VA (17.11.2026): the model switch and the animation from Blender in the panel */
.r2bl{display:flex;gap:4px;margin:8px 0 2px}.r2bl button{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;padding:6px 9px;border-radius:9px;border:1px solid #2f2f37;background:#18181c;color:var(--ink);font:inherit;cursor:pointer}
.r2bl button small{color:#a9a9b3;font-size:11px}.r2bl button.on{border-color:#c6f432;background:#1f2410}.r2bl button:disabled{opacity:.4;cursor:default}
.r2clip{position:relative;margin:0}.r2clip video{width:100%;max-height:200px;border-radius:8px;background:#000;display:block}.r2clip figcaption{color:#a9a9b3;font-size:11.5px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r2clip button{position:absolute;top:6px;right:6px;border:0;border-radius:99px;width:24px;height:24px;background:rgba(0,0,0,.65);color:#fff;cursor:pointer}
.vsw button{min-width:0;white-space:normal}
/* the person card P1 (17.11.2026): the type and the height in its head, the description grows as it is typed */
.r2head .r2kind{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;font-size:11px;color:#a9a9b3}.r2head .r2kind select,.r2head .r2kind input{width:100%;min-width:0;box-sizing:border-box}
.r2head{align-items:flex-end}
/* the viewer's panel (17.11.2026): the prompt scrolls in its own box, the icon buttons always fit below it */
.vw-side{display:flex;flex-direction:column}.vw-side>*{flex:none}
.vw-side .vw-prompt{flex:0 1 auto;min-height:60px;overflow:auto;padding-right:6px}
.vw-acts.icons{gap:6px}.vw-acts.icons .btn.ico{width:42px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1}
/* BLENDER2VA «Смотреть пример» (17.11.2026): the 3D animation and the finished video under one curtain */
.r2link{border:0;background:none;padding:0;color:#c6f432;text-decoration:underline;cursor:pointer;font:inherit}
.exbox{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:16px}.exbox[hidden]{display:none}
.expanel{width:min(1100px,100%);background:#17181a;border:1px solid #2a2a30;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.exhead{display:flex;justify-content:space-between;align-items:center}.exhead .x{border:0;background:none;color:var(--ink);font-size:18px;cursor:pointer}
.exstage{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;cursor:ew-resize;touch-action:none;user-select:none}
.exstage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.exhandle{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff;pointer-events:none}.exhandle i{position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:99px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.5)}
.exhandle i::before{content:'◀ ▶';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#111;font-size:9px;font-style:normal;letter-spacing:1px}
.extag{position:absolute;top:10px;padding:3px 9px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;pointer-events:none}.extag.l{left:10px}.extag.r{right:10px}
.exbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.exsound{display:flex;gap:4px;align-items:center;font-size:13px}.exlook{height:44px;border-radius:6px}
/* a video's materials in the viewer (17.11.2026): the Blender video and the speech files are wider than a frame */
.vw-refs figure.video{width:100%}.vw-refs figure.video video{width:100%;max-height:150px;border-radius:10px;background:#000;display:block}
.vw-refs figure.audio{width:100%}.vw-refs figure.audio audio{width:100%;height:32px}
/* «Админка → Модели» (17.11.2026): the model's line, its versions below it */
.mtable .famrow td{background:#1d1d24;border-top:2px solid #34343b;padding-top:10px}.mtable .famrow .mst b{color:#c6f432}.mtable .famrow.off td{opacity:.55}
.mtable tr.ver .mst{padding-left:22px}
.defstar{font-style:normal;color:#e8c547;font-size:.85em;margin-left:5px}.mtable .onc{white-space:nowrap}.mtable .defl{display:inline-flex;align-items:center;gap:2px;margin-left:8px;color:#e8c547;cursor:pointer;font-size:13px}.mtable .defl:has(input:disabled){opacity:.35;cursor:default}  /* ★ по умолчанию (Dima, 18.11.2026) */
.mtable tr.copy .mst{padding-left:38px}.mtable .copytag{background:rgba(139,92,246,.18);color:#c4b5fd}  /* a copy of a version (Dima, 18.11.2026) */
/* «Галерея»: the queue above the works (17.11.2026) */
.wqueue{margin:0 0 14px;padding:10px 12px;border:1px solid #2a2a30;border-radius:14px;background:#141417}
.wqhead{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}.wqhead span{color:var(--muted);font-size:12.5px}
.wqlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;max-height:260px;overflow:auto}
.wq{display:flex;flex-direction:column;gap:5px;padding:9px 10px;border-radius:10px;background:#1c1c21;border:1px solid #2a2a30}.wq.run{border-color:#5b4a9a}
.wqtop{display:flex;justify-content:space-between;gap:8px;font-size:13px}.wqtop span{color:#b9a8ff}.wq small{color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wqbar{display:block;height:4px;border-radius:99px;background:#2a2a30;overflow:hidden}.wqbar u{display:block;height:100%;background:#8b6cff}
.wq .btn.sm{align-self:flex-start;padding:3px 10px;font-size:12px}
/* the model's two windows (17.11.2026): the families, and the versions of the one under the mouse beside them */
.pop .fams{display:flex;flex-direction:column;gap:2px}
.fam,.msub .ver{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink);cursor:pointer;text-align:left;font:inherit}
.fam>span,.msub .ver{flex-direction:column;align-items:flex-start;gap:1px}.fam>span{display:flex;flex:1;min-width:0}.msub .ver{display:flex}
.fam small,.msub .ver small{color:var(--muted);font-size:11.5px}.fam .more{font-style:normal;color:var(--muted)}
.fam:hover,.fam.hot,.msub .ver:hover{background:#2a2a30}.fam.on b,.msub .ver.on b{color:#c6f432}
.pop.msub{min-width:240px}.pick.open .pop.msub[hidden],.pop.msub[hidden]{display:none}.pick:not(.open) .pop.msub{display:none}.r2 textarea.r2grow,.r2va textarea.r2grow{resize:none;overflow:hidden;min-height:44px}
/* the cells of «Фото» and «Видео» (Dima 17.11.2026): the resolution and the clip's length in the corner, quick icons with a hint, a waiting cell opens */
.card .img .corner{position:absolute;left:8px;top:8px;display:flex;gap:4px;pointer-events:none}.card .img .corner .res{position:static}
.card .img.wait{cursor:pointer}
.card .img.vid{cursor:zoom-in}.card .img .play{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:99px;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;pointer-events:none}
.card .acts .btn.ico.sm{position:relative;width:28px;height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1}
.card .acts .btn.ico.sm.green{background:transparent;border-color:var(--line);color:var(--acc2)}
.card .acts [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:3px 8px;border-radius:6px;background:#000;color:#fff;font-size:11.5px;font-weight:400;white-space:nowrap;z-index:20;pointer-events:none}
.vw-wait{color:#c4b5fd;font-size:22px;padding:40px;text-align:center}.vw-wait[hidden]{display:none}
/* full screen (Dima 18.11.2026): the stage alone, the work on black, no panel; ✕ in the corner leaves (Esc too) */
.vw.full{background:#000}.vw.full .vw-side{display:none}.vw.full .vw-stage{background:#000}
.vw.full .vw-stage>img:not(.ba-before),.vw.full .vw-stage>.vw-video{width:min(calc(100vw - 120px),calc(100vh * var(--ar,1.7778)));height:auto;max-width:none;max-height:100vh}
.vw-unfull{display:none;position:absolute;right:14px;top:14px;z-index:4;width:40px;height:40px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:18px;cursor:pointer}
.vw-unfull:hover{background:rgba(255,255,255,.2)}
.vw.full .vw-unfull{display:block}.vw.full .ba-tag.right{right:70px;top:64px}
@media (max-width:900px){.vw.full .vw-stage>img:not(.ba-before),.vw.full .vw-stage>.vw-video{width:min(100vw,calc(100vh * var(--ar,1.7778)))}}
/* the library's upload (Dima 18.11.2026): «⬆ Загрузить с ПК» and the drop zone on top; the whole window lights up under a dragged file */
.libup{display:flex;gap:10px;align-items:stretch;padding:12px 14px 0}.libup[hidden]{display:none}
.libbtn{display:inline-flex;align-items:center;gap:6px;padding:0 18px;font-weight:600;cursor:pointer;white-space:nowrap}
.libdrop{flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:58px;padding:8px 14px;border:2px dashed #3a3a40;border-radius:12px;color:var(--muted);cursor:pointer;transition:border-color .15s,background .15s}
.libdrop b{color:var(--ink);font-weight:600}.libdrop small{font-size:12px}
.libdrop:hover,.viewer.lib.over .libdrop{border-color:var(--acc);background:rgba(198,244,50,.06)}
.viewer.lib.over .libpanel{box-shadow:0 0 0 3px var(--acc)}
.viewer.lib.busy .libdrop b::after{content:' — загружаю…'}
.libnote{margin:8px 14px 0;padding:8px 12px;border-radius:10px;background:#24242a;color:#d7d7de;font-size:13px}.libnote[hidden]{display:none}
.libgrid{grid-auto-rows:max-content}  /* the square cells do not run into each other when the window is short (a phone) */
@media (max-width:600px){.libup{flex-direction:column}.libbtn{justify-content:center;min-height:42px}.libdrop small{display:none}}
/* the library's folders, «Корзина» and «Найти одинаковые» (Dima, 18.11.2026) */
.libfolders{margin:10px 14px 0}.libfolders[hidden]{display:none}
.libfright{margin-left:auto;display:flex;gap:6px;align-items:center}
.viewer.lib.dragpic .fchip[data-libdrop-to]{border-style:dashed}
.libitem.trashed{cursor:default}.libitem.trashed img{opacity:.55}
.libacts{position:absolute;left:6px;right:6px;bottom:6px;display:flex;gap:6px}
.libacts button{flex:1;height:30px;border:0;border-radius:8px;background:rgba(0,0,0,.72);color:#fff;font:inherit;font-size:12.5px;cursor:pointer}
.libacts button:hover{background:#2a2a32}.libacts .kill{flex:none;width:34px}.libacts .kill:hover{background:#c62828}
.libdupes{flex:1;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:12px}.libdupes[hidden]{display:none}
.dupehead{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.dupehead .hint{font-size:12.5px}
.dupegroup{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid #2a2a2e;border-radius:12px;background:#17171b}
.dupeitem{position:relative;width:120px;aspect-ratio:1/1;padding:0;border-radius:10px;overflow:hidden;border:2px solid #c6f432;background:#26262b;cursor:pointer}
.dupeitem img{width:100%;height:100%;object-fit:cover;display:block}
.dupeitem small{position:absolute;left:4px;top:4px;padding:1px 5px;border-radius:5px;background:rgba(0,0,0,.65);color:#fff;font-size:10.5px}
.dupeitem b{position:absolute;left:0;right:0;bottom:0;padding:3px;background:rgba(0,0,0,.7);color:#c6f432;font-size:11.5px}
.dupeitem.gone{border-color:#c62828}.dupeitem.gone img{opacity:.45}.dupeitem.gone b{color:#ff8a80}

/* Dima 18.11.2026: the sections in the bar as a «tubelight» switcher — a capsule, the open section under a lime lamp with a soft glow;
   the plate slides to the item under the mouse and comes back (tube.js); on a narrow screen only the icons */
.nav .tube{position:relative;display:flex;align-items:center;gap:2px;padding:4px;margin:0 6px;border:1px solid var(--line);border-radius:99px;background:rgba(27,27,30,.7);backdrop-filter:blur(8px);flex:none}
.nav .tube > a.navi{position:relative;z-index:1;display:flex;align-items:center;gap:7px;padding:7px 16px;border-radius:99px;color:var(--muted);font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap;background:none;transition:color .2s}
.nav .tube > a.navi svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav .tube > a.navi:hover,.nav .tube > a.navi.hot{color:var(--ink);background:none}
.nav .tube > a.navi.on{color:#c6f432;background:none}
.nav .tube:not(.live) > a.navi.on{background:rgba(198,244,50,.08)}
.tube-lamp{position:absolute;z-index:0;top:4px;bottom:4px;left:0;width:0;border-radius:99px;background:rgba(198,244,50,.07);pointer-events:none;opacity:0;transition:left .38s cubic-bezier(.3,1.3,.5,1),width .38s cubic-bezier(.3,1.3,.5,1),opacity .2s}
.nav .tube.live .tube-lamp{opacity:1}
.tube-lamp::before{content:'';position:absolute;top:-5px;left:50%;width:30px;height:4px;margin-left:-15px;border-radius:0 0 6px 6px;background:#c6f432;box-shadow:0 0 10px 1px rgba(198,244,50,.75)}
.tube-lamp::after{content:'';position:absolute;top:-6px;left:50%;width:56px;height:22px;margin-left:-28px;border-radius:50%;background:radial-gradient(ellipse at 50% 0,rgba(198,244,50,.38),rgba(198,244,50,0) 70%);filter:blur(3px)}
@media (max-width:1300px){.nav .tube > a.navi{padding:7px 12px}}
@media (max-width:1100px){.nav .tube > a.navi{font-size:0;gap:0;padding:8px 13px}.nav .tube > a.navi svg{width:18px;height:18px}}
@media (max-width:900px){.nav .tube{order:10;flex:1 1 100%;justify-content:space-around;margin:4px 0 0;max-width:100%}.nav .tube > a.navi{flex:1;justify-content:center}}
/* «Поддержка» and «Админка → Обращения» (Dima, 18.11.2026) */
.support .panel{max-width:760px}.support .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.suptopics{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin-bottom:6px}
.prof .suptopic{position:relative;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer;gap:3px}
.suptopic input{position:absolute;opacity:0;pointer-events:none}.suptopic b{color:var(--ink);font-size:13.5px}.suptopic small{font-size:11.5px;line-height:1.35}
.suptopic:has(input:checked){border-color:var(--acc);background:color-mix(in srgb,var(--acc) 14%,var(--panel))}.suptopic:hover{border-color:#4b4b52}
.supcount{align-self:flex-end;font-size:11px}.prof .check{flex-direction:row;align-items:center;gap:8px}.prof .check input{width:auto}
.suplink{width:100%;margin-top:6px}
.supthread{display:flex;flex-direction:column;gap:8px;max-width:760px;margin:14px 0}
.supmsg{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--panel2);max-width:88%}
.supmsg.adm{align-self:flex-end;border-color:color-mix(in srgb,var(--acc) 50%,var(--line));background:color-mix(in srgb,var(--acc) 10%,var(--panel2))}
.suphead{display:flex;gap:10px;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:4px}.suphead b{color:var(--ink)}
.suptext{white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.45}
.supfiles{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.supfiles img{width:110px;height:80px;object-fit:cover;border-radius:8px;display:block}
.supevent{align-self:center;margin:0;font-size:11.5px;color:var(--muted)}
.supst{display:inline-block;padding:2px 9px;border-radius:99px;font-size:12px;font-weight:600;vertical-align:middle;background:#2b2b31;color:var(--ink)}
.supst.new{background:#c6f432;color:#111}.supst.work{background:#3b2a6b;color:#ddd0ff}.supst.wait{background:#5a4210;color:#fbe7c0}
.supst.done{background:#14532d;color:#bbf7d0}.supst.rejected{background:#4c1d1d;color:#fecaca}
.supmine h2{display:flex;align-items:center;gap:10px}.supmine h2 .btn{margin-left:auto;font-size:13px}
.suprow{display:grid;grid-template-columns:60px 1fr auto auto;gap:10px;align-items:center;padding:8px;border-radius:10px;color:var(--ink);text-decoration:none}
.suprow:hover{background:var(--panel)}.suprow small{color:var(--muted)}.suprow.unread b::after{content:" ●";color:#c6f432}
.supfilter{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.supfilter label{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--muted)}
.suptable tr[onclick]{cursor:pointer}.suptable tr[onclick]:hover td{background:var(--panel2)}.suptable tr.fresh td:first-child a{font-weight:700;color:#c6f432}
.supinfo p{margin:4px 0}.supinfo form.inl{display:inline;margin-left:8px}
a.supbar{text-decoration:none;background:#1f2a12;border-color:#c6f432;color:#e9f7c6}.warnbar~.supbar{top:122px}
.sitefoot{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin:28px 0 6px;font-size:12.5px}.sitefoot a{color:var(--muted)}.sitefoot a:hover{color:var(--ink)}
@media (max-width:600px){.suprow{grid-template-columns:50px 1fr;}.supmsg{max-width:100%}}
/* the pills under the prompt (Dima, 18.11.2026: «Если выключено — просто иконка, если включено — кнопка нажата и видна надпись „Music on“ /
   „Sound on“ / „Unlimit on“… Если все будут нажаты — должны всё равно влезать в одну строчку»): off — the icon alone (its words on hover),
   on — a pressed lime pill, the words slide out and the icon turns */
.chip.pill{gap:0;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.chip.pill input{display:none}
.chip.pill .pico{font-style:normal;width:16px;text-align:center;line-height:1;transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
.chip.pill .pname{display:none}
.chip.pill .plab{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;font-size:12.5px;font-weight:600;transition:max-width .3s ease,opacity .2s ease,margin .3s ease}
.chip.pill:has(input:checked){border-color:rgba(198,244,50,.55);background:rgba(198,244,50,.12);color:#c6f432}
.chip.pill:has(input:checked) .pico{transform:rotate(-12deg) scale(1.12)}
.chip.pill:has(input:checked) .plab{max-width:90px;opacity:1;margin-left:6px}
.composer .cbar .chip.pill{padding:0 10px}
.composer .cbar .chip.pill:has(input:checked){border-color:rgba(198,244,50,.55);background:rgba(198,244,50,.12);color:#c6f432}
.chip.pill.unl{cursor:not-allowed}
.chip.pill.unl:has(input:disabled){opacity:.75}
/* in the left panel (FL2VA) the pills keep their names: «Музыка» / «Звуки» */
.r2sw .chip.pill .pname{display:inline;margin-left:6px;font-size:13px}
.r2sw .chip.pill:has(input:checked) .pname{display:none}
/* one line on 1920 with all three pills on: the length slider a little shorter, a long model name cut with «…» (its full name on hover) */
.composer .cbar .chip.secs input[type=range]{width:88px}.composer .cbar .chip.pill{padding:0 9px}
.composer .cbar [data-pick="model"] .chip{max-width:240px}.composer .cbar [data-pick="model"] [data-val]{overflow:hidden;text-overflow:ellipsis;min-width:0}
@media (max-width:600px){.composer .cbar{gap:6px}.composer .cbar .chip{padding:0 10px}.composer .cbar [data-pick="model"] .chip{max-width:100%}}
/* the materials' cells under the prompt's box (Dima, 18.11.2026, his layout): small, in a line that wraps; orange — not named in the
   prompt, green — named (or put in by the studio itself); ▶ a video, ♪ a speech file */
.cmats{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}.cmats[hidden]{display:none}
.mat{position:relative;display:inline-flex;align-items:center;gap:5px;height:34px;padding:2px 22px 2px 2px;border:1px solid #c77d2e;border-radius:9px;
  background:#2a1f12;color:var(--ink);font-size:11.5px;white-space:nowrap;cursor:pointer;user-select:none}
.mat.used{border-color:#6fbf5a;background:#1f2a1b}
.mat img{width:28px;height:28px;border-radius:6px;object-fit:cover;display:block}
.mat b{font-size:10.5px;font-weight:700;padding:1px 4px;border-radius:4px;background:#111;color:#ffc58a}.mat.used b{color:#b7e2a4}
.mat i{font-style:normal;color:#d7d7de}
.mat:not(:has(button)):not(.trash){padding-right:8px}
.mat button[data-unref]{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:16px;height:16px;padding:0;border:0;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;line-height:1;cursor:pointer}
.mat.vid img{filter:brightness(.7)}.mat.vid u{text-decoration:none;position:absolute;left:2px;top:2px;width:28px;height:28px;display:grid;place-items:center;font-size:11px;color:#fff}
.mat.vid u.solo{position:static;width:28px;height:28px;border-radius:6px;background:#26262b}
.mat.vid:not(:has(img)) u:not(.solo){position:static}
.mat.snd .matplay{width:28px;height:28px;padding:0;border:0;border-radius:6px;background:#26262b;color:#c6f432;font-size:14px;cursor:pointer}
.mat.snd:hover .matplay{font-size:0}.mat.snd:hover .matplay::after{content:'▶';font-size:12px}
.mat.trash{width:34px;padding:0;justify-content:center;border-color:#34343b;background:#1b1b1f;font-size:13px}
.mat.dragging{opacity:.4}.mat.drop{outline:2px dashed #c6f432;outline-offset:2px}
.composer.mini:not(:hover):not(:focus-within):not(:has(.pick.open)):not(:has(.msg.err:not([hidden]))) .cmats{display:none}
.peek video{display:none;max-width:300px;max-height:300px;border-radius:10px;background:#000}
.peek.vid video{display:block}.peek.vid img{display:none}
/* the picture larger on hover (a cell P… or a chip in the prompt) */
.peek{position:fixed;z-index:80;left:0;top:0;padding:5px;border-radius:14px;background:#0f0f12;border:1px solid #33333b;box-shadow:0 18px 50px rgba(0,0,0,.6);
  pointer-events:none;opacity:0;transform:translateY(6px) scale(.96);transition:opacity .16s ease,transform .18s cubic-bezier(.3,1.3,.5,1)}
.peek.on{opacity:1;transform:none}
.peek img{display:block;max-width:300px;max-height:300px;border-radius:10px;object-fit:contain}
@media (hover:none){.peek{display:none}}
/* ---- the approval light as glowing dots (Dima 18.11.2026: «красиво сделанные мерцающие шарики… Та ячейка, что выбрана, будет сиять»):
   an unchosen dot is a dim matte bead, the chosen one is bright with a soft glow of its colour and a slow halo; no motion when the
   visitor asks for less (prefers-reduced-motion) — the glow only. The markup and the rating logic are as they were. */
.light{--c:#9ca3af;--hi:#e5e7eb;--lo:#4b5563;position:relative;border:0;opacity:1;
  background:radial-gradient(circle at 35% 30%,var(--hi) 0,var(--c) 45%,var(--lo) 100%);
  filter:saturate(.35) brightness(.55);box-shadow:inset 0 1px 2px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06);
  transition:filter .2s,box-shadow .2s,transform .15s}
.light.red{--c:#ef4444;--hi:#fecaca;--lo:#991b1b}
.light.yellow{--c:#facc15;--hi:#fef9c3;--lo:#a16207}
.light.green{--c:#22c55e;--hi:#bbf7d0;--lo:#15803d}
.light:hover:not(.on){filter:saturate(.8) brightness(.85);box-shadow:inset 0 1px 2px rgba(0,0,0,.35),0 0 6px color-mix(in srgb,var(--c) 45%,transparent);transform:scale(1.1)}
.light.on{filter:none;border:0;
  box-shadow:inset 0 -1px 2px rgba(0,0,0,.25),0 0 0 1px color-mix(in srgb,var(--hi) 60%,transparent),0 0 6px 1px var(--c),0 0 16px 3px color-mix(in srgb,var(--c) 45%,transparent);
  animation:lightGlow 2.6s ease-in-out infinite}
.light.on::after{content:'';position:absolute;inset:0;border-radius:inherit;border:2px solid var(--c);pointer-events:none;
  animation:lightHalo 2.6s cubic-bezier(0,0,.2,1) infinite}
@keyframes lightHalo{0%{transform:scale(1);opacity:.7}70%,100%{transform:scale(2.3);opacity:0}}
@keyframes lightGlow{0%,100%{box-shadow:inset 0 -1px 2px rgba(0,0,0,.25),0 0 0 1px color-mix(in srgb,var(--hi) 60%,transparent),0 0 5px 1px var(--c),0 0 12px 2px color-mix(in srgb,var(--c) 35%,transparent)}
  50%{box-shadow:inset 0 -1px 2px rgba(0,0,0,.25),0 0 0 1px color-mix(in srgb,var(--hi) 60%,transparent),0 0 8px 2px var(--c),0 0 20px 5px color-mix(in srgb,var(--c) 50%,transparent)}}
@media (prefers-reduced-motion:reduce){.light.on{animation:none}.light.on::after{display:none}.light:hover:not(.on){transform:none}}
/* ---- the sign-in and the sign-up (Dima 18.11.2026, after 21st.dev «sign-in-card-2» and «p-otp-field-7»): a glassy card with a slow light
   running along its edge, «Войти через Google», the tabs «Логин и пароль» / «Код на почту», the code in 6 cells */
.authcard.glow{position:relative;max-width:400px;background:rgba(20,20,24,.78);backdrop-filter:blur(14px);border-color:rgba(255,255,255,.09);
  box-shadow:0 20px 60px rgba(0,0,0,.45);isolation:isolate}
.authcard.glow::before{content:'';position:absolute;inset:-1px;border-radius:inherit;padding:1px;z-index:-1;pointer-events:none;
  background:conic-gradient(from var(--beam,0deg),transparent 0 70%,rgba(167,139,250,.9) 80%,rgba(34,197,94,.7) 86%,transparent 92%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:authBeam 7s linear infinite}
@property --beam{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes authBeam{to{--beam:360deg}}
.authcard .sub{margin:-4px 0 12px}
.authcard .gbtn{gap:10px;background:#f4f4f5;color:#111;border-color:#f4f4f5;font-weight:600;padding:10px 12px;margin:6px 0 2px}
.authcard .gbtn:hover{background:#fff}
.authcard .or{display:flex;align-items:center;gap:10px;margin:12px 0 6px;color:var(--muted);font-size:12px}
.authcard .or::before,.authcard .or::after{content:'';flex:1;height:1px;background:var(--line)}
.authcard .authtabs{margin:6px 0 2px;background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:11px;padding:3px;flex-wrap:nowrap}
.authcard .authtabs button{flex:1}
.authcard .check{flex-direction:row;color:var(--ink);opacity:.9}.authcard .check a{color:#c4b5fd}
.authcard .btn.wide{width:100%;padding:10px 12px}
.authcard .btn[disabled]{opacity:.45;cursor:not-allowed}
.otp{display:flex;gap:8px;justify-content:space-between;margin:14px 0}
.otp input{width:46px;height:54px;padding:0;text-align:center;font-size:22px;font-weight:700;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.04);color:var(--ink);caret-color:var(--acc);transition:border-color .15s,box-shadow .15s}
.otp input:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 3px rgba(139,92,246,.25)}
.otp input.full{border-color:#4b4b55}
.authcard .resend{margin-top:8px}
@media (max-width:380px){.otp{gap:5px}.otp input{width:40px;height:48px;font-size:19px}}
@media (prefers-reduced-motion:reduce){.authcard.glow::before{animation:none}}
/* «GS.Soft» (Dima 18.11.2026): the catalog of the programs and a program's page */
.soft .eyebrow{margin:6px 0 0;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#c6f432}.soft .eyebrow a{color:inherit;text-decoration:none}
.soft h1{margin:4px 0 6px}
.softlead{font-size:17px;margin:0 0 10px}.softtext{max-width:640px;font-size:14px;line-height:1.6}
.softcat{margin-top:16px}.softcat .ti img{width:26px;height:26px;border-radius:6px}
.tile em.softplat{background:rgba(198,244,50,.1);border-color:rgba(198,244,50,.35);color:#c6f432}
.softpower{display:flex;flex-direction:column;gap:4px;max-width:640px;margin:14px 0;padding:14px 16px;border-left:3px solid #c6f432}.softpower span{color:var(--muted)}
.softact{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0}.softdl{padding:10px 20px;font-weight:700}.softdl[aria-disabled]{opacity:.6;cursor:default}
