:root{--paper:#f9f6f8;--white:#fff;--ink:#282831;--muted:#78737e;--wine:#813e58;--wine-light:#f1e5eb;--line:#e7dfe5;--sage:#4c7568;--radius:15px;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}
*{box-sizing:border-box}
.retention-note{padding:13px 16px;background:var(--wine-light);border-radius:10px;color:var(--wine);font-size:12px;line-height:1.9}.retention-note a{color:inherit;white-space:nowrap}.photo-history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px;margin:24px 0 55px}.photo-record{display:flex;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff;min-width:0}.record-image{width:120px;min-height:180px;flex-shrink:0;background:#eee7ed;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}.record-image img{width:100%;height:100%;object-fit:cover}.record-info{padding:18px 14px;min-width:0;flex:1}.record-info strong{display:block;overflow-wrap:anywhere;line-height:1.6;font-size:14px}.record-info p{font-size:11px;margin:7px 0;color:var(--muted);line-height:1.7}.record-info small{color:var(--muted);font-size:11px}.record-status{display:inline-block;font-size:11px;margin:10px 0 3px;padding:4px 8px;background:#f0ebee;color:var(--muted);border-radius:20px}.record-status.available{background:#e6f0eb;color:var(--sage)}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:disabled{cursor:wait;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #bd8ba5;outline-offset:4px}
[hidden]{display:none!important}
.topbar{height:90px;padding:0 max(5vw,24px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--paper);gap:24px}
.brand{display:flex;align-items:center;gap:12px;font-family:"STZhongsong","SimSun",serif;font-weight:700;font-size:25px;letter-spacing:3px}
.brand small{display:block;font-family:Arial,sans-serif;font-size:9px;letter-spacing:2.4px;font-weight:400;margin-top:5px}
.brand-mark{width:43px;height:43px;display:grid;place-items:center;background:var(--wine);border-radius:50%;color:white;font-size:26px;padding-left:2px}
nav{display:flex;align-self:stretch;gap:36px}
nav a{display:flex;align-items:center;position:relative;color:var(--muted);gap:8px}
nav a.active{color:var(--wine);font-weight:700}
nav a.active:after{content:"";position:absolute;bottom:0;height:3px;background:var(--wine);left:0;right:0}
.account{display:flex;gap:14px;align-items:center}
.account span{font-size:12px;color:var(--muted)}
main{max-width:1360px;margin:auto;padding:0 5vw;min-height:72vh}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--wine);background:var(--wine);color:white;border-radius:7px;padding:13px 22px;font-weight:600;line-height:1.4;transition:background .18s}
.button:hover{background:#682d44}
.button.secondary{background:transparent;color:var(--wine);border-color:#d7c4ce}
.button.secondary:hover{background:var(--wine-light)}
.button.small{padding:9px 15px;font-size:12px}
.text-link{display:inline-flex;gap:15px;align-items:center;color:var(--wine);border:0;background:transparent;padding:0;line-height:1.6;font-weight:600}
.hero{display:grid;grid-template-columns:1fr 1.05fr;gap:60px;align-items:center;padding:64px 0 60px}
.eyebrow{font-size:11px;letter-spacing:2.4px;color:var(--wine);font-weight:600;margin:0 0 20px}
.hero .eyebrow{font-size:12px;letter-spacing:2px}
h1,h2,h3,p{margin-top:0}
h1,h2{font-family:"STZhongsong","SimSun",serif;font-weight:500}
h1{font-size:clamp(32px,3.5vw,49px);line-height:1.45;letter-spacing:2px;margin-bottom:22px}
h1>span{color:var(--wine)}
h2{font-size:26px;line-height:1.5;margin-bottom:12px}
.hero-note{color:var(--muted);line-height:2;margin-bottom:26px}
.hero-film{border:10px solid white;border-radius:6px;transform:rotate(2deg);box-shadow:0 16px 45px #5d354c15;position:relative;overflow:hidden;aspect-ratio:16/10;background:var(--wine-light)}
.hero-film:before,.hero-film:after{content:"";width:90px;height:26px;background:#e3cfd8b8;position:absolute;top:-10px;left:10px;transform:rotate(-22deg);z-index:1}
.hero-film img{width:100%;height:100%;object-fit:cover}
.film-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#200c1eab);color:white;padding:35px 20px 15px;display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:1px}
.round-play{border:1px solid #ffffffb0;border-radius:50%;width:42px;height:42px;background:#ffffff22;color:white;padding-left:5px}
.collection-head{display:flex;justify-content:space-between;align-items:flex-end;margin:20px 0 25px;gap:20px}
.collection-head .eyebrow{margin-bottom:8px}
.collection-head h2{margin:0}
.filters{display:flex;gap:5px;flex-wrap:wrap}
.filters button{border:0;background:transparent;border-radius:30px;padding:9px 14px;color:var(--muted);font-size:12px;white-space:nowrap}
.filters .selected{background:var(--wine-light);color:var(--wine);font-weight:600}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 22px}
.template-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s}
.template-card:hover{transform:translateY(-4px);box-shadow:0 9px 25px #512e4010}
.card-image{position:relative;aspect-ratio:16/10;background:#e8e0e5;overflow:hidden}
.card-image>img{width:100%;height:100%;object-fit:cover}
.card-image .preview-button{position:absolute;inset:0;border:0;background:#10071700;display:grid;place-items:center;color:white}
.card-image .preview-button span{background:#34233199;border:1px solid #ffffff80;border-radius:40px;padding:8px 14px;font-size:12px;opacity:0;transition:opacity .2s}
.card-image:hover .preview-button span,.preview-button:focus-visible span{opacity:1}
.card-tag{position:absolute;left:14px;top:14px;background:#ffffffed;border-radius:4px;padding:5px 8px;font-size:10px;color:var(--wine);pointer-events:none}
.card-body{padding:21px}
.card-title{font-family:"STZhongsong","SimSun",serif;font-size:21px;font-weight:600;margin-bottom:9px}
.card-description{font-size:12px;line-height:1.8;color:var(--muted);min-height:43px;margin-bottom:14px}
.card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0eaee;padding-top:16px;gap:10px}
.card-meta{font-size:11px;color:var(--muted)}
.card-bottom button{padding:8px 13px;font-size:12px}
.how{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:var(--radius);margin:45px 0 55px;padding:25px 28px;font-size:12px;gap:20px}
.how-title{font-family:"SimSun",serif;font-size:17px}
.how b{font-size:11px;color:var(--wine);margin-right:9px;font-weight:400}
footer{padding:28px 5vw;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;max-width:1360px;margin:auto}
.footer-brand{font-size:20px;gap:20px}
.footer-brand small{font-family:inherit;font-size:11px;letter-spacing:1px;margin:0}
.muted{color:var(--muted);font-size:12px;line-height:1.8}
.empty{border:1px dashed #dacdd5;padding:40px;text-align:center;color:var(--muted);border-radius:var(--radius);grid-column:1/-1;line-height:1.9}
.editor-heading{display:flex;justify-content:space-between;gap:20px;padding:27px 0;font-size:12px;color:var(--muted)}
.editor-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:35px;margin-bottom:55px}
.editor-aside>img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px}
.editor-aside>.button{width:100%;margin:12px 0 20px;font-size:12px;padding:10px}
.editor-aside h2{font-size:22px}
.editor-aside>p{font-size:12px;color:var(--muted);line-height:1.9}
.steps{list-style:none;counter-reset:steps;margin:26px 0;padding:0}
.steps li{counter-increment:steps;font-size:12px;margin:18px 0;display:flex;align-items:center;gap:10px;color:var(--muted)}
.steps li:before{content:counter(steps);display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:50%;font-family:Arial,sans-serif;font-size:11px}
.steps li.active{color:var(--wine);font-weight:700}
.steps li.active:before{background:var(--wine);border-color:var(--wine);color:white}
.aside-tip{border-top:1px solid var(--line);padding-top:20px}
.panel{padding:34px;background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.panel .eyebrow{margin-bottom:10px}
.panel h2{font-size:28px;margin-bottom:9px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:25px}
label{display:block;font-size:12px}
input,select,textarea{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid #ded5dc;background:#fff;border-radius:6px;color:var(--ink);min-height:43px}
input::placeholder,textarea::placeholder{color:#a29aa3;font-size:12px}
textarea{resize:vertical;min-height:80px;line-height:1.7}
.optional{font-size:10px;color:var(--muted);margin-left:5px}
.wide{grid-column:1/-1}
.copy-editor{border-top:1px solid var(--line);margin-top:30px;padding-top:20px}
.copy-editor summary{cursor:pointer;font-size:12px;color:var(--wine)}
.copy-editor summary span{color:var(--muted);font-size:10px;margin-left:10px}
.copy-editor>p{margin-top:14px}
#copy-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.panel-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:24px;margin-top:30px;flex-wrap:wrap}
.panel-actions .button{font-size:12px}
.upload-zone{border:1.5px dashed #d2b7c6;background:#fcf8fa;position:relative;border-radius:10px;margin:25px 0 10px;text-align:center;padding:25px 15px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:9px}
.upload-zone.dragging{background:var(--wine-light);border-color:var(--wine)}
.upload-zone input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}
.upload-zone strong{font-size:12px;font-weight:500}
.upload-zone>span:last-of-type{font-size:10px;color:var(--muted)}
.upload-icon{color:var(--wine);font-size:24px}
.photo-workspace{display:grid;grid-template-columns:165px minmax(0,1fr);gap:23px;margin-top:24px}
.section-label{font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1.8}
.section-label>span:last-child:not(:first-child),#slot-complete{font-size:10px;font-weight:400;color:var(--muted)}
.slot-column{border-right:1px solid var(--line);padding-right:14px}
#slot-list{display:grid;gap:6px;margin-top:14px;max-height:650px;overflow:auto}
.slot-button{background:transparent;border:1px solid transparent;padding:10px;border-radius:6px;text-align:left;font-size:11px;line-height:1.6}
.slot-button.active{background:var(--wine-light);border-color:#e1c6d2;color:var(--wine)}
.slot-button small{display:block;font-size:10px;color:var(--muted)}
.slot-button.complete small{color:var(--sage)}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:560px;overflow:auto}
.photo{border:2px solid transparent;padding:0;background:#eee7ed;border-radius:7px;position:relative;aspect-ratio:4/5;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo.selected{border-color:var(--wine)}
.photo .selection-index{position:absolute;top:5px;right:5px;border-radius:50%;width:22px;height:22px;background:var(--wine);color:white;font-size:10px;display:grid;place-items:center}
.photo .photo-name{position:absolute;bottom:0;left:0;right:0;background:#2d21278c;color:white;font-size:9px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:5px}
.selection-tools{display:flex;justify-content:space-between;margin:12px 0;gap:10px}
.selection-tools button{font-size:10px}
.selected-strip{display:flex;gap:6px;overflow:auto;margin:8px 0 14px}
.selected-item{flex:0 0 64px}
.selected-item>img{width:64px;height:52px;object-fit:cover;border-radius:4px;display:block}
.reorder{display:flex;justify-content:space-between;margin-top:3px}
.reorder button{background:transparent;border:1px solid var(--line);font-size:10px;padding:2px 8px;border-radius:3px}
.photo-help{font-size:10px;margin-top:12px}
.confirmation{padding:23px;background:var(--paper);border-radius:10px;display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}
.confirmation small{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}
.confirmation strong{font-size:14px;font-weight:500}
.quality-options{border:0;padding:0;margin:30px 0 15px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.quality-options legend{font-size:12px;margin-bottom:13px}
.quality-options label{position:relative}
.quality-options input{position:absolute;width:1px;height:1px;opacity:0;min-height:0;margin:0}
.quality-options span{display:block;border:1px solid var(--line);padding:16px 10px;border-radius:8px;height:100%}
.quality-options input:checked+span{border-color:var(--wine);background:#fcf5f8}
.quality-options input:focus-visible+span{outline:3px solid #bd8ba5}
.quality-options strong{display:block;font-size:16px;font-family:Arial,sans-serif}
.quality-options small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:8px}
.quality-options em{font-family:inherit;font-size:9px;color:var(--wine);font-style:normal;font-weight:400;margin-left:3px}
.consent{font-size:10px;color:var(--muted);margin:25px 0}
.works-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:50px 0 25px}
.works-heading .eyebrow{margin-bottom:8px}
.works-heading h1{font-size:38px;margin:0 0 10px}
.jobs-list{display:grid;gap:18px;margin-bottom:55px}
.job-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:25px;display:grid;grid-template-columns:220px 1fr;gap:25px}
.job-media{aspect-ratio:16/10;overflow:hidden;border-radius:8px;background:var(--wine-light)}
.job-media>img{width:100%;height:100%;object-fit:cover}
.job-media video{width:100%;height:100%;background:#17121a;object-fit:contain}
.job-title-row{display:flex;justify-content:space-between;align-items:start;gap:15px}
.job-title-row h3{font-family:"SimSun",serif;font-size:20px;margin:0 0 10px;font-weight:600}
.badge{font-size:10px;background:var(--wine-light);color:var(--wine);border-radius:30px;padding:6px 10px;white-space:nowrap}
.badge.done{background:#e6f0eb;color:var(--sage)}
.job-meta{font-size:10px;color:var(--muted);line-height:1.9}
.progress-track{height:5px;background:var(--wine-light);border-radius:5px;margin:18px 0 10px;overflow:hidden}
.progress-track progress{display:block;width:100%;height:5px;appearance:none;border:0;background:var(--wine-light)}
progress::-webkit-progress-bar{background:var(--wine-light)}
progress::-webkit-progress-value{background:var(--wine)}
progress::-moz-progress-bar{background:var(--wine)}
.job-actions{display:flex;gap:14px;align-items:center;margin-top:15px}
.job-actions .button{font-size:11px;padding:9px 15px}
.job-error{color:var(--wine);font-size:12px;line-height:1.8}
.job-id{font-size:9px;color:var(--muted);overflow-wrap:anywhere}
dialog{border:1px solid var(--line);border-radius:18px;padding:34px;width:440px;max-width:calc(100vw - 30px);color:var(--ink);box-shadow:0 25px 100px #33212f26}
dialog::backdrop{background:#29212c88;backdrop-filter:blur(4px)}
dialog .eyebrow{font-size:9px;margin-top:12px}
dialog h2{font-size:28px}
dialog label{margin-top:18px}
dialog form>.button{width:100%;margin:10px 0 18px}
dialog form>.text-link{font-size:12px;display:block;margin:auto}
.close{position:absolute;top:10px;right:13px;background:transparent;border:0;font-size:25px;color:var(--muted)}
.error{color:#ac294b;font-size:12px;line-height:1.7;min-height:16px;margin-top:14px}
.preview-dialog{width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:auto;overscroll-behavior:contain}
.preview-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;background:#fff;position:sticky;top:0;z-index:1}
.preview-dialog .preview-header h2{font-size:23px;line-height:1.5;margin:0;padding:0;min-width:0;overflow-wrap:anywhere}
.preview-dialog .preview-header .close{position:static;flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;display:grid;place-items:center}
.preview-player{min-width:0;background:#17121a}
.preview-dialog video{display:block;width:100%;height:auto;max-height:65vh;max-height:65dvh;object-fit:contain;aspect-ratio:16/9;background:#17121a}
.preview-dialog .muted{margin:0;padding:14px 20px 20px;overflow-wrap:anywhere}
html:has(#preview-dialog[open]){overflow:hidden}
.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#3b2b37;color:white;padding:14px 22px;border-radius:9px;box-shadow:0 4px 20px #321b3820;z-index:20;max-width:90vw;font-size:12px;line-height:1.8}
#job-count:not(:empty){font-size:9px;background:var(--wine-light);border-radius:20px;padding:3px 6px}
html{scroll-behavior:smooth;scroll-padding-top:25px}
@media(max-width:1080px){.hero{gap:30px;padding:45px 0}
.collection-head{align-items:start;flex-direction:column}
.editor-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}
.panel{padding:25px}
.photo-workspace{grid-template-columns:130px minmax(0,1fr);gap:15px}
.photo-grid{grid-template-columns:repeat(2,1fr)}
.how{flex-wrap:wrap}
.how-title{width:100%}
.quality-options{grid-template-columns:1fr}
.quality-options span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.quality-options small{margin:0}
.topbar{gap:16px}
.template-grid{gap:18px}
.card-body{padding:16px}
}
@media(max-width:760px){.topbar{padding:0 20px;height:76px}
.brand{font-size:22px;gap:8px}
.brand-mark{width:35px;height:35px;font-size:22px}
.brand small{font-size:7px;letter-spacing:1.8px}
nav{gap:18px;font-size:12px}
.account{gap:0}
.account>span{display:none}
.account .button{font-size:10px;padding:8px 10px}
main{padding:0 20px}
.hero{grid-template-columns:1fr;gap:30px;padding:35px 0}
.hero h1{font-size:36px}
.hero-note{font-size:12px}
.hero .eyebrow{font-size:10px}
.hero-film{max-width:540px;transform:rotate(1deg);aspect-ratio:16/9}
.collection-head h2{font-size:23px}
.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.card-description{font-size:11px;min-height:60px}
.card-title{font-size:19px}
.card-bottom{flex-direction:column;align-items:stretch;gap:12px}
.card-meta{font-size:10px}
.card-body{padding:15px}
.card-tag{font-size:9px;padding:4px 6px;top:8px;left:8px}
.card-image .preview-button span{opacity:1;font-size:10px;padding:6px 10px}
.how{padding:20px;gap:16px;margin:30px 0}
.how-title{font-size:16px}
.how>span:not(:first-child){font-size:10px}
.editor-layout{grid-template-columns:1fr;gap:20px}
.editor-aside{display:grid;grid-template-columns:95px 1fr;column-gap:15px}
.editor-aside>img{grid-row:1/4}
.editor-aside>.button{grid-column:1;font-size:10px;margin:6px 0;padding:5px}
.editor-aside h2{grid-column:2;grid-row:1;margin:0;font-size:21px}
.editor-aside>p{grid-column:2;grid-row:2;font-size:11px;margin:0}
.steps{grid-column:1/-1;display:flex;justify-content:space-between;margin:14px 0 0;gap:5px}
.steps li{font-size:10px;gap:6px;margin:0}
.steps li:before{width:21px;height:21px;flex-shrink:0}
.editor-aside .aside-tip{display:none}
.panel{padding:24px 19px}
.panel h2{font-size:25px}
.panel .eyebrow{font-size:9px}
.form-grid{gap:17px 12px}
.panel-actions{gap:9px}
.panel-actions .button{flex:1;padding:12px;font-size:11px}
.photo-workspace{grid-template-columns:1fr}
.slot-column{border-right:0;border-bottom:1px solid var(--line);padding:0 0 14px}
#slot-list{display:flex;overflow:auto;max-height:none;gap:6px}
.slot-button{flex:0 0 108px;padding:8px}
.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:520px}
.selection-tools button{font-size:11px}
.job-card{grid-template-columns:1fr;padding:20px;gap:20px}
.job-media{max-width:480px;aspect-ratio:16/9}
.works-heading{padding:30px 0 18px;align-items:start}
.works-heading h1{font-size:31px}
.works-heading .eyebrow{font-size:8px}
.works-heading>.button{font-size:10px;padding:9px 12px;white-space:nowrap;margin-top:20px}
footer{padding:25px 20px}
.footer-brand{font-size:17px}
.footer-brand small{font-size:10px}
footer>span{display:none}
}
@media(max-width:400px){.topbar{gap:9px;padding:0 13px}
nav{gap:13px}
.brand-mark{display:none}
main{padding:0 15px}
.hero h1{font-size:32px}
.filters{gap:0}
.filters button{font-size:11px;padding:8px 10px}
.photo-grid{grid-template-columns:repeat(3,1fr)}
.card-body{padding:12px}
.form-grid,#copy-fields{grid-template-columns:1fr}
.panel{padding:20px 15px}
.confirmation{padding:16px;gap:20px 10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}
.template-card:hover{transform:none}
}


.works-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.works-buttons .button{font-size:10px;padding:9px 12px}.works-buttons{max-width:160px;margin-top:12px}}

/* The same workflow stays usable from a phone without a separate website. */
.mobile-text{display:none}
.editor-content,.photo-column,.slot-column,.form-grid>label{min-width:0}
input,select,textarea{max-width:100%;min-width:0}
.upload-progress{display:block;width:100%;height:6px;margin:12px 0 20px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--wine)}
.download-help{font-size:12px}
#download-dialog p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}
#download-dialog>.button{width:100%;margin-top:10px}
.close{width:44px;height:44px;display:grid;place-items:center;right:5px;top:5px;padding:0}
.panel h2:focus{outline:none}

@media(max-width:760px){
  :root{--phone-nav-height:62px}
  body{padding-bottom:calc(var(--phone-nav-height) + env(safe-area-inset-bottom,0px))}
  .desktop-text{display:none}
  .mobile-text{display:inline}
  .topbar{height:76px;padding:0 max(18px,env(safe-area-inset-right,0px)) 0 max(18px,env(safe-area-inset-left,0px))}
  .topbar .brand-mark{display:grid}
  .topbar nav{position:fixed;bottom:0;left:0;right:0;z-index:12;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;height:calc(var(--phone-nav-height) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid var(--line);box-shadow:0 -5px 20px #512e4006}
  .topbar nav a{justify-content:center;min-height:var(--phone-nav-height);font-size:14px;gap:9px}
  .topbar nav a.active:after{width:30px;left:calc(50% - 15px);right:auto;bottom:8px;height:2px;border-radius:2px}
  .account .button{font-size:12px;padding:10px 14px;min-height:44px}
  main{padding:0 18px}
  .hero{padding:30px 0 32px;gap:26px}
  .hero h1{font-size:clamp(29px,7.5vw,38px);line-height:1.5;letter-spacing:1px;margin-bottom:16px}
  .hero .eyebrow{letter-spacing:1px;font-size:11px;margin-bottom:17px}
  .hero-note{font-size:13px;margin-bottom:16px}
  .hero-film{width:100%;max-width:none;transform:none;border-width:7px}
  .round-play{min-height:44px;min-width:44px}
  .text-link{min-height:44px;font-size:13px}
  .filters{display:flex;flex-wrap:nowrap;gap:5px;width:100%;overflow:auto;padding:3px 0;scrollbar-width:thin}
  .filters button{min-height:44px;font-size:12px;padding:10px 14px}
  .collection-head{gap:14px;margin:10px 0 20px}
  .collection-head h2{font-size:23px}
  .card-body{padding:20px}
  .card-title{font-size:24px}
  .card-description{font-size:13px;min-height:0;line-height:1.9}
  .card-bottom{flex-direction:row;align-items:center;gap:12px}
  .card-meta{font-size:11px}
  .card-bottom button{font-size:12px;min-height:44px;padding:10px 14px}
  .card-tag{font-size:11px;padding:6px 9px;left:12px;top:12px}
  .card-image .preview-button span{font-size:12px;padding:10px 14px;opacity:1}
  .how{padding:20px;gap:18px 10px;margin-bottom:30px}
  .how>span:not(:first-child){font-size:11px}
  .editor-heading{font-size:11px;gap:12px;padding:12px 0}
  .editor-heading>span{text-align:right}
  .editor-layout{gap:18px;margin-bottom:25px}
  .editor-aside{grid-template-columns:100px minmax(0,1fr);gap:8px 15px}
  .editor-aside>img{grid-row:1/3;min-height:76px}
  .editor-aside>.button{grid-column:1/-1;width:100%;font-size:12px;margin:0;min-height:44px}
  .editor-aside h2{font-size:23px}
  .editor-aside>p{font-size:12px;line-height:1.8}
  .steps{margin-top:8px;gap:12px}
  .steps li{align-items:center;gap:6px;font-size:11px;line-height:1.7}
  .steps li:before{width:24px;height:24px}
  .panel{padding:25px 19px 0;border-radius:13px;overflow:visible}
  .panel h2{font-size:25px}
  .panel>.muted{font-size:13px}
  .form-grid,#copy-fields{grid-template-columns:minmax(0,1fr);gap:20px}
  .wide{grid-column:auto}
  label,.field-title{font-size:13px}
  input,select,textarea{font-size:16px;min-height:48px;padding:12px}
  input::placeholder,textarea::placeholder{font-size:13px}
  .copy-editor summary{font-size:13px;min-height:44px;padding-top:10px}
  .copy-editor{padding-top:12px}
  .panel-actions{position:sticky;bottom:calc(var(--phone-nav-height) + env(safe-area-inset-bottom,0px));z-index:4;padding:15px 0;margin-top:25px;background:#fff;box-shadow:0 -8px 10px #fff}
  .panel-actions .button{min-height:48px;font-size:12px;padding:12px 10px;min-width:0}
  [data-panel="3"] .panel-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #generate-full{grid-column:1/-1}
  #submit-status{padding-bottom:18px;font-size:12px}
  .upload-zone{padding:24px 12px}
  .upload-zone strong{font-size:14px;line-height:1.7}
  .upload-zone>span:last-of-type{font-size:11px;line-height:1.9}
  .upload-zone:focus-within{outline:3px solid #bd8ba5;outline-offset:3px}
  .photo-workspace{margin-top:20px}
  .photo-workspace>.slot-column{min-width:0}
  #slot-list{gap:8px;padding:3px 0 8px;scroll-snap-type:x proximity}
  .slot-button{flex-basis:132px;min-height:68px;padding:12px;font-size:12px;scroll-snap-align:start}
  .slot-button small{font-size:10px;line-height:1.8;margin-top:5px}
  .section-label{font-size:13px}
  #slot-hint{font-size:12px;margin-bottom:5px}
  .selection-tools{gap:12px;margin:4px 0 10px;align-items:center}
  .selection-tools button{font-size:12px}
  .selected-strip{gap:8px;margin:10px 0 16px;padding-bottom:8px}
  .selected-item{flex-basis:96px}
  .selected-item>img{width:96px;height:76px}
  .reorder button{min-width:44px;min-height:36px;font-size:15px;padding:4px 9px}
  .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:none;overflow:visible}
  .photo{min-height:100px;min-width:0}
  .photo .selection-index{width:25px;height:25px;font-size:11px}
  .photo .photo-name{padding:6px;font-size:10px}
  .photo-help{font-size:11px;line-height:1.9}
  .photo-grid .empty{padding:25px 10px;font-size:12px}
  .quality-options span{padding:16px 13px;min-height:66px;gap:12px}
  .quality-options small{font-size:11px}
  .quality-options strong{font-size:17px;white-space:nowrap}
  .consent{font-size:11px;line-height:1.9}
  .confirmation{padding:20px 16px;gap:20px 15px;min-width:0}
  .confirmation strong{overflow-wrap:anywhere;line-height:1.8}
  .works-heading{flex-direction:column;gap:8px;padding:30px 0 20px}
  .works-heading .muted{font-size:13px}
  .works-buttons{max-width:none;width:100%;margin-top:0;justify-content:start}
  .works-buttons .button{min-height:44px;font-size:12px;padding:10px 14px}
  .job-card{padding:16px;gap:18px}
  .job-media{width:100%;max-width:none}
  .job-title-row{gap:10px;align-items:center}
  .job-title-row h3{font-size:20px;overflow-wrap:anywhere;margin-bottom:7px}
  .job-meta{font-size:11px}
  .job-card .muted{font-size:12px}
  .job-actions{flex-wrap:wrap;gap:8px 15px}
  .job-actions .button{min-height:44px;padding:11px 15px;font-size:12px}
  .job-actions .text-link{font-size:12px}
  .job-id{font-size:10px}
  .download-help{width:100%;text-align:left}
  dialog{width:calc(100vw - 24px);max-width:560px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:30px 22px;overflow-y:auto;overscroll-behavior:contain;border-radius:16px}
  dialog .eyebrow{font-size:9px;letter-spacing:1.5px;margin-top:10px}
  dialog h2{font-size:26px;padding-right:18px}
  dialog form>.button{min-height:48px;font-size:14px}
  dialog form>.text-link{font-size:13px}
  .preview-dialog{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border-radius:14px;overflow:auto}
  .preview-header{padding:10px 12px;gap:10px}
  .preview-dialog .preview-header h2{font-size:20px}
  .preview-dialog video{height:auto;max-height:60vh;max-height:60dvh;object-fit:contain}
  .preview-dialog .muted{font-size:12px;line-height:1.8;padding:12px 14px 16px}
  .toast{bottom:calc(var(--phone-nav-height) + env(safe-area-inset-bottom,0px) + 12px);width:max-content;max-width:calc(100vw - 30px);font-size:12px;padding:12px 16px}
  footer{padding:25px 18px}
  .footer-brand{flex-wrap:wrap;gap:8px}
}
@media(max-width:560px){
  .template-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .card-image{aspect-ratio:16/9}
  .collection-head h2{font-size:22px}
}
@media(max-width:350px){
  main{padding:0 12px}
  .topbar{padding:0 12px}
  .brand{font-size:21px;gap:7px}
  .brand small{font-size:6px;letter-spacing:1px}
  .account .button{padding:9px 11px;font-size:11px}
  .panel{padding:22px 13px 0}
  .panel h2{font-size:22px}
  .steps{gap:6px}
  .steps li{font-size:10px}
  .card-body{padding:18px}
  .card-bottom{gap:8px}
  .card-meta{font-size:10px}
  .photo-grid{gap:6px}
  .photo{min-height:86px}
}
@media(pointer:coarse){
  .card-image .preview-button span{opacity:1}
  .template-card:hover{transform:none}
}

/* Account and voucher panels follow the existing responsive form styles. */
#credits-dialog{width:min(640px,calc(100vw - 28px));max-height:85dvh;overflow:auto;box-sizing:border-box}
#credits-dialog h3{margin-top:28px}#credits-dialog form{display:grid;gap:14px}
#credits-dialog input,#issued-codes{width:100%;min-width:0;box-sizing:border-box}
#issued-codes{font:14px/1.8 monospace;margin-top:16px;resize:vertical}
.balance-line{font-size:22px}.balance-line strong{font-size:42px;color:#813e58}
.credit-notice{background:#f6edf1;border-radius:12px;padding:16px;line-height:1.8}
.credit-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}
.credit-row small{display:block;font-size:12px;color:#777;margin-top:5px}
#email-code-fields{margin:16px 0}#credits-button{white-space:normal}
.email-code-row{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:10px;align-items:center;margin-top:8px}
.email-code-row input{min-width:0;width:100%;margin:0;letter-spacing:2px}
.email-code-row .button{width:100%;height:100%;min-height:46px;padding:10px 8px;white-space:nowrap;font-size:13px}
@media(max-width:620px){.account{flex-wrap:wrap;justify-content:flex-end;gap:6px}#username{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#credits-button{font-size:11px;padding:7px 10px}#credits-dialog{padding:24px 18px}.credit-row{font-size:13px}}

.live-preview{margin:24px 0 12px;border-radius:12px;overflow:hidden;background:#1d1720;min-height:120px;display:grid;place-items:center}
.live-preview iframe{border:0;display:block;width:100%;aspect-ratio:16/9;background:#161218}
.live-preview iframe.portrait{width:min(100%,330px);aspect-ratio:9/16;max-height:65dvh}
.live-preview #live-preview-status{color:#e8d9e0;padding:12px 18px;text-align:center}
.preview-confirm{display:flex;align-items:flex-start;gap:10px;margin-top:20px;line-height:1.7;cursor:pointer}
.preview-confirm input{width:18px;min-height:18px;height:18px;margin:2px 0 0;flex:0 0 18px;accent-color:var(--wine)}
@media(max-width:620px){.live-preview{margin-top:18px;border-radius:9px}.live-preview iframe.portrait{width:min(100%,280px)}.preview-confirm{font-size:12px}}

@media(max-width:620px){[data-panel="3"] .panel-actions{position:static;box-shadow:none}}

/* Shot-by-shot intake: requirements and ordered photos stay beside the active scene. */
.shot-summary{background:var(--paper);border-left:3px solid var(--wine);padding:12px 15px;font-size:12px;line-height:1.8;margin:22px 0}
.shot-workspace{grid-template-columns:205px minmax(0,1fr);gap:24px}
.shot-workspace .slot-button{display:flex;gap:9px;align-items:flex-start;width:100%;min-width:0}
.shot-list-number{font:11px/1.7 Arial,sans-serif;opacity:.6;flex:0 0 18px;margin-top:1px}
.shot-workspace .slot-button small{line-height:1.7;margin-top:3px}
.shot-workspace .slot-button.complete{border-left:2px solid var(--sage)}
.shot-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 17px}
.shot-heading .eyebrow{font:10px/1.6 Arial,sans-serif;letter-spacing:1px;margin:0 0 6px;color:var(--muted)}
.shot-heading h3{font-family:"STZhongsong","SimSun",serif;font-size:25px;font-weight:500;margin:0;line-height:1.4}
.shot-count{font:12px/1.8 Arial,sans-serif;background:var(--wine-light);color:var(--wine);padding:5px 10px;border-radius:6px;white-space:nowrap}
.shot-requirements{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;background:#faf8fa;padding:17px;border:1px solid var(--line);border-radius:10px}
.shot-requirements small{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}
.shot-requirements strong{display:block;font-size:12px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
.shot-workspace .upload-zone{margin-top:18px;padding:20px 12px}
.shot-workspace .selection-tools{align-items:center;flex-wrap:wrap;gap:10px;margin:17px 0 14px}
.shot-workspace .selection-tools button{font-size:12px;min-height:35px}
.shot-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shot-photo{border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0;background:#fff}
.shot-photo-image{position:relative;aspect-ratio:4/3;background:#f0edf0;display:grid;place-items:center;overflow:hidden}
.shot-photo-image img{width:100%;height:100%;object-fit:contain;display:block}
.shot-photo-number{position:absolute;left:8px;top:8px;font:11px/1.6 Arial,sans-serif;padding:3px 7px;border-radius:4px;background:var(--wine);color:#fff}
.shot-photo-info{padding:10px 10px 6px}
.shot-photo-info strong{font-size:11px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shot-photo-info small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.photo-warning{color:#916028;font-size:10px;line-height:1.7;margin:5px 0 0}
.shot-photo-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);margin-top:6px}
.shot-photo-actions button{border:0;background:#fff;min-height:44px;font-size:11px;padding:5px 2px;color:var(--wine)}
.shot-photo-actions button+button{border-left:1px solid var(--line)}
.shot-photo-actions button:disabled{cursor:default;color:var(--muted)}
.shot-empty{grid-column:1/-1;border:1px dashed #d7c6cf;border-radius:10px;display:grid;place-items:center;text-align:center;padding:27px 16px;background:#fcfafb}
.shot-empty strong{font-size:13px;font-weight:500;margin:7px 0}
.shot-empty p{color:var(--muted);font-size:12px;line-height:1.8;margin:3px 0}
.shot-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:22px}
.shot-navigation .button{min-height:44px;font-size:12px;padding:9px 12px}
.photo-library-dialog{width:min(860px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:88dvh;overflow:auto;box-sizing:border-box}
.photo-library-dialog .preview-header h2{font-size:23px;margin:0}
.photo-library-dialog .photo-grid{margin-top:15px;max-height:55dvh;grid-template-columns:repeat(4,minmax(0,1fr))}
.photo-library-dialog .photo{aspect-ratio:4/3}
.photo-library-dialog .photo img{object-fit:contain}
@media(max-width:900px){.shot-workspace{grid-template-columns:155px minmax(0,1fr);gap:16px}.shot-photos{gap:8px}.shot-photo-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.shot-photo-actions button{min-height:44px}.shot-photo-actions button:nth-child(3){border-left:0;border-top:1px solid var(--line)}.shot-photo-actions button:nth-child(4){border-top:1px solid var(--line)}}
@media(max-width:760px){.shot-workspace{grid-template-columns:minmax(0,1fr);gap:20px}.shot-workspace .slot-column{padding:0 0 14px;border-right:0;border-bottom:1px solid var(--line)}.shot-workspace #slot-list{display:flex;gap:7px;max-height:none;overflow:auto;margin-top:10px}.shot-workspace .slot-button{flex:0 0 170px}.shot-heading h3{font-size:23px}.shot-requirements{padding:14px;gap:12px}.photo-library-dialog .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:420px){.shot-heading h3{font-size:21px}.shot-requirements{gap:12px 8px}.shot-requirements strong{font-size:11px}.shot-photo-info{padding:8px 7px 5px}.photo-library-dialog{padding:22px 14px}.photo-library-dialog .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shot-summary{font-size:11px}}

@media(pointer:coarse){.shot-workspace .selection-tools button{min-height:44px}}
.photo-record .record-image{position:relative}.record-image img{position:absolute;top:0;left:0;width:100%;height:100%}
@media(max-width:420px){.record-image{width:100px}.record-info{padding:14px 10px}.record-info p{font-size:10px}}
