.app{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;background:#f1f3f5;font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#212529}.toolbar{justify-content:space-between;padding:12px 24px;background:#fff;border-bottom:1px solid #dee2e6}.tb-left,.toolbar{display:flex;align-items:center;gap:16px}.tb-left{flex:1;min-width:0}.tb-right{display:flex;gap:10px;flex:none}.logo,.tb-right{align-items:center}.logo{font-size:19px;font-weight:800;white-space:nowrap;display:inline-flex;gap:7px}.pres-title{flex:1;max-width:420px;padding:9px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;color:#212529}.pres-title:focus{outline:none;border-color:#4263eb}.btn-icon{width:38px;height:38px;border:1px solid #dee2e6;background:#fff;border-radius:8px;font-size:18px;cursor:pointer;color:#343a40}.btn-icon:hover:not(:disabled){background:#f1f3f5}.btn-icon:disabled{opacity:.35;cursor:default}.btn{background:#4263eb;color:#fff;border:none;padding:10px 18px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}.btn:hover{background:#3b5bdb}.btn-sec{background:#f1f3f5;color:#343a40;border:1px solid #dee2e6;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.btn-sec:hover{background:#e9ecef}.btn-sec:disabled{opacity:.5;cursor:default}.btn-ai{background:linear-gradient(135deg,#7048e8,#4263eb);color:#fff;border:none;padding:9px 16px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer}.btn-ai:hover{filter:brightness(1.07)}.btn-ai:disabled{opacity:.6;cursor:default}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;width:440px;max-width:calc(100vw - 32px);border-radius:14px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.3)}.modal-title{font-size:20px;font-weight:700;margin-bottom:6px}.modal-sub{font-size:13px;color:#868e96;margin-bottom:18px;line-height:1.4}.modal-field{display:block;margin-bottom:16px}.modal-field>span{display:block;font-size:13px;font-weight:600;color:#495057;margin-bottom:6px}.modal-field input,.modal-field select{width:100%;padding:10px 12px;border:1px solid #ced4da;border-radius:8px;font-size:14px}.modal-error{background:#fff5f5;border:1px solid #ffc9c9;color:#e03131;padding:10px 12px;border-radius:8px;font-size:13px;margin-bottom:16px;line-height:1.4}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.modal-wide{width:680px}.speech-text{width:100%;resize:vertical;padding:14px;border:1px solid #ced4da;border-radius:8px;font-size:14px;line-height:1.55;font-family:inherit;white-space:pre-wrap}.speech-loading,.speech-text{height:360px;margin-bottom:16px}.speech-loading{display:flex;align-items:center;justify-content:center;color:#868e96;font-size:15px}.layout{display:flex;flex:1;min-height:0;width:100%;max-width:1350px;margin:0 auto}.hintpanel{width:150px;padding:14px 8px 14px 14px}.hintpanel,.slidepanel{flex:none;overflow-y:auto}.slidepanel{width:208px;background:#fff;border-right:1px solid #dee2e6;padding:14px}.thumb-wrap{margin-bottom:14px;border:2px solid transparent;border-radius:8px;padding:4px;cursor:grab}.thumb-wrap:active{cursor:grabbing}.thumb-wrap:hover{background:#f1f3f5}.thumb-wrap.active{border-color:#4263eb;background:#edf2ff}.thumb-ghost{opacity:.4;border:2px dashed #4263eb;background:#edf2ff}.thumb-chosen{box-shadow:0 10px 24px rgba(0,0,0,.22);transform:scale(1.03)}.thumb{box-sizing:border-box;width:100%;aspect-ratio:16/9;max-width:100%;background:#fff;border:1px solid #dee2e6;overflow:hidden;position:relative}.thumb-inner{width:1280px;height:720px;position:absolute;top:0;left:0;transform-origin:top left}.thumb-bar{display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding:0 4px;font-size:12px;color:#495057}.thumb-del{border:none;background:transparent;color:#adb5bd;font-size:18px;line-height:1;cursor:pointer;padding:0 4px}.thumb-del:hover{color:#fa5252}.add-slide{width:100%;border:1px dashed #adb5bd;background:#fff;color:#495057;padding:10px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.add-slide:hover{border-color:#4263eb;color:#4263eb}.stage{flex:1;display:flex;justify-content:center;align-items:center;padding:28px;min-width:0;overflow:visible}.artboard-wrap{flex:none;position:relative}.proppanel{width:260px;flex:none;background:#fff;border-left:1px solid #dee2e6;padding:18px;overflow-y:auto}.prop-empty{color:#adb5bd;font-size:14px;line-height:1.5}.prop-title{font-size:16px;font-weight:700;margin-bottom:16px}.prop-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;font-size:13px;color:#495057}.prop-row>span{flex:none}.prop-row input[type=number],.prop-row select{flex:1;min-width:0;padding:6px 8px;border:1px solid #ced4da;border-radius:6px;font-size:13px}.prop-row input[type=color]{width:44px;height:30px;padding:0;border:1px solid #ced4da;border-radius:6px;cursor:pointer}.prop-btns{display:flex;gap:6px}.tgl{width:34px;height:32px;border:1px solid #ced4da;background:#fff;border-radius:6px;cursor:pointer;font-size:14px}.tgl:hover{background:#f1f3f5}.tgl.on{background:#4263eb;color:#fff;border-color:#4263eb}.prop-del{margin-top:10px;width:100%;border:1px solid #ffc9c9;background:#fff5f5;color:#e03131;padding:9px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.prop-del:hover{background:#ffe3e3}.artboard{position:relative;width:1280px;height:720px;background:#ffffff;border-radius:18px;box-shadow:0 2px 6px rgba(0,0,0,.06),0 12px 28px rgba(0,0,0,.1),0 34px 64px rgba(0,0,0,.12);flex:none}.pagenum-chip{border-radius:4px;padding:1px 4px;margin:-1px -4px;transition:box-shadow .12s,background .12s}.pagenum-editable:hover .pagenum-chip{background:rgba(66,99,235,.08);box-shadow:0 0 0 1px rgba(66,99,235,.5)}.artboard-clip{position:absolute;inset:0;border-radius:18px;overflow:hidden}.element{position:absolute;top:0;left:0;cursor:move;white-space:pre-wrap;word-break:break-word}.element.text{padding:4px;cursor:move}.element.text .text-inner,.element.text .text-inner[contenteditable=true],.element.text[contenteditable] .text-inner{cursor:text}.element.image-pending{display:flex;align-items:center;justify-content:center;background:#e9ecef;border:1px dashed #adb5bd;color:#868e96;font-size:22px}.element.avatar-drop{cursor:pointer}.avatar-drop-hint{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:rgba(0,0,0,.32);color:#fff;opacity:0;transition:opacity .15s}.element.avatar-drop:hover .avatar-drop-hint{opacity:1}.gen-progress{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#212529;color:#fff;padding:12px 22px;border-radius:999px;font-size:14px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:900}.element[contenteditable=true]{cursor:text;outline:2px solid #4263eb}.element.text.empty-field{outline:1px dashed rgba(66,99,235,.45);outline-offset:2px;border-radius:6px}.text-inner:empty:before{content:attr(data-ph);opacity:.4;pointer-events:none}.element.text .block-handle{position:absolute;left:-24px;top:0;width:20px;height:26px;display:flex;align-items:center;justify-content:center;cursor:grab;color:#4263eb;background:#fff;border:1px solid #dbe0ea;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.12);opacity:0;transition:opacity .12s;font-size:13px;line-height:1;user-select:none;z-index:6}.element.text:hover .block-handle{opacity:1}.element.text .block-handle:active{cursor:grabbing}.genload{display:flex;flex-direction:column;align-items:center;gap:20px;width:min(90vw,340px)}.genload-logo{animation:genLogo 2.4s ease-in-out infinite}@keyframes genLogo{0%,to{transform:translateY(0);opacity:1}50%{transform:translateY(-4px);opacity:.85}}.genload-card{width:100%;aspect-ratio:16/9;border-radius:16px;background:#fff;border:1px solid #ededed;box-shadow:0 12px 44px rgba(0,0,0,.1);position:relative;overflow:hidden;padding:22px;display:flex;flex-direction:column}.genload-card:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(23,23,23,.06) 50%,transparent 65%);transform:translateX(-120%);animation:genShimmer 1.7s ease-in-out infinite}@keyframes genShimmer{to{transform:translateX(120%)}}.genload-accent{width:46px;height:8px;border-radius:4px;background:#171717;opacity:.9;animation:genPulse 1.8s ease-in-out infinite}.genload-title-bar{width:72%;height:13px;border-radius:5px;background:#e7e7ea;margin-top:14px;animation:genPulse 1.8s ease-in-out .1s infinite}.genload-body{display:flex;gap:16px;margin-top:18px;flex:1}.genload-lines{flex:1;display:flex;flex-direction:column;gap:10px}.genload-ln{height:9px;border-radius:4px;background:#eef0f2;animation:genPulse 1.8s ease-in-out infinite}.genload-ln:first-child{width:95%;animation-delay:.15s}.genload-ln:nth-child(2){width:88%;animation-delay:.3s}.genload-ln:nth-child(3){width:92%;animation-delay:.45s}.genload-ln:nth-child(4){width:60%;animation-delay:.6s}.genload-img{width:34%;border-radius:10px;background:#eef0f2;animation:genPulse 1.8s ease-in-out .25s infinite}@keyframes genPulse{0%,to{opacity:1}50%{opacity:.45}}.genload-bar{width:190px;height:4px;border-radius:2px;background:#ececec;overflow:hidden}.genload-bar>span{display:block;height:100%;width:40%;border-radius:2px;background:#171717;animation:genBar 1.4s ease-in-out infinite}@keyframes genBar{0%{transform:translateX(-130%)}to{transform:translateX(340%)}}.genload-text{font-size:14px;font-weight:600;color:#171717;text-align:center;animation:genFade 1.8s ease-in-out infinite}@keyframes genFade{0%,to{opacity:1}50%{opacity:.6}}.genload-sub{font-size:12px;color:#9ca3af;text-align:center;margin-top:-8px}@media (prefers-reduced-motion:reduce){.genload-accent,.genload-bar>span,.genload-card:after,.genload-img,.genload-ln,.genload-logo,.genload-text,.genload-title-bar{animation:none!important}}.thumb-wrap{position:relative}.thumb-locked .thumb-inner{filter:blur(14px)}.thumb-locked{cursor:pointer}.thumb-lock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px;pointer-events:none;background:rgba(255,255,255,.4)}.canvas-holder,.canvas-scroll{flex:1;min-width:0;display:flex}.canvas-scroll{flex-direction:column;align-items:center;justify-content:center;overflow:visible;padding:16px}.slide-box{position:relative}.canvas-scroll .stage,.notes-pane,.slide-box{flex:0 0 auto}.notes-pane{margin-top:10px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.notes-head{display:flex;align-items:center;justify-content:space-between}.notes-title{font-size:13px;font-weight:600;color:#374151}.notes-gen{font-size:12px;font-weight:600;color:#fff;background:#171717;border:none;border-radius:8px;padding:6px 12px;cursor:pointer}.notes-gen:disabled{opacity:.55;cursor:default}.notes-hint{font-size:12px;color:#9ca3af}.notes-area{width:100%;height:180px;resize:vertical;border:1px solid #d1d5db;border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.6;font-family:inherit;color:#171717;background:#fff;outline:none}.notes-area:focus{border-color:#171717;box-shadow:0 0 0 3px rgba(0,0,0,.06)}.notes-err{color:#dc2626;font-size:12px}.lock-cover{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.5);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}.lock-cover-box{text-align:center;background:#fff;border:1px solid #ececec;border-radius:16px;padding:26px 34px;box-shadow:0 12px 40px rgba(0,0,0,.12)}.lock-cover-ico{font-size:40px;line-height:1}.lock-cover-title{margin-top:10px;font-size:18px;font-weight:700;color:#171717}.lock-cover-sub{margin-top:6px;max-width:320px;font-size:14px;line-height:1.45;color:#6b7280}.lock-cover-cta{margin-top:14px;display:inline-block;padding:10px 20px;border-radius:10px;background:#171717;color:#fff;font-size:14px;font-weight:600}.lock-cover{cursor:pointer}.lock-cover:hover .lock-cover-cta{background:#000}