/* A single, accessible upload surface shared by every creator and notebook. */
body .cm-unified-upload{--upload-accent:var(--model-accent,#79e1cd);width:100%;min-width:0;font:400 16px/1.55 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#d9edf5;text-align:left}
body .cm-unified-upload *{box-sizing:border-box;min-width:0}
body .cm-unified-upload .cm-upload-zone{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;padding:26px 20px;border:1px dashed color-mix(in srgb,var(--upload-accent) 50%,transparent);border-radius:16px;background:color-mix(in srgb,var(--upload-accent) 5%,#0b2031);text-align:center;transition:background .2s,border-color .2s}
body .cm-unified-upload .cm-upload-zone.is-dragging{border-color:var(--upload-accent);background:color-mix(in srgb,var(--upload-accent) 20%,#0b2031)}
body .cm-unified-upload .cm-upload-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--upload-accent) 10%,transparent)}
body .cm-unified-upload .cm-upload-mark img{width:38px;height:38px;object-fit:contain}
body .cm-unified-upload .cm-upload-zone>strong{font:700 18px/1.4 Inter,system-ui,sans-serif!important;color:#eefbff!important;margin:0!important;background:none!important;-webkit-text-fill-color:currentColor!important}
body .cm-unified-upload .cm-upload-zone>p{font-size:16px!important;line-height:1.6!important;color:#adc7d5!important;margin:0!important}
body .cm-unified-upload .cm-upload-zone>small{font-size:14px!important;line-height:1.65!important;color:#a5c4d3!important;margin:0!important}
body .cm-unified-upload .cm-upload-choose{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:12px 20px!important;border:1px solid color-mix(in srgb,var(--upload-accent) 40%,transparent)!important;border-radius:12px!important;background:#19424e!important;color:#e2fff7!important;font:700 16px/1.4 Inter,system-ui,sans-serif!important;white-space:normal!important;cursor:pointer;box-shadow:none!important}
body .cm-unified-upload .cm-upload-input{display:none!important}
body .cm-unified-upload .cm-upload-formats{margin:12px 0 0!important;padding:0!important;border:0!important;background:none!important}
body .cm-unified-upload .cm-upload-formats summary{cursor:pointer;min-height:40px;display:flex;align-items:center;color:#a9ced7;font-size:14px;gap:9px}
body .cm-unified-upload .cm-upload-formats summary::before{content:'+';font-size:19px}body .cm-unified-upload .cm-upload-formats[open] summary::before{content:'−'}
body .cm-unified-upload .cm-upload-formats p{font-size:14px!important;line-height:1.7!important;color:#adc6d2!important;margin:4px 0 8px!important;overflow-wrap:anywhere}
body .cm-unified-upload .cm-upload-selection{margin-top:14px}.cm-upload-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.cm-upload-count{color:#94b7c7;font-size:13px}
body .cm-unified-upload .cm-upload-files{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
body .cm-unified-upload .cm-upload-files li{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #91b9ca30;border-radius:12px;background:#0b2031}
.cm-upload-type{display:grid;place-items:center;min-width:40px!important;font-size:10px;font-weight:750;color:var(--upload-accent)}
body .cm-unified-upload .cm-upload-files li>div{flex:1;min-width:0}body .cm-unified-upload .cm-upload-files strong{display:block;font-size:15px!important;line-height:1.5!important;overflow-wrap:anywhere;color:#dfedf5!important;background:none!important;-webkit-text-fill-color:currentColor!important}
body .cm-unified-upload .cm-upload-files small{font-size:13px!important;color:#a0bdca!important}
body .cm-unified-upload .cm-upload-files button{flex-shrink:0;width:44px;height:44px;min-height:44px;border:1px solid #97bbcf26;border-radius:10px;background:#152b39;color:#dfedf5;font-size:23px;cursor:pointer;padding:0!important}
body .cm-unified-upload .cm-upload-selection-note{font-size:14px!important;line-height:1.6!important;color:#a0bdca!important;margin:0!important}
body .cm-unified-upload .cm-upload-error{padding:14px;border:1px solid #e7878b66;border-radius:12px;margin-top:12px;color:#ffced1;background:#482730;font-size:15px;overflow-wrap:anywhere}
body .cm-unified-upload [hidden]{display:none!important}
body .cm-unified-upload :is(button,summary):focus-visible{outline:2px solid var(--upload-accent);outline-offset:4px}
body .cm-unified-upload button:disabled{opacity:.55;cursor:wait}
body dialog.cm-upload-loader{position:fixed!important;inset:0!important;max-width:none!important;max-height:none!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:24px!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at center,#173e4c,#071420 70%)!important;color:#e8f8ff!important;overflow:auto!important;box-sizing:border-box;z-index:2147483647!important;transform:none!important}
.cm-upload-loader[open]{display:grid!important;place-items:center}.cm-upload-loader::backdrop{background:#071420}.cm-upload-loading-content{max-width:650px;text-align:center;margin:auto}.cm-upload-eyebrow{color:#82d8d0;font:700 12px/1.6 system-ui;letter-spacing:1.4px}.cm-upload-brain{position:relative;display:grid;place-items:center;width:210px;height:210px;margin:30px auto}.cm-upload-brain img{width:130px;height:130px;object-fit:contain;animation:cmUploadPulse 3s ease-in-out infinite}.cm-upload-brain i{position:absolute;inset:10px;border:1px solid #65d9cc44;border-top:2px solid #7ce3d6;border-radius:50%;animation:cmUploadOrbit 8s linear infinite}.cm-upload-brain i:last-child{inset:-6px;border-style:dashed;animation-direction:reverse;animation-duration:15s}.cm-upload-loading-content h2{font:750 clamp(28px,4vw,42px)/1.2 system-ui;color:#effcff!important;margin:0 0 18px}.cm-upload-loading-content p{font:400 17px/1.7 system-ui;color:#b5d2df;overflow-wrap:anywhere}.cm-upload-loading-content small{font:400 14px/1.7 system-ui;color:#8faebf}.cm-upload-track{height:4px;border-radius:5px;overflow:hidden;background:#7edfd422;margin:28px auto;width:min(300px,80vw)}.cm-upload-track:after{content:'';display:block;width:40%;height:100%;background:#7edfd4;animation:cmUploadTrack 1.8s ease-in-out infinite}
@keyframes cmUploadPulse{50%{transform:translateY(-5px) scale(1.04)}}@keyframes cmUploadOrbit{to{transform:rotate(360deg)}}@keyframes cmUploadTrack{from{transform:translateX(-100%)}to{transform:translateX(350%)}}
@media(max-width:600px){body .cm-unified-upload .cm-upload-zone{padding:18px 14px;gap:8px}body .cm-unified-upload .cm-upload-zone>strong{font-size:17px!important}body .cm-unified-upload .cm-upload-choose{width:100%}.cm-upload-brain{width:170px;height:170px}.cm-upload-brain img{width:110px;height:110px}}
@media(prefers-reduced-motion:reduce){.cm-upload-loader *{animation:none!important}.cm-upload-zone{transition:none!important}}
body .cm-unified-upload .cm-upload-mobile{display:none}
@media(max-width:900px){body .cm-unified-upload .cm-upload-desktop{display:none}body .cm-unified-upload .cm-upload-mobile{display:inline}body .cm-unified-upload .cm-upload-mark{display:none}body .cm-unified-upload .cm-upload-zone{gap:8px;padding:18px 14px}}
.cm-upload-loading-content .cm-upload-loader-logo{display:block;width:240px;max-width:70vw;height:auto;object-fit:contain;margin:0 auto 18px}
@media(max-width:600px){.cm-upload-loading-content .cm-upload-loader-logo{width:190px;margin-bottom:14px}}
@media(max-height:680px){.cm-upload-loading-content .cm-upload-loader-logo{width:160px;margin-bottom:12px}}
/* Stage illustrations shared by upload, podcast, video and visual summary. */
.cm-stage-visual{--stage-color:#7de6d0;position:relative!important;display:grid!important;place-items:center!important;width:clamp(190px,27vw,300px)!important;height:clamp(190px,27vw,300px)!important;margin:22px auto!important;color:var(--stage-color);isolation:isolate;flex-shrink:0}
.cm-stage-visual:before{content:''!important;position:absolute;inset:12%!important;border:0!important;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--stage-color) 17%,transparent),transparent 70%);box-shadow:none!important;animation:cmUploadPulse 3s ease-in-out infinite!important}
.cm-stage-visual svg{position:relative;width:62%;height:62%;filter:drop-shadow(0 12px 24px #0005) drop-shadow(0 0 18px color-mix(in srgb,var(--stage-color) 25%,transparent));z-index:1;overflow:visible}
.cm-stage-visual svg>rect,.cm-stage-visual svg>circle{fill:color-mix(in srgb,var(--stage-color) 8%,#0c2332)}
.cm-stage-orbit{position:absolute;inset:3%;border:1px solid color-mix(in srgb,var(--stage-color) 18%,transparent);border-top:2px solid var(--stage-color);border-radius:50%;animation:cmUploadOrbit 9s linear infinite}.cm-stage-orbit.second{inset:-4%;border-style:dashed;opacity:.4;animation-direction:reverse;animation-duration:18s}
[data-stage=script] .cm-stage-visual{--stage-color:#c4a8fa}[data-stage=audio] .cm-stage-visual{--stage-color:#eda5cd}[data-stage=slides] .cm-stage-visual,[data-stage=images] .cm-stage-visual{--stage-color:#8dcaff}[data-stage=photo] .cm-stage-visual{--stage-color:#f4ce8f}[data-stage=error] .cm-stage-visual{--stage-color:#f4a7ac}
.cm-stage-write{animation:cmStageWrite 2.4s ease-in-out infinite;transform-origin:30px 45px}.cm-stage-wave{animation:cmStageWave .9s ease-in-out infinite;transform-origin:center}.cm-stage-float{animation:cmStageFloat 3s ease-in-out infinite}.cm-stage-scan{animation:cmStageScan 2.7s ease-in-out infinite;stroke:#fff}.cm-stage-orbit-arrow{animation:cmUploadOrbit 7s linear infinite;transform-origin:50px 50px}.cm-stage-check{stroke-dasharray:60;stroke-dashoffset:0;animation:cmStageCheck .7s ease-out both}
@keyframes cmStageWrite{50%{opacity:.4;transform:scaleX(.82)}}@keyframes cmStageWave{50%{transform:scaleY(.5)}}@keyframes cmStageFloat{50%{transform:translateY(-4px)}}@keyframes cmStageScan{0%,100%{transform:translateY(-22px);opacity:.2}50%{transform:translateY(20px);opacity:.9}}@keyframes cmStageCheck{from{stroke-dashoffset:60}to{stroke-dashoffset:0}}
.cm-flow-recovery{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:22px}.cm-flow-recovery[hidden]{display:none}.cm-flow-recovery button{min-height:48px;max-width:100%;padding:12px 18px;border:1px solid #89d9c766;border-radius:12px;background:#194751;color:#e4fff7;font:650 16px/1.5 system-ui;cursor:pointer}.cm-flow-recovery button:focus-visible{outline:2px solid #95f6e1;outline-offset:4px}
.cm-upload-loader[data-stage=error] .cm-upload-track{display:none}
body #cm-loader.cm-continuous-loader,body #lv-loader.cm-continuous-loader{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;transform:none!important;z-index:2147483000!important;background:radial-gradient(ellipse at center,#173e4c,#071420 70%)!important;padding:24px!important;overflow:auto!important;box-sizing:border-box}
body .cm-continuous-loader :is(.loader-card,.lv-loader-card){width:min(800px,100%)!important;min-width:0!important;max-width:100%!important;margin:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;box-sizing:border-box;gap:18px}
body .cm-continuous-loader :is(#loader-title,.lv-loader-title){font:750 clamp(27px,3.3vw,42px)/1.2 system-ui!important;max-width:100%;overflow-wrap:anywhere}
body .cm-continuous-loader :is(#loader-text,.lv-loader-text){font:400 17px/1.65 system-ui!important;color:#bbd7e4!important;max-width:650px;overflow-wrap:anywhere}
body .cm-continuous-loader :is(#loader-note,.lv-loader-note){font:400 14px/1.65 system-ui!important;max-width:560px!important}
body .cm-continuous-loader :is(.loader-steps,.lv-flow-steps){width:min(560px,100%)!important;margin:14px auto 0!important}
body .cm-continuous-loader :is(.loader-step,.lv-flow-step){font-size:13px!important;min-width:0;overflow-wrap:anywhere}
body .cm-continuous-loader :is(.loader-actions,.lv-flow-actions){max-width:100%;flex-wrap:wrap}body .cm-continuous-loader :is(.loader-actions,.lv-flow-actions) button{min-height:48px;max-width:100%;white-space:normal}
@media(max-width:600px){.cm-stage-visual{width:200px!important;height:200px!important;margin:18px auto!important}body #cm-loader.cm-continuous-loader,body #lv-loader.cm-continuous-loader{padding:20px 16px!important}body .cm-continuous-loader :is(.loader-step,.lv-flow-step){font-size:11px!important}}
@media(max-height:680px){.cm-stage-visual{width:160px!important;height:160px!important;margin:14px auto!important}.cm-upload-loading-content h2{font-size:27px}.cm-upload-loading-content p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.cm-stage-visual *,.cm-stage-visual:before{animation:none!important}}
