:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#242b36;background:#f7f8fa}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}a{text-decoration:none;color:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:246px;background:#fff;border-right:1px solid #eceef2;display:flex;flex-direction:column;padding:30px 20px;position:sticky;top:0;height:100vh}.logo{font-weight:850;letter-spacing:-.8px;font-size:21px;white-space:nowrap}.logo span:last-child{color:#8761e8}.mark{background:#8869e8;color:#fff;border-radius:12px;padding:8px;margin-right:8px}.tag{font-size:10px;letter-spacing:1.1px;color:#9ca4b2;margin:32px 0}nav a{display:block;margin-bottom:7px;border-radius:11px;padding:13px 12px;color:#6a7484;font-weight:600;font-size:14px}nav a.active,nav a:hover{background:#f2efff;color:#7554cd}.sidefoot{margin-top:auto;color:#6a7484;font-size:12px;line-height:2}.sidefoot small{color:#9da5af}main{max-width:1200px;margin:auto;padding:45px 55px;width:100%}header{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:26px}.eyebrow{letter-spacing:2px;color:#8969d2;font-size:11px;font-weight:800}h1{font-size:38px;letter-spacing:-1.5px;margin:8px 0}h2{font-size:24px;letter-spacing:-.6px;margin:7px 0 13px}p{color:#7e8796;line-height:1.6;margin:0}header p{font-size:14px}.status{border:1px solid #e7e9f0;background:#fff;padding:10px 13px;border-radius:40px;font-size:12px;white-space:nowrap;color:#687481}.status i{display:inline-block;width:8px;height:8px;background:#46b991;border-radius:50%;margin-right:5px}.hero{min-height:310px;display:flex;justify-content:space-between;overflow:hidden;background:linear-gradient(115deg,#e9e1fc,#f5e8f5 60%,#ddecfe);border-radius:22px;padding:41px 48px;position:relative}.hero>div:first-child{max-width:530px;position:relative;z-index:1}.hero h2{font-size:37px;line-height:1.16;letter-spacing:-1.3px;margin:14px 0}.hero p{max-width:455px;color:#655e74;font-size:14px}.cta{display:inline-flex;align-items:center;gap:20px;color:white;background:#8260dc;padding:13px 19px;border-radius:10px;font-weight:750;margin-top:23px;font-size:14px}.cta:hover,button:hover{background:#694ac1}.illustration{width:290px;min-width:220px;position:relative;align-self:stretch}.sun{position:absolute;right:12px;top:5px;width:82px;height:82px;border-radius:50%;background:#ffe8a5;box-shadow:0 0 0 15px #fff4d280}.ear{position:absolute;width:58px;height:126px;border:10px solid #fff;background:#f8bad1;top:17px;border-radius:65% 65% 35% 35%;z-index:1}.ear-l{left:80px;transform:rotate(-16deg)}.ear-r{left:167px;transform:rotate(15deg)}.bunny{position:absolute;z-index:2;left:61px;top:92px;width:168px;height:156px;border-radius:48% 48% 45% 45%;background:#fff;box-shadow:inset -12px -8px 0 #e9e5f0,0 10px 22px #a18dbc3d;text-align:center}.eyes{position:absolute;top:55px;width:100%;font-size:27px;color:#403f60;letter-spacing:4px}.nose{position:absolute;top:88px;width:100%;color:#ef8fae;font-size:22px}.smile{position:absolute;top:105px;width:100%;font-size:28px;color:#69627b}.bodyb{position:absolute;background:#91adf2;color:#ffe585;z-index:1;border-radius:40%;width:126px;height:110px;top:206px;left:81px;text-align:center;padding-top:55px;font-size:24px}.ground{position:absolute;width:300px;height:42px;border-radius:50%;background:#acd9c6;bottom:-8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.stats>div{background:white;border:1px solid #edf0f4;border-radius:16px;padding:20px 24px}.stats span{display:block;color:#99a1ae;font-size:12px}.stats strong{display:block;font-size:25px;margin-top:9px}.stats strong.muted{font-size:17px;color:#b0a3cd}.panel{border:1px solid #edf0f4;background:#fff;border-radius:18px;padding:27px;margin-bottom:24px}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.sectionhead h2{margin:6px 0}.formgrid{display:grid;grid-template-columns:2fr 1fr;gap:16px}label{display:block;font-size:13px;color:#50596a;font-weight:700;margin:0 0 18px}input,select,textarea{display:block;width:100%;border:1px solid #dde2ea;background:#fcfcfe;border-radius:10px;padding:13px 14px;color:#303a4a;font:inherit;font-size:14px;margin-top:8px}textarea{resize:vertical}.actions{display:flex;justify-content:space-between;gap:16px;align-items:center}.actions span{color:#9ca3b0;font-size:12px}button{color:#fff;background:#8260dc;border:0;padding:13px 19px;border-radius:10px;font-weight:700;cursor:pointer}.pill{border-radius:50px;padding:8px 14px;background:#f3f0fc;color:#795bca;font-size:12px}.empty{text-align:center;padding:26px 12px 35px;color:#ac9ae1;font-size:38px}.empty h3{color:#353847;font-size:17px;margin:8px}.empty p{font-size:13px}.projectgrid{display:grid;gap:13px}.project{display:flex;gap:16px;border:1px solid #edf0f4;border-radius:13px;padding:15px}.projecticon{padding:12px;background:#f0eafd;color:#896bdc;border-radius:12px;height:max-content}.project h3{margin:0 0 6px}.project p{font-size:13px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project small{color:#9aa3b1}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.steps>div{border:1px solid #eef0f4;border-radius:13px;padding:17px}.steps b{font-size:14px;color:#9479e7}.steps h3{margin:12px 0 6px}.steps p{font-size:12px;min-height:55px}.steps span{display:inline-block;margin-top:16px;color:#929cab;background:#f2f4f6;padding:6px 9px;border-radius:7px;font-size:11px}.steps .ready{color:#258b61;background:#e9f9f0}.notice{background:#ebfaf4;border:1px solid #b9ebd8;color:#167451;padding:12px 16px;border-radius:12px;margin-bottom:20px}footer{font-size:12px;color:#a2a9b4;text-align:center;padding:10px 0 25px}@media(max-width:900px){.sidebar{width:80px;padding:23px 10px}.logo{font-size:0}.mark{font-size:21px}.tag,.sidefoot{display:none}nav a{font-size:0;text-align:center}main{padding:30px}.steps{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.shell{display:block}.sidebar{height:auto;position:static;width:100%;padding:15px;flex-direction:row;justify-content:space-between}.logo{font-size:19px}.mark{font-size:16px}.sidebar nav{display:none}main{padding:18px}h1{font-size:30px}.status{display:none}.hero{padding:26px;min-height:300px}.hero h2{font-size:30px}.illustration{opacity:.23;position:absolute;right:-60px;top:40px}.stats{grid-template-columns:1fr;gap:9px}.stats>div{padding:14px}.stats strong{margin-top:4px}.formgrid,.steps{grid-template-columns:1fr}.actions{align-items:stretch;flex-direction:column}.panel{padding:20px}}

/* v2 AI Director additions */
.director-form{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.director-form button{cursor:pointer;border:0;padding:9px 12px;border-radius:9px;background:#6342c9;color:white;font-size:12px;font-weight:650}.director-form .secondary-btn{background:#f0edfc;color:#4f3ba2}.storyboard{margin-top:14px;padding:16px;background:#f8f6ff;border:1px solid #ded7fa;border-radius:12px}.storyboard-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.storyboard p{white-space:pre-wrap;overflow-wrap:anywhere}.scene{margin-top:12px;padding:12px;background:#fff;border:1px solid #ebe6fa;border-radius:10px}.scene p{margin:7px 0}.scene small{color:#6c6780}.scene summary{cursor:pointer;margin-top:8px;font-size:12px;color:#674abd}.scene details p{font-size:12px}

/* v3 private admin */
.admin-page{max-width:790px;margin:50px auto;padding:18px}.admin-page>.panel{margin-top:20px}.admin-error{padding:13px;border:1px solid #f4aaaa;background:#fff2f2;color:#992828;border-radius:9px;margin:15px 0}.admin-meta{padding:16px;background:#f6f3ff;border-radius:10px;margin:18px 0}.checkline{display:flex;align-items:center;gap:10px}.checkline input{width:auto;margin:0}.admin-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.admin-secondary{background:#ece8f8;color:#48318d}.admin-page p{margin:12px 0}.admin-page code{word-break:break-all}

/* v4 private character library */
.characters-page{max-width:1030px}.character-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:17px}.character-card{border:1px solid #e8e4f2;border-radius:15px;padding:12px;min-width:0}.character-card img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:10px;background:#f3f0fc}.character-card h3{margin:10px 0 5px}.character-card p{font-size:12px;overflow-wrap:anywhere}.character-card small{font-size:11px;color:#888}.character-card a{color:#674abd;font-weight:700}.characters-page button:disabled{background:#a9a6b1;cursor:not-allowed}

/* v5.2 Automatic video progress (indeterminate until provider finishes). */
.video-job{margin:14px 0}.video-progress{height:13px;border-radius:999px;background:#ebe6f9;overflow:hidden;margin:16px 0 7px;position:relative}.video-progress-fill{height:100%;width:38%;border-radius:inherit;background:#8260dc;animation:video-progress-slide 1.8s ease-in-out infinite alternate}.video-job[data-status="IN_QUEUE"] .video-progress-fill{background:#a28be6}.video-job[data-status="COMPLETED"] .video-progress-fill{width:100%;animation:none;background:#26a879}.video-job[data-status="FAILED"] .video-progress-fill,.video-job[data-status="CANCELLED"] .video-progress-fill{width:100%;animation:none;background:#ca6a6a}.video-progress-label{font-size:12px;margin-bottom:15px}.video-job[data-status="COMPLETED"] .video-progress-label{color:#16805d}@keyframes video-progress-slide{from{transform:translateX(-92%)}to{transform:translateX(255%)}}@media(prefers-reduced-motion:reduce){.video-progress-fill{animation:none;width:100%;opacity:.7}}

/* v6.3: visible animated progress for Lip Sync Studio; no invented percentages. */
.lipsync-job .video-progress{height:14px;min-height:14px;background:#e9e3fb;border:1px solid #d9d0f4;overflow:hidden;border-radius:999px;position:relative;margin:16px 0 9px}
.lipsync-job .video-progress-fill{display:block;width:38%;height:100%;background:#8260dc;border-radius:999px;animation:video-progress-slide 1.8s ease-in-out infinite alternate}
.lipsync-job[data-status="IN_QUEUE"] .video-progress-fill{background:#a28be6}
.lipsync-job[data-status="IN_PROGRESS"] .video-progress-fill{background:#8260dc}
.lipsync-job .lip-label{font-size:13px;color:#657085}
@media(prefers-reduced-motion:reduce){.lipsync-job .video-progress-fill{animation:none;width:100%;opacity:.75}}

/* Creator workspace update: non-destructive home-only styles */
.studio-hero{background:linear-gradient(115deg,#f0edfc,#eaf0fb);min-height:285px}.studio-hero h2{font-size:clamp(32px,4vw,49px)}.studio-art{margin:auto 0 auto auto;width:32%;min-width:185px;aspect-ratio:1.25;border-radius:22px;background:linear-gradient(145deg,#40376b,#8061d3);display:flex;flex-direction:column;align-items:center;justify-content:center;color:white;box-shadow:0 20px 50px #5b469e35;transform:rotate(-3deg)}.studio-art span{font-size:70px;line-height:1}.studio-art strong{font-size:11px;letter-spacing:1px;margin-top:10px}.studio-art small{font-size:9px;letter-spacing:2px;opacity:.7;margin-top:8px}.format-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:20px 0}.format-grid>div{padding:18px;background:white;border:1px solid #edf0f4;border-radius:15px;display:flex;flex-direction:column;gap:8px}.format-grid b{color:#795bca;font-size:24px}.format-grid strong{font-size:14px}.format-grid small{color:#8792a2}.mode-switch{display:flex;gap:10px;margin:0 0 13px}.mode-choice{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:#f7f8fb;color:#30394a;border:1px solid #e0e4ed;text-align:left}.mode-choice small{font-size:11px;color:#6e7788}.mode-choice.selected{background:#f1ecff;border-color:#8661df;color:#6143bd}.mode-choice:hover{background:#eee9fc}.mode-help{font-size:12px;margin-bottom:18px}.pro-fields[hidden]{display:none!important}@media(max-width:750px){.format-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-art{display:none}.mode-switch{flex-direction:column}}