@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{--bg:#f4f6f9;--paper:#fff;--ink:#1e293b;--muted:#788396;--line:#e8ecf2;--blue:#2466e8;--blue2:#4b83f5;--blue-pale:#eef4ff;--navy:#182c4b;--mint:#3aa88c;--amber:#ab792d;--shadow:0 12px 34px rgba(34,52,79,.055);--radius:16px;font-family:'DM Sans','Noto Sans KR',sans-serif;color:var(--ink);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;background:var(--bg);min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(36,102,232,.24);outline-offset:2px}.topbar{height:64px;padding:0 clamp(18px,3.1vw,48px);background:rgba(255,255,255,.92);border-bottom:1px solid #e9edf3;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:10px;color:#21304a;text-decoration:none;font:800 17px Manrope,'Noto Sans KR',sans-serif;letter-spacing:-.65px}.brand-mark{width:28px;height:28px;border-radius:9px;background:linear-gradient(145deg,#2b70eb,#1856cf);display:flex;align-items:center;justify-content:center;gap:2.5px;box-shadow:0 5px 12px rgba(36,102,232,.2)}.brand-mark i{width:2.5px;border-radius:2px;background:white;display:block}.brand-mark i:nth-child(1){height:8px}.brand-mark i:nth-child(2){height:13px}.brand-mark i:nth-child(3){height:9px}.topbar-center{font-size:11px;color:#8490a1;display:flex;align-items:center;gap:8px}.local-dot,.mini-dot,.pulse-dot{height:7px;width:7px;display:inline-block;background:#42b994;border-radius:99px;box-shadow:0 0 0 3px rgba(66,185,148,.12)}.top-actions{display:flex;align-items:center;gap:9px}.button{border:0;border-radius:9px;height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:700;transition:transform .15s,background .15s,box-shadow .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button-primary{color:white;background:linear-gradient(135deg,#2a70ec,#1e5ed3);box-shadow:0 5px 13px rgba(36,102,232,.16)}.button-primary:hover:not(:disabled){background:#1d5dd3}.button-quiet{background:transparent;color:#526177;border:1px solid transparent}.button-quiet:hover{background:#f4f7fc;border-color:#e8edf5}.button .plus{font-size:17px;line-height:1}.icon{font-size:15px}.app-shell{max-width:1840px;margin:0 auto;padding:0 clamp(16px,2.5vw,40px) 28px}.intro-row{height:119px;display:flex;align-items:center;justify-content:space-between;padding:10px 2px 2px}.eyebrow{font:700 9px Manrope,'DM Sans',sans-serif;letter-spacing:1.65px;color:#8290a2;margin:0 0 8px;display:flex;align-items:center;gap:10px}.eyebrow-line{height:1px;width:26px;background:#aac2f1}.intro-row h1{font:800 clamp(20px,2vw,26px) Manrope,'Noto Sans KR',sans-serif;letter-spacing:-1.1px;margin:0;color:#1e2b40}.intro-copy{font-size:12px;color:#788597;margin:7px 0 0}.intro-meta{font-size:11px;color:#778398;border:1px solid #e7ecf3;background:rgba(255,255,255,.62);border-radius:999px;padding:9px 12px;display:flex;align-items:center;gap:8px;margin-right:5px}.meta-icon{color:#d5a44e;font-size:14px}.workspace{display:grid;grid-template-columns:238px minmax(400px,1fr) 340px;gap:13px;height:calc(100vh - 202px);min-height:610px;max-height:970px}.panel{background:var(--paper);border:1px solid #e8edf3;border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}.slide-panel{display:flex;flex-direction:column}.panel-heading{height:55px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eff2f6}.panel-heading>div{display:flex;align-items:center;gap:8px}.panel-heading h2{font-size:13px;letter-spacing:-.25px;margin:0;font-weight:700}.count-pill{border-radius:99px;background:#edf2fb;color:#59718f;font-size:10px;padding:2px 7px;font-weight:700}.icon-button{border:0;background:transparent;color:#8491a3;font-size:18px;width:28px;height:28px;border-radius:7px}.icon-button:hover{background:#f3f6fa;color:#35445d}.slide-toolbar{height:42px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8b96a5;border-bottom:1px solid #f1f3f7}.text-button{border:0;background:transparent;padding:4px;font-size:10px;font-weight:600}.danger{color:#d34c57}.slide-list{padding:10px 9px 12px;overflow:auto;flex:1}.empty-list{height:100%;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;color:#97a2b0}.empty-list-icon{width:42px;height:42px;border:1px dashed #ccd5e1;background:#fafbfd;border-radius:12px;display:grid;place-items:center;font-size:19px;color:#8e9bb0;margin-bottom:2px}.empty-list strong{font-size:11px;color:#647187}.empty-list span:last-child{font-size:10px}.slide-card{position:relative;display:grid;grid-template-columns:14px 79px 1fr;gap:8px;align-items:center;padding:8px 7px;border:1px solid transparent;border-radius:10px;margin:0 0 7px;cursor:pointer;transition:border .15s,background .15s}.slide-card:hover{background:#f7f9fd}.slide-card.active{background:#f0f5ff;border-color:#d4e2ff}.slide-check{appearance:none;width:13px;height:13px;margin:0;border:1px solid #c6cfda;border-radius:4px;background:white;position:relative;cursor:pointer}.slide-check:checked{border-color:#3774e8;background:#3774e8}.slide-check:checked:after{content:'✓';color:white;font-size:10px;position:absolute;left:1px;top:-1px}.thumb{width:79px;height:49px;border-radius:5px;background:linear-gradient(135deg,#f2f5fa,#e8edf5);object-fit:cover;border:1px solid #e5eaf1}.slide-card-copy{min-width:0}.slide-card-copy strong{display:block;font-size:10px;color:#394a62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.slide-card-copy small{display:block;font-size:9px;color:#929eae;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slide-add{height:41px;margin:0 10px 9px;border:1px dashed #b9c8dc;background:#f9fbfe;border-radius:9px;color:#4c6b98;font-size:11px;font-weight:700}.slide-add:hover{background:#f2f6fd;border-color:#8faee0}.slide-add span{font-size:16px;vertical-align:-1px;margin-right:4px}.local-note{margin:0;padding:10px 12px;border-top:1px solid #eff2f6;font-size:9px;line-height:1.55;color:#8b96a5;display:flex;gap:7px;align-items:flex-start}.shield-icon{color:#63a98d;font-size:13px;line-height:1}.editor-panel{display:flex;flex-direction:column;background:#fff}.editor-toolbar{height:55px;flex:0 0 55px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4}.toolbar-left{display:flex;align-items:center;gap:10px;min-width:0}.mini-status{font-size:10px;color:#607087;display:flex;align-items:center;gap:7px;white-space:nowrap}.mini-dot{width:6px;height:6px;box-shadow:none}.divider{width:1px;height:15px;background:#e5e9ef}.current-slide-label{font-size:10px;color:#8994a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ratio-control{display:flex;padding:3px;background:#f1f4f8;border-radius:8px;gap:2px}.ratio-button{height:25px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:#8591a2;font-size:9px;font-weight:700}.ratio-button.active{background:white;color:#3567c2;box-shadow:0 1px 4px rgba(30,50,80,.11)}.stage-wrap{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 26px 14px;background:linear-gradient(180deg,#fafbfd,#f7f8fa)}.stage{position:relative;width:min(100%,820px);aspect-ratio:16/9;max-height:100%;background:#17243a;border-radius:10px;overflow:hidden;box-shadow:0 15px 32px rgba(31,49,74,.16);transition:aspect-ratio .2s,background .2s}.stage[data-ratio="9:16"]{aspect-ratio:9/16;width:min(48%,350px);height:auto;max-width:100%}.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#111d30}.stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:white;background:radial-gradient(ellipse at 15% 4%,rgba(84,126,217,.28),transparent 38%),radial-gradient(ellipse at 85% 88%,rgba(73,166,166,.16),transparent 34%),linear-gradient(145deg,#162944,#21395a 52%,#1a314f)}.stage-empty[hidden]{display:none}.empty-art{position:relative;width:150px;height:82px;margin-bottom:7px}.art-orbit{position:absolute;inset:2px 20px;border:1px solid rgba(255,255,255,.16);border-radius:50%;transform:rotate(-19deg)}.orbit-two{inset:9px 9px;transform:rotate(26deg);border-color:rgba(137,177,255,.28)}.art-card{position:absolute;border-radius:8px;width:71px;height:53px;top:15px;left:39px;box-shadow:0 9px 18px rgba(6,19,40,.22);transform:rotate(-8deg);display:flex;flex-direction:column;gap:5px;padding:10px;background:#f1f5fc}.art-card span{height:3px;border-radius:3px;background:#c8d6e9;width:38px}.art-card span:last-child{width:26px}.art-card-back{left:54px;top:10px;transform:rotate(9deg);background:#dbe8fb}.art-card-front{z-index:1}.art-card-front b{color:#3869c1;font:800 15px Manrope,sans-serif;margin-bottom:2px}.art-card-front em{position:absolute;right:-17px;top:-8px;color:#efc267;font-size:17px;font-style:normal}.stage-kicker{font:700 8px Manrope,sans-serif;letter-spacing:1.65px;color:#a9c0ea;margin:0 0 8px}.stage-empty h2{font:700 16px 'Noto Sans KR',sans-serif;letter-spacing:-.4px;margin:0 0 7px}.stage-empty>p:not(.stage-kicker){font-size:10px;line-height:1.65;color:#bdc9db;margin:0}.empty-upload{margin-top:13px;height:32px;font-size:10px;padding:0 11px}.empty-upload span{font-size:14px;margin-left:4px}.caption-preview{position:absolute;left:7%;width:86%;transform:translateY(-50%);padding:7px 10px;border-radius:5px;text-align:center;white-space:pre-line;line-height:1.3;word-break:keep-all;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.28);pointer-events:none}.caption-preview:empty{display:none}.stage-footnote{width:100%;max-width:820px;display:flex;justify-content:flex-end;gap:6px;margin-top:10px;color:#9aa4b1;font-size:9px}.fit-icon{font-size:12px}.bottom-strip{height:39px;flex:0 0 39px;border-top:1px solid #f0f2f5;padding:0 16px;display:flex;justify-content:space-between;align-items:center;color:#9aa3af;font-size:9px}.strip-left{display:flex;align-items:center;gap:7px;min-width:0}.strip-left span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.keyboard-key{border:1px solid #e4e8ed;border-radius:4px;padding:1px 5px;color:#8390a0;font-size:9px}.strip-right{color:#5c9b83;font-weight:600;white-space:nowrap}.inspector{display:flex;flex-direction:column}.inspector-head{height:67px;padding:13px 17px 11px;border-bottom:1px solid #edf0f4;display:flex;justify-content:space-between;align-items:center}.small-eyebrow{font-size:8px;margin:0 0 3px;letter-spacing:1.5px}.inspector-head h2,.dialog-head h2{font-size:16px;letter-spacing:-.55px;margin:0;font-weight:800}.inspector-spark{font-size:21px;color:#cc9e4d}.inspector-scroll{overflow:auto;flex:1;min-height:0;padding:0 16px}.setting-section{padding:14px 0 13px;border-bottom:1px solid #edf0f4}.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.section-title-row h3{font-size:11px;margin:0;font-weight:800;letter-spacing:-.2px}.section-hint{font-size:9px;color:#9aa5b2}.button-small{height:26px;padding:0 9px;font-size:9px;border-radius:7px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:9px;font-weight:700;color:#536177;display:flex;justify-content:space-between;align-items:center}.field small{font-size:8px;color:#9aa5b2;font-weight:400}.field select,.field input[type=url],.field input[type=password]{height:32px;border:1px solid #e4e9f0;background:#fbfcfe;border-radius:7px;padding:0 8px;color:#43536a;font-size:10px;min-width:0;width:100%}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.source-field{margin-top:9px}.notice{display:flex;align-items:flex-start;gap:7px;border-radius:7px;padding:8px 9px;font-size:9px;line-height:1.5;margin-top:9px}.notice-blue{background:#f3f7ff;border:1px solid #e5edfb;color:#657995}.notice-amber{background:#fff8ea;border:1px solid #f2e7cf;color:#856b40}.notice-icon{flex:0 0 14px;width:14px;height:14px;border-radius:50%;display:grid;place-items:center;font:700 9px Manrope,sans-serif;background:#e1eaff;color:#4773c2;margin-top:1px}.notice-amber .notice-icon{background:#f4e8c9;color:#ab792d}.generation-status{font-size:9px;color:#8d9aac;margin-top:7px;line-height:1.45;min-height:12px}.language-tabs{height:30px;display:flex;gap:3px;border-bottom:1px solid #e9edf2;margin-bottom:8px}.language-tab{border:0;background:transparent;color:#8a96a5;padding:0 8px 7px;font-size:9px;position:relative;display:flex;align-items:center;gap:6px}.language-tab.active{color:#345d9e;font-weight:700}.language-tab.active:after{content:'';height:2px;background:#3475e8;position:absolute;bottom:-1px;left:7px;right:7px;border-radius:3px}.tab-language-dot{width:6px;height:6px;border-radius:50%}.ko-dot{background:#50a68a}.en-dot{background:#e2a94f}.caption-editor,.narration-editor{width:100%;resize:vertical;min-height:58px;border:1px solid #e5eaf0;background:#fbfcfd;border-radius:7px;padding:8px;font-size:10px;line-height:1.5;color:#34445a}.caption-editor:disabled,.narration-editor:disabled{background:#f6f8fa;color:#9ba5b2}.style-controls{display:grid;grid-template-columns:1fr 50px 50px;gap:8px;align-items:end;margin-top:9px}.compact-field select{height:28px;font-size:9px}.color-field{display:flex;flex-direction:column;gap:5px}.color-field span{font-size:8px;color:#768396}.color-field input{width:100%;height:28px;padding:3px;border:1px solid #e2e7ed;border-radius:6px;background:#fbfcfe}.range-field{display:block;margin-top:9px}.range-field span{display:flex;justify-content:space-between;font-size:9px;color:#6d7a8e;margin-bottom:6px}.range-field output{font-size:9px;font-weight:700;color:#5076b6}.range-field input{width:100%;height:3px;accent-color:#3474e5}.microcopy{font-size:8px;line-height:1.45;color:#9aa4b1;margin:7px 0 0}.tts-tag{display:inline-flex;align-items:center;gap:5px;border-radius:99px;background:#edfaf6;color:#53917f;padding:4px 7px;font-size:8px;font-weight:700}.pulse-dot{width:5px;height:5px;box-shadow:none}.voice-field{margin-bottom:8px}.voice-note{font-size:8px;line-height:1.4;color:#929eac;background:#f8fafc;padding:7px 8px;border-radius:6px;margin:1px 0 8px}.narration-editor{min-height:55px}.narration-actions{display:flex;align-items:center;gap:6px;margin-top:7px}.button-dark{height:28px;padding:0 10px;background:#20385d;color:white;font-size:9px;border-radius:7px}.button-dark:hover:not(:disabled){background:#172d4e}.button-outline{height:28px;padding:0 10px;border:1px solid #e1e7ee;color:#62718a;background:white;font-size:9px;border-radius:7px}.button-outline:hover:not(:disabled){background:#f7f9fc}.play-icon{font-size:8px}.speech-state{font-size:8px;color:#9aa4b1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.export-section{padding-bottom:12px}.export-card{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:1px solid #e5eaf0;border-radius:8px;background:white;padding:9px}.export-card:hover:not(:disabled){background:#f8faff;border-color:#d2e0f6}.export-icon{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;font:800 12px Manrope,sans-serif;flex:0 0 27px}.ppt-icon{background:#fff1e8;color:#da7148}.video-icon{background:#eef3fc;color:#5475ad;font-size:9px}.export-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.export-copy strong,.webm-head strong{font-size:9px;color:#4b596d}.export-copy small,.webm-head small{font-size:8px;color:#98a2b0}.export-arrow{margin-left:auto;color:#8996a8;font-size:14px}.webm-box{border:1px solid #e7ebf1;border-radius:8px;padding:9px;margin-top:8px}.webm-head{display:flex;align-items:center;gap:8px}.webm-head>div{display:flex;flex-direction:column;gap:3px}.include-options{display:flex;gap:14px;margin:10px 0 9px 2px}.include-options label{font-size:9px;color:#788598;display:flex;align-items:center;gap:5px;cursor:pointer}.include-options input{width:12px;height:12px;margin:0;accent-color:#3977e3}.export-webm{width:100%;height:29px;justify-content:space-between}.export-webm span{font-size:13px}.inspector-footer{flex:0 0 31px;border-top:1px solid #f0f2f5;padding:0 15px;display:flex;justify-content:space-between;align-items:center;color:#9aa4b1;font-size:8px}.inspector-footer span:first-child{font-weight:700;color:#718095}.drop-overlay{display:none;position:fixed;inset:0;background:rgba(24,47,83,.18);backdrop-filter:blur(3px);z-index:20;place-items:center}.drop-overlay.active{display:grid}.drop-overlay>div{width:280px;height:190px;background:white;border:1px dashed #6c9aec;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;box-shadow:0 15px 40px rgba(24,47,83,.15);color:#3c577f}.drop-overlay>div>span{display:grid;place-items:center;width:40px;height:40px;background:#edf4ff;border-radius:12px;font-size:24px;color:#3b76db}.drop-overlay strong{font-size:13px}.drop-overlay small{font-size:10px;color:#91a0b3}.toast-region{position:fixed;right:20px;bottom:20px;z-index:30;display:flex;flex-direction:column;gap:8px;max-width:min(380px,calc(100vw - 32px))}.toast{padding:11px 14px;border-radius:10px;background:#203652;color:white;font-size:11px;line-height:1.5;box-shadow:0 9px 24px rgba(20,38,63,.22);animation:toast-in .2s ease-out}.toast.error{background:#903c47}.toast.success{background:#246b59}@keyframes toast-in{from{transform:translateY(7px);opacity:0}to{transform:none;opacity:1}}.settings-dialog{width:min(520px,calc(100vw - 26px));border:1px solid #e2e8ef;border-radius:16px;padding:0;box-shadow:0 20px 70px rgba(21,36,58,.25);color:var(--ink)}.settings-dialog::backdrop{background:rgba(20,35,55,.36);backdrop-filter:blur(2px)}.dialog-head{height:69px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4}.dialog-head .icon-button{font-size:22px}.dialog-body{padding:16px 18px 18px}.dialog-intro{font-size:11px;line-height:1.6;color:#6e7c90;margin:0 0 14px}.dialog-body>.field{margin-bottom:12px}.contract-box{background:#f6f8fb;border:1px solid #e9edf2;border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:6px;margin-top:3px;color:#6f7d90;font-size:9px;line-height:1.45}.contract-box strong{font-size:9px;color:#506177}.contract-box code{font-size:9px;color:#40546e;word-break:break-word}.contract-box span code{background:white;padding:2px 4px;border-radius:4px}.dialog-actions{display:flex;justify-content:space-between;margin-top:15px}.dialog-actions .button{height:32px}.dialog-actions .button-outline{color:#778599}
@media(min-width:1600px){.workspace{grid-template-columns:260px minmax(500px,1fr) 370px}.intro-row{height:129px}.workspace{height:calc(100vh - 212px)}}
@media(max-width:1180px){.workspace{grid-template-columns:210px minmax(360px,1fr) 310px;gap:10px}.app-shell{padding-left:14px;padding-right:14px}.stage-wrap{padding-left:17px;padding-right:17px}.inspector-scroll{padding:0 13px}.topbar-center{display:none}}
@media(max-width:980px){.workspace{grid-template-columns:210px minmax(360px,1fr);height:auto;max-height:none;min-height:620px}.inspector{grid-column:1/-1;min-height:520px}.slide-panel,.editor-panel{height:680px}.inspector-scroll{max-height:650px}.intro-row{height:104px}.stage-wrap{padding:22px}.inspector-footer{position:sticky;bottom:0;background:white}}
@media(max-width:650px){.topbar{height:58px;padding:0 13px}.brand{font-size:15px}.top-actions{gap:5px}.top-actions .button{height:32px;padding:0 9px;font-size:10px}.button-quiet .icon{display:none}.app-shell{padding:0 10px 24px}.intro-row{height:auto;min-height:103px;padding:17px 4px 15px}.intro-row h1{font-size:19px}.intro-copy{font-size:10px;max-width:275px;line-height:1.5}.intro-meta{display:none}.workspace{display:flex;flex-direction:column;gap:10px;min-height:0}.slide-panel{height:345px;min-height:280px}.editor-panel{height:clamp(410px,70vw,600px);min-height:410px}.inspector{min-height:0}.inspector-scroll{max-height:none}.slide-list{max-height:230px}.stage-wrap{padding:18px 10px 10px}.editor-toolbar{padding:0 11px}.bottom-strip{padding:0 9px}.strip-left{max-width:76%}.current-slide-label{max-width:105px}.stage[data-ratio="9:16"]{width:min(56%,280px)}.stage-empty h2{font-size:14px}.empty-art{transform:scale(.82);margin-bottom:0}.stage-empty>p:not(.stage-kicker){font-size:9px}.empty-upload{margin-top:9px}.section-hint{font-size:8px}.setting-section{padding:13px 0}.inspector-head{height:61px}.color-field{width:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.toolbar-right{display:flex;align-items:center;gap:9px;flex:0 0 auto}.subtitle-export-toggle{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.subtitle-toggle-heading{font-size:7px;line-height:1;color:#8b96a7;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.subtitle-switch{height:29px;padding:0 8px;border:1px solid #a6dfc1;border-radius:8px;background:#eaf8f0;color:#14784d;display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:800;white-space:nowrap;transition:background .16s,border-color .16s,color .16s}.subtitle-switch.is-on{background:#e6f7ed;border-color:#91d7b0;color:#117346}.subtitle-switch.is-off{background:#f0f2f5;border-color:#d7dce4;color:#737f90}.subtitle-toggle-icon{width:15px;height:15px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#34aa71;color:#fff;font-size:10px;line-height:1}.subtitle-switch.is-off .subtitle-toggle-icon{background:#98a2b1;color:#fff;font-size:10px}.subtitle-toggle-state{min-width:22px;padding:3px 4px;border-radius:5px;background:rgba(25,130,78,.11);font-size:8px;text-align:center;letter-spacing:.03em}.subtitle-switch.is-off .subtitle-toggle-state{background:rgba(90,104,124,.12)}
@media(max-width:760px){.toolbar-right{gap:6px}.subtitle-switch{gap:4px;padding:0 6px;font-size:8px}.ratio-control{padding:2px}.ratio-button{padding:0 6px}}
@media(max-width:650px){.toolbar-left{gap:5px}.toolbar-left .mini-status{font-size:8px}.toolbar-left .current-slide-label{max-width:74px;font-size:8px}.toolbar-right{gap:4px}.subtitle-toggle-label{display:none}.subtitle-toggle-heading{font-size:6px}.subtitle-switch{height:27px;min-width:48px;justify-content:center;padding:0 5px}.ratio-button{height:23px;padding:0 5px;font-size:8px}}

/* SlideVoice v3: per-slide scripts, voice presets, persistence, progress and trash controls */
.slide-card{grid-template-columns:14px 79px minmax(0,1fr) 23px}
.slide-delete{width:22px;height:24px;border:0;border-radius:6px;background:transparent;color:#a0a9b7;font-size:13px;cursor:pointer;display:grid;place-items:center;padding:0}
.slide-delete:hover{background:#fff0f0;color:#c74f5d}
.narration-tabs{margin:0 0 8px}
.script-target-info{font-size:9px;line-height:1.5;color:#55708d;background:#f3f7fc;border:1px solid #e3ecf6;border-radius:7px;padding:8px;margin:0 0 7px}
.narration-editor{min-height:112px;resize:vertical;line-height:1.5}
.script-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0 11px}
.script-actions .button{height:auto;min-height:31px;padding:6px 7px;font-size:9px;line-height:1.25;white-space:normal}
.script-actions .button-primary{box-shadow:0 2px 6px rgba(44,101,214,.12)}
.speed-field{display:block;margin:0 0 10px}
.speed-field>span{display:block;font-size:9px;color:#66758a;margin:0 0 5px}
.speed-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.speed-option{min-height:30px;padding:5px 6px;border:1px solid #e3e8ef;border-radius:7px;background:#fff;color:#68768a;font-size:8px;line-height:1.25;text-align:center;cursor:pointer}
.speed-option:last-child{grid-column:span 2}
.speed-option:hover{border-color:#abc5f6;color:#315c9b}
.speed-option.active{border-color:#72a2fb;background:#edf4ff;color:#245db8;box-shadow:inset 0 0 0 1px rgba(67,128,231,.12);font-weight:800}
.voice-field{margin:8px 0}
.voice-field select{width:100%;min-width:0}
.voice-field small{font-weight:400;color:#9aa5b3}
.voice-note{font-size:9px;line-height:1.5;color:#65768c;background:#f6f8fb;padding:8px;border-radius:7px;margin:5px 0 8px}
.narration-actions{flex-wrap:wrap}
.narration-actions .speech-state{flex:1 1 120px;min-width:0;line-height:1.35}
.narration-audio-preview{margin:8px 0;padding:7px;border:1px solid #e3e9f1;border-radius:8px;background:#fbfcfe}
.narration-audio-preview audio{display:block;width:100%;height:34px}
.narration-audio-preview small{display:block;margin-top:5px;color:#75849a;font-size:8px}
.narration-progress{margin:9px 0;padding:8px;border:1px solid #e7edf4;border-radius:8px;background:#fbfcfe}
.progress-line{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:8px;color:#758298;line-height:1.4}
.progress-line strong{color:#405776;font-size:9px}
.narration-progress progress{display:block;width:100%;height:6px;margin:7px 0;accent-color:#3977e3}
.narration-progress small{display:block;margin-top:6px;font-size:8px;line-height:1.45;color:#9aa5b3}
.temp-save-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:9px 0}
.temp-save-row .button{height:27px;padding:0 8px;font-size:8px}
.temp-save-row #saveStatus{flex:1 1 100%;font-size:8px;line-height:1.4;color:#738198}
.temp-save-row #saveStatus[data-state="saved"]{color:#39876c}
.temp-save-row #saveStatus[data-state="error"]{color:#b94e58}
.custom-voice-card{margin-top:10px;padding:9px;border:1px solid #e4eaf1;border-radius:8px;background:#fbfcfe}
.custom-voice-card summary{cursor:pointer;color:#465a75;font-size:9px;font-weight:800;list-style:none;display:flex;justify-content:space-between;gap:7px}
.custom-voice-card summary::-webkit-details-marker{display:none}
.custom-voice-card summary::after{content:'＋';color:#6285bc}
.custom-voice-card[open] summary::after{content:'−'}
.custom-voice-card summary span{font-weight:500;color:#9a7881;font-size:8px}
.custom-voice-card p{font-size:8px;line-height:1.55;color:#77869a;margin:9px 0}
.custom-voice-card .field{margin:7px 0}
.upload-audio-field input{display:block;width:100%;font-size:8px;color:#68768a;overflow:hidden}
.owner-consent{display:flex;gap:6px;align-items:flex-start;margin:8px 0;color:#65758b;font-size:8px;line-height:1.45}
.owner-consent input{margin:1px 0 0;accent-color:#3977e3;flex:0 0 auto}
.custom-voice-card>button{height:28px;font-size:8px}
.custom-voice-card>button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:650px){
 .slide-card{grid-template-columns:14px 68px minmax(0,1fr) 23px}
 .slide-delete{width:23px}
 .narration-editor{min-height:98px}
 .script-actions .button{font-size:8px}
 .speed-option{font-size:8px;min-height:32px}
 .custom-voice-card{padding:8px}
}

.narration-language-tab{border:0;background:transparent;color:#8a96a5;padding:0 8px 7px;font-size:9px;position:relative;display:flex;align-items:center;gap:6px;cursor:pointer}
.narration-language-tab.active{color:#345d9e;font-weight:700}
.narration-language-tab.active:after{content:'';height:2px;background:#3475e8;position:absolute;bottom:-1px;left:7px;right:7px;border-radius:3px}
.narration-language-tab:disabled{cursor:not-allowed;opacity:.55}
