.loading{margin:15vh auto;text-align:center;color:var(--muted)}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#163d30;color:#eef4e9;padding:12vh 12%;display:flex;flex-direction:column;justify-content:space-between}.auth-story h1{font-size:48px;line-height:1.5;letter-spacing:-2px}.auth-story p{color:#c8d9cd;max-width:380px;line-height:1.9}.auth-story .caps{color:#abc7b6;letter-spacing:4px}.auth-form{max-width:440px;width:100%;margin:auto;padding:32px}.auth-form h2{font-size:26px;margin-bottom:8px}.auth-form form{margin-top:32px}.auth-form .btn{width:100%;margin-top:12px}.field{display:block;margin:16px 0}.field>span{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.field small{display:block;font-weight:400;color:var(--muted);margin-top:6px;line-height:1.7}.field textarea{resize:vertical;min-height:90px}.error{color:var(--danger);font-size:13px;line-height:1.7;white-space:pre-wrap}.notice{border-left:3px solid #bf9349;background:#fff7e7;padding:12px 16px;font-size:13px;line-height:1.8;margin:16px 0}.success-note{border-color:var(--accent);background:var(--soft)}.navbtn.active{background:var(--soft);color:var(--accent);font-weight:600}.nav-count{margin-left:auto}.topbar{min-height:66px}.section-index{display:inline-flex;width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--accent);align-items:center;justify-content:center;margin-right:10px;font:12px Consolas}.card+.card{margin-top:18px}.work-form h2{font-size:18px}.work-form .row{justify-content:space-between}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.7}.btn{min-height:42px}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.danger{color:var(--danger);border-color:#e9c9c3}.btn.link{border-color:transparent;background:transparent}.copy-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.copy-fields .wide{grid-column:1/-1}.checkline{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.8;margin:14px 0}.checkline input{width:17px;height:17px;flex-shrink:0;accent-color:var(--accent);margin-top:4px}.status.needs_evidence,.status.failed{color:var(--danger);background:var(--danger-bg)}.status.approved,.status.done,.status.ready,.status.auto_ready{color:var(--accent);background:var(--soft)}.status.waiting_assets,.status.waiting_bgm,.status.pending,.status.revise{color:var(--warn);background:var(--warn-bg)}.status{white-space:nowrap}.review-item{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7}.preview-card{position:sticky;top:18px;align-self:start}.real-poster{width:min(250px,100%);aspect-ratio:9/16;background:#17372e;position:relative;overflow:hidden;margin:auto;color:white;border-radius:5px;box-shadow:0 12px 26px #14271c30}.real-poster:before{content:'';position:absolute;inset:0;background:linear-gradient(#071b1950,#06191685),url('/static/reference.jpg') center/cover}.real-poster.generic:before{background:linear-gradient(140deg,#31584b,#152924)}.real-copy{position:absolute;inset:0;text-align:center;padding:14% 8% 17%;display:flex;flex-direction:column;align-items:stretch}.real-copy strong{font-size:20px;color:#ffe76e;line-height:1.5;text-shadow:0 2px 3px #0008}.real-copy .sub{font-size:12px;margin-top:10%}.real-copy .body{margin-top:20%;background:#14251cab;padding:18px 5px;font-size:14px;line-height:2.1;font-weight:700}.real-copy .cta{font-size:15px;color:#ffe76e;font-weight:700;margin-top:auto;text-shadow:0 2px 3px #0008}.preview-note{text-align:center;font-size:11px;color:var(--muted);margin-top:10px;line-height:1.7}.template-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.template-options label{border:1px solid var(--line);border-radius:6px;padding:9px 5px;cursor:pointer;text-align:center;font-size:12px}.template-options label:has(input:checked){background:var(--soft);border-color:var(--accent)}.template-options input{width:14px;margin:0 4px 0 0;accent-color:var(--accent)}.job-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.job-card{padding:20px;min-width:0}.job-card h3{font-size:17px;margin:14px 0 8px;overflow-wrap:anywhere}.job-card .actions{margin-top:16px;gap:8px}.job-card .tiny{min-height:40px}.job-card .btn{font-size:12px;min-height:36px}.job-card video{width:100%;max-height:240px;margin:14px 0 0;background:#172a23}.job-error{font-size:12px;color:var(--warn);line-height:1.7;overflow-wrap:anywhere}.task-status{display:flex;justify-content:space-between;gap:8px;font-size:12px}.task-progress{height:4px;background:var(--line);margin-top:14px;border-radius:6px;overflow:hidden}.task-progress span{display:block;background:var(--accent);height:100%}.empty-state{padding:56px 24px;text-align:center;border:1px dashed var(--line);border-radius:12px;background:#fff9}.empty-state h2{font-size:21px;margin-bottom:10px}.empty-state p{max-width:460px;margin:0 auto 20px;line-height:1.9;font-size:14px;color:var(--muted)}.data-list{display:grid;gap:12px}.asset-card{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:18px;padding:18px;align-items:center}.asset-card img{width:90px;height:125px;object-fit:cover;border-radius:5px}.asset-card h3{font-size:15px;overflow-wrap:anywhere}.asset-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:8px 0}.asset-card code{font-size:10px;overflow-wrap:anywhere}.inline-form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.inline-form .field{margin:8px 0;min-width:140px;flex:1}.inline-form .btn{margin:8px 0}.ingest-list{font-size:12px;line-height:1.9;margin-top:14px}.ingest-list>div{border-top:1px solid var(--line);padding:10px 0}.provider-block{padding:18px;border:1px solid var(--line);border-radius:8px;margin-top:14px}.provider-block h3{font-size:16px;display:flex;justify-content:space-between;gap:8px}.provider-block .field{margin-bottom:0}.provider-block a{font-size:12px;color:var(--accent)}.statline{display:flex;gap:20px;font-size:13px;flex-wrap:wrap}.statline strong{font:24px Consolas;display:block;margin-bottom:2px}.wide-dialog{width:min(900px,calc(100vw - 30px))}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.dialog-head h2{font-size:20px}.dialog-video{width:100%;max-height:470px;background:#152820}.keyframes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.keyframes img{width:100%;border-radius:4px}.detail-list dd{min-width:0}.facts-list{max-height:200px;overflow:auto}.fact-note{white-space:pre-wrap;font-size:13px;line-height:1.8}.flow-column{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.flow-column article{border-top:3px solid var(--accent);padding:18px;background:#fff;border-radius:4px}.flow-column h3{font-size:16px;margin:12px 0}.flow-column p{font-size:13px;color:var(--muted);line-height:1.9}.template-showcase{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.template-showcase h3{margin:16px 0 6px}.music-card{padding:20px}.music-card audio{width:100%;margin:14px 0}.tab-counter{font-family:Consolas}.form-state{min-height:23px;font-size:12px;color:var(--muted);margin-top:12px}.spinner{display:inline-block;width:13px;height:13px;border:2px solid #93ae9b;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin-right:8px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c49a48;outline-offset:3px}.busy{pointer-events:none;opacity:.65}input[type=file]{font-size:13px;width:100%;padding:10px;border:1px solid var(--line)}.section-divider{margin:24px 0;border:0;border-top:1px solid var(--line)}
.brand{text-decoration:none;color:var(--ink)}.brand-name{display:block}.template-options input[type=radio]{display:inline-block;width:17px;height:17px;min-height:17px;padding:0;margin:0 5px 0 0;vertical-align:middle}.template-options label{display:flex;align-items:center;justify-content:center;min-height:44px}
@media(max-width:1150px){.job-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-column{grid-template-columns:repeat(2,1fr)}}@media(max-width:950px){.preview-card{position:static;display:block}.real-poster{max-width:220px}.template-showcase{grid-template-columns:1fr}.template-showcase .card{display:grid;grid-template-columns:200px 1fr;gap:15px}.auth-story{padding:10vh 10%}.auth-story h1{font-size:36px}}@media(max-width:620px){.auth-wrap{display:block}.auth-story{padding:24px 28px;min-height:200px}.auth-story h1{font-size:29px;margin:20px 0 0}.auth-story p{display:none}.auth-story .caps{font-size:11px}.auth-form{padding:30px 25px}.job-grid{grid-template-columns:1fr}.copy-fields{display:block}.asset-card{grid-template-columns:65px minmax(0,1fr);gap:12px}.asset-card img{width:65px;height:100px}.asset-card>.btn{grid-column:2}.flow-column{grid-template-columns:1fr}.template-showcase .card{display:block}.statline{gap:15px}.inline-form .field{min-width:100%}.toolbar .btn{width:100%}.detail-list{grid-template-columns:72px 1fr}.intro .btn{width:100%}.topbar-left{font-size:11px}.content{overflow-wrap:anywhere}.dialog-head h2{font-size:18px}}

.download-status{font-size:13px;line-height:1.7;margin:10px 0 0;color:var(--muted);overflow-wrap:anywhere}
.download-status.error{color:var(--danger)}
[data-video-download][aria-disabled="true"]{cursor:wait;opacity:.75}

/* Materials poster mirrors the 2160 x 3840 ASS anchors, including the heading. */
.real-copy .sub{white-space:pre-line}
.real-poster{container-type:inline-size}
.motion-text{display:inline-block;transform-origin:center;text-shadow:none;-webkit-text-stroke:.14cqw #18231d;paint-order:stroke fill;filter:drop-shadow(0 0 .3cqw #ffffef) drop-shadow(0 .35cqw .2cqw #16201c)}
.motion-text[data-effect="breathe"]{animation:poster-breathe 1.2s ease-in-out infinite}
.motion-text[data-effect="bounce"]{animation:poster-bounce 1.2s ease-in-out infinite}
.motion-text[data-effect="flash"]{animation:poster-flash 1.2s ease-in-out infinite}
.motion-text[data-effect="impact"]{animation:poster-impact 1.4s ease-out infinite}
.motion-text[data-effect="sway"]{animation:poster-sway 1.4s ease-in-out infinite}
.motion-text[data-effect="float"]{animation:poster-float 1.6s linear infinite}
.motion-text[data-effect="elastic"]{animation:poster-elastic 1.4s ease-in-out infinite}
.motion-text[data-effect="neon"]{animation:poster-neon 1.4s ease-in-out infinite}
.motion-text[data-effect="chromatic"]{animation:poster-chromatic 1.4s ease-in-out infinite}
@keyframes poster-impact{0%,50%,100%{transform:scale(1)}12%{transform:scale(1.12)}31%{transform:scale(.98)}}
@keyframes poster-sway{0%,100%{transform:rotate(0)}25%{transform:rotate(2.5deg) scale(1.05)}75%{transform:rotate(-2.5deg) scale(1.05)}}
@keyframes poster-float{0%,100%{transform:translate(0,0)}25%{transform:translate(1.48cqw,-3cqw)}50%{transform:translate(0,-4.63cqw)}75%{transform:translate(-1.48cqw,-3cqw)}}
@keyframes poster-elastic{0%,75%,100%{transform:scale(1)}21%{transform:scale(.96,1.16)}46%{transform:scale(1.11,.96)}}
@keyframes poster-neon{0%,100%{filter:drop-shadow(0 0 .1cqw var(--text-color,#ffe76e))}50%{filter:drop-shadow(0 0 1.2cqw var(--text-color,#ffe76e))}}
@keyframes poster-chromatic{0%,100%{transform:scale(1);text-shadow:-.6cqw .4cqw #6ff0ff,.6cqw .4cqw #ff70af}25%,50%{transform:scale(1.06);text-shadow:-1cqw .4cqw #6ff0ff,1cqw .4cqw #ff70af}}
.effect-preview-controls{display:flex;justify-content:center;margin-top:16px}.effect-preview-controls .btn{min-height:44px}
.opening-preview{position:absolute;inset:0;z-index:1;pointer-events:none;animation:opening-split .72s ease-out both;background:#131b20}
.opening-preview[data-opening="split"]{animation-name:opening-split}
.opening-preview[data-opening="shutter"]{animation-name:opening-shutter}
.opening-preview[data-opening="diagonal"]{animation-name:opening-diagonal}
.opening-preview[data-opening="focus"]{animation-name:opening-focus}
.opening-preview[data-opening="scan"]{background:linear-gradient(transparent 45%,#ffe76e 50%,transparent 55%);animation-name:opening-scan}
.opening-preview[data-opening="frame"]{background:none;border:3px solid #ffe76e;animation-name:opening-frame}
.opening-preview[data-opening="burst"]{background:repeating-conic-gradient(from 0deg at 50% 16%,transparent 0deg 28deg,#ffe76e 29deg 30deg);animation-name:opening-burst}
.opening-preview[data-opening="slats"]{background:repeating-linear-gradient(0deg,#131b20 0% 10%,transparent 10% 12.5%);animation-name:opening-slats}
@keyframes opening-split{from{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 0,50% 0,50% 100%,50% 100%,50% 0,0 0)}to{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 0,0 0,0 100%,100% 100%,100% 0,0 0)}}
@keyframes opening-shutter{from{transform:scaleY(1)}to{transform:scaleY(0)}}
@keyframes opening-diagonal{from{transform:skewX(-18deg) translateX(-35%)}to{transform:skewX(-18deg) translateX(150%)}}
@keyframes opening-focus{from{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 0,49% 49%,49% 51%,51% 51%,51% 49%,49% 49%)}to{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 0,0 0,0 100%,100% 100%,100% 0,0 0)}}
@keyframes opening-scan{from{transform:translateY(-100%)}to{transform:translateY(100%)}}
@keyframes opening-frame{0%{transform:scale(1.6);opacity:1}60%{transform:scale(.88);opacity:1}100%{transform:scale(.88);opacity:0}}
@keyframes opening-burst{from{transform:scale(.5);opacity:.75}to{transform:scale(2);opacity:0}}
@keyframes opening-slats{from{transform:translateX(0)}to{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){.opening-preview{display:none}}
.motion-text[data-effect="gradient"]{color:transparent;background:linear-gradient(105deg,var(--text-color,#ffe76e) 30%,#fffef5 48%,var(--text-color,#ffe76e) 66%);background-size:240% 100%;background-clip:text;-webkit-background-clip:text;animation:poster-sweep 1.5s linear infinite}
@keyframes poster-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
@keyframes poster-bounce{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5.185cqw) scale(1.12)}}
@keyframes poster-flash{0%,100%{transform:scale(1);filter:drop-shadow(0 0 .3cqw #ffffef) drop-shadow(0 .35cqw .2cqw #16201c)}50%{transform:scale(1.08);filter:brightness(1.2) drop-shadow(0 0 .8cqw #ffffef) drop-shadow(0 .35cqw .2cqw #16201c)}}
@keyframes poster-sweep{0%{background-position:160% 50%;transform:scale(1)}50%{transform:scale(1.1)}100%{background-position:-60% 50%;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.motion-text{animation:none!important}.motion-text[data-effect="gradient"]{background:none;color:var(--text-color,#ffe76e)}}
.jobs-toolbar{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;margin-bottom:20px}
.jobs-toolbar p{margin:0}.job-filters{display:flex;gap:8px}.job-filters .btn{min-height:44px}
.quota-card{padding:18px 22px;margin-bottom:22px;border:1px solid var(--line);border-radius:10px;background:var(--paper,#fff)}
.quota-heading,.quota-stats{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 22px}
.quota-heading b{font-size:26px;color:var(--accent);font-variant-numeric:tabular-nums}.quota-stats{justify-content:flex-start;margin-top:10px;font-size:13px}
.quota-card p{margin:8px 0 0}.quota-card summary{font-size:12px;cursor:pointer;padding:10px 0;min-height:44px;display:list-item}
.quota-full{border-color:var(--warn);background:var(--warn-bg)}.quota-warning{font-size:13px;line-height:1.8;color:var(--warn)}
@media(max-width:620px){.quota-card{padding:14px 16px}.quota-heading{align-items:flex-start}.quota-stats{gap:8px 16px}}
.job-filters .btn[aria-pressed="true"]{color:var(--accent);background:var(--soft);border-color:var(--accent);font-weight:600}
.job-card [data-action="delete-job"],.job-card [data-action="restore-job"]{min-height:44px}
.status.deleted{color:#655d54;background:#f1eeea}.deleted-note{font-size:12px;line-height:1.9;background:#f7f6f3;padding:14px;border-radius:6px;color:var(--muted)}
.real-poster[data-layout="materials"]{container-type:inline-size}
.real-poster[data-layout="materials"] .real-copy{padding:0;display:block}
.real-poster[data-layout="materials"] .real-copy{font-family:"Microsoft YaHei",sans-serif;font-weight:700;text-shadow:0 1px 2px #000,-1px 0 #18231e,1px 0 #18231e,0 -1px #18231e}
.real-poster[data-layout="materials"] .real-copy>strong{position:absolute;left:8%;right:8%;top:16.15%;transform:translateY(-50%);font-size:14.81cqw;line-height:1.25;white-space:nowrap}
.real-poster[data-layout="materials"] .sub{position:absolute;left:8%;right:8%;top:21.5%;margin:0;font-size:8.52cqw;line-height:1.25}
.real-poster[data-layout="materials"] .sub>div{height:9.26cqw;white-space:nowrap}
.real-poster[data-layout="materials"] .body{position:absolute;left:8.33%;right:8.33%;top:34.64%;height:38.28%;margin:0;padding:0;font-size:10.37cqw;line-height:1.4}
.real-poster[data-layout="materials"] .body-title{position:absolute;left:0;right:0;top:11.56%;transform:translateY(-50%);font-size:10cqw;color:#ffe76e;white-space:nowrap}
.real-poster[data-layout="materials"] .body-items{position:absolute;left:3%;right:3%;top:32.65%;display:grid;gap:0;transform:translateY(-.7em)}
.real-poster[data-layout="materials"] .body-items>div{height:12.04cqw;white-space:nowrap}
.real-poster[data-layout="materials"] .body[data-count="3"] .body-items>div{height:15.74cqw}
.real-poster[data-layout="materials"] .cta{position:absolute;left:8%;right:8%;top:79.69%;transform:translateY(-50%);margin:0;font-size:11.85cqw;line-height:1.4;white-space:nowrap}

.status.human_confirmed{color:var(--accent);background:var(--soft)}
#production-gate .notice p{margin:8px 0 12px}
.music-selection{margin-bottom:22px}
.music-filters{display:flex;flex-wrap:wrap;gap:10px}
.music-filters .btn{min-height:44px}
.music-card h3,.music-attribution{overflow-wrap:anywhere}
.music-card .section-top{align-items:flex-start}
.music-card .status{flex-shrink:0}
.music-card audio{width:100%;max-width:100%;margin:10px 0}
.resource-timer{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:10px 0;min-height:28px}
.cooldown-count{color:var(--muted);font-variant-numeric:tabular-nums}
.version-label{display:inline-block;font-size:12px;font-weight:500;vertical-align:middle;padding:3px 8px;margin-left:10px;border-radius:5px;background:var(--soft);color:var(--accent)}
.replacement-intro{line-height:1.8}
.music-choice-track{margin:22px 0 16px;padding:18px;border:1px solid var(--line);border-radius:12px}
.music-choice-track audio{width:100%;margin-top:10px}
.music-choice-track h3{margin:0;overflow-wrap:anywhere}
#music-choice-upload{margin-top:20px}
#music-choice-confirm{margin-top:20px}

.job-poster{width:100%;max-height:240px;object-fit:contain;margin:14px 0 0;background:#172a23}
.music-automation{margin-bottom:22px}
.music-auto-checks{display:flex;flex-wrap:wrap;gap:12px 28px;margin:18px 0}
.music-manual{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:22px 0 14px;padding-top:20px;border-top:1px solid var(--line)}
.music-manual .field{margin:0;min-width:180px}
.music-manual .form-state{flex-basis:100%}
.music-batches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;margin-top:16px}
.music-batches>article{padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}
.music-batches .section-top{align-items:start;gap:10px;flex-wrap:wrap}
.music-batches ul{padding-left:20px;overflow-wrap:anywhere}
.music-automation .statline{flex-wrap:wrap}
.music-automation input[type="number"]{min-width:0;width:100%}
.music-automation summary{cursor:pointer;min-height:28px}
.music-automation .status{white-space:nowrap}
.music-automation .statline{margin-top:14px}
.music-automation .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0;gap:16px}
.music-automation .form-grid .field{margin:0}
.music-automation .actions{justify-content:flex-start;flex-wrap:wrap;margin-top:18px}
.music-auto-checks .checkline{margin:0}
.music-automation .form-state:empty{display:none}
@media(max-width:620px){.music-automation .form-grid{grid-template-columns:1fr}.music-automation .section-top{flex-wrap:wrap}}
.status.retry_wait,.status.partial{background:#fff0cf;color:#79540a}
.delivery-policy,.delivery-notice{color:var(--ink);overflow-wrap:anywhere}
.delivery-policy .retention-emphasis{color:#c62828}
.delivery-notice{font-size:13px;line-height:1.8}
.delivery-notice time{font-weight:600;font-variant-numeric:tabular-nums}
.delivery-notice.expired-note,.status.expired{color:var(--muted);background:var(--paper);border-color:var(--line)}
.job-card .actions a,.job-card .actions button{min-height:44px}
@media(max-width:620px){.job-card .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.job-card .actions .btn{white-space:nowrap;justify-content:center}}
.motion-preview{width:100%;max-width:390px;margin:auto}
.motion-stage{position:relative;aspect-ratio:9/16;background:#07111e url('/static/reference.jpg') center/cover;overflow:hidden;border-radius:10px;box-shadow:0 18px 38px #07111e26}
.motion-stage canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.motion-preview:not(.motion-ready) canvas{visibility:hidden}
.motion-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:28px 24px 82px;background:linear-gradient(#07111e80,#07111ebf);color:#fff;text-align:center;overflow:auto;white-space:pre-line;overflow-wrap:anywhere}
.fallback-title{font-size:clamp(22px,4vw,34px);color:#ffe3a0;line-height:1.25}
.fallback-subtitle,.fallback-cta{font-size:18px;line-height:1.5;color:#ffd5a0}
.fallback-lines{font-size:16px;line-height:1.65}.fallback-lines p{margin:5px 0}
.motion-status{position:absolute;inset:auto 10px 10px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-height:44px;padding:10px;text-align:center;color:white;background:#07111ee8;font-size:14px;border-radius:8px}
.motion-ready .motion-fallback{display:none}
.motion-ready .motion-status{display:none}
.motion-ready.motion-error .motion-status{display:flex;padding:12px}
.motion-playback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}
.motion-playback .btn{min-height:44px;padding:8px 12px;font-size:13px}
.motion-clock{font-variant-numeric:tabular-nums;font-size:12px;margin-left:auto;color:#465852}
.motion-playback input[type=range]{width:100%;height:32px;accent-color:#247a62;cursor:pointer}
.motion-playback :focus-visible{outline:3px solid #be8633;outline-offset:3px}
.template-showcase .motion-preview{max-width:340px}

.music-choice-heading{margin:24px 0 8px;padding-top:20px;border-top:1px solid var(--line)}
.music-choice-intro{margin-bottom:16px}
.music-choice-track [hidden]{display:none}

/* Six coordinated visual kits; colors belong to a preset and persist in the job. */
.palette-controls{padding:16px 0 6px;border-top:1px solid var(--line);margin-top:12px}
.palette-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:10px}
.palette-caption span{font-size:12px;color:var(--muted)}
.palette-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0 14px}
.palette-swatches span{font-size:11px;text-align:center;color:var(--muted)}
.palette-swatches i{display:block;height:22px;border:1px solid #193b3533;border-radius:4px;margin-bottom:5px;background:#eee}
.palette-actions{display:flex;flex-wrap:wrap;gap:7px}
.palette-actions .btn{min-height:40px;font-size:12px;padding:7px 9px}
.effect-preview-controls{margin-top:12px}
.body-layout-field{min-width:0;padding:0;margin:0 0 26px;border:0}
.body-layout-field legend{font-weight:700;font-size:15px;margin-bottom:12px}
.body-layout-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.body-layout-options label{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;padding:15px 12px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.body-layout-options label:hover{border-color:var(--accent)}
.body-layout-options label:has(input:checked){border:2px solid var(--accent);padding:14px 11px 12px;background:var(--soft)}
.body-layout-options label:focus-within{outline:3px solid #be8633;outline-offset:3px}
.body-layout-options input[type=radio]{position:absolute;right:10px;top:12px;width:18px;height:18px;min-height:18px;padding:0;accent-color:var(--accent)}
.body-layout-icon{display:block;width:calc(100% - 20px);max-width:100px;margin-bottom:3px;color:var(--accent)}
.body-layout-icon svg{display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.body-layout-icon circle{fill:var(--paper)}
.body-layout-options strong{font-size:14px;line-height:1.5}
.body-layout-options small{font-size:12px;line-height:1.7;color:var(--muted)}
.body-layout-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}
.body-layout-footer span{font-size:12px;color:var(--muted)}
.body-layout-footer .btn{font-size:12px;min-height:44px;padding:7px 0}
.body-layout-gallery{margin-bottom:24px}.body-layout-gallery .body-layout-field{margin:0}
.wide-dialog.layout-comparison{width:min(1180px,calc(100vw - 32px));max-width:none}
.layout-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.layout-compare-grid article{min-width:0}.layout-compare-grid h3{font-size:18px;margin:0 0 8px}
.layout-compare-grid article>p{min-height:42px}.layout-compare-grid article>.btn{width:100%;margin-top:16px}
.layout-compare-grid .palette-controls{display:none}
@media(max-width:760px){.layout-compare-grid{grid-template-columns:1fr}.layout-compare-grid .motion-preview{max-width:340px}.body-layout-options{gap:7px}.body-layout-options label{padding:11px 8px}.body-layout-options label:has(input:checked){padding:10px 7px}.body-layout-options strong{font-size:13px}.body-layout-options small{font-size:11px}.body-layout-options input{right:7px;top:8px}}
@media(prefers-reduced-motion:reduce){.body-layout-options label{transition:none}}
.template-showcase .card{display:block}
.template-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1200px){.template-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.template-showcase{grid-template-columns:1fr}.palette-actions .btn{flex:1}.motion-playback .btn{padding:7px 9px}}

/* All six effects and their color controls are visible in the creation flow. */
.style-intro{margin:0 0 22px}
.motion-choice-field{min-width:0;border:0;padding:0;margin:0 0 26px}
.motion-choice-field legend{font-size:15px;font-weight:700;margin-bottom:12px}
.motion-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.motion-option{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);align-content:start;gap:7px 10px;min-width:0;padding:16px 34px 16px 14px;border:2px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.motion-option:hover{border-color:var(--accent)}
.motion-option:has(input:checked){border-color:var(--accent);background:var(--soft)}
.motion-option:focus-within{outline:3px solid #be8633;outline-offset:3px}
.motion-option input[type=radio]{position:absolute;right:10px;top:16px;width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:var(--accent)}
.motion-option-number{grid-row:span 2;display:grid;place-items:center;align-self:start;width:34px;height:34px;background:var(--motion-accent);color:#152820;border:1px solid #193b3526;border-radius:8px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.motion-option strong{font-size:14px;line-height:1.5}
.motion-option small{font-size:12px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
#creation-palette .palette-controls{margin:0;padding:20px 0 0}
#creation-palette .palette-caption{font-size:15px}
#creation-palette .palette-swatches span{font-size:12px}
#creation-palette .palette-swatches i{height:30px}
#creation-palette .palette-actions .btn{min-height:44px;padding:9px 16px;font-size:14px}
.palette-note{margin:12px 0 0}
.mobile-style-navigation{display:none}
@media(max-width:950px){.mobile-style-navigation{display:block;margin-top:12px}.mobile-style-navigation .btn{width:100%;min-height:44px}}
@media(max-width:620px){.motion-options{grid-template-columns:1fr}.motion-option{padding-right:44px}.motion-option input{right:15px}.palette-caption{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.motion-option{transition:none}}

.palette-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.palette-option{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:64px;padding:9px 7px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#193b35);font:inherit;font-size:12px;cursor:pointer;text-align:left}
.palette-option:hover{border-color:var(--brand,#176b59)}
.palette-option[aria-pressed="true"]{border-color:var(--brand,#176b59);box-shadow:inset 0 0 0 1px var(--brand,#176b59);background:#eef7f3}
.palette-option:focus-visible{outline:3px solid #176b59;outline-offset:2px}
.palette-option-colors{display:flex;width:100%;height:20px;overflow:hidden;border-radius:4px;background:#16251f}
.palette-option-colors i{flex:1;min-width:0}
@media(max-width:620px){.palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.account-list{display:grid;gap:16px;margin:18px 0 24px}
.account-item{padding:16px;border:1px solid var(--line);border-radius:10px}
.account-item h3{overflow-wrap:anywhere;margin:0}
.account-item .section-top{flex-wrap:wrap;gap:8px}
.account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0;font-size:12px;color:var(--muted)}
.account-stats strong{display:block;font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.account-item .btn,.quota-card .btn,#account-change-form .btn{min-height:44px}
.account-history article,.credit-batches article{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.account-history .section-top,.credit-batches .section-top{flex-wrap:wrap;gap:8px}
.credit-batches{margin-bottom:24px}
@media(max-width:620px){.account-item{padding:12px}.account-stats{gap:6px}.account-item .actions .btn{flex:1}.account-item .actions{gap:6px}.quota-card .quota-stats{flex-wrap:wrap}}

.quota-card{--credit-bg:#134b3a;--credit-ink:#fff;--credit-muted:#d2e8dd;--credit-highlight:#f3d58c;padding:0;overflow:hidden;border-color:#c4d7ca}
.credit-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 28px;background:var(--credit-bg);color:var(--credit-ink)}
.credit-primary{min-width:0}.credit-label{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:15px;font-weight:600}
.credit-availability{font-size:12px;font-weight:400;color:var(--credit-muted);border:1px solid currentColor;border-radius:20px;padding:3px 9px}
.credit-total{display:flex;align-items:baseline;gap:10px;margin-top:10px}.credit-total strong{font-size:clamp(40px,4.5vw,64px);font-weight:750;line-height:1.08;letter-spacing:-2px;font-variant-numeric:tabular-nums;color:var(--credit-highlight);overflow-wrap:anywhere}.credit-total>span{font-size:15px;color:var(--credit-muted)}
.credit-hero .credit-capacity{margin-top:10px;font-size:14px;color:var(--credit-muted)}
.credit-secondary{display:flex;flex-direction:column;align-items:flex-end;gap:18px}.credit-secondary .quota-stats{display:grid;grid-template-columns:1fr;gap:8px;margin:0;color:var(--credit-muted);font-size:13px;text-align:right}
.credit-hero .credit-detail{min-height:44px;background:transparent;border-color:#a4c8b9;color:var(--credit-ink);font-size:13px}.credit-hero .credit-detail:hover{background:#ffffff15;border-color:var(--credit-ink)}
.credit-info{padding:14px 28px 6px;background:var(--paper)}.credit-info .credit-expiry{margin:0;font-size:13px;line-height:1.7}.credit-expiry>span{color:var(--muted)}.credit-info details>p{padding-bottom:12px}.credit-info summary{color:var(--muted)}
.quota-full{--credit-bg:#fff4d9;--credit-ink:#69440b;--credit-muted:#765722;--credit-highlight:#69440b;border-color:#be934b}.quota-full .credit-detail{border-color:#987026}
.credit-badge{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:7px 14px;background:var(--soft);border:1px solid #b5cebf;border-radius:8px;color:var(--accent);white-space:nowrap;cursor:pointer;font:inherit}.credit-badge>span{font-size:12px}.credit-badge>strong{font-size:23px;line-height:1.15;font-variant-numeric:tabular-nums}.credit-badge:hover{border-color:var(--accent);background:#dfeee2}.credit-badge.credit-empty{color:var(--warn);background:var(--warn-bg);border-color:#c4a56b}
.account-stats>span:first-child{color:var(--accent)}.account-stats>span:first-child strong{font-size:32px;color:var(--accent)}
@media(max-width:620px){.topbar{flex-wrap:wrap;align-items:center;gap:8px}.topbar-left{display:none}.topbar-right{width:100%;gap:8px}.topbar .credit-badge{margin-right:auto;padding:7px 10px;gap:8px}.topbar-account{max-width:40%;overflow-wrap:anywhere}.credit-hero{padding:20px;align-items:flex-start;gap:16px;flex-direction:column}.credit-total strong{font-size:52px}.credit-secondary{width:100%;align-items:stretch;gap:14px}.credit-secondary .quota-stats{display:flex;text-align:left;justify-content:flex-start;gap:8px 16px;font-size:12px}.credit-detail{align-self:flex-start}.credit-info{padding:14px 20px 6px}.credit-expiry>span{display:block}.credit-badge>strong{font-size:21px}}

/* Real media sits below the same transparent animation used by export. */
.production-preview .motion-stage{background:#07111e}
.production-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.background-preview-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.background-preview-controls p{flex-basis:100%;margin:0;min-height:22px}
.background-preview-controls .btn{min-height:44px;padding:8px 12px;font-size:13px}
.background-preview-controls [hidden]{display:none}
.background-preview-controls :focus-visible{outline:3px solid #be8633;outline-offset:3px}
.background-error .background-preview-controls p{color:#9b451c}
#production-background .actions{flex-wrap:wrap}
#production-preview-state{font-size:13px;line-height:1.6}
.intro .creation-actions{margin-top:0;flex-shrink:0}.intro .creation-actions .btn{white-space:nowrap}
@media(max-width:620px){.intro .creation-actions{width:100%}}
.creation-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 22px}
.creation-modes button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:80px;padding:15px 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.creation-modes button strong{font-size:17px}.creation-modes button span{font-size:12px;line-height:1.6;color:var(--muted)}
.creation-modes button[aria-pressed=true]{border:2px solid var(--accent);padding:14px 15px;background:var(--soft)}
.creation-modes button:hover{border-color:var(--accent)}.creation-modes button:focus-visible{outline:3px solid #bd842b;outline-offset:3px}
.motion-choice-field[hidden],.body-layout-field[hidden]{display:none}
@media(max-width:620px){.creation-modes{gap:8px}.creation-modes button{padding:12px;min-height:94px}.creation-modes button[aria-pressed=true]{padding:11px}.creation-modes button strong{font-size:16px}}

/* Passport controls stay local to the picture section; normal inputs remain keyboard accessible. */
.passport-choice{border:1px solid var(--line);border-radius:10px;padding:16px;margin:22px 0 0;min-width:0}
.passport-choice>legend{font-weight:650;padding:0 6px}.passport-choice legend .tiny{font-weight:400;margin-left:6px}
.passport-toggle{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.passport-toggle input,.passport-positions input{width:18px;height:18px;min-width:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--accent)}
.passport-settings{margin-top:12px}.passport-settings[hidden]{display:none}
.passport-size{display:grid;gap:2px}.passport-size>span:first-child{display:flex;justify-content:space-between;align-items:center}
.passport-size output{font-variant-numeric:tabular-nums;font-weight:650;color:var(--accent)}
.passport-size input{width:100%;min-height:44px;accent-color:var(--accent);cursor:pointer;padding:0}
.passport-positions{border:0;padding:0;margin:16px 0 4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.passport-positions legend{padding:0;margin-bottom:8px;font-size:14px}
.passport-positions label{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:7px;min-height:48px;padding:7px;cursor:pointer;font-size:14px;min-width:0}
.passport-positions label:has(input:checked){border-color:var(--accent);background:var(--soft)}
.passport-choice input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:620px){.passport-choice{padding:12px}}
/* Separate work collections and persistent, readable editing-type labels. */
.works-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 24px}
.works-type{min-height:86px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:16px 20px;border:1px solid var(--line);border-bottom:4px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.works-type strong{font-size:18px;line-height:1.5}.works-type>span{font-size:13px;line-height:1.5;color:var(--muted)}
.works-type--poster[aria-pressed="true"]{background:#eaf4ee;border-color:#1c6248;color:#164f3b}
.works-type--montage[aria-pressed="true"]{background:#eaf0fc;border-color:#315794;color:#254777}
.works-type[aria-pressed="true"]>span{color:inherit}.works-type:hover{border-color:var(--accent)}
.job-type-line{margin-bottom:14px}.job-type-badge{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:6px;font-size:14px;font-weight:700;line-height:1.5;color:#fff}
.job-type-badge--poster{background:#185642}.job-type-badge--montage{background:#2d4d8c}
@media(max-width:620px){.works-types{gap:10px;margin-bottom:18px}.works-type{min-height:80px;padding:12px}.works-type strong{font-size:16px}.works-type>span{font-size:12px}.job-type-badge{font-size:14px}}
