
:root{
  color-scheme: light;
  --blue:#135e75; --ray-a:#146379; --ray-b:#115570; --ink:#135a70;
  --yellow:#fcbe1e; --yink:#f0ae0c;
  --paper:#ffffff; --mist:#eef3f5; --line:#d4e1e7; --muted:#67828f; --deep:#0d3544;
  --danger:#c4553f; --sel:#1e9bd7;
  --font:"Baloo 2","Baloo","Nunito","Arial Rounded MT Bold",system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
#root{height:100%}
body{font-family:var(--font);color:var(--ink);background:var(--blue);font-size:15px;line-height:1.4}
body.app{overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}

/* ===== pozadí ===== */
.bgwrap{position:absolute;inset:0;overflow:hidden;background:var(--blue);pointer-events:none}
.bgl{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.bgl.on{opacity:1}
.spin{position:absolute;left:50%;top:50%;width:260%;aspect-ratio:1;translate:-50% -50%;will-change:transform}
.vp .spin{width:260vmax}
.bgl.blue{background:var(--blue)}
.bgl.blue .spin{background:repeating-conic-gradient(from 0deg,var(--ray-a) 0deg 14deg,var(--ray-b) 14deg 25deg,var(--ray-a) 25deg 38deg,var(--ray-b) 38deg 51.43deg);animation:ccw 220s linear infinite}
.bgl.blue::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 40%,rgba(5,30,42,.28) 100%)}
.bgl.yellow{background:var(--yellow)}
.bgl.yellow .spin{background:var(--yellow) var(--spiral) center/100% 100% no-repeat;animation:cw 150s linear infinite}
.still .spin{animation:none}
@keyframes cw{to{transform:rotate(360deg)}}
@keyframes ccw{to{transform:rotate(-360deg)}}

/* ===== scéna 1920×1080 a prvky ===== */
.stagebox{position:relative;aspect-ratio:16/9;width:100%;max-width:100%;overflow:hidden;border-radius:inherit;isolation:isolate}
.stage{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;transform:scale(var(--k,.1))}
.slide{position:absolute;inset:0}
.el{position:absolute}
.ei,.el-l{width:100%;height:100%}
.tx{width:100%;height:100%;display:flex;align-items:center;line-height:1.12}
.tt{width:100%;text-wrap:balance;overflow-wrap:anywhere;outline:none}
.tt[contenteditable]{cursor:text;text-wrap:wrap}
.shp{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0 4%}
.shp .tt{line-height:1.1}
.imf{width:100%;height:100%;overflow:hidden;display:flex}
.pic{width:100%;height:100%;background-position:center;background-repeat:no-repeat;filter:blur(var(--b,0px)) grayscale(var(--g,0));transition:filter 1.8s ease;display:block;object-fit:cover}
.revealed .pic{filter:none}
.ph{width:100%;height:100%;display:grid;place-items:center;background:rgba(255,255,255,.55);border:6px dashed rgba(19,90,112,.35);color:rgba(19,90,112,.6);font-size:44px;font-weight:700;border-radius:inherit;text-align:center}
.aud{width:100%;height:100%;position:relative;display:grid;place-items:center}
.aud .blob{position:absolute;inset:0;width:100%;height:100%}
.aud canvas.vz{position:absolute;left:-50%;top:-50%;width:200%;height:200%;pointer-events:none}
.aud .alogo{position:relative;width:27%;will-change:transform}
.tmr{width:100%;height:100%;position:relative;display:grid;place-items:center;font-weight:800;line-height:1}
.tmr svg{position:absolute;inset:5%;width:90%;height:90%;transform:rotate(-90deg);overflow:visible}
.tmr circle{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round}
.tmr .trk{opacity:.14}
.tmr .prg{stroke-dasharray:100;stroke-dashoffset:var(--off,0);transition:stroke-dashoffset .2s linear}
.tmr .tv{padding-top:.08em;font-variant-numeric:tabular-nums}
.tmr.done{animation:lPulse .5s ease-in-out 4}
.chs{width:100%;height:100%;display:grid;grid-auto-rows:1fr}
.ch{background:var(--f);color:var(--c);border-radius:9999px;display:flex;align-items:center;gap:.45em;padding:0 .7em 0 .25em;font-weight:800;line-height:1.05;transition:transform .6s cubic-bezier(.34,1.56,.64,1),opacity .5s,background .4s,color .4s;min-width:0}
.ch b{width:1.5em;height:1.5em;border-radius:50%;background:var(--c);color:var(--f);display:grid;place-items:center;flex:none;padding-top:.1em;transition:inherit}
.ch span{min-width:0}
.revealed .ch.ok{background:var(--hl);color:#fff;transform:scale(1.05)}
.revealed .ch.ok b{background:#fff;color:var(--hl)}
.revealed .ch:not(.ok){opacity:.38}
.mt{position:relative;width:100%;height:100%}
.mt svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.mt line{stroke:var(--lc);stroke-width:12;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .9s ease}
.mt line.on{stroke-dashoffset:0}
.mc.cards{width:47%}
.mk{background:var(--f);color:var(--c);border-radius:.55em;display:flex;align-items:center;gap:.55em;padding:0 .6em 0 .22em;font-weight:800;line-height:1.05;min-width:0;transition:background .45s,color .45s,transform .5s cubic-bezier(.34,1.56,.64,1)}
.mk b{height:80%;aspect-ratio:1;border:.1em solid currentColor;border-radius:.42em;display:grid;place-items:center;font-size:1.5em;flex:none;padding-top:.08em}
.mk span{min-width:0}
.mk{position:relative;overflow:hidden;isolation:isolate;transition:color .6s ease,box-shadow .6s ease}
.mk::before{content:"";position:absolute;inset:0;background:var(--hl);z-index:-1;opacity:0;transition:opacity .6s ease}
.mk{transition:color .25s ease,box-shadow .4s ease,transform .5s cubic-bezier(.2,.8,.2,1)}
.mk::before{transition:opacity .4s ease .08s}
.mk.hl{color:#fff;box-shadow:0 10px 28px rgba(8,40,52,.28);transition:color .3s ease .6s,box-shadow .6s ease .35s}
.mk.hl::before{opacity:1;transition:opacity .6s ease .35s}
.mk b{transition:border-color .25s ease,color .25s ease}
.mk.hl b{transition:border-color .3s ease .6s,color .3s ease .6s}
.fu{position:relative;width:100%;height:100%}
.fu-side,.fu-c{position:absolute;background:#fff;padding:var(--fb);box-sizing:border-box}
.fu-side{top:7%;bottom:7%;width:31%;border-radius:calc(var(--fb) + 52px)}
.fu-side.l{left:0}.fu-side.r{right:0}
.fu-c{left:26.5%;right:26.5%;top:0;bottom:0;border-radius:calc(var(--fb) + 60px);z-index:2;box-shadow:0 6px 22px rgba(0,0,0,.08)}
.fu-in{width:100%;height:100%;border-radius:52px;overflow:hidden;background:#2c5c70;display:flex}
.fu-c .fu-in{border-radius:60px;background:#dde6eb}
.fu-in svg{width:100%;height:100%;display:block}
.fu-side.ans{display:flex;flex-direction:column;padding-bottom:0}
.fu-side.ans .fu-in{flex:1;min-height:0;background:#dde6eb}
.fu-side.ans .fu-in .pic,.fu-side.ans .fu-in .ph{width:100%;height:100%;border-radius:0}
.fu-nm{height:92px;flex:none;display:grid;place-items:center;text-overflow:ellipsis;color:var(--yink);font-weight:800;font-size:44px;line-height:1;padding-top:6px;white-space:nowrap;overflow:hidden}
.fu-c .pic,.fu-c .ph{width:100%;height:100%;border-radius:0}
.ei[class*="an-"] .fu-side.l{animation:fuL .75s calc(var(--d,0s) + .35s) cubic-bezier(.34,1.3,.64,1) both}
.ei[class*="an-"] .fu-side.r{animation:fuR .75s calc(var(--d,0s) + .35s) cubic-bezier(.34,1.3,.64,1) both}
@keyframes fuL{from{transform:translateX(62%);opacity:.0}30%{opacity:1}}
@keyframes fuR{from{transform:translateX(-62%);opacity:.0}30%{opacity:1}}
.mys{width:100%;height:100%;position:relative;overflow:hidden;display:grid;place-items:center}
.mys svg{position:absolute;left:0;right:0;bottom:0;width:100%;height:92%}
.mys span{position:relative;color:#f3f1ec;font-weight:800;line-height:1;margin-top:-18%}
.imf.col{flex-direction:column;gap:14px}
.imf.col .pic{flex:1;min-height:0}
.cap{text-align:center;font-weight:800;line-height:1.1;flex:none;padding:2px 6px 0}
.mc{position:absolute;top:0;bottom:0;width:36%;display:grid}
.mc.l{left:0}.mc.r{right:0}
.mi{background:var(--f);color:var(--c);border-radius:9999px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:800;line-height:1.05;padding:0 .5em;min-width:0}

/* animace vstupu a smyčky */
.an-pop{animation:aPop .7s var(--d,0s) cubic-bezier(.34,1.56,.64,1) both}
.an-rise{animation:aRise .75s var(--d,0s) cubic-bezier(.34,1.3,.64,1) both}
.an-drop{animation:aDrop .75s var(--d,0s) cubic-bezier(.34,1.3,.64,1) both}
.an-left{animation:aLeft .7s var(--d,0s) cubic-bezier(.34,1.2,.64,1) both}
.an-right{animation:aRight .7s var(--d,0s) cubic-bezier(.34,1.2,.64,1) both}
.an-fade{animation:aFade .8s var(--d,0s) ease both}
.an-zoom{animation:aZoom .7s var(--d,0s) cubic-bezier(.2,.9,.3,1) both}
.an-spin{animation:aSpin .9s var(--d,0s) cubic-bezier(.34,1.4,.64,1) both}
.lp-float{animation:lFloat 5s ease-in-out infinite}
.lp-pulse{animation:lPulse 1.6s ease-in-out infinite}
.lp-wiggle{animation:lWiggle 2.4s ease-in-out infinite}
.lp-spin{animation:lSpin 12s linear infinite}
@keyframes aPop{from{transform:scale(0)}}
@keyframes aRise{from{opacity:0;transform:translateY(180px)}}
@keyframes aDrop{from{opacity:0;transform:translateY(-180px)}}
@keyframes aLeft{from{opacity:0;transform:translateX(-260px)}}
@keyframes aRight{from{opacity:0;transform:translateX(260px)}}
@keyframes aFade{from{opacity:0}}
@keyframes aZoom{from{opacity:0;transform:scale(1.7)}}
@keyframes aSpin{from{opacity:0;transform:scale(0) rotate(-200deg)}}
@keyframes lFloat{50%{transform:translateY(-16px)}}
@keyframes lPulse{50%{transform:scale(1.06)}}
@keyframes lWiggle{25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
@keyframes lSpin{to{transform:rotate(360deg)}}
.slide.out{animation:slideOut .45s cubic-bezier(.5,0,.75,0) forwards}
@keyframes slideOut{to{opacity:0;transform:scale(.9)}}
.k-match>.ei[class*="an-"],.k-choices>.ei[class*="an-"],.k-match>.ei[class*="ex-"],.k-choices>.ei[class*="ex-"]{animation:none!important}
.k-match .mt svg{transition:opacity .4s}
.k-match>.ei.an-pop :is(.mk,.mi),.k-choices>.ei.an-pop .ch{animation:aPop .55s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.34,1.56,.64,1) both}
.k-match>.ei.an-rise :is(.mk,.mi),.k-choices>.ei.an-rise .ch{animation:aRise .6s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.34,1.3,.64,1) both}
.k-match>.ei.an-drop :is(.mk,.mi),.k-choices>.ei.an-drop .ch{animation:aDrop .6s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.34,1.3,.64,1) both}
.k-match>.ei.an-left :is(.mk,.mi),.k-choices>.ei.an-left .ch{animation:aLeft .6s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.34,1.2,.64,1) both}
.k-match>.ei.an-right :is(.mk,.mi),.k-choices>.ei.an-right .ch{animation:aRight .6s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.34,1.2,.64,1) both}
.k-match>.ei.an-fade :is(.mk,.mi),.k-choices>.ei.an-fade .ch{animation:aFade .6s calc(var(--d,0s) + var(--i,0)*.1s) ease both}
.k-match>.ei.an-zoom :is(.mk,.mi),.k-choices>.ei.an-zoom .ch{animation:aZoom .55s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.2,.9,.3,1) both}
.k-match>.ei.an-spin :is(.mk,.mi),.k-choices>.ei.an-spin .ch{animation:aSpin .7s calc(var(--d,0s) + var(--i,0)*.1s) cubic-bezier(.34,1.4,.64,1) both}
.k-match>.ei.ex-pop :is(.mk,.mi),.k-choices>.ei.ex-pop .ch{animation:xPop .4s calc(var(--i,0)*.06s) cubic-bezier(.6,-.4,.7,.3) forwards}
.k-match>.ei.ex-drop :is(.mk,.mi),.k-choices>.ei.ex-drop .ch{animation:xDrop .45s calc(var(--i,0)*.06s) cubic-bezier(.5,0,.75,0) forwards}
.k-match>.ei.ex-rise :is(.mk,.mi),.k-choices>.ei.ex-rise .ch{animation:xRise .45s calc(var(--i,0)*.06s) cubic-bezier(.5,0,.75,0) forwards}
.k-match>.ei.ex-left :is(.mk,.mi),.k-choices>.ei.ex-left .ch{animation:xLeft .45s calc(var(--i,0)*.06s) cubic-bezier(.5,0,.75,0) forwards}
.k-match>.ei.ex-right :is(.mk,.mi),.k-choices>.ei.ex-right .ch{animation:xRight .45s calc(var(--i,0)*.06s) cubic-bezier(.5,0,.75,0) forwards}
.k-match>.ei.ex-fade :is(.mk,.mi),.k-choices>.ei.ex-fade .ch{animation:xFade .45s calc(var(--i,0)*.06s) ease forwards}
.k-match>.ei.ex-zoom :is(.mk,.mi),.k-choices>.ei.ex-zoom .ch{animation:xZoom .45s calc(var(--i,0)*.06s) cubic-bezier(.5,0,.75,0) forwards}
.k-match>.ei.ex-spin :is(.mk,.mi),.k-choices>.ei.ex-spin .ch{animation:xSpin .55s calc(var(--i,0)*.06s) cubic-bezier(.5,0,.75,0) forwards}
.k-match>.ei[class*="ex-"] .mt svg{opacity:0}
.ex-pop{animation:xPop .5s var(--xd,0s) cubic-bezier(.6,-.4,.7,.3) forwards}
.ex-drop{animation:xDrop .6s var(--xd,0s) cubic-bezier(.5,0,.75,0) forwards}
.ex-rise{animation:xRise .6s var(--xd,0s) cubic-bezier(.5,0,.75,0) forwards}
.ex-left{animation:xLeft .6s var(--xd,0s) cubic-bezier(.5,0,.75,0) forwards}
.ex-right{animation:xRight .6s var(--xd,0s) cubic-bezier(.5,0,.75,0) forwards}
.ex-fade{animation:xFade .6s var(--xd,0s) ease forwards}
.ex-zoom{animation:xZoom .55s var(--xd,0s) cubic-bezier(.5,0,.75,0) forwards}
.ex-spin{animation:xSpin .7s var(--xd,0s) cubic-bezier(.5,0,.75,0) forwards}
@keyframes xPop{to{transform:scale(0)}}
@keyframes xDrop{to{opacity:0;transform:translateY(260px)}}
@keyframes xRise{to{opacity:0;transform:translateY(-260px)}}
@keyframes xLeft{to{opacity:0;transform:translateX(-320px)}}
@keyframes xRight{to{opacity:0;transform:translateX(320px)}}
@keyframes xFade{to{opacity:0}}
@keyframes xZoom{to{opacity:0;transform:scale(1.6)}}
@keyframes xSpin{to{opacity:0;transform:scale(0) rotate(200deg)}}
.later{visibility:hidden}

/* ===== UI ===== */
.btn{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:999px;padding:8px 15px 6px;font-weight:700;background:var(--mist);color:var(--ink);white-space:nowrap;line-height:1.2}
.btn:hover{filter:brightness(.96)}
.btn:disabled{opacity:.4;cursor:default;filter:none}
.btn.primary{background:var(--yellow);color:var(--deep)}
.btn.dark{background:var(--ink);color:#fff}
.btn.white{background:#fff}
.btn.ghost{background:transparent}
.btn.danger{background:#fbe9e5;color:var(--danger)}
.btn.sm{padding:5px 11px 3px;font-size:13px}
.btn svg,.ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic{border:0;background:transparent;width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;color:var(--muted)}
.ic:hover{background:var(--mist);color:var(--ink)}
.ic:disabled{opacity:.35;cursor:default;background:none}
.ic.danger:hover{color:var(--danger);background:#fbe9e5}
.inp{width:100%;border:2px solid var(--line);border-radius:10px;padding:6px 10px 4px;background:#fff;color:var(--ink);font-weight:600;font-size:15px;min-width:0}
.inp:focus{border-color:var(--ink);outline:none}
textarea.inp{resize:vertical;min-height:72px;line-height:1.35}
select.inp{padding-right:4px}
#toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));translate:-50% 0;background:var(--deep);color:#fff;padding:10px 18px 8px;border-radius:999px;font-weight:600;z-index:200;transition:opacity .3s,translate .3s;max-width:calc(100% - 32px);text-align:center}
#toast[hidden]{display:block!important;opacity:0;translate:-50% 20px;pointer-events:none}

/* ===== domů ===== */
#home{position:relative;min-height:100%}
#home .vp{position:fixed;inset:0}
.home-in{position:relative;max-width:1180px;margin:0 auto;padding:28px 16px 80px;display:grid;gap:28px}
.hero{display:flex;align-items:center;gap:20px;flex-wrap:wrap;color:#fff}
.hero .logo{width:120px;flex:none}
.hero h1{margin:0;font-size:clamp(30px,5vw,48px);line-height:1;font-weight:800;padding-top:6px}
.hero p{margin:4px 0 0;opacity:.85;font-weight:600}
.hero .sp{flex:1}
.section{background:#fff;border-radius:32px;padding:22px 22px 24px;display:grid;gap:16px;box-shadow:0 10px 30px rgba(5,30,42,.25)}
.sec-h{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sec-h h2{margin:0;font-size:26px;font-weight:800;line-height:1.1;padding-top:4px}
.sec-h .cnt{color:var(--muted);font-weight:600;font-size:14px;padding-top:4px;margin-left:4px}
.sec-h .sp{flex:1}
.sec-h .inp{max-width:320px;font-size:20px;font-weight:800}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.qcard{border:0;padding:0;background:transparent;text-align:left;display:grid;gap:8px;border-radius:20px}
.qcard .stagebox{border-radius:16px;box-shadow:0 0 0 1px var(--line);transition:transform .2s,box-shadow .2s}
.qcard:hover .stagebox{transform:translateY(-3px);box-shadow:0 0 0 3px var(--yellow)}
.qcard b{font-size:18px;line-height:1.15;padding:0 4px}
.qmeta{display:flex;align-items:center;gap:10px;padding:0 4px;margin-top:-4px}
.qmeta .qstars{padding:0;margin:0}
.qdur{font-size:12.5px;font-weight:700;color:var(--ink);background:var(--mist);border-radius:6px;padding:1px 7px 0}
.filters{display:flex;gap:6px;align-items:center}
.fpill{position:relative}
.fpill summary{list-style:none;display:flex;align-items:center;gap:7px;height:40px;padding:0 12px 0 13px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:700;font-size:14.5px;cursor:pointer;user-select:none;transition:background .2s}
.fpill summary::-webkit-details-marker{display:none}
.fpill summary:hover{background:rgba(255,255,255,.24)}
.fpill summary>svg:first-child{width:17px;height:17px;opacity:.85;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fpill summary span{padding-top:2px}
.fpill .chev{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:.7;transition:transform .2s}
.fpill[open] .chev{transform:rotate(180deg)}
.fpill.on summary{background:#fff;color:var(--ink)}
.fpill.on .fst{color:var(--yink)}
.fx{border:0;background:var(--mist);color:var(--ink);width:22px;height:22px;border-radius:99px;display:grid;place-items:center;font-size:16px;line-height:1;padding:0;margin-right:-4px;cursor:pointer}
.fx:hover{background:var(--line)}
.fmenu{position:absolute;right:0;top:calc(100% + 8px);z-index:30;background:#fff;border-radius:16px;padding:6px;min-width:190px;box-shadow:0 18px 40px rgba(8,40,52,.28);display:grid;gap:2px;animation:fmIn .18s ease}
@keyframes fmIn{from{opacity:0;transform:translateY(-4px)}}
.fmenu button{border:0;background:none;text-align:left;padding:9px 12px 7px;border-radius:10px;font-weight:700;font-size:14.5px;color:var(--ink);cursor:pointer}
.fmenu button:hover{background:var(--mist)}
.fmenu button.on{background:var(--mist);box-shadow:inset 3px 0 0 var(--blue)}
.fst{color:#f0b400;letter-spacing:1px}
.fst i{font-style:normal;color:var(--line)}
@media (max-width:640px){.fmenu{right:auto;left:0}}
.homebar .sp{flex:1}
.hero{flex-wrap:nowrap}
.hero>div:not(.logo){min-width:0}
@media (max-width:600px){.hero{gap:12px}.hero .logo{width:72px;flex:none}.hero .logo svg{width:100%;height:auto}.hero h1{font-size:28px}.hero p{font-size:12px}}
.homebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:-10px}
.homebar .filters{flex-wrap:wrap}
.homebar .fmenu{left:0;right:auto}
.qcard.locked{cursor:default}
.qcard.locked .stagebox{filter:grayscale(.85) brightness(.85)}
.qcard.locked b,.qcard.locked small,.qcard.locked .qmeta{opacity:.55}
.qlock.big{width:44px;height:44px;right:50%;top:calc(50% - 40px);translate:50% -50%}
.qlock.big svg{width:20px;height:20px}
.shrow{display:flex;align-items:center;gap:10px;width:100%;border:0;background:var(--mist);border-radius:14px;padding:10px 14px;cursor:pointer;color:var(--ink);text-align:left;font-weight:700}
.shrow:hover{background:#e3ecf0}
.shrow>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;flex:none;opacity:.7}
.shrow .shl{color:var(--muted);font-size:13.5px}
.shrow .avs{display:flex}.shrow .avs img{width:24px;height:24px;border-radius:99px;margin-left:-6px;box-shadow:0 0 0 2px var(--mist);background:var(--line)}
.shrow .avs img:first-child{margin-left:0}
.shrow em{font-style:normal;font-size:13px;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.sheet.top{z-index:70}
#shr.ready,#shr.ready .box{animation:none}
.sheet .box.shbox{width:min(520px,100%);max-height:84vh;display:flex;flex-direction:column;gap:12px}
.shq{margin:-6px 0 0;color:var(--muted);font-weight:700}
.shtools{display:flex;gap:8px;align-items:center}.shtools .padd{flex:1}
.shl2{flex:1;min-height:0;overflow:auto;display:grid;gap:2px;align-content:start;margin:0 -6px;padding:0 6px}
.shi{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:12px;cursor:pointer;font-weight:700}
.shi:hover{background:var(--mist)}
.shi input{width:18px;height:18px;accent-color:var(--ink);flex:none}
.shi img{width:30px;height:30px;border-radius:99px;background:var(--line)}
.shi span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shi svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;opacity:.45}
.shi.on svg{opacity:1;color:#1f9d6a}
.pfil{justify-self:start}
.prow .pn[data-act]{cursor:pointer}
.prow .pn small svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.4;vertical-align:-1px}
.pqh{display:flex;align-items:center;gap:6px}.pqh>b{font-size:14px}
.pq svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;opacity:.4;margin-left:auto}
.pq.on svg{opacity:1;color:#1f9d6a}
.pq{padding:4px 8px;border-radius:9px}.pq:hover{background:#fff}
.ssec{width:auto;flex:1;max-width:260px}
.addmail{justify-self:start;background:var(--ink);color:#fff}
.setbtn{width:44px;height:44px;border-radius:99px;background:rgba(255,255,255,.16);color:#fff;padding:0;flex:none;display:grid;place-items:center}
.setbtn:hover{background:rgba(255,255,255,.28)}
.setbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.asbar{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:8px 10px 8px 14px;color:var(--ink);font-weight:700;box-shadow:0 6px 18px rgba(8,40,52,.2)}
.asbar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.asbar span{flex:1}
.noacc h2{margin:0 0 6px}
.qcard{position:relative}
.qlock{position:absolute;right:12px;top:12px;width:30px;height:30px;border-radius:99px;background:rgba(255,255,255,.92);display:grid;place-items:center;color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.18);z-index:2}
.qlock svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2}
.qcard[draggable="true"]{cursor:grab}
.qcard.qdragging{opacity:.4}
body.qdrag .section[data-sec]:not([data-sec=""]){transition:box-shadow .15s,background .15s}
body.qdrag .section.dropok{box-shadow:0 0 0 4px var(--yellow),0 20px 50px rgba(0,0,0,.25)}
body.qdrag .qnew{opacity:.35}
.qauth{margin:-8px 0 0;color:var(--muted);font-weight:700;font-size:14px}
.srow.ro{gap:14px;color:var(--muted);font-weight:700}
.share{display:grid;gap:8px;background:var(--mist);border-radius:16px;padding:12px}
.share>b{font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.share small{color:var(--muted);font-weight:600}
.pchips{display:flex;flex-wrap:wrap;gap:6px}
.pchip{display:flex;align-items:center;gap:6px;border:0;background:#fff;border-radius:99px;padding:3px 10px 3px 3px;font-weight:700;font-size:13.5px;color:var(--ink);cursor:pointer;box-shadow:0 0 0 1.5px var(--line)}
.pchip img{width:24px;height:24px;border-radius:99px;background:var(--line)}
.pchip.on{background:var(--ink);color:#fff;box-shadow:none}
.pchip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6}
.sheet .box.setbox{width:min(640px,100%);max-height:88vh;overflow:auto;gap:14px}
.seth{display:flex;align-items:center}.seth h3{flex:1;display:flex;align-items:center;gap:8px;margin:0;font-size:22px}
.seth h3 svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.settabs{justify-self:start}
.setbody{display:grid;gap:12px}
.meacc{display:flex;align-items:center;gap:12px;background:var(--mist);border-radius:16px;padding:12px}
.meacc img,.meacc .noav{width:48px;height:48px;border-radius:99px;flex:none}
.meacc .noav{display:grid;place-items:center;background:#fff}.meacc .noav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.meacc div{flex:1;display:grid;min-width:0}.meacc b{font-size:17px}.meacc small{color:var(--muted);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.rbadge{border-radius:99px;padding:4px 11px 2px;font-size:12.5px;font-weight:800;white-space:nowrap}
.r-admin{background:var(--ink);color:#fff}.r-creator{background:var(--yellow);color:var(--deep)}.r-player{background:#dfe9ee;color:var(--ink)}.r-none{background:#f3dcdc;color:#8a2a2a}
.rolehelp{display:grid;gap:4px}
.rolehelp div{display:grid;grid-template-columns:90px 1fr;gap:10px;padding:8px 10px;border-radius:12px;font-size:14px;color:var(--muted)}
.rolehelp div b{color:var(--ink)}
.rolehelp div.on{background:var(--mist)}
.padd{display:flex;align-items:center;gap:8px;background:var(--mist);border-radius:12px;padding:0 12px;height:44px}
.padd svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;flex:none}
.padd input{border:0;background:none;outline:none;font:inherit;font-weight:700;font-size:15px;color:var(--ink);width:100%}
.phits{display:grid;gap:2px;background:#fff;border-radius:12px;box-shadow:0 0 0 1px var(--line);padding:4px}
.phits button{display:flex;align-items:center;gap:10px;border:0;background:none;padding:6px 8px;border-radius:9px;text-align:left;cursor:pointer;color:var(--ink)}
.phits button:hover{background:var(--mist)}
.phits img{width:32px;height:32px;border-radius:99px}
.phits span{flex:1;display:grid;min-width:0}.phits small{color:var(--muted);font-weight:600}
.phits em{font-style:normal;font-weight:800;font-size:12.5px;color:var(--ink)}
.plist{display:grid;gap:4px}
.prow{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto auto auto;align-items:center;gap:6px;padding:6px 6px 6px 8px;border-radius:14px}
.prow:hover,.prow.open{background:var(--mist)}
.prow>img{width:36px;height:36px;border-radius:99px;background:var(--line)}
.prow .pn{display:grid;min-width:0}.prow .pn b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prow .pn small{color:var(--muted);font-weight:600;font-size:12.5px}
.prow.me .rbadge{grid-column:3 / -1;justify-self:end;margin-right:6px}
.rsg button{padding:5px 10px 3px;font-size:12.5px}
.icsp{width:36px}
.prow .ic.armed{background:#e0413a;color:#fff}
.pquiz{grid-column:1 / -1;display:grid;gap:10px;padding:6px 6px 4px 50px}
.pqs{display:grid;gap:2px}.pqs>b{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.pq{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;cursor:pointer;padding:3px 0}
.pq input{width:18px;height:18px;accent-color:var(--ink)}
@media (max-width:560px){.prow{grid-template-columns:36px minmax(0,1fr) auto auto auto}.rsg{grid-column:2 / -1;grid-row:2}}
.dsep{width:1px;align-self:stretch;background:rgba(255,255,255,.25);margin:0 6px}
.dsep2{width:1px;height:20px;background:var(--line)}
.mins{display:inline-flex;align-items:center;gap:3px;border:2px solid var(--line);border-radius:10px;padding:0 8px;height:32px;font-weight:700;font-size:13px;color:var(--muted);background:#fff}
.mins:focus-within{border-color:var(--ink)}
.mins input{width:42px;border:0;outline:none;font-weight:800;font-size:15px;color:var(--ink);text-align:right;background:transparent;-moz-appearance:textfield;padding-top:2px}
.mins input::-webkit-inner-spin-button{display:none}
.qstars{padding:0 4px;margin-top:-4px;font-size:16px;line-height:1;letter-spacing:1px;color:#d9e2e7}
.qstars i{font-style:normal}.qstars i.on{color:var(--yink)}
.qstars em{font-style:normal;font-size:12.5px;color:var(--muted);font-weight:600;letter-spacing:0}
.dfilter{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:rgba(255,255,255,.12);border-radius:16px;padding:8px 10px;color:#fff}
.dfilter>span{font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;opacity:.85;margin-right:4px}
.dfilter button{border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:700;padding:6px 12px 4px;font-size:14px}
.dfilter button:hover{background:rgba(255,255,255,.24)}
.dfilter button.on{background:#fff;color:var(--ink)}
.dfilter .stars{color:var(--yellow);letter-spacing:1px}
.dfilter button.on .stars{color:var(--yink)}
.nofilter{grid-column:1/-1;margin:4px}
.sedit{display:inline-flex;gap:0}
.sedit button{border:0;background:transparent;font-size:24px;line-height:1;padding:2px 2px 0;color:#d4dde2;transition:transform .12s,color .12s}
.sedit button.on{color:var(--yink)}
.sedit:hover button{color:var(--yink)}
.sedit button:hover~button{color:#d4dde2}
.sedit button:hover{transform:scale(1.15)}
.srow{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--muted);font-size:14px;margin-top:-8px}
.tstars .sedit button{font-size:20px}
.qcard small{color:var(--muted);font-weight:600;padding:0 4px;margin-top:-6px}
.qnew{border:2px dashed var(--line);border-radius:16px;background:var(--mist);aspect-ratio:16/9;display:grid;place-items:center;color:var(--muted);font-weight:700}
.qnew span{display:flex;gap:6px;align-items:center;white-space:nowrap}
.qnew svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.stagebox svg text{text-rendering:geometricPrecision}
.qnew:hover{border-color:var(--ink);color:var(--ink)}
.hint{color:var(--muted);font-size:13px;font-weight:600}
.sheet{position:fixed;inset:0;background:rgba(8,30,40,.55);display:grid;place-items:center;padding:16px;z-index:50;animation:fade .2s}
.sheet .box{background:#fff;border-radius:28px;width:min(520px,100%);padding:20px;display:grid;gap:16px;animation:rise .3s cubic-bezier(.34,1.4,.64,1)}
.sheet .box .stagebox{border-radius:16px}
.sheet h3{margin:0;font-size:26px;line-height:1.1}
.sheet .big{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sheet .big .btn{justify-content:center;padding:13px 18px 11px;font-size:18px}
.sheet .row{display:flex;gap:8px;flex-wrap:wrap}
@keyframes fade{from{opacity:0}}
@keyframes rise{from{opacity:0;transform:translateY(30px) scale(.96)}}

/* ===== editor ===== */
#editor{height:100%;display:grid;grid-template-rows:auto 1fr;background:var(--mist)}
.topbar{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap}
.topbar{flex-wrap:nowrap;gap:10px;padding:8px 12px;min-height:60px}
.topbar .back{flex:none;background:var(--mist)}
.tmain{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.topbar .tmain .title{flex:none;width:100%;max-width:640px;font-size:18px;padding:3px 8px 1px;line-height:1.2}
.qset{position:relative;margin-left:3px}
.qset summary{list-style:none;display:flex;align-items:center;gap:6px;padding:2px 6px 0;border-radius:8px;font-size:13px;font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap;user-select:none}
.qset summary::-webkit-details-marker{display:none}
.qset summary:hover,.qset[open] summary{background:var(--mist);color:var(--ink)}
.qset summary i{font-style:normal;opacity:.5}
.qset .qms{color:#f0b400;letter-spacing:1px}
.qset .qmu{font-weight:600;opacity:.75}
.qset .chev{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.qset[open] .chev{transform:rotate(180deg)}
.qsetm{position:absolute;left:0;top:calc(100% + 8px);z-index:60;background:#fff;border-radius:16px;padding:10px 14px;min-width:300px;box-shadow:0 18px 40px rgba(8,40,52,.22),0 0 0 1px var(--line);display:grid;gap:8px;animation:fmIn .18s ease}
.qrow{display:grid;grid-template-columns:78px 1fr;align-items:center;gap:10px;min-height:38px}
.qrow>span:first-child{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.qrow select.inp{width:100%}
.qrow .mins{justify-self:start;width:120px}
.tright{flex:none;display:flex;align-items:center;gap:4px}
.tright .status{font-size:12.5px;color:var(--muted);margin-right:4px;white-space:nowrap}
.tdiv{width:1px;height:22px;background:var(--line);margin:0 4px}
.tright .btn.primary{margin-left:6px}
@media (max-width:620px){.tright .btn.primary span,.tright .status,.tdiv{display:none}}
.topbar .title{flex:1 1 200px;min-width:0;border:2px solid transparent;border-radius:10px;padding:5px 9px 3px;font-size:20px;font-weight:800;background:transparent}
.topbar .title:hover{border-color:var(--line)}
.topbar .title:focus{border-color:var(--ink);outline:none}
.topbar select.inp{width:auto;font-size:14px}
.status{font-size:13px;font-weight:600;color:var(--muted);min-width:84px;text-align:right}
.status.err{color:var(--danger)}
.edm{display:grid;grid-template-columns:190px minmax(0,1fr) 300px;min-height:0}
.slides{overflow:auto;padding:12px 10px 20px;display:grid;gap:8px;align-content:start;border-right:1px solid var(--line);background:#f6f9fa}
.it{position:relative;display:grid;grid-template-columns:20px 1fr;gap:5px;align-items:start;border-radius:12px;padding:5px;cursor:pointer}
.it{grid-template-columns:12px 16px 1fr;gap:4px;padding-left:3px}
.lane{position:relative;align-self:stretch;margin:-9px 0;cursor:crosshair;touch-action:none}
.lane .lplus{position:absolute;left:50%;top:50%;translate:-50% -50%;width:14px;height:14px;border-radius:99px;background:#fff;box-shadow:0 0 0 1.5px var(--line);color:var(--muted);font-size:12px;font-weight:800;line-height:14px;text-align:center;opacity:0;transition:opacity .15s}
.lane:not(.has)::before{content:"";position:absolute;left:50%;top:9px;bottom:9px;width:2px;translate:-50% 0;border-radius:2px;background:var(--line);opacity:0;transition:opacity .15s}
.it:hover .lane:not(.has)::before,.it:hover .lane .lplus,.lane.pend::before{opacity:1}
.lane.pend::before{background:var(--ink);width:6px;opacity:.5}
.lane.blk{cursor:not-allowed}
.lane.blk::before{content:"";position:absolute;left:50%;top:14px;bottom:14px;width:2px;translate:-50% 0;background:repeating-linear-gradient(to bottom,var(--line) 0 3px,transparent 3px 7px)}
.lbar{position:absolute;left:2px;right:2px;top:0;bottom:0;background:var(--bc);cursor:grab}
.lbar.b0{top:9px;border-radius:6px 6px 0 0}
.lbar.b1{bottom:9px;border-radius:0 0 6px 6px}
.lbar.b0.b1{border-radius:6px}
.lbar.b0::before,.lbar.b1::after{content:"";position:absolute;left:1px;right:1px;height:3px;border-radius:2px;background:rgba(255,255,255,.75);opacity:0;transition:opacity .15s}
.lbar.b0::before{top:2px;cursor:ns-resize}.lbar.b1::after{bottom:2px}
.lane:hover .lbar::before,.lane:hover .lbar::after{opacity:1}
.lbar.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--bc)}
.lbar i{position:absolute;left:50%;top:6px;translate:-50% 0;display:grid;place-items:center}
.lbar i svg{width:9px;height:9px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
body.lanedrag,body.lanedrag *{cursor:grabbing!important;user-select:none}
#bmenu{position:fixed;z-index:80;background:#fff;border-radius:14px;padding:6px;min-width:220px;max-width:300px;box-shadow:0 16px 40px rgba(8,40,52,.28),0 0 0 1px var(--line);display:grid;gap:2px;animation:fmIn .15s ease}
#bmenu .bmh{font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);padding:6px 10px 4px}
#bmenu button{display:flex;align-items:center;gap:8px;border:0;background:none;text-align:left;padding:8px 10px 6px;border-radius:9px;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer;min-width:0}
#bmenu button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bmenu button:hover{background:var(--mist)}
#bmenu button svg{width:14px;height:14px}
.audchip{width:100%;height:100%;display:flex;align-items:center;gap:14px;padding:0 26px;border-radius:999px;background:rgba(255,255,255,.88);border:4px dashed rgba(19,90,112,.45);color:var(--ink);font-weight:800;font-size:30px;white-space:nowrap;overflow:hidden}
.audchip svg{width:36px;height:36px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.audchip span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.audchip em{font-style:normal;font-size:22px;color:var(--muted);margin-left:auto;flex:none}
.aud.hidn{visibility:hidden}
#cvwrap.dropping{outline:3px dashed var(--ink);outline-offset:-10px;border-radius:18px}
.sndchip{display:inline-flex;align-items:center;gap:6px;border:1.5px dashed #9fb4bd;background:#fff;color:var(--ink);border-radius:999px;height:30px;padding:0 12px 0 10px;font-weight:800;font-size:12.5px;cursor:pointer;max-width:300px;min-width:0;flex:0 1 auto}
.sndchip em{font-style:normal;color:var(--muted);font-weight:700;flex:none;padding-top:2px}
.sndchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:2px}
.sndchip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;flex:none}
.sndchip:hover{border-color:var(--ink)}
.sndchip.on{border-style:solid;border-color:var(--ink);background:var(--mist)}
.mcd{width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}
.mcd-i{flex:1;min-height:0;overflow:hidden;background:#dde6eb;position:relative}
.mcd-i .pic,.mcd-i .ph{width:100%;height:100%;border-radius:0;background-position:center;background-repeat:no-repeat}
.mcd-i .ph small{display:block;font-size:26px;margin-top:10px;opacity:.8}
.mcd-t{height:var(--th);flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;font-weight:800;line-height:1.18;padding-top:calc(var(--th)*.08)}
.mcd-t b{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ei[class*="an-"] .mcd-i{animation:mcdIn .7s calc(var(--d,0s) + .2s) cubic-bezier(.2,.8,.2,1) both}
.ei[class*="an-"] .mcd-t b{animation:mcdUp .6s calc(var(--d,0s) + .4s + var(--j)*.1s) cubic-bezier(.34,1.4,.64,1) both}
@keyframes mcdIn{from{opacity:0;transform:scale(.94)}}
@keyframes mcdUp{from{opacity:0;transform:translateY(40px)}}
.galbtn{width:100%;justify-content:center;margin-top:8px;background:var(--mist)}
.galbtn em{font-style:normal;background:#fff;border-radius:99px;padding:1px 7px 0;font-size:11.5px;color:var(--muted)}
#bmenu.gal{width:320px;padding:0;overflow:hidden;display:flex;flex-direction:column;max-height:min(460px,80vh)}
#bmenu [hidden]{display:none!important}
#bmenu svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#bmenu .ghead{padding:8px 8px 6px;border-bottom:1px solid var(--line);display:grid;gap:6px}
#bmenu .gsearch{display:flex;align-items:center;gap:6px;background:var(--mist);border-radius:10px;padding:0 10px;height:36px}
#bmenu .gsearch svg{width:15px;height:15px;opacity:.6;flex:none}
#bmenu .gsearch input{border:0;background:none;outline:none;font:inherit;font-weight:700;font-size:14px;color:var(--ink);width:100%}
#bmenu.gal .gl{flex:1;min-height:0;overflow:auto;padding:4px 6px;max-height:none}
#bmenu .gsec{margin:8px 10px 2px;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
#bmenu .gnone{margin:14px 10px;color:var(--muted);font-weight:700;font-size:13.5px}
#bmenu .gic{width:22px;height:22px;border-radius:7px;background:var(--mist);display:grid;place-items:center;flex:none}
#bmenu .gic svg{width:13px;height:13px}
#bmenu.gal .bdot{margin:0 6px}
#bmenu .gtx{display:grid;min-width:0}
#bmenu .gfoot{display:flex;border-top:1px solid var(--line)}
#bmenu .gfoot .gup{flex:1;border-top:0!important;justify-content:center;white-space:nowrap}
#bmenu .gfoot .gup+.gup{border-left:1px solid var(--line)!important}
#bmenu .gup em,.gmore em{font-style:normal;background:var(--mist);border-radius:99px;padding:1px 7px 0;font-size:11.5px;color:var(--muted)}
#bmenu .gmore{justify-content:center;color:var(--muted);font-size:13px}
#glib .glbox{width:min(640px,100%);max-height:min(720px,88vh);padding:0;gap:0;display:flex;flex-direction:column;overflow:hidden}
.glh{display:flex;align-items:center;padding:16px 16px 6px 22px}.glh h3{flex:1;font-size:22px}
.gltools{display:flex;gap:10px;align-items:center;padding:6px 16px 12px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.gltools .gsearch{flex:1;min-width:200px;display:flex;align-items:center;gap:8px;background:var(--mist);border-radius:12px;padding:0 12px;height:42px}
.gltools .gsearch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;opacity:.6}
.gltools .gsearch input{border:0;background:none;outline:none;font:inherit;font-weight:700;font-size:15px;color:var(--ink);width:100%}
.gll{flex:1;min-height:0;overflow:auto;padding:8px 10px 14px}
.glr{display:flex;align-items:center;gap:4px;border-radius:12px}
.glr:hover{background:var(--mist)}
.glr button{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:none;text-align:left;padding:9px 10px 7px;border-radius:10px;cursor:pointer;color:var(--ink);font-weight:700}
.glr .gic{width:26px;height:26px;border-radius:8px;background:#fff;display:grid;place-items:center;flex:none}
.glr .gic svg,.glr svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.glr .gtx{display:grid;min-width:0}.glr .gtx b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.glr .gtx small{font-size:12.5px;color:var(--muted);font-weight:600}
.glr .bdot{width:12px;height:12px;border-radius:99px;margin:0 7px;flex:none}
.gpl{width:36px;height:36px;border-radius:99px;display:grid;place-items:center;flex:none;margin-left:4px;cursor:pointer;color:var(--ink);background:#fff;box-shadow:0 0 0 1.5px var(--line)}
.gpl:hover{box-shadow:0 0 0 1.5px var(--ink)}
.gpl svg{fill:currentColor!important;stroke:none!important}
#glib .gnone{padding:30px;text-align:center;color:var(--muted);font-weight:700}
#bmenu .gup{border-top:1px solid var(--line)!important;border-radius:0!important;padding:11px 14px 9px!important;color:var(--ink)}
#bmenu .gl{display:grid;gap:2px;max-height:320px;overflow:auto}
#bmenu.gal button span{display:grid;min-width:0}
#bmenu.gal button small{font-size:11.5px;color:var(--muted);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bmenu.gal button b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bdot{width:10px;height:10px;border-radius:99px;flex:none}
.bgmrow{display:flex;align-items:center;gap:10px;width:100%;border:0;background:var(--mist);border-radius:12px;padding:7px 10px;text-align:left;cursor:pointer;color:var(--ink);box-shadow:inset 3px 0 0 var(--bc)}
.bgmrow:hover{background:#e6eef1}
.bgmrow i{width:30px;height:30px;border-radius:8px;background:var(--bc);display:grid;place-items:center;flex:none}
.bgmrow i svg{width:15px;height:15px;stroke:#fff}
.bgmrow span{display:grid;min-width:0;flex:1}.bgmrow b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bgmrow small{font-size:12px;color:var(--muted);font-weight:700}
.bgmrow>svg{width:15px;height:15px;opacity:.6}
.ihead h3 svg{width:18px;height:18px;margin-right:6px;vertical-align:-3px}
.bgmcard{box-shadow:inset 3px 0 0 var(--bc)}
.bgmcard .mth{background:var(--bc);color:#fff}
.bgmcard .mth svg{stroke:#fff}
.brng{display:flex;align-items:center;gap:6px;margin:12px 0 10px;flex-wrap:nowrap}
.brng .lb{margin-right:auto}
.brng .dash{color:var(--muted);font-weight:800}
.addbgm{width:100%;justify-content:center;background:var(--mist)}
.brng .lb{font-size:12.5px;font-weight:700;color:var(--muted)}
.bstep{display:flex;align-items:center;background:var(--mist);border-radius:999px;padding:2px}
.bstep .ic{width:26px;height:26px;font-size:17px;font-weight:800;color:var(--ink)}
.bstep .ic:disabled{opacity:.3}
.bstep b{min-width:26px;text-align:center;font-size:15px;padding-top:2px}
.isec .tgl{margin-top:8px}
.it .n{font-weight:700;font-size:12px;color:var(--muted);text-align:right;padding-top:1px;font-variant-numeric:tabular-nums}
.it .stagebox{border-radius:8px;box-shadow:0 0 0 1px var(--line)}
.it.sel{background:#fff;box-shadow:0 0 0 2px var(--ink)}
.it .qtag{position:absolute;left:30px;top:9px;background:var(--yellow);color:var(--deep);font-size:9.5px;font-weight:800;border-radius:6px;padding:1px 6px 0;letter-spacing:.03em;pointer-events:none}
.it .qf{grid-column:2;display:flex;gap:3px;align-items:center;font-size:10.5px;font-weight:800;color:var(--ink);padding:3px 2px 0;white-space:nowrap;overflow:hidden}
.it .qf svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.6;flex:none}
.flow{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:12.5px;font-weight:800;color:var(--muted)}
.flow span{background:var(--mist);color:var(--ink);border-radius:8px;padding:4px 8px 2px}
.flow span.y{background:#fff3cf}
.flow span.off{opacity:.35;text-decoration:line-through}
.phs{display:flex;background:#fff;border-radius:12px;padding:3px;box-shadow:0 0 0 1.5px var(--line)}
.phs button{border:0;background:transparent;border-radius:9px;padding:5px 14px 3px;font-weight:800;font-size:13.5px;color:var(--muted)}
.phs button.on{background:var(--ink);color:#fff}
.it .anx{position:absolute;right:9px;bottom:9px;width:20px;height:20px;border-radius:99px;background:var(--ink);color:#fff;display:grid;place-items:center;pointer-events:none}
.it .anx svg{width:10px;height:10px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
.it .st{position:absolute;left:4px;bottom:6px;font-size:10px;font-weight:800;color:var(--muted)}
.it .acts{position:absolute;right:8px;top:8px;display:none;gap:1px;background:#fff;border-radius:999px;padding:1px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.it:hover .acts{display:flex}
.it .acts .ic{width:26px;height:26px}
.it .acts .ic svg{width:14px;height:14px}
.it.drop-before{box-shadow:0 -4px 0 0 var(--yellow)}
.it.drop-after{box-shadow:0 4px 0 0 var(--yellow)}
.it.dragging{opacity:.4}
.addsl{display:grid;gap:6px;margin-top:4px}
.work{display:grid;grid-template-rows:auto auto 1fr auto;min-width:0;min-height:0}
.tools{display:flex;gap:6px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}
.tools .btn{background:#fff;box-shadow:0 0 0 1.5px var(--line)}
.tools .btn:hover{box-shadow:0 0 0 1.5px var(--ink)}
.tools{justify-content:center;gap:4px;padding:8px 12px}
.tools .btn{flex-direction:column;gap:3px;padding:7px 8px 5px;font-size:11.5px;border-radius:12px;min-width:68px;box-shadow:none}
.tools .btn svg{width:20px;height:20px}
.tools .btn:hover{box-shadow:none;background:var(--mist)}
.tools .sep{width:1px;background:var(--line);margin:0 4px}
.cvwrap{position:relative;min-height:0;display:grid;place-items:center;padding:18px;overflow:hidden}
.cv{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 12px 36px rgba(5,30,42,.22);touch-action:none;user-select:none;-webkit-user-select:none}
.cv .stage,.cv .ov{transform:scale(var(--k))}
.ov{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;pointer-events:none}
.edit .el{cursor:move}
.edit .el.dim{opacity:.14}
.edit .el.hover{outline:calc(2px * var(--ik)) solid rgba(30,155,215,.5)}
.sbadge{position:absolute;left:0;top:0;translate:0 calc(-100% - 8px * var(--ik));height:calc(26px * var(--ik));border-radius:99px;background:var(--yellow);color:var(--deep);font-size:calc(13px * var(--ik));font-weight:800;display:flex;align-items:center;gap:calc(4px * var(--ik));padding:0 calc(9px * var(--ik)) 0 calc(7px * var(--ik));box-shadow:0 2px 8px rgba(8,40,52,.25);pointer-events:none;white-space:nowrap}
.sbadge span{padding-top:calc(2px * var(--ik))}
.sbadge svg{width:calc(14px * var(--ik));height:calc(14px * var(--ik));fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sbadge.in{translate:calc(10px * var(--ik)) calc(10px * var(--ik))}
.selbox{position:absolute;outline:calc(2px * var(--ik)) solid var(--sel);transform-origin:center}
.hd{position:absolute;width:calc(14px * var(--ik));height:calc(14px * var(--ik));background:#fff;border:calc(2px * var(--ik)) solid var(--sel);border-radius:50%;translate:-50% -50%;pointer-events:auto;touch-action:none}
.hd[data-h="rot"]{background:var(--sel);cursor:grab}
.rotline{position:absolute;left:50%;top:calc(-44px * var(--ik));height:calc(44px * var(--ik));width:calc(2px * var(--ik));background:var(--sel);translate:-50% 0}
.guide{position:absolute;background:#ff3d7f}
.guide.v{top:0;bottom:0;width:calc(2px * var(--ik))}
.guide.h{left:0;right:0;height:calc(2px * var(--ik))}
.cvbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 14px 12px}
.cvbar .sp{flex:1}
.seg{display:flex;flex-wrap:wrap;gap:5px}
.seg button{border:2px solid var(--line);background:#fff;border-radius:999px;padding:4px 11px 2px;font-weight:700;font-size:13px;color:var(--muted)}
.seg button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.insp{overflow:auto;background:#fff;border-left:1px solid var(--line);padding:14px 14px 40px;display:grid;gap:14px;align-content:start}
.insp h3{margin:0;font-size:18px;line-height:1.1;display:flex;align-items:center;gap:6px}
.insp h3 .sp{flex:1}
.grp{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.grp>.gt{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.fld{display:grid;gap:4px;font-weight:700;font-size:13px;color:var(--muted)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.row4{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.sws{display:flex;gap:6px}
.sw{width:30px;height:30px;border-radius:50%;border:2px solid var(--line);padding:0}
.sw.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.chk{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;color:var(--ink)}
.chk input{width:18px;height:18px;accent-color:var(--ink)}
.layers{display:grid;gap:4px}
.layers button{display:flex;gap:8px;align-items:center;text-align:left;border:0;background:var(--mist);border-radius:10px;padding:6px 10px 4px;font-weight:600;color:var(--ink);min-width:0}
.layers svg,.insp h3 svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;flex:none}
.layers button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.layers button em{font-style:normal;font-size:12px;color:var(--muted)}
.picker{position:fixed;inset:0;z-index:70;background:rgba(8,30,40,.5);display:grid;place-items:center;padding:16px;animation:fade .15s}
.pk{background:#fff;border-radius:22px;width:min(1080px,100%);height:min(760px,calc(100vh - 32px));display:grid;grid-template-columns:230px minmax(0,1fr);overflow:hidden;box-shadow:0 24px 60px rgba(5,30,42,.35);animation:rise .25s cubic-bezier(.34,1.3,.64,1)}
.pk nav{background:var(--mist);padding:18px 12px;display:grid;gap:4px;align-content:start}
.pk nav h4{margin:0 8px 12px;font-size:19px;color:var(--ink)}
.pk nav button{display:grid;gap:1px;text-align:left;border:0;background:transparent;border-radius:12px;padding:10px 12px 8px;color:var(--ink);font-weight:800;font-size:15px}
.pk nav button small{font-weight:600;font-size:12px;color:var(--muted);line-height:1.3}
.pk nav button:hover{background:rgba(255,255,255,.6)}
.pk nav button.on{background:#fff;box-shadow:0 1px 4px rgba(5,30,42,.12)}
.pk nav button.on small{color:var(--ink)}
.pk .pkm{display:grid;grid-template-rows:auto 1fr;min-height:0}
.pk .pkh{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 12px;border-bottom:1px solid var(--line)}
.pk .pkh div{flex:1}
.pk .pkh h3{margin:0;font-size:20px}
.pk .pkh p{margin:3px 0 0;font-size:13.5px;color:var(--muted);font-weight:600;line-height:1.35}
.pk .pkb{overflow:auto;padding:18px 20px 24px}
.tg{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.tg.wide{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.tc{border:0;background:none;padding:0;display:grid;gap:6px;text-align:left;color:var(--ink);cursor:pointer}
.tc .stagebox{border-radius:10px;box-shadow:0 0 0 1px var(--line);transition:box-shadow .15s}
.tc:hover .stagebox{box-shadow:0 0 0 3px var(--yellow)}
.tc b{font-size:15px;line-height:1.15}
.tc small{font-size:12.5px;color:var(--muted);font-weight:600;line-height:1.3;margin-top:-3px}
.tc .pair{display:grid;grid-template-columns:1fr 18px 1fr;align-items:center;gap:4px}
.tc .pair>span{color:var(--muted);font-weight:800;text-align:center}
.tc .pair i{font-style:normal;font-size:10.5px;font-weight:800;color:var(--muted);letter-spacing:.05em;display:block;margin-bottom:3px}
.tc:hover .pair .stagebox{box-shadow:0 0 0 3px var(--yellow)}
.pksub{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pksub:not(:first-child){margin-top:22px}
.tcw{position:relative}
.tcw .tc{width:100%}
.tcw .tx{position:absolute;right:6px;top:6px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);opacity:0;transition:opacity .15s}
.tcw:hover .tx,.tcw .tx:focus-visible{opacity:1}
.tdel{position:absolute;right:6px;top:6px;display:flex;gap:4px}
.tr-track{cursor:pointer}
.tr-ph{position:absolute;top:-6px;bottom:-6px;width:3px;background:#e0413a;border-radius:2px;translate:-50% 0;pointer-events:none;z-index:2}
.tr-ph span{position:absolute;top:-20px;left:50%;translate:-50% 0;background:#e0413a;color:#fff;font-size:11px;font-weight:800;border-radius:6px;padding:1px 5px 0;white-space:nowrap;font-variant-numeric:tabular-nums}
.trim{padding-top:22px}
.trbtn{display:flex;gap:6px;flex-wrap:wrap}
.trbtn .btn{flex:1;justify-content:center}
.plr{display:grid;gap:10px}
.tr-lab{font-size:12px;gap:6px}
.tr-lab b{color:var(--ink)}
.tr-lab .len{background:var(--mist);color:var(--ink);border-radius:6px;padding:1px 7px 0;font-weight:800}
.tp{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px}
.tp-main{width:44px;height:44px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center}
.tp-main:hover{background:var(--deep)}
.tp-main svg{width:20px;height:20px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.tp-txt{display:grid;line-height:1.15;min-width:0}
.tp-txt b{font-size:14px;color:var(--ink)}
.tp-txt span{font-size:12px;color:var(--muted);font-weight:600}
.tp-s{border:0;background:var(--mist);border-radius:10px;padding:5px 9px 3px;display:grid;justify-items:center;gap:0;color:var(--ink);font-weight:700;font-size:11px}
.tp-s svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4}
.tp-s:hover{background:#e2eaee}
.marks{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mk2{display:flex;align-items:center;justify-content:center;gap:6px;border:2px dashed #e0413a;background:#fff5f4;color:#b8322c;border-radius:10px;padding:7px 6px 5px;font-weight:800;font-size:13px;min-width:0}
.mk2 svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;flex:none}
.mk2:hover{background:#ffe9e7}
.rh{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:10px;align-items:stretch}
.bpm{display:flex;align-items:center;gap:2px;border:2px solid var(--line);border-radius:14px;padding:4px 6px;position:relative}
.bpm .ic{font-size:20px;font-weight:800;color:var(--ink)}
.bpm label{flex:1;display:grid;justify-items:center;line-height:1}
.bpm input{width:100%;border:0;outline:none;text-align:center;font-size:30px;font-weight:800;color:var(--ink);background:transparent;padding:4px 0 0;-moz-appearance:textfield}
.bpm input::-webkit-inner-spin-button{display:none}
.bpm label span{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--muted)}
.bdot{position:absolute;right:8px;top:8px;width:9px;height:9px;border-radius:50%;background:var(--line);transition:background .06s}
.bdot.on{background:#e0413a;box-shadow:0 0 0 4px rgba(224,65,58,.18)}
.tap{border:0;border-radius:14px;background:var(--yellow);color:var(--deep);display:grid;place-content:center;gap:0;line-height:1.05;user-select:none;touch-action:manipulation}
.tap b{font-size:20px}
.tap span{font-size:11px;font-weight:700}
.tap:active{transform:scale(.95)}
.rh2{display:flex;gap:4px;flex-wrap:wrap}
.lnk{border:0;background:transparent;color:var(--muted);font-weight:700;font-size:12.5px;display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:7px}
.lnk:hover{background:var(--mist);color:var(--ink)}
.lnk svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4}
/* kompaktní přehrávač a rytmus */
.tr-track{height:28px}
.tr-h{height:34px;width:14px;border-radius:6px}
.tp{display:flex;align-items:center;gap:8px;grid-template-columns:none}
.tp-main{width:32px;height:32px;flex:none}
.tp-main svg{width:15px;height:15px}
.tp-time{flex:1;font-size:13px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-time b{color:var(--ink);font-weight:800}
.tp-time em{font-style:normal;background:var(--mist);color:var(--ink);border-radius:6px;padding:1px 6px 0;margin-left:4px;font-weight:800;font-size:12px}
.tp .ic svg{fill:currentColor}
.marks{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.marks .btn{justify-content:center;background:#fff5f4;color:#b8322c;white-space:nowrap}
.marks .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4}
.rh{display:flex;align-items:center;gap:8px;grid-template-columns:none}
.bpm{flex:1;display:flex;align-items:center;gap:0;border:2px solid var(--line);border-radius:10px;padding:0;height:36px;min-width:0}
.bpm:focus-within{border-color:var(--ink)}
.bpm button{border:0;background:transparent;width:30px;height:100%;font-size:18px;font-weight:800;color:var(--muted);flex:none}
.bpm button:hover{color:var(--ink);background:var(--mist)}
.bpm input{flex:1;min-width:0;width:auto;font-size:17px;padding:2px 0 0;text-align:right}
.bpm span{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.06em;padding:2px 4px 0 5px}
.bdot{position:static;flex:none;width:10px;height:10px}
.tap{height:36px;padding:2px 16px 0;border-radius:10px;font-size:15px;font-weight:800;display:inline-grid;min-width:62px}
.rh .ic{width:30px;height:30px;font-size:18px;font-weight:800}
.insp{grid-template-columns:minmax(0,1fr);overflow-x:hidden}
.insp>*,.isec>*{min-width:0}
.bpmrow{display:grid;grid-template-columns:100px 1fr 32px;gap:6px;align-items:center}
.btn.hit{animation:hit .18s ease}
@keyframes hit{50%{transform:scale(.93);background:var(--yellow)}}
.cvhead{display:flex;align-items:center;gap:10px;padding:12px 18px 0;flex-wrap:nowrap;min-width:0}
.cvhead>.btn{flex:none}.cvhead .ttl{flex:none}
.cvhead{container-type:inline-size}
@container (max-width:720px){.cvhead>.btn span{display:none}.cvhead>.btn{padding:0 10px}}
.cvhead .ttl{font-weight:800;font-size:16px;color:var(--ink);display:flex;align-items:center;gap:8px}
.cvhead .ttl em{font-style:normal;background:var(--yellow);color:var(--deep);border-radius:7px;font-size:11px;padding:2px 7px 0;letter-spacing:.04em}
.cvhead .sp{flex:1}
.phs.big button{padding:7px 18px 5px;font-size:14.5px}
.phs.big button small{display:block;font-size:11px;font-weight:600;opacity:.75;margin-top:-2px}
.cv.ans{box-shadow:0 0 0 4px var(--yellow),0 12px 36px rgba(5,30,42,.22)}
.cvlab{position:absolute;left:12px;top:12px;z-index:4;background:var(--yellow);color:var(--deep);font-weight:800;font-size:12px;letter-spacing:.06em;border-radius:8px;padding:4px 10px 2px;pointer-events:none}
.cvlab.q{background:#fff;color:var(--ink)}
.tools .sep{width:1px;align-self:stretch;background:var(--line);margin:2px 4px}
.tools{flex-wrap:nowrap;justify-content:center;gap:2px;padding:6px 10px;overflow-x:auto;scrollbar-width:none;container-type:inline-size}
.tools .btn{flex-direction:row;gap:5px;height:34px;padding:0 9px;min-width:0;font-size:13px;border-radius:10px;color:var(--ink);white-space:nowrap;flex:none}
.tools .btn span{padding-top:2px}
.tools .btn svg{width:17px;height:17px;opacity:.85}
.tools .sep{margin:6px 6px;align-self:stretch;flex:none}
@container (max-width:680px){.tools .btn span{display:none}.tools .btn{width:38px;padding:0;justify-content:center}}
.tools{gap:8px;padding:7px 10px;overflow:visible;flex-wrap:nowrap}
.tgrp{display:flex;gap:1px;align-items:center;background:var(--mist);border-radius:12px;padding:3px;position:relative;flex:none}
.tgrp.qz{background:#fff4d6}
.tgrp.qz .btn{color:#8a5a00}
.tgrp .btn{background:transparent}
.tgrp .btn:hover{background:#fff}
.tools .tgl{display:none}
.tools .btn[data-tip]{position:relative}
.tools .btn[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 8px);translate:-50% -3px;background:var(--ink);color:#fff;font-size:12px;font-weight:700;padding:5px 9px 3px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s,translate .15s;z-index:40}
.tools .btn[data-tip]:hover::after{opacity:1;translate:-50% 0}
@container (min-width:681px){.tools .btn[data-tip]::after{display:none}}
.tools .gl{font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;align-self:center;margin:0 2px 0 4px}
.addhint{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--deep);background:#fff3cf;border-radius:8px;padding:4px 10px 2px;align-self:center}
.pop{position:fixed;z-index:60;background:#fff;border-radius:18px;box-shadow:0 16px 48px rgba(5,30,42,.3);padding:14px;width:min(620px,calc(100vw - 32px));max-height:80vh;overflow:auto}
.pop h4{margin:0 0 10px;font-size:16px}
.tpls{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.tpls button{border:0;background:none;padding:0;display:grid;gap:4px;text-align:left;font-weight:700;font-size:13px;color:var(--ink)}
.tpls .stagebox{border-radius:8px;box-shadow:0 0 0 1px var(--line)}
.tpls button:hover .stagebox{box-shadow:0 0 0 3px var(--yellow)}
@media (max-width:1100px){.edm{grid-template-columns:150px minmax(0,1fr) 270px}}
@media (max-width:820px){
  body.app{overflow:auto}
  #editor{height:auto;min-height:100%}
  .edm{grid-template-columns:1fr}
  .slides{grid-auto-flow:column;grid-auto-columns:140px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line)}
  .cvwrap{height:62vw}
  .insp{border-left:0}
}

/* ===== inspektor v2 ===== */
.insp{padding:0 0 40px;gap:0}
.ihead{position:sticky;top:0;z-index:3;background:#fff;padding:12px 14px 10px;border-bottom:1px solid var(--line);display:grid;gap:10px}
.ihead h3{margin:0;font-size:17px;line-height:1.1;display:flex;align-items:center;gap:7px;min-height:32px}
.ihead h3 .sp{flex:1}
.tabs{display:flex;background:var(--mist);border-radius:12px;padding:3px;gap:2px}
.tabs button{flex:1;border:0;background:transparent;border-radius:9px;padding:6px 4px 4px;font-weight:700;font-size:14px;color:var(--muted)}
.tabs button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(5,30,42,.14)}
.tabs em{font-style:normal;display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--yellow);color:var(--deep);font-size:11px;padding:1px 4px 0;margin-left:2px;vertical-align:1px}
.isec{padding:14px;display:grid;gap:10px;border-bottom:1px solid var(--mist)}
.ihint.trh{padding:8px 14px;margin:0;border-bottom:1px solid var(--mist)}
.isec h4{margin:0;font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.ihint{margin:-2px 0 0;font-size:12.5px;line-height:1.35;color:var(--muted);font-weight:600}
.ctl{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:10px;min-height:34px}
.ctl .lb{font-size:13.5px;font-weight:700;color:var(--muted)}
.rng{display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:center;gap:8px}
.rng output{font-size:13px;font-weight:700;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.rng input{-webkit-appearance:none;appearance:none;width:100%;height:22px;background:transparent;margin:0;cursor:pointer}
.rng input::-webkit-slider-runnable-track{height:5px;border-radius:3px;background:linear-gradient(90deg,var(--ink) var(--p,0%),var(--line) var(--p,0%))}
.rng input::-moz-range-track{height:5px;border-radius:3px;background:linear-gradient(90deg,var(--ink) var(--p,0%),var(--line) var(--p,0%))}
.rng input::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;border:2.5px solid var(--ink);margin-top:-6.5px;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.rng input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:2.5px solid var(--ink)}
.nin{display:flex;align-items:center;border:2px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;min-width:0}
.nin:focus-within{border-color:var(--ink)}
.nin span{padding:0 0 0 9px;font-size:12px;font-weight:800;color:var(--muted)}
.nin input{border:0;outline:none;width:100%;min-width:0;padding:6px 6px 4px;font-weight:700;font-size:14px;background:transparent;font-variant-numeric:tabular-nums}
.grid4{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.row2c{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sg{display:flex;flex-wrap:wrap;gap:4px;background:var(--mist);border-radius:11px;padding:3px}
.sg button{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;border-radius:8px;padding:6px 8px 4px;font-weight:700;font-size:13px;color:var(--muted);min-height:30px}
.sg button:hover{color:var(--ink)}
.sg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(5,30,42,.16)}
.sg svg,.tiles svg,.qtb svg,.media svg,.drop svg,.two svg,.lrow svg,.wide svg,.ihead svg,.layers svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sg.ico button{padding:5px 6px}
.sg.chips{background:transparent;padding:0;gap:6px}
.sg.chips button{flex:0 0 auto;border:2px solid var(--line);background:#fff;border-radius:999px;padding:4px 12px 2px;min-height:30px}
.sg.chips button.on{border-color:var(--ink);background:var(--ink);color:#fff;box-shadow:none}
.al6{display:grid;grid-template-columns:repeat(7,1fr)}
.sws{display:flex;gap:7px;flex-wrap:wrap}
.sw{width:28px;height:28px}
.tgl{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer;min-height:30px}
.tgl input{position:absolute;opacity:0;width:1px;height:1px}
.tgl i{width:36px;height:21px;border-radius:11px;background:var(--line);position:relative;flex:none;transition:background .2s}
.tgl i::after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
.tgl input:checked+i{background:var(--ink)}
.tgl input:checked+i::after{transform:translateX(15px)}
.tgl input:focus-visible+i{outline:3px solid var(--yellow);outline-offset:2px}
.btn.wide{width:100%;justify-content:center}
.two{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.two .btn{justify-content:center;white-space:normal;text-align:center}
.drop{display:grid;justify-items:center;gap:4px;border:2px dashed var(--line);background:var(--mist);border-radius:14px;padding:18px 12px;color:var(--ink);text-align:center}
.drop:hover{border-color:var(--ink)}
.drop svg{width:26px;height:26px}
.drop span{font-size:12.5px;color:var(--muted);font-weight:600}
.media{display:grid;grid-template-columns:52px minmax(0,1fr) auto auto auto;align-items:center;gap:6px;background:var(--mist);border-radius:14px;padding:6px}
.mth{width:52px;height:52px;border-radius:10px;background:#dfe8ec center/cover no-repeat;display:grid;place-items:center;color:var(--ink)}
.mi2{display:grid;min-width:0;line-height:1.2}
.mi2 b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mi2 span{font-size:12px;color:var(--muted);font-weight:600}
.media .pl{background:var(--ink);color:#fff}
.media .pl:hover{background:var(--deep);color:#fff}
.trim{display:grid;gap:6px;padding:4px 2px 0}
.tr-track{position:relative;height:34px;border-radius:9px;background:repeating-linear-gradient(90deg,#dce6eb 0 3px,transparent 3px 7px),var(--mist)}
.tr-sel{position:absolute;top:0;bottom:0;background:rgba(252,190,30,.45);border-top:3px solid var(--yellow);border-bottom:3px solid var(--yellow)}
.tr-h{position:absolute;top:50%;width:18px;height:40px;translate:-50% -50%;border-radius:7px;border:0;background:var(--ink);cursor:ew-resize;touch-action:none;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.tr-h::after{content:"";position:absolute;left:50%;top:30%;bottom:30%;width:2px;background:rgba(255,255,255,.7);translate:-50% 0}
.tr-lab{display:flex;justify-content:space-between;font-size:12.5px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.tr-lab b{color:var(--ink)}
.lst{display:grid;gap:6px}
.lrow{display:grid;grid-template-columns:32px minmax(0,1fr) 30px;gap:6px;align-items:center}
.lrow.m{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr) 30px}
.linkinfo{display:flex;align-items:center;gap:8px;margin:12px 14px 0;padding:10px 12px;border-radius:12px;background:#fff3cf;color:var(--deep);font-size:13px;font-weight:700;line-height:1.3}
.linkinfo svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2}
.linkinfo span{flex:1}
.lrow.ro span{background:var(--mist);border-radius:10px;padding:6px 10px 4px;font-weight:700;font-size:14px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lrow.ro .arr{background:none;padding:0}
.lrow.ro{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr)}
.lrow .arr{color:var(--muted);font-weight:800;text-align:center}
.lrow .ic{width:30px;height:30px}
.okb{width:32px;height:32px;border-radius:50%;border:2px solid var(--line);background:#fff;font-weight:800;color:var(--muted);display:grid;place-items:center;padding:1px 0 0}
.okb:hover{border-color:var(--ink);color:var(--ink)}
.okb.on{background:var(--yellow);border-color:var(--yellow);color:var(--deep)}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tiles button{display:grid;justify-items:center;gap:3px;border:2px solid var(--line);background:#fff;border-radius:12px;padding:9px 4px 6px;font-weight:700;font-size:12px;color:var(--muted);line-height:1.1;text-align:center}
.tiles button:hover{border-color:#a9c0ca;color:var(--ink)}
.tiles button.on{border-color:var(--ink);color:var(--ink);background:#f1f6f8}
.tiles svg{width:22px;height:22px}
.bgpick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bgpick button{border:0;background:none;padding:0;display:grid;gap:5px;font-weight:700;font-size:13px;color:var(--muted)}
.bgpick .stagebox{border-radius:10px;box-shadow:0 0 0 2px var(--line)}
.bgpick button.on{color:var(--ink)}
.bgpick button.on .stagebox{box-shadow:0 0 0 3px var(--ink)}
.logopick{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.logopick button{border:2px solid var(--line);border-radius:12px;padding:8px;background:repeating-conic-gradient(#eef3f5 0 25%,#fff 0 50%) 0 0/12px 12px}
.logopick button.on{border-color:var(--ink)}
.inp.big{font-size:16px;min-height:96px}
/* rychlá lišta nad prvkem */
.qtb{position:absolute;width:0;height:0;pointer-events:none}
.qtb>div{position:absolute;left:0;display:flex;gap:2px;background:#fff;border-radius:12px;padding:4px;box-shadow:0 6px 20px rgba(5,30,42,.25);pointer-events:auto;transform:scale(var(--ik)) translateX(-50%);white-space:nowrap}
.qtb.up>div{bottom:0;transform-origin:0 100%}
.qtb.dn>div{top:0;transform-origin:0 0}
.qtb button{border:0;background:transparent;height:32px;min-width:32px;border-radius:8px;display:grid;place-items:center;color:var(--ink);font-weight:800;font-size:13px;padding:0 6px}
.qtb button:hover{background:var(--mist)}
.qtb button.danger:hover{background:#fbe9e5;color:var(--danger)}
.qtb i{width:1px;background:var(--line);margin:4px 3px}

/* ===== přehrávač ===== */
#player{position:fixed;inset:0;z-index:80;background:var(--blue);cursor:pointer}
#player .stage{left:50%;top:50%}
#pbar{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;border-radius:999px;background:rgba(5,30,42,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-weight:600;font-size:15px;transition:opacity .4s,translate .4s;cursor:default;z-index:5}
#pbar.idle{opacity:0;translate:0 12px;pointer-events:none}
#pbar button{all:unset;cursor:pointer;width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
#pbar button:hover{background:rgba(255,255,255,.15)}
#pbar button:focus-visible{outline:2px solid #fff}
#pbar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#pcount{min-width:78px;text-align:center;font-variant-numeric:tabular-nums;padding-top:2px}
#pnote{position:fixed;left:16px;top:calc(16px + env(safe-area-inset-top,0px));max-width:min(520px,calc(100% - 32px));background:rgba(5,30,42,.8);color:#fff;border-radius:14px;padding:10px 14px 8px;font-weight:600;white-space:pre-wrap;z-index:6;cursor:default}
.loading{min-height:100%;display:grid;place-items:center;color:#fff;font-size:22px;font-weight:700}
@media (prefers-reduced-motion:reduce){
  .spin{animation:none!important}
  [class*="an-"],[class*="lp-"]{animation-duration:.01s!important;animation-delay:0s!important;animation-iteration-count:1!important}
}
/* ===== mobilní editor ===== */
.mbar,.mback,.mgrab,.monly,.mtxt{display:none}
@media (max-width:760px){
  :root{--sheetH:min(60dvh,540px);--mbh:calc(64px + env(safe-area-inset-bottom,0px))}
  body.app{overflow:hidden}
  #editor{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  .topbar{padding:6px 8px;gap:4px;min-height:54px;flex:none}
  .topbar .back{width:36px;height:36px}
  .topbar .tmain .title{font-size:16px;padding:2px 6px 0}
  .qset summary{font-size:12px;gap:4px}
  .tright .status,.tdiv,.tright .btn.primary{display:none}
  .edm{display:flex;flex-direction:column;flex:1;min-height:0;transition:padding .32s cubic-bezier(.2,.8,.2,1)}
  .work{order:1;flex:1;min-height:0;display:flex;flex-direction:column}
  .tools{display:none}
  .cvhead{padding:8px 12px 0;gap:8px}
  .cvhead>.btn{display:none}
  .cvhead .ttl{font-size:14px}
  .cvwrap{flex:1;height:auto;padding:8px}
  .cvbar{padding:2px 10px 6px;overflow-x:auto;flex-wrap:nowrap}
  .cvbar .hint{display:none}
  .qtb{display:none!important}
  /* pás slidů dole */
  .slides{order:2;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:8px 10px 4px;border:0;border-top:1px solid var(--line);background:#f6f9fa;flex:none;align-items:flex-start;scrollbar-width:none;overscroll-behavior-x:contain}
  .slides::-webkit-scrollbar{display:none}
  .slides .it{flex:none;width:118px;grid-template-columns:1fr;grid-template-rows:auto 22px;gap:3px;padding:4px}
  .it .n{position:absolute;left:9px;top:8px;z-index:2;background:rgba(255,255,255,.92);border-radius:6px;padding:1px 5px 0;font-size:10.5px;text-align:left;color:var(--ink)}
  .it .stagebox{grid-row:1}
  .it .lane{grid-row:2;grid-column:1;margin:0 -8px;align-self:stretch}
  .it .acts{display:none!important}
  .it .anx{bottom:31px;right:9px}
  .it .st{bottom:31px;left:9px;background:rgba(255,255,255,.92);border-radius:6px;padding:0 4px}
  .lane .lplus{opacity:.9;width:18px;height:18px;line-height:18px}
  .lane:not(.has)::before,.lane.blk::before{left:14px;right:14px;top:50%;bottom:auto;width:auto;height:2px;translate:0 -50%;opacity:1}
  .lane.blk::before{background:repeating-linear-gradient(to right,var(--line) 0 3px,transparent 3px 7px)}
  .lbar{left:0;right:0;top:4px;bottom:4px}
  .lbar.b0{top:4px;left:12px;border-radius:7px 0 0 7px}
  .lbar.b1{bottom:4px;right:12px;border-radius:0 7px 7px 0}
  .lbar.b0.b1{border-radius:7px}
  .lbar.b0::before{top:3px;bottom:3px;left:3px;right:auto;width:3px;height:auto;opacity:1}
  .lbar.b1::after{top:3px;bottom:3px;right:3px;left:auto;width:3px;height:auto;opacity:1}
  .lbar i{left:14px;top:50%;translate:0 -50%}
  .lbar.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--bc)}
  .addsl{flex:none;align-self:stretch;display:flex;padding:4px 0 26px}
  .addsl .btn{height:auto;width:66px;padding:0 6px;border-radius:14px;flex-direction:column;justify-content:center;font-size:11px;line-height:1.1;gap:4px;text-align:center;white-space:normal}
  /* spodní lišta akcí */
  .mbar{display:flex;gap:2px;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);flex:none;z-index:86;position:relative}
  .mbar button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:var(--ink);font-weight:700;font-size:11px;padding:5px 2px 4px;border-radius:12px;min-height:52px;-webkit-tap-highlight-color:transparent}
  .mbar button span{white-space:nowrap}
  .mbar button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .mbar button:active{background:var(--mist)}
  .mbar button.on{background:var(--mist)}
  .mbar button.pri svg{background:var(--yellow);border-radius:99px;padding:5px;width:32px;height:32px;margin-top:-5px}
  .mbar button.danger{color:var(--danger)}
  /* panel vlastností jako vysouvací list */
  .insp{position:fixed;left:0;right:0;bottom:0;height:var(--sheetH);z-index:84;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(5,30,42,.22);transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.8,.2,1),height .32s cubic-bezier(.2,.8,.2,1);overflow-y:auto;overscroll-behavior:contain;border:0!important;padding:14px 0 calc(var(--mbh) + 20px)}
  body.m-insp .insp{transform:none}
  body.m-full .insp{height:calc(100dvh - 60px)}
  body.m-insp .edm{padding-bottom:calc(var(--sheetH) - var(--mbh))}
  body.m-insp .slides{display:none}
  .ihead{top:-14px;padding-top:12px}
  .mgrab{display:block;position:fixed;left:50%;translate:-50% 0;bottom:calc(var(--sheetH) - 16px);z-index:87;width:90px;height:22px;border:0;background:none;opacity:0;pointer-events:none;transition:opacity .2s,bottom .32s cubic-bezier(.2,.8,.2,1)}
  .mgrab i{display:block;width:40px;height:5px;border-radius:9px;background:#c5d3d9;margin:auto}
  body.m-insp .mgrab{opacity:1;pointer-events:auto}
  body.m-full .mgrab{bottom:calc(100dvh - 76px)}
  .monly{display:grid}
  .mtxt{display:block}.dtxt{display:none}
  body.app #toast{bottom:calc(var(--mbh) + 12px)}
  .lbar.on{box-shadow:inset 0 2px 0 rgba(255,255,255,.85),inset 0 -2px 0 rgba(255,255,255,.85);filter:saturate(1.2) brightness(1.05)}
  /* list „Přidat“ */
  body.m-add .tools{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:84;grid-template-columns:repeat(3,1fr);gap:8px;padding:18px 14px calc(var(--mbh) + 14px);background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(5,30,42,.22);animation:mUp .3s cubic-bezier(.2,.8,.2,1);border:0;overflow:visible}
  body.m-add .tools .tgrp{display:contents}
  body.m-add .tools .tgl{display:block!important;grid-column:1 / -1;font-style:normal;font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:6px 2px -2px}
  body.m-add .tools .btn{flex-direction:column;height:auto;width:auto;padding:14px 4px 10px;gap:6px;font-size:13px;border-radius:16px;background:var(--mist);color:var(--ink)}
  body.m-add .tools .btn span{display:block!important}
  body.m-add .tools .btn svg{width:26px;height:26px}
  body.m-add .tools .tgrp.qz .btn{background:#fff4d6;color:#8a5a00}
  body.m-add .tools .btn[data-tip]::after{display:none}
  @keyframes mUp{from{transform:translateY(100%)}}
  .mback{display:block;position:fixed;inset:0;background:rgba(5,30,42,.28);z-index:83;opacity:0;pointer-events:none;transition:opacity .25s}
  body.m-add .mback,body.m-full .mback{opacity:1;pointer-events:auto}
  /* dotykové ovládání */
  .hd{width:calc(24px * var(--ik));height:calc(24px * var(--ik));border-width:calc(3px * var(--ik))}
  .hd[data-h="n"],.hd[data-h="s"],.hd[data-h="e"],.hd[data-h="w"]{display:none}
  .tr-h{width:28px;height:50px}
  .tr-track{touch-action:none;height:56px}
  .inp,input[type=text],input[type=search],input[type=number],textarea,select{font-size:16px}
  .sbadge{font-size:calc(12px * var(--ik))}
  /* okna */
  .picker{place-items:end stretch;padding:0;z-index:90}
  #player::after{content:"Otoč telefon na šířku";position:fixed;left:50%;top:18px;translate:-50% 0;background:rgba(5,30,42,.7);color:#fff;font-weight:700;padding:8px 16px 6px;border-radius:99px;font-size:14px;pointer-events:none;animation:rotHint 4s ease forwards}
  @media (orientation:landscape){#player::after{display:none}}
  @keyframes rotHint{0%,70%{opacity:1}100%{opacity:0}}
  .pk{width:100%;height:88dvh;border-radius:22px 22px 0 0;grid-template-columns:1fr;grid-template-rows:auto 1fr;animation:mUp .3s cubic-bezier(.2,.8,.2,1)}
  .pk nav{display:flex;gap:6px;overflow-x:auto;padding:12px 12px 10px;align-items:center;scrollbar-width:none}
  .pk nav h4{display:none}
  .pk nav button{flex:none;padding:8px 14px 6px;border-radius:99px;font-size:14px}
  .pk nav button small{display:none}
  .pk .pkh{padding:12px 16px 10px}.pk .pkh h3{font-size:18px}
  .pk .pkb{padding:14px 16px calc(24px + env(safe-area-inset-bottom,0px))}
  .tg{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .tg.wide{grid-template-columns:1fr}
  .sheet{place-items:end stretch;padding:0}
  .sheet .box,.sheet .box.setbox,.sheet .box.shbox,#glib .glbox{width:100%;max-height:92dvh;border-radius:24px 24px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  #bmenu{left:8px!important;right:8px!important;width:auto!important;max-width:none!important;top:auto!important;bottom:calc(var(--mbh) + 8px)!important}
}
@media (max-width:760px) and (pointer:coarse){ .lane{touch-action:none} }

/* ===== přihlášení, zálohy ===== */
#home.login{min-height:100vh;display:grid;place-items:center;padding:24px}
.lbox{position:relative;background:#fff;border-radius:28px;padding:34px 28px 26px;width:min(420px,100%);display:grid;justify-items:center;gap:12px;text-align:center;box-shadow:0 24px 60px rgba(5,30,42,.35)}
.lbox .logo{width:130px}.lbox h1{margin:4px 0 0;font-size:34px;color:var(--ink)}.lbox p{margin:0;color:var(--muted);font-weight:700}
.lbox small{color:var(--muted);font-weight:600;margin-top:6px}
.gbtn{background:#fff;color:#1f1f1f;box-shadow:0 0 0 1.5px var(--line);height:50px;padding:0 22px;border-radius:999px;font-size:16px;gap:12px;margin-top:8px}
.gbtn svg{width:22px;height:22px}.gbtn:hover{box-shadow:0 0 0 1.5px var(--ink)}
.soutbtn{justify-self:start}
.dotn{display:inline-block;width:8px;height:8px;border-radius:99px;background:#e0413a;vertical-align:2px;margin-left:4px}
.pend{font-style:normal;color:#b8322c;font-weight:800}
.dsec{display:grid;gap:8px;padding:4px 0 10px;border-bottom:1px solid var(--mist)}.dsec h4{margin:0;font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.usage{display:grid;gap:6px}.ubar{height:10px;border-radius:99px;background:var(--mist);overflow:hidden}.ubar i{display:block;height:100%;background:var(--blue);border-radius:99px}
.usage span{font-weight:700;font-size:14px}.hint.warn{color:#b35a1f}
.trl{display:grid;gap:4px;max-height:50vh;overflow:auto}.tri{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:var(--mist)}
.tri span{flex:1;display:grid;min-width:0}.tri b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tri small{color:var(--muted);font-weight:600}
