:root{font-family:Inter,'Segoe UI',sans-serif;color:#263d3b;background:#f5f6f5;font-size:13px;--green:#216d57;--border:#e2e7e4}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{border:1px solid var(--border);background:white;border-radius:7px;padding:9px 12px;cursor:pointer}button:hover{background:#edf4f0}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.active{background:#e5f1ea;color:#216d57}header{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:42px;padding:0 24px}.logo{display:flex;align-items:center;gap:12px;font-size:30px;color:var(--green);font-weight:900}.logo span{font-size:19px;letter-spacing:-.5px}.logo small{display:block;font-size:9px;letter-spacing:3px;margin-top:2px}nav{display:flex;gap:8px}nav button{border:0}.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}#saved{font-size:11px;color:#7a8982;margin-right:8px}#editor{display:grid;grid-template-columns:190px minmax(300px,1fr) 260px;height:calc(100dvh - 72px)}aside{background:white}.slides-panel{padding:18px 14px;border-right:1px solid var(--border);overflow:auto}.panel-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.5px;color:#87948d;font-weight:700;margin-bottom:16px}.panel-title button{padding:3px 8px;font-size:18px}.slide-card{width:100%;padding:8px;margin-bottom:12px;text-align:left;background:#fafbf9;border:2px solid transparent}.slide-card.selected{border-color:#34765e;background:#eff5f1}.slide-card canvas{width:100%;height:125px;object-fit:contain;display:block;background:#e7e9e4;margin-bottom:7px}.slide-card span{font-size:11px}.slide-actions{display:flex;gap:4px}.slide-actions button{font-size:11px;padding:7px}.tip{color:#85928b;font-size:11px;line-height:1.8}main{display:flex;flex-direction:column;min-width:0;min-height:0}.toolbar{display:flex;gap:6px;padding:12px 18px;background:white;border-bottom:1px solid var(--border);flex-wrap:wrap}.toolbar span{flex:1}.toolbar button{font-size:12px}.workspace{flex:1;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:36px;background-color:#edf0ed;background-image:radial-gradient(#cbd4cf .7px,transparent .7px);background-size:14px 14px}.canvas-wrap{position:relative;flex-shrink:0;box-shadow:0 8px 38px #24372c22;line-height:0}#canvas{display:block;touch-action:none;outline:0}#selection{position:absolute;border:2px solid #258e73;pointer-events:none}#selection i{position:absolute;right:-6px;bottom:-6px;width:10px;height:10px;border:2px solid #258e73;background:white}footer{padding:12px 18px;display:flex;align-items:center;justify-content:space-between;font-size:10px;background:#fff;gap:10px}footer label{display:flex;gap:8px;align-items:center;margin:0}.properties{border-left:1px solid var(--border);overflow:auto;padding:22px 18px}.properties button{margin-bottom:8px;width:100%;font-size:11px}label{display:block;margin-bottom:13px;font-size:11px;color:#6e8077}input:not([type=checkbox]),select,textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--border);border-radius:6px;padding:9px;background:#fafbf9;outline-color:#3e8a6f}input[type=color]{height:35px;padding:3px}input[type=checkbox]{accent-color:var(--green);vertical-align:middle}textarea{resize:vertical}.pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}hr{border:0;border-top:1px solid var(--border);margin:18px 0}.danger{color:#a4443b}.layer{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer.selected{background:#e5f1ea}#compressor{padding:45px;max-width:1250px;margin:auto}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:700}h1{font-size:35px;letter-spacing:-1px;margin:12px 0}p{line-height:1.7}.compress-heading p{color:#7d8b83}.compress-layout{display:grid;grid-template-columns:1fr 280px;gap:30px;margin-top:35px}.dropzone{padding:60px 20px;width:100%;border:2px dashed #bbcec3;background:#f0f6f1;font-size:18px}.dropzone small{display:block;font-size:12px;color:#8b998f;margin-top:12px}.export-settings{border:1px solid var(--border);border-radius:12px;padding:22px;height:fit-content}.export-settings .primary{width:100%}.queue-item{display:flex;gap:14px;align-items:center;padding:16px;background:#fff;border:1px solid var(--border);margin-top:10px;border-radius:8px}.queue-item img{width:55px;height:55px;object-fit:cover;border-radius:5px}.queue-item div{flex:1;min-width:0;overflow-wrap:anywhere}.queue-item small{display:block;color:#7b8b80;margin-top:6px}dialog{border:1px solid var(--border);border-radius:16px;padding:28px;width:420px;max-width:95vw;box-shadow:0 20px 80px #182d3244}dialog::backdrop{background:#182d3255}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#23483e;color:white;padding:12px 22px;border-radius:9px;z-index:10;display:none;max-width:90vw;line-height:1.6}[hidden]{display:none!important}@media(max-width:1050px){header{gap:15px;padding:0 14px}.header-actions #saved{display:none}#editor{grid-template-columns:145px minmax(250px,1fr) 220px}.toolbar{padding:8px}.toolbar button{padding:7px}.properties{padding:15px}footer>span:nth-child(2){display:none}}@media(max-width:760px){header{height:auto;flex-wrap:wrap;padding:10px;gap:8px}.logo{margin-right:auto}.header-actions{width:100%;justify-content:flex-end}#editor{height:auto;grid-template-columns:90px minmax(0,1fr)}.properties{grid-column:1/-1;max-height:400px}.slides-panel{padding:8px}.slide-card canvas{height:65px}.slide-actions{flex-wrap:wrap}main{height:70vh}.workspace{padding:15px}.compress-layout{grid-template-columns:1fr}#compressor{padding:25px}h1{font-size:26px}}
/* Webon visual identity — airy checkerboard, organic shapes, green & tangerine. */
:root{--green:#16814c;--border:#e6e9e7;color:#26322e;font-family:'Segoe UI',Arial,sans-serif;background:#fff}body{background:#fff}header{height:80px;padding:0 36px;gap:48px;position:relative;z-index:2;box-shadow:0 2px 18px #223c2a04}.logo{text-decoration:none;display:flex;align-items:center;gap:12px}.logo img{width:154px;height:42px;object-fit:contain}.logo span{font-size:9px;letter-spacing:2px;font-weight:600;color:#84918a;border-left:1px solid #d9e1db;padding:9px 0 9px 12px}nav{border:1px solid #edf0ed;border-radius:30px;padding:4px;background:#f7f9f7;gap:2px}nav button{border-radius:24px;padding:10px 19px;font-weight:600;color:#7e8982}nav button.active{background:#fff;color:#177847;box-shadow:0 2px 6px #21402e12}button{transition:background .18s ease,box-shadow .18s ease,transform .18s ease;border-radius:9px}button:hover{box-shadow:0 3px 10px #243c2a0a}button:active{transform:translateY(1px)}button:focus-visible{outline:3px solid #f6a627;outline-offset:3px}.header-actions button{border-radius:22px;font-size:12px;padding:10px 16px}button.primary{background:#16814c;border-color:#16814c}button.primary:hover{background:#106b3e}#compressor{position:relative;max-width:none;padding:45px 40px 0;min-height:calc(100dvh - 80px);overflow:hidden;background-color:#fff;background-image:conic-gradient(#f4f6f4 25%,transparent 0 50%,#f4f6f4 0 75%,transparent 0);background-size:20px 20px}.compress-heading{text-align:center;position:relative;z-index:1}.eyebrow{font-size:10px;letter-spacing:2.6px;color:#64796b;display:inline-flex;align-items:center;gap:9px}.eyebrow i{width:6px;height:6px;background:#27a85e;border-radius:50%;box-shadow:0 0 0 4px #29a86214}h1{font-size:48px;line-height:1.12;letter-spacing:-2px;font-weight:750;margin:19px 0 14px}h1 em{font-style:normal;color:#16814c}.compress-heading p{font-size:14px;line-height:1.8;margin:0;color:#859087}.compress-layout{display:block;max-width:1120px;margin:0 auto;position:relative;z-index:1}.drop-stage{position:relative;height:350px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding-top:12px}.dropzone{border:0;width:242px;height:238px;flex-shrink:0;position:relative;isolation:isolate;border-radius:46% 54% 56% 44% / 57% 43% 57% 43%;background:#20a361;color:white;box-shadow:0 16px 45px #16894d20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;animation:float 7s ease-in-out infinite}.dropzone:before,.dropzone:after{content:'';position:absolute;inset:-10px;z-index:-1;border-radius:54% 46% 44% 56% / 48% 57% 43% 52%;background:#28ae6933;transform:rotate(15deg);transition:transform .4s}.dropzone:after{inset:-17px;background:#2daf621a;transform:rotate(-20deg)}.dropzone:hover{background:#168f52;box-shadow:0 20px 45px #16894d30}.dropzone:hover:before{transform:rotate(35deg)}.dropzone strong{font-size:20px;letter-spacing:-.5px}.dropzone>span{font-size:12px;color:#e6f6eb}.dropzone small{font-size:10px;letter-spacing:2px;color:#d0f1da;margin-top:6px}.paste-hint{font-size:11px;color:#8e9991;margin:30px 0 0}kbd{font-family:inherit;padding:2px 5px;border:1px solid #dce3dd;border-radius:4px;background:#fff;font-size:10px}.float-dot{position:absolute;background:#ffa61444;border-radius:45% 55% 65% 35%;animation:float 9s ease-in-out infinite}.d1{width:40px;height:47px;left:19%;top:35px;transform:rotate(20deg)}.d2{width:18px;height:18px;right:25%;top:65px;background:#23a96333}.d3{width:16px;height:18px;left:30%;bottom:72px;background:#23a96333}.d4{width:55px;height:49px;right:14%;bottom:65px;transform:rotate(35deg)}.export-settings{max-width:600px;margin:0 auto 38px;padding:20px 24px;border-radius:16px;box-shadow:0 12px 35px #25422d09;background:#fff}.export-settings h3{margin:0 0 18px;font-size:14px}.export-settings #compressOptions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 15px}.export-settings #compressOptions label{font-size:10px}.export-settings #compressOptions label:nth-child(4){grid-column:1/3;align-self:center}.export-settings #compressOptions label:nth-child(5){grid-column:3;grid-row:2}.export-settings .tip{margin-bottom:0;font-size:10px}.feature-strip{position:relative;background:#eaf5ee;margin:45px -40px 0;padding:40px max(40px,calc((100vw - 1120px)/2));display:flex;align-items:center;gap:38px;justify-content:space-between}.feature-strip:before{content:'';position:absolute;height:35px;top:-25px;left:-2%;width:104%;background:#eaf5ee;border-radius:50% 50% 0 0 / 100% 100% 0 0;transform:rotate(-1deg)}.feature-strip>div{display:flex;gap:12px;align-items:center;white-space:nowrap}.feature-strip b{font-size:11px;font-weight:500;border:1px solid #c9dfd0;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;color:#2f8954}.feature-strip strong{display:block;font-size:12px;font-weight:600}.feature-strip small{display:block;font-size:10px;color:#789383;margin-top:5px}.feature-strip button{border:1px solid #b8d5c3;background:transparent;border-radius:25px;color:#216a41;white-space:nowrap}#queue{max-width:650px;margin:auto}.has-files .compress-layout{display:grid;grid-template-columns:1fr 300px;gap:35px;margin-top:20px}.has-files .drop-stage{height:280px}.has-files .dropzone{width:190px;height:190px}.has-files .dropzone strong{font-size:17px}.has-files .export-settings{margin-top:26px;position:sticky;top:20px}.has-files .export-settings #compressOptions{display:block}.has-files .feature-strip{margin-top:65px}.queue-item{box-shadow:0 4px 15px #233b2b05}.workspace{background-image:conic-gradient(#e9eeea 25%,transparent 0 50%,#e9eeea 0 75%,transparent 0);background-color:#f5f7f5;background-size:20px 20px}.toolbar{margin:12px 16px 0;border:1px solid #e2e8e2;box-shadow:0 5px 18px #203c2c07;border-radius:14px;z-index:1}.toolbar button{border:0;background:transparent;border-radius:8px}.toolbar button:hover{background:#e7f5eb}.slides-panel{background:#f9fbf9;padding:22px 14px}.slide-card{border-radius:11px;padding:7px}.slide-card canvas{border-radius:5px}.slide-card.selected{border-color:#24a261;background:#eaf5ee}.properties{padding:24px 20px}.canvas-wrap{box-shadow:0 16px 55px #203c2c18;border-radius:3px}.panel-title{color:#8b9d90;font-size:9px;letter-spacing:1.8px}.properties input:not([type=checkbox]),.properties select,.properties textarea{background:#f8faf8;border-color:#e6ece7;border-radius:8px}#editor{height:calc(100dvh - 80px)}dialog{border-radius:22px}#toast{background:#174f32;box-shadow:0 6px 25px #173d3222;bottom:22px;border-radius:28px;font-size:12px}input[type=range]{accent-color:#21a461}@keyframes float{0%,100%{translate:0 0}50%{translate:0 -8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:1500px){#compressor{padding-top:65px}.drop-stage{height:390px}.dropzone{width:270px;height:265px}}@media(max-width:1100px){header{gap:20px;padding:0 22px}.feature-strip{gap:15px;padding:35px 25px}.feature-strip>div{white-space:normal}.feature-strip>div:nth-child(3){display:none}}@media(max-width:760px){header{padding:10px 14px;height:auto;gap:10px}.logo img{width:115px;height:32px}.logo span{display:none}nav button{padding:8px 12px;font-size:11px}.header-actions{justify-content:center}.header-actions button{padding:7px 12px;font-size:10px}#compressor{padding:32px 20px 0}h1{font-size:37px}.eyebrow{font-size:8px;letter-spacing:2px}.compress-heading p{font-size:12px}.drop-stage{height:325px}.d1{left:5%}.d4{right:3%}.d2{right:10%}.d3{left:14%}.export-settings{padding:18px}.feature-strip{margin:35px -20px 0;flex-wrap:wrap;padding:30px 20px;gap:22px}.feature-strip>div{flex:1}.feature-strip>button{width:100%}.has-files .compress-layout{display:block}.has-files .export-settings{position:static}#editor{height:auto}.toolbar{margin:8px}button{transition:background .18s}}
/* Live compression results and Webon gradient */
.dropzone{background:linear-gradient(135deg,#169f59 5%,#26ab67 38%,#b3b349 70%,#ffa000 100%);box-shadow:0 18px 65px #279b5b25,14px 10px 45px #ffa00018;overflow:visible}.dropzone:before{background:linear-gradient(145deg,#36bd7538,#ffad2638);inset:-12px}.dropzone:after{background:linear-gradient(130deg,#39b67318,#ffa00025);inset:-23px}.dropzone:hover,.dropzone.drag-over{background:linear-gradient(125deg,#11934d 0%,#32b26c 35%,#e6ad2e 75%,#ff9800 100%);box-shadow:0 20px 70px #24a76635,15px 10px 50px #ffa00030}.dropzone svg{filter:drop-shadow(0 2px 8px #00552715)}.dropzone small{color:#fff;opacity:.85}.dropzone>span{color:#fff}.float-dot{backdrop-filter:blur(1px);border:1px solid #ffffff90}.d1,.d4{background:linear-gradient(135deg,#ffbf4555,#ff9b0033)}.d2,.d3{background:linear-gradient(135deg,#23ac6744,#9fcb5244)}.compress-heading h1 em{background:linear-gradient(100deg,#137e46 15%,#30984a 65%,#c29928);background-clip:text;-webkit-background-clip:text;color:transparent}.compression-summary{padding:15px 20px;margin:0 auto 15px;max-width:760px;border:1px solid #ceead8;border-radius:13px;background:linear-gradient(120deg,#edf9f1,#fff9ed);color:#247447;font-size:12px;font-weight:600}.queue-item{padding:18px;gap:14px;max-width:760px;margin:12px auto;border-radius:16px;box-shadow:0 4px 25px #1e553b06;animation:card-in .25s ease-out}.queue-item.ready{border-color:#daeadf}.queue-item .file-info{flex:1;min-width:0}.queue-item .file-info>span{font-size:12px;font-weight:500}.queue-item .file-result{flex:0 0 118px;text-align:right;font-size:11px;overflow:visible}.file-result b{display:block;font-size:17px;font-weight:700;color:#2a3a30;margin-top:5px;letter-spacing:-.4px}.file-result strong{display:inline-block;padding:4px 8px;border-radius:20px;font-size:11px;letter-spacing:.2px}.file-result .saving{color:#16864b;background:#e8f7ed}.file-result .growing{color:#b66d13;background:#fff4df}.queue-item .file-result small{font-size:9px;white-space:nowrap;margin-top:4px}.file-result.pending{color:#a38a59;font-size:11px;line-height:1.7}.file-download{background:#f1f8f3;border-color:#d9eadf;color:#218349;font-size:20px;line-height:1;padding:9px 11px}.queue-item button{flex-shrink:0}.export-settings{border:1px solid #e4ece5;box-shadow:0 12px 40px #234c3209}.export-settings h3:after{content:'TỰ ĐỘNG';font-size:8px;letter-spacing:1px;float:right;color:#27935a;background:#eaf6ee;border-radius:5px;padding:5px 7px}.export-settings .primary:disabled{background:#edf4ee;color:#709580;border-color:#dfeadf;opacity:1;cursor:progress}#runCompress{transition:background .2s,color .2s;min-height:43px}#queue{max-width:760px}.has-files .compress-layout{grid-template-columns:minmax(0,1fr) 300px;max-width:1200px;gap:30px}.has-files .drop-stage{height:300px}.has-files .dropzone{width:215px;height:210px}.has-files .paste-hint{margin-top:33px}.has-files .export-settings{top:24px;margin-top:22px}.has-files .feature-strip{margin-top:60px}@keyframes card-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.has-files .compress-layout{display:block}.queue-item{flex-wrap:wrap;padding:14px;gap:10px}.queue-item img{width:44px;height:44px}.queue-item .file-info{flex-basis:calc(100% - 60px)}.queue-item .file-result{flex:1;text-align:left;display:flex;gap:10px;align-items:center}.file-result b{margin:0}.queue-item .file-result small{display:none}.compression-summary{font-size:11px;line-height:1.7}.has-files .drop-stage{height:300px}}

#selectionOutlines{position:absolute;inset:0;pointer-events:none}.object-outline{position:absolute;border:1px solid #258e73;background:#258e7308}#marquee{position:absolute;pointer-events:none;border:1px solid #238aee;background:#238aee22;z-index:3}#workspace{touch-action:none;user-select:none}#selectionStatus{color:#23814d}#selection{z-index:2}
/* Object transforms and contextual tools */
#selection{pointer-events:none;overflow:visible}#selection i{display:none}.resize-handle{position:absolute!important;width:11px!important;height:11px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:2px solid #258e73!important;border-radius:50%!important;background:white!important;pointer-events:auto;transform:translate(-50%,-50%);z-index:4}.resize-handle.nw{left:0;top:0;cursor:nwse-resize}.resize-handle.n{left:50%;top:0;cursor:ns-resize}.resize-handle.ne{left:100%;top:0;cursor:nesw-resize}.resize-handle.e{left:100%;top:50%;cursor:ew-resize}.resize-handle.se{left:100%;top:100%;cursor:nwse-resize}.resize-handle.s{left:50%;top:100%;cursor:ns-resize}.resize-handle.sw{left:0;top:100%;cursor:nesw-resize}.resize-handle.w{left:0;top:50%;cursor:ew-resize}.rotation-stem{position:absolute;left:50%;bottom:100%;height:25px;border-left:1px solid #258e73}.rotation-handle{position:absolute;left:50%;top:-36px;transform:translateX(-50%);width:24px;height:24px;padding:0;border:1px solid #258e73;border-radius:50%;background:white;color:#21774d;pointer-events:auto;cursor:grab;line-height:20px;font-size:18px;z-index:5}.rotation-handle:active{cursor:grabbing;transform:translateX(-50%)}.resize-handle:active{transform:translate(-50%,-50%)}#objectTypeLabel{font-size:14px;margin:0 0 16px;color:#218859}#opacityValue{float:right;color:#23814d}#imageTools{border:1px solid #e1ebe3;border-radius:10px;padding:10px;margin-bottom:14px;background:#f8fcf8}#imageTools button{margin-bottom:6px}#shapesDialog{width:720px;max-height:85vh;padding:24px}#shapesGallery{overflow:auto;max-height:65vh;padding:0 3px 15px}#shapesGallery h3{font-size:11px;color:#718a79;letter-spacing:1px;margin:22px 0 10px}.shape-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.shape-option{display:flex;align-items:center;flex-direction:column;padding:10px 5px;border:1px solid #e5ece6;background:#fbfdfb;border-radius:12px;min-width:0}.shape-option:hover{background:#eaf7ee;border-color:#74b890}.shape-option canvas{width:80px;height:58px;max-width:100%;object-fit:contain}.shape-option span{font-size:10px;color:#63806c;margin-top:7px}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.modal-heading h2{font-size:21px;margin:0 0 9px}.modal-heading p{font-size:11px;color:#849488;margin:0 0 15px}.modal-heading>button{padding:4px 9px;font-size:20px;border:0}#backgroundDialog{width:920px;max-width:96vw}.background-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px}.background-preview{background:repeating-conic-gradient(#e7ece8 0 25%,white 0 50%) 0/18px 18px;min-height:240px;border:1px solid #e2e9e3;border-radius:12px;display:flex;justify-content:center;align-items:center;overflow:hidden}#backgroundCanvas{display:block;max-width:100%;max-height:58vh;object-fit:contain;cursor:crosshair}#applyBackground{width:100%}@media(max-width:760px){.shape-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.background-layout{grid-template-columns:1fr}.background-preview{min-height:160px}#backgroundCanvas{max-height:35vh}}

.slide-card{position:relative;cursor:grab}.slide-card.dragging{opacity:.4}.slide-card.drop-before:before,.slide-card.drop-after:after{content:'';position:absolute;left:-3px;right:-3px;height:3px;background:#f6a128;border-radius:5px;z-index:2}.slide-card.drop-before:before{top:-8px}.slide-card.drop-after:after{bottom:-8px}#snapGuides{position:absolute;left:0;top:0;pointer-events:none;z-index:6}.snap-guide{position:absolute;border-color:#ed895b;border-style:dashed;border-width:0}.snap-guide.left,.snap-guide.right{height:calc(100% + 28px);top:-14px;border-left-width:1px}.snap-guide.left{left:0}.snap-guide.right{right:0}.snap-guide.top,.snap-guide.bottom{width:calc(100% + 28px);left:-14px;border-top-width:1px}.snap-guide.top{top:0}.snap-guide.bottom{bottom:0}.export-scope{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.export-scope button{font-size:11px;padding:13px 8px}.export-scope button.active{background:#e5f4e9;border-color:#299658;color:#1b7144}#exportDialog{width:510px;max-height:92vh;overflow:auto}

.slide-card{touch-action:none;user-select:none}.slide-card canvas{pointer-events:none}

/* Slide cards: independent selection and per-slide actions; pointer-following drag preview. */
.slide-card{padding:6px;position:relative;cursor:default}.slide-select{display:block;width:100%;padding:0;border:0;background:transparent!important;box-shadow:none!important;text-align:left;cursor:grab;touch-action:none}.slide-select:active{transform:none;cursor:grabbing}.slide-select:focus-visible{outline:2px solid #279656;outline-offset:4px}.slide-select canvas{width:100%;height:125px;margin:0 0 8px}.slide-select>span{display:block;padding:2px 2px 4px}.slide-action{position:absolute;top:10px;width:25px;height:25px;display:grid;place-items:center;padding:0;border:1px solid #d4e2d9;background:#ffffffee;border-radius:7px;font-size:16px;line-height:1;color:#266947;box-shadow:0 2px 6px #173d3210;z-index:2;cursor:pointer;touch-action:manipulation}.slide-duplicate{left:10px}.slide-delete{right:10px;color:#b75b4e}.slide-action:hover{background:#fff;box-shadow:0 3px 8px #173d3226}.slide-action:disabled{opacity:.35;cursor:default}.slide-card.dragging{opacity:.28;border-style:dashed}.slide-drag-ghost{position:fixed;z-index:20000;pointer-events:none;padding:7px;background:#fff;border:2px solid #24945b;border-radius:11px;box-shadow:0 18px 45px #143b3238;transform:rotate(-2deg);opacity:.96;line-height:normal;will-change:left,top}.slide-drag-ghost canvas{display:block;width:100%;height:125px;object-fit:contain;background:#e8eee9;border-radius:5px}.slide-drag-ghost span{display:block;font-size:11px;padding:7px 2px 2px;color:#28613f}@media(max-width:760px){.slide-select canvas,.slide-drag-ghost canvas{height:65px}.slide-action{top:6px;width:21px;height:21px;font-size:13px}.slide-duplicate{left:5px}.slide-delete{right:5px}.slide-select>span{font-size:9px}}
/* Compact compressor: one viewport, independently scrolling file list. */
body[data-mode="compressor"]{overflow:hidden}body[data-mode="compressor"] header{height:80px;min-height:80px}body[data-mode="compressor"] .header-actions{display:none!important}#compressor{height:calc(100dvh - var(--header-height,80px));min-height:0;max-width:none;padding:26px 32px;display:flex;flex-direction:column;overflow:hidden}#compressor .compress-heading{flex-shrink:0}#compressor:not(.has-files){justify-content:center;gap:18px}#compressor:not(.has-files) .compress-layout{margin:0;width:100%;display:block;flex:0 1 auto}#compressor:not(.has-files) .drop-stage{height:330px;padding-top:0}#compressor:not(.has-files) .dropzone{width:260px;height:255px}#compressor:not(.has-files) .export-settings,#compressor:not(.has-files) .queue-panel{display:none}#compressor .feature-strip{display:none!important}#compressor.has-files .compress-heading{padding:0 0 18px}#compressor.has-files .compress-heading h1{font-size:29px;margin:8px 0;letter-spacing:-1px;line-height:1.25}#compressor.has-files .compress-heading h1 br{display:none}#compressor.has-files .compress-heading h1 em:before{content:' '}#compressor.has-files .compress-heading p{display:none}#compressor.has-files .compress-layout{display:grid;grid-template-columns:minmax(340px,1.25fr) minmax(200px,.8fr) 290px;gap:24px;align-items:stretch;flex:1;min-height:0;width:100%;max-width:1600px;margin:0 auto}#compressor .queue-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid #e0e9e2;border-radius:18px;background:#ffffffdd;box-shadow:0 8px 30px #24493408;padding:0}.queue-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 14px;flex-shrink:0}.queue-heading h2{font-size:14px;margin:0}.queue-heading span{font-size:10px;background:#edf7ef;color:#368452;padding:5px 9px;border-radius:15px}#compressor .compression-summary{margin:0 12px 8px;padding:10px 12px;font-size:10px;line-height:1.6;flex-shrink:0;max-width:none;border-radius:9px}#compressor #queue{overflow:auto;min-height:0;flex:1;padding:0 10px 10px;width:100%;max-width:none;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c2d6c7 transparent}#compressor .queue-item{display:grid;grid-template-columns:36px minmax(0,1fr) 83px 28px 24px;gap:8px;margin:7px 0;padding:12px 10px;max-width:none;align-items:center;border-radius:11px}#compressor .queue-item img{width:36px;height:40px;object-fit:contain}#compressor .queue-item .file-info{min-width:0;overflow:hidden}#compressor .file-info>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}#compressor .file-info small{font-size:9px;line-height:1.4}#compressor .file-result{min-width:0;text-align:right;display:block;line-height:1.3}#compressor .file-result strong{font-size:9px;padding:4px 6px}#compressor .file-result b{font-size:14px;margin-top:5px}#compressor .file-result small{font-size:8px;display:none}#compressor .file-result.pending{font-size:9px}#compressor .queue-item button{padding:4px;height:28px;min-width:0;border-radius:6px}#compressor .file-download{font-size:17px}#compressor.has-files .drop-column{min-height:0;display:flex;align-items:center;justify-content:center}#compressor.has-files .drop-stage{height:auto;width:100%;padding:0;min-height:250px}#compressor.has-files .dropzone{width:130px;height:128px;gap:5px}#compressor.has-files .dropzone svg{width:29px;height:29px}#compressor.has-files .dropzone strong{font-size:13px;letter-spacing:-.3px}#compressor.has-files .dropzone>span{font-size:9px}#compressor.has-files .dropzone small{font-size:7px;letter-spacing:1px;margin-top:2px}#compressor.has-files .paste-hint{text-align:center;font-size:9px;max-width:180px;line-height:1.9;margin-top:30px}#compressor.has-files .float-dot{scale:.55}#compressor.has-files .d1{left:4%;top:0}#compressor.has-files .d2{right:5%;top:15%}#compressor.has-files .d3{left:3%;bottom:10%}#compressor.has-files .d4{right:0;bottom:0}#compressor.has-files .export-settings{position:static;align-self:start;width:100%;max-width:none;margin:0;max-height:100%;overflow:auto;padding:20px;scrollbar-width:thin}#compressor.has-files #compressOptions{display:block}#compressor.has-files #compressOptions label{margin-bottom:16px}#compressor.has-files .export-settings h3{font-size:13px;margin:0 0 20px}#compressor.has-files .export-settings .tip{font-size:10px;margin-top:12px}#compressor .drop-column{min-width:0}.export-ready{display:block;padding:12px;border:1px solid #badbc6;border-radius:9px;background:#f0faf3;color:#237a45;text-decoration:none;font-size:12px;margin:12px 0}#exportProgress{color:#227447;line-height:1.7}@media(max-width:1100px) and (min-width:761px){#compressor{padding:20px 18px}#compressor.has-files .compress-layout{grid-template-columns:minmax(310px,1fr) minmax(150px,.6fr) 240px;gap:14px}#compressor.has-files .export-settings{padding:15px}#compressor.has-files .dropzone{width:120px;height:118px}#compressor.has-files .dropzone strong{font-size:12px}}@media(max-width:760px){body[data-mode="compressor"]{overflow:auto}body[data-mode="compressor"] header{height:auto;min-height:64px;flex-wrap:nowrap}body[data-mode="compressor"] header .logo{flex-shrink:0}#compressor{height:calc(100dvh - var(--header-height,64px));padding:20px 14px;min-height:500px}#compressor:not(.has-files) .drop-stage{height:300px}#compressor:not(.has-files) .dropzone{width:235px;height:230px}#compressor.has-files{height:auto;min-height:calc(100dvh - var(--header-height,64px));overflow:visible}#compressor.has-files .compress-heading{padding-bottom:10px}#compressor.has-files .compress-heading h1{font-size:24px}#compressor.has-files .compress-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}#compressor.has-files .drop-column{grid-row:1}#compressor.has-files .drop-stage{min-height:185px}#compressor.has-files .dropzone{width:120px;height:118px}#compressor.has-files .drop-stage .paste-hint{margin:22px 0 0;max-width:none}#compressor.has-files .queue-panel{max-height:340px;min-height:170px}#compressor.has-files .export-settings{max-height:none;overflow:visible}#compressor.has-files .eyebrow{font-size:7px;letter-spacing:1px}.queue-heading{padding:14px}.queue-heading h2{font-size:12px}}
#compressor .dropzone{padding:24px}#compressor.has-files .dropzone{padding:12px 6px}#compressor.has-files .dropzone strong{white-space:nowrap}
/* Compressor comparison workspace */
#compressor:not(.has-files) .compress-layout{max-width:none;margin:0 auto;flex:none;align-self:center}#compressor:not(.has-files) .drop-column{width:100%;margin:0 auto}#compressor:not(.has-files) .drop-stage{width:100%;margin:0 auto;align-items:center}#compressor:not(.has-files) .dropzone{animation:none;translate:none;margin:0 auto}#compressor.has-files .compress-layout{grid-template-columns:300px minmax(0,1fr) 280px;gap:18px;max-width:none}#compressor.has-files .drop-column{display:flex;min-width:0;align-items:stretch}#compressor.has-files .drop-stage{display:none}#compressor .queue-panel,#compressor .export-settings{background:rgba(255,255,255,.65);backdrop-filter:blur(14px)}#compressor .queue-item{background:rgba(255,255,255,.48);grid-template-columns:38px minmax(0,1fr) 25px 24px;cursor:pointer;animation:none;position:relative}#compressor .queue-item .file-result{grid-column:2;grid-row:2;text-align:left;display:flex;gap:6px;align-items:center}#compressor .queue-item .file-result b{margin:0;font-size:12px}#compressor .queue-item>img{grid-row:1/3}#compressor .queue-item>.file-download{grid-column:3;grid-row:1/3}#compressor .queue-item>button:last-child{grid-column:4;grid-row:1/3}#compressor .queue-item.selected{border-color:#26a362;background:rgba(228,248,235,.75);box-shadow:0 0 0 1px #26a36233}#compressor .queue-item:focus-visible{outline:2px solid #f5a126;outline-offset:1px}.queue-heading{gap:8px;padding:16px 13px}.queue-heading h2{flex:1;font-size:13px}.add-compress{width:32px;height:32px;padding:0;border-radius:50%;font-size:22px;background:linear-gradient(130deg,#e5f6e9cc,#ffefd5cc);color:#21814c}.compare-panel{display:flex;flex-direction:column;width:100%;min-height:0;min-width:0;gap:12px}.compare-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;min-height:30px}.compare-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.compare-heading>span{font-size:10px;white-space:nowrap;color:#27824b}.compare-stage{--split:50%;position:relative;flex:1;min-height:180px;overflow:hidden;border-radius:16px;border:1px solid #d8e4db;background:rgba(36,53,45,.08);isolation:isolate}.compare-stage>img,.compare-after,.compare-after img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}.compare-after{clip-path:inset(0 0 0 50%);background:transparent}.compare-label{position:absolute;top:14px;padding:6px 10px;border:1px solid #ffffff77;background:#ffffffaa;backdrop-filter:blur(8px);border-radius:16px;font-size:10px;pointer-events:none;z-index:2}.original-label{left:12px}.result-label{right:12px}.compare-divider{position:absolute;left:var(--split);top:0;bottom:0;width:2px;transform:translateX(-50%);background:white;box-shadow:0 0 5px #16342377;pointer-events:none;z-index:3}.compare-divider span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:white;background:#16814c;border:3px solid #ffffffdd;box-shadow:0 4px 16px #183c3244;font-size:25px;white-space:nowrap}#compareRange{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:ew-resize;touch-action:pan-y;z-index:4}#compareStage:focus-within{outline:2px solid #f3a522;outline-offset:3px}.compare-bottom{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#4f755b}.compare-hint{margin:0;text-align:center;font-size:10px;color:#7b8d80}.export-settings input:not([type=checkbox]),.export-settings select{background:#ffffff80}#compressor.has-files .compress-heading{padding-bottom:12px}#compressor.has-files .compress-heading h1{font-size:25px}#compressor.has-files .compress-heading .eyebrow{font-size:8px}@media(max-width:1100px) and (min-width:761px){#compressor.has-files .compress-layout{grid-template-columns:235px minmax(0,1fr) 230px;gap:12px}#compressor .queue-item{gap:5px;padding:10px 6px;grid-template-columns:25px minmax(0,1fr) 22px 20px}#compressor .queue-item img{width:25px}.queue-heading span{font-size:9px;padding:4px}.queue-heading h2{font-size:11px}.compare-heading{flex-wrap:wrap;gap:4px}}@media(max-width:760px){#compressor.has-files .compress-layout{grid-template-columns:minmax(0,1fr)}#compressor.has-files .drop-column{grid-row:1;min-height:360px}.compare-stage{min-height:270px}#compressor.has-files .queue-panel{max-height:300px}#compressor.has-files .queue-item{grid-template-columns:38px minmax(0,1fr) 28px 24px}.compare-bottom{font-size:10px}.compare-hint{font-size:9px}} 
.compare-stage,.compare-after{background-color:#f4f6f4;background-image:conic-gradient(#e5eae6 25%,transparent 0 50%,#e5eae6 0 75%,transparent 0);background-size:20px 20px}
/* Compact, centered controls and proportional slide previews. */
button{display:inline-flex;align-items:center;justify-content:center;line-height:1.2;vertical-align:middle}button svg{display:block;flex:none;width:18px;height:18px}header,body[data-mode="compressor"] header{height:64px;min-height:64px;padding-top:0;padding-bottom:0}#editor{height:calc(100dvh - var(--header-height,64px))}header nav{align-items:center}header nav button{min-height:34px;padding:8px 17px;line-height:1.2}header .logo img{height:36px}.toolbar{align-items:center}.toolbar button{min-height:32px;line-height:1.2}.panel-title button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0}.panel-title button svg{width:20px;height:20px}.slide-select{display:block;line-height:0}.slide-select canvas{height:auto!important;width:100%;margin:0;object-fit:contain;border-radius:4px}.slide-select>span{display:none}.slide-card{padding:5px;margin-bottom:12px}.slide-action{width:19px;height:19px;top:8px;padding:3px;display:flex;line-height:1}.slide-action svg{width:12px;height:12px}.slide-duplicate{left:8px}.slide-delete{right:8px}.slide-drag-ghost canvas{height:auto;object-fit:contain}.slide-drag-ghost span{display:none}#compressor .queue-panel,#compressor .export-settings{background:rgba(255,255,255,.48);backdrop-filter:blur(7px)}#compressor .queue-panel{height:auto;max-height:100%;align-self:start}#compressor #queue{height:calc(var(--visible-files,1)*93px + 10px);max-height:568px;flex:0 1 auto}#compressor .queue-item{height:86px;min-height:86px;margin:7px 0 0}#compressor .queue-item button{display:flex;align-items:center;justify-content:center;line-height:1;padding:5px}#compressor .queue-item button svg{width:14px;height:14px}.add-compress{display:flex;align-items:center;justify-content:center;padding:7px;line-height:1}.add-compress svg{width:19px;height:19px}.compare-divider span{display:flex;align-items:center;justify-content:center;padding:8px;line-height:1}.compare-divider svg{width:23px;height:23px}.compare-stage>img,.compare-after img{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none;max-height:none;object-fit:contain}.compare-after{inset:0}.export-settings h3{display:flex;justify-content:space-between;align-items:center;gap:8px}.export-settings h3:after{float:none;line-height:1.3}.layer{justify-content:flex-start;text-align:left}@media(max-width:760px){header,body[data-mode="compressor"] header{height:auto;min-height:60px;padding-top:6px;padding-bottom:6px}.slide-action{width:17px;height:17px;top:7px;padding:2px}.slide-action svg{width:11px;height:11px}.slide-duplicate{left:7px}.slide-delete{right:7px}#compressor.has-files .queue-panel{max-height:650px}#compressor #queue{max-height:568px}}
.toolbar button{gap:6px}.toolbar button svg{width:14px;height:14px}.toolbar button .button-label{flex:none;line-height:1.2}.dropzone>svg{width:48px;height:48px}.slide-select canvas{aspect-ratio:auto}
/* Appears beneath a rotated object only when its angle is level (0°, 90°, 180°, or 270°). */
.snap-guide.level{position:absolute;height:0;border-top:2px dashed #ed895b;border-left:0;width:120px;transform:translateY(-1px)}
/* PowerPoint-like context commands for slides and canvas objects. */
.context-menu{position:fixed;z-index:40000;min-width:214px;padding:6px;background:rgba(255,255,255,.97);border:1px solid #dbe6dd;border-radius:12px;box-shadow:0 16px 38px #142c2140;backdrop-filter:blur(14px);font-size:12px;animation:context-in .13s ease-out}
.context-menu button{display:flex;width:100%;justify-content:flex-start;align-items:center;min-height:33px;padding:7px 11px;border:0;border-radius:7px;background:transparent;text-align:left;white-space:nowrap;color:#2b4034;box-shadow:none}.context-menu button:hover{background:#e7f5eb;color:#137346}.context-menu button:disabled{opacity:.42;cursor:not-allowed}.context-menu .context-divider{height:1px;background:#e6ece7;margin:5px 7px}@keyframes context-in{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
/* Keep the editor canvas clean: no browser scrollbars inside the slide workspace. */
#editor .workspace{overflow:hidden;overscroll-behavior:none;scrollbar-width:none}#editor .workspace::-webkit-scrollbar{display:none}
/* Light structure for the slide navigator, without competing with the green active state. */
#slides .slide-card{border:1px solid #d9e1dc;background:#ffffffb8;box-shadow:0 2px 9px #1d40300a}#slides .slide-card.selected{border:2px solid #24a261;background:#eaf5ee}
/* Lively but restrained compressor landing motion. */
#compressor>.ambient{position:absolute;z-index:0;pointer-events:none;display:block;opacity:.7;filter:blur(.1px);animation:ambient-drift 4.2s ease-in-out infinite alternate}
.ambient-a{width:125px;height:125px;left:8%;top:25%;border-radius:47% 53% 60% 40%;background:radial-gradient(circle at 35% 30%,#fff4cf 0 18%,#ffb23955 20% 55%,transparent 57%);animation-delay:-1s!important}
.ambient-b{width:16px;height:16px;left:24%;top:68%;border-radius:50%;background:#31ad6866;box-shadow:0 0 0 8px #34b96e12;animation-delay:-2.3s!important}
.ambient-c{width:74px;height:61px;left:18%;bottom:13%;border-radius:57% 43% 38% 62%;background:linear-gradient(145deg,#2cb66a12,#f8b43f44);transform:rotate(30deg);animation-delay:-.7s!important}
.ambient-d{width:24px;height:24px;right:24%;top:29%;border-radius:50%;background:#2cac6755;box-shadow:0 0 0 10px #2cac6710;animation-delay:-3.1s!important}
.ambient-e{width:120px;height:92px;right:9%;top:49%;border-radius:61% 39% 52% 48%;background:radial-gradient(circle,#ffbd5255 0 35%,transparent 38%);animation-delay:-1.8s!important}
.ambient-f{width:20px;height:20px;right:14%;bottom:16%;border-radius:40% 60% 55% 45%;background:#f4a21d77;animation-delay:-.4s!important}
.ambient-g{width:9px;height:9px;left:37%;top:40%;border-radius:50%;background:#ed982a88;animation-delay:-2.8s!important}
.ambient-h{width:13px;height:13px;right:37%;bottom:23%;border-radius:50%;background:#29ae6c66;animation-delay:-1.4s!important}
.orbit{position:absolute;z-index:-1;pointer-events:none;border:1px dashed #f3aa424f;border-radius:50%;animation:orbit-spin 5.2s linear infinite}
.orbit-one{width:315px;height:315px}.orbit-two{width:275px;height:275px;border-color:#28a9663d;animation-direction:reverse;animation-duration:3.8s}
.dropzone{animation:float 3.8s ease-in-out infinite}.dropzone:before{animation:pulse-aura 2.6s ease-in-out infinite}.dropzone:after{animation:pulse-aura 3.2s ease-in-out infinite reverse}
.d5{width:12px;height:12px;left:12%;top:46%;background:linear-gradient(135deg,#ffad2e66,#ffd37d99);animation-duration:3.3s}.d6{width:28px;height:28px;right:9%;top:33%;background:linear-gradient(135deg,#24b06844,#8edba744);animation-duration:4.1s}
@keyframes ambient-drift{from{translate:-3px -5px;scale:.96}to{translate:8px 8px;scale:1.05}}@keyframes orbit-spin{to{rotate:360deg}}@keyframes pulse-aura{50%{scale:1.055;opacity:.75}}
#compressor.has-files>.ambient{opacity:.25;animation-duration:6s}.has-files .orbit{display:none}.has-files .dropzone{animation:float 3s ease-in-out infinite}.has-files .d5,.has-files .d6{display:none}
@media(max-width:760px){.ambient-e,.ambient-c,.ambient-g{display:none}.orbit-one{width:280px;height:280px}.orbit-two{width:240px;height:240px}}
