/* HVSC Apps - KHÔNG GIAN STUDIO (wm, photo, img, collage): nền tối, canvas lớn, bảng hai bên, dải phim, ngăn kéo trên mobile. */
.st,.st-modal,.st-toasts,.cl-ctx{--st-bg:#0b0e15;--st-p:#141924;--st-p2:#1b2230;--st-p3:#232c3e;--st-ln:rgba(255,255,255,.09);--st-tx:#e9edf7;--st-mu:#8f9ab5;--st-ok:#3ddc97;--st-bad:#ff6b6b}
.st{--st-bg:#0b0e15;--st-p:#141924;--st-p2:#1b2230;--st-p3:#232c3e;--st-ln:rgba(255,255,255,.09);--st-tx:#e9edf7;--st-mu:#8f9ab5;--acc:#E31E24;--acc2:#ff5a60;--st-ok:#3ddc97;--st-bad:#ff6b6b;
  padding:0;max-width:none;width:100%;color:var(--st-tx);font:400 14px/1.45 var(--font);background:var(--st-bg);position:relative}
.st *{box-sizing:border-box}
.st-app{display:grid;grid-template-columns:292px minmax(0,1fr) 330px;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"top top top" "left stage right" "film film film";height:max(660px,calc(100dvh - var(--hh,64px) - 108px));min-height:660px;background:var(--st-bg);position:relative;overflow:hidden}
.st-app:fullscreen{height:100dvh;width:100vw}
.st-top{grid-area:top;display:flex;align-items:center;gap:8px;padding:8px 12px;background:linear-gradient(180deg,#1a2030,#141924);border-bottom:1px solid var(--st-ln);min-height:56px;z-index:5;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.st-top::-webkit-scrollbar{display:none}
.st-logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:15px;letter-spacing:.01em;white-space:nowrap;margin-right:6px}
.st-logo i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,var(--acc2),var(--acc));box-shadow:0 4px 14px color-mix(in srgb,var(--acc) 55%,transparent)}
.st-logo svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.st-top>*{flex:none}
.st-sep{width:1px;align-self:stretch;margin:6px 4px;background:var(--st-ln);flex:none}
.st-sp{flex:1;min-width:8px}
.st-priv{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--st-ok);background:rgba(61,220,151,.1);border:1px solid rgba(61,220,151,.25);padding:4px 10px;border-radius:999px;white-space:nowrap}
.st-priv svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.st-ib,.st-btn{font:600 14px/1 var(--font);color:var(--st-tx);background:var(--st-p2);border:1px solid var(--st-ln);border-radius:11px;min-height:40px;min-width:40px;padding:0 12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:background .15s,border-color .15s,transform .08s,box-shadow .15s}
.st-ib:hover,.st-btn:hover{background:var(--st-p3);border-color:rgba(255,255,255,.2)}
.st-ib:active,.st-btn:active{transform:scale(.97)}
.st-ib:disabled,.st-btn:disabled{opacity:.4;cursor:not-allowed}
.st-ib.on{background:color-mix(in srgb,var(--acc) 26%,var(--st-p2));border-color:var(--acc)}
.st-ib svg,.st-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.st-btn.pri{background:linear-gradient(180deg,var(--acc2),var(--acc));border-color:transparent;color:#fff;box-shadow:0 6px 18px color-mix(in srgb,var(--acc) 40%,transparent)}
.st-btn.pri:hover{filter:brightness(1.1)}
.st-btn.danger{color:var(--st-bad)}
.st-btn.sm{min-height:34px;padding:0 10px;font-size:13px;border-radius:9px}
.st-btn.blk{width:100%}
.st-panel{background:var(--st-p);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#2c3650 transparent;z-index:4}
.st-left{grid-area:left;border-right:1px solid var(--st-ln)}
.st-right{grid-area:right;border-left:1px solid var(--st-ln)}
.st-sec{border-bottom:1px solid var(--st-ln)}
.st-sec>summary{list-style:none;cursor:pointer;padding:13px 16px;font-weight:700;font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--st-mu);display:flex;align-items:center;gap:8px;min-height:46px}
.st-sec>summary::-webkit-details-marker{display:none}
.st-sec>summary::before{content:"";width:3px;height:14px;border-radius:2px;background:var(--acc)}
.st-sec>summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--st-mu);border-bottom:2px solid var(--st-mu);transform:rotate(45deg);transition:transform .2s;margin-right:3px}
.st-sec[open]>summary::after{transform:rotate(-135deg)}
.st-sec>.in{padding:2px 16px 16px}
.st-f{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:13px;font-weight:600;color:#cdd5ea}
.st-f .v{float:right;font:500 12px var(--mono);color:var(--st-mu)}
.st-f>span{display:flex;justify-content:space-between;align-items:center;gap:8px}
.st input[type=text],.st input[type=number],.st input[type=search],.st input[type=password],.st select,.st textarea,.st-modal input[type=text],.st-modal input[type=number],.st-modal input[type=search],.st-modal input[type=password],.st-modal select,.st-modal textarea{width:100%;min-height:42px;background:var(--st-bg);color:var(--st-tx);border:1px solid var(--st-ln);border-radius:10px;padding:8px 11px;font:400 14px var(--font)}
.st textarea,.st-modal textarea{min-height:76px;resize:vertical}
.st-modal input:focus-visible,.st-modal select:focus-visible,.st-modal textarea:focus-visible,.st-modal button:focus-visible,.st input:focus-visible,.st select:focus-visible,.st textarea:focus-visible,.st button:focus-visible,.st summary:focus-visible,.st [tabindex]:focus-visible{outline:2px solid var(--acc2);outline-offset:2px}
.st-modal input[type=range],.st input[type=range]{width:100%;height:28px;accent-color:var(--acc);background:transparent;cursor:pointer}
.st-modal input[type=color],.st input[type=color]{width:100%;min-height:42px;padding:3px;border:1px solid var(--st-ln);border-radius:10px;background:var(--st-bg);cursor:pointer}
.st-modal input[type=checkbox],.st input[type=checkbox]{accent-color:var(--acc);width:20px;height:20px;flex:none}
.st-chk{display:flex;align-items:center;gap:10px;min-height:40px;font-size:14px;font-weight:500;cursor:pointer;color:#d6dcf0}
.st-seg{display:flex;gap:3px;background:var(--st-bg);border:1px solid var(--st-ln);border-radius:12px;padding:3px}
.st-seg button{flex:1;border:0;background:transparent;color:var(--st-mu);min-height:38px;border-radius:9px;font:600 12.5px var(--font);cursor:pointer;padding:0 5px;white-space:nowrap}
.st-seg button.on{background:var(--st-p3);color:#fff;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--acc) 60%,transparent)}
.st-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.st-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.st-row>.st-btn{flex:1 1 auto}
.st-note{font-size:12.5px;color:var(--st-mu);margin:8px 0;line-height:1.5}
.st-note.err{color:var(--st-bad)}.st-note.ok{color:var(--st-ok)}
.st-anchor{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;width:132px}
.st-anchor button{aspect-ratio:1.3;min-height:34px;border:1px solid var(--st-ln);background:var(--st-bg);border-radius:8px;cursor:pointer;position:relative}
.st-anchor button::after{content:"";position:absolute;inset:0;margin:auto;width:8px;height:8px;border-radius:50%;background:var(--st-mu)}
.st-anchor button.on{border-color:var(--acc)}.st-anchor button.on::after{background:var(--acc2);box-shadow:0 0 10px var(--acc)}
.st-list{display:flex;flex-direction:column;gap:6px}
.st-item{display:flex;align-items:center;gap:8px;background:var(--st-p2);border:1px solid var(--st-ln);border-radius:11px;padding:6px 8px;min-height:48px;cursor:pointer}
.st-item.on{border-color:var(--acc);background:color-mix(in srgb,var(--acc) 14%,var(--st-p2))}
.st-item .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:13px}
.st-item .ib2{width:34px;height:34px;min-width:34px;border:0;background:transparent;color:var(--st-mu);border-radius:8px;cursor:pointer;display:grid;place-items:center}
.st-item .ib2:hover{background:rgba(255,255,255,.08);color:#fff}
.st-item .ib2 svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.st-chips{display:flex;flex-wrap:wrap;gap:6px}
.st-chip{border:1px solid var(--st-ln);background:var(--st-p2);color:var(--st-tx);border-radius:999px;min-height:36px;padding:0 13px;font:600 13px var(--font);cursor:pointer}
.st-chip.on{border-color:var(--acc);background:color-mix(in srgb,var(--acc) 22%,var(--st-p2))}
.st-tabs{display:flex;gap:4px;padding:8px 10px 0;background:var(--st-p);border-bottom:1px solid var(--st-ln);overflow-x:auto;scrollbar-width:none}
.st-tabs button{flex:1 0 auto;border:0;background:transparent;color:var(--st-mu);font:700 12.5px var(--font);min-height:44px;padding:0 9px;border-radius:10px 10px 0 0;cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap}
.st-tabs button.on{color:#fff;border-bottom-color:var(--acc);background:rgba(255,255,255,.04)}
.st-stage{grid-area:stage;position:relative;overflow:hidden;min-width:0;min-height:0;background:radial-gradient(120% 90% at 50% 40%,#1d2535 0%,#0e121b 62%,#080a10 100%);touch-action:none}
.st-stage::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:32px 32px;background-position:center;pointer-events:none;mask-image:radial-gradient(90% 80% at 50% 45%,#000 30%,transparent 100%);-webkit-mask-image:radial-gradient(90% 80% at 50% 45%,#000 30%,transparent 100%)}
.st-stage.hand{cursor:grab}.st-stage.panning{cursor:grabbing}
.st-vp{position:absolute;inset:0;overflow:hidden}
.st-ct{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.08)}
.st-ct canvas,.st-ct>img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none}
.st-chkb{background:repeating-conic-gradient(#2a3144 0% 25%,#1f2535 0% 50%) 0 0/16px 16px}
.st-float{position:absolute;left:50%;top:12px;transform:translateX(-50%);display:flex;gap:4px;background:rgba(20,25,36,.88);backdrop-filter:blur(10px);border:1px solid var(--st-ln);border-radius:14px;padding:5px;z-index:3;box-shadow:0 10px 30px rgba(0,0,0,.4);max-width:calc(100% - 20px);overflow-x:auto;scrollbar-width:none}
.st-float::-webkit-scrollbar{display:none}
.st-float .st-ib{background:transparent;border-color:transparent;min-height:38px;min-width:38px}
.st-float .st-ib:hover{background:rgba(255,255,255,.1)}
.st-float .st-ib.on{background:color-mix(in srgb,var(--acc) 35%,transparent);border-color:transparent}
.st-float .st-vsep{width:1px;background:var(--st-ln);margin:4px 2px}
.st-zoom{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:2px;background:rgba(20,25,36,.88);backdrop-filter:blur(10px);border:1px solid var(--st-ln);border-radius:12px;padding:4px;z-index:3}
.st-zoom .st-ib{background:transparent;border-color:transparent;min-height:36px;min-width:36px;padding:0 8px}
.st-zoom .zv{font:600 12px var(--mono);min-width:48px;text-align:center;color:var(--st-mu)}
.st-info{position:absolute;left:12px;bottom:12px;z-index:3;font:500 12px var(--mono);color:var(--st-mu);background:rgba(20,25,36,.8);padding:6px 11px;border-radius:10px;border:1px solid var(--st-ln);max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px;z-index:2}
.st-empty svg.art{width:min(280px,60%);height:auto;filter:drop-shadow(0 12px 30px color-mix(in srgb,var(--acc) 35%,transparent));animation:stfloat 5s ease-in-out infinite}
.st-empty h2{margin:0;font-size:clamp(18px,2.4vw,26px);font-weight:800;letter-spacing:-.01em}
.st-empty p{margin:0;color:var(--st-mu);max-width:420px}
.st-empty .st-row{justify-content:center}
@keyframes stfloat{50%{transform:translateY(-8px)}}
.st-drop{position:absolute;inset:10px;border:2px dashed var(--acc2);border-radius:18px;background:color-mix(in srgb,var(--acc) 14%,rgba(8,10,16,.82));display:none;place-items:center;font-weight:800;font-size:20px;z-index:8;pointer-events:none;text-align:center;padding:20px}
.st-drop.on{display:grid;animation:stpop .15s}
@keyframes stpop{from{transform:scale(.97);opacity:0}}
.st-film{grid-area:film;display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--st-p);border-top:1px solid var(--st-ln);overflow-x:auto;min-height:100px;scrollbar-width:thin;scrollbar-color:#2c3650 transparent}
.st-film.empty{display:none}
.st-th{flex:none;width:84px;height:84px;border-radius:12px;border:2px solid transparent;overflow:hidden;position:relative;cursor:pointer;background:var(--st-p2);padding:0;transition:transform .15s,border-color .15s;animation:stpop .25s}
.st-th:hover{transform:translateY(-2px)}
.st-th img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.st-th.on{border-color:var(--acc2);box-shadow:0 0 0 2px color-mix(in srgb,var(--acc) 30%,transparent)}
.st-th .x{position:absolute;right:3px;top:3px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:14px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s}
.st-th:hover .x,.st-th:focus-within .x,.st-th.on .x{opacity:1}
.st-th .ck{position:absolute;left:4px;top:4px;width:22px;height:22px;margin:0;opacity:.9}
.st-th .bd{position:absolute;left:3px;bottom:3px;right:3px;font:700 9px var(--font);background:var(--acc);color:#fff;padding:1px 5px;border-radius:5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-th .bd.ok{background:#12a06a}.st-th .bd.er{background:#d8383d}.st-th .bd.mu{background:rgba(0,0,0,.65);font-weight:600}
.st-add{flex:none;width:84px;height:84px;border:2px dashed var(--st-ln);border-radius:12px;background:transparent;color:var(--st-mu);cursor:pointer;font-size:30px;display:grid;place-items:center}
.st-add:hover{border-color:var(--acc2);color:#fff}
.st-prog{height:6px;background:rgba(255,255,255,.1);border-radius:6px;overflow:hidden}
.st-prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--acc),var(--acc2));transition:width .2s}
.st-bar{position:absolute;left:0;right:0;top:0;height:3px;z-index:9;background:transparent}
.st-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--acc),var(--acc2));transition:width .15s}
.st-toasts{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:300;pointer-events:none;align-items:center;width:min(92vw,460px)}
.st-toast{background:#1d2535;color:#fff;border:1px solid rgba(255,255,255,.14);border-left:4px solid var(--acc2,#ff5a60);border-radius:12px;padding:10px 16px;font:600 14px/1.4 var(--font);box-shadow:0 14px 40px rgba(0,0,0,.5);animation:sttoast .25s;max-width:100%}
.st-toast.ok{border-left-color:#3ddc97}.st-toast.err{border-left-color:#ff6b6b}
@keyframes sttoast{from{transform:translateY(12px);opacity:0}}
.st-modal{position:fixed;inset:0;z-index:250;background:rgba(5,7,12,.72);backdrop-filter:blur(4px);display:grid;place-items:center;padding:16px;animation:stpop .15s}
.st-modal .box{width:min(560px,100%);max-height:88dvh;overflow:auto;background:#161c29;color:var(--st-tx);border:1px solid var(--st-ln);border-radius:18px;padding:20px 22px;box-shadow:0 30px 90px rgba(0,0,0,.6);font:400 14px/1.5 var(--font)}
.st-modal h3{margin:0 0 12px;font-size:18px;font-weight:800}
.st-modal .st-row{margin-top:14px;justify-content:flex-end}
.st-keys{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-items:center}
.st-keys kbd{font:600 12px var(--mono);background:var(--st-bg);border:1px solid var(--st-ln);border-bottom-width:2px;border-radius:6px;padding:2px 8px;white-space:nowrap}
.st-cmp{position:relative;overflow:hidden;user-select:none;touch-action:none;background:#000;border-radius:12px;cursor:ew-resize}
.st-cmp img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.st-cmp .a{clip-path:inset(0 0 0 50%)}
.st-cmp .h{position:absolute;top:0;bottom:0;left:50%;width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 10px rgba(0,0,0,.6)}
.st-cmp .h::after{content:"\2194";position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font-size:16px;box-shadow:0 4px 14px rgba(0,0,0,.5)}
.st-cmp .lb{position:absolute;top:8px;font:700 11px var(--font);background:rgba(0,0,0,.65);color:#fff;padding:3px 9px;border-radius:999px;pointer-events:none}
.st-cmp .l1{left:8px}.st-cmp .l2{right:8px}
.st-mbar{display:none}
.st-back{display:none}
.st-hide{display:none!important}
.st-h{--z:1}
.st-handle{position:absolute;width:calc(14px*var(--z,1));height:calc(14px*var(--z,1));margin:calc(-7px*var(--z,1)) 0 0 calc(-7px*var(--z,1));background:#fff;border:calc(2px*var(--z,1)) solid var(--acc);border-radius:3px;z-index:3;touch-action:none}
.st-sel{position:absolute;border:calc(1.5px*var(--z,1)) solid var(--acc2);pointer-events:none;z-index:2}
@media(max-width:1180px){.st-app{grid-template-columns:260px minmax(0,1fr) 300px}}
@media(max-width:900px){
  .st-app{display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}
  .st-top{position:sticky;top:var(--hh,64px);min-height:52px;z-index:20}
  .st-priv span{display:none}
  .st-stage{height:min(64dvh,560px);min-height:300px;flex:none}
  .st-film{min-height:96px}
  .st-ib,.st-btn{min-height:48px;min-width:48px}
  .st-btn.sm{min-height:44px}
  .st-th .x{width:36px;height:36px;opacity:1}
  .st-seg button{min-height:44px}
  .st-chip{min-height:44px}
  .st-panel{position:fixed;left:0;right:0;bottom:0;top:auto;max-height:72dvh;border-radius:20px 20px 0 0;border:1px solid var(--st-ln);border-bottom:0;transform:translateY(105%);transition:transform .28s cubic-bezier(.2,.8,.2,1);z-index:60;box-shadow:0 -20px 60px rgba(0,0,0,.6);padding-bottom:76px;visibility:hidden}
  .st-panel::before{content:"";display:block;width:44px;height:5px;border-radius:3px;background:#34405c;margin:8px auto 2px}
  .st-app[data-sheet=left] .st-left,.st-app[data-sheet=right] .st-right{transform:none;visibility:visible}
  .st-app[data-sheet] .st-back{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:55}
  .st-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(15,19,28,.96);backdrop-filter:blur(10px);border-top:1px solid var(--st-ln)}
  .st-mbar .st-btn{flex:1;min-height:52px}
  .st-float{top:8px}
  .st-zoom{bottom:8px;right:8px}
  .st-info{display:none}
  .st-toasts{bottom:90px}
  .st{padding-bottom:70px}
  .st-app:fullscreen .st-stage{height:calc(100dvh - 160px)}
}
@media(max-width:560px){.st-top .st-btn>span,.st-top .st-ib>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.st-top .st-btn{padding:0;min-width:48px}.st-mbar .st-btn{font-size:13px;padding:0 6px}}
@media(max-width:420px){.st-logo b{display:none}}
@media(prefers-reduced-motion:reduce){.st *{animation:none!important;transition:none!important}}
