/* v1.2: scene-specific workflows, composition and local demo library. */
.prototype-banner{padding:8px 20px;text-align:center;font-size:10px;line-height:1.6;color:#71816e;background:#f0f4e9;border-bottom:1px solid var(--line)}
.prototype-banner>span{font-weight:750;letter-spacing:.08em;color:#466650;margin-right:12px}
.nav-wrap{gap:22px}.desktop-nav{margin-left:12px;gap:24px}.nav-actions{gap:16px}
.creations-nav{font-size:12px;white-space:nowrap;font-weight:650}.creations-nav span{font-size:10px;background:#e7efde;padding:2px 5px;border-radius:5px}
.hero{padding:30px 20px 26px}.hero h1{font-size:56px;margin:10px auto}.hero>p{font-size:14px}
.studio{grid-template-columns:minmax(0,0.94fr) minmax(0,1.16fr);align-items:start;gap:12px;padding:17px}
.generator-panel{padding:10px 18px 6px 12px;min-width:0}.panel-title{margin:0 0 14px}.panel-title h2{font-size:15px}
.preview-column{min-width:0;position:sticky;top:16px}
.preview-panel{display:block;background:#edf2e6;padding:0 8px 8px;border-radius:17px}
.preview-meta{padding:12px 10px}.preview-tabs{margin:0 3px 10px!important;max-width:310px}
.segmented{display:flex;background:#eff3e9;border:1px solid #dfe6d6;border-radius:9px;padding:3px;gap:3px;margin-bottom:12px}
.segmented button{flex:1;min-height:35px;font-size:11px;line-height:1.4;padding:7px 10px;border-radius:6px;color:#6c7d69}
.segmented button[aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 2px 5px #173e3510;font-weight:700}
.preview-stage{height:380px;border-radius:11px;overflow:hidden;position:relative;background:#e4eadb}
#preview-art{height:100%;position:relative;overflow:hidden}
.inspiration-art{position:absolute;inset:0;background-size:300% auto;transform:scale(1.02)}
.art-caption{position:absolute;left:24px;bottom:43px;font-size:29px;font-weight:650;line-height:1.15;letter-spacing:-.6px;color:#fffdf4;text-shadow:0 1px 14px #173f3570}
.art-caption i{font-family:Georgia,serif;font-weight:400}
.stage-label{position:absolute;left:12px;bottom:11px;right:12px;z-index:2;font-size:9px;line-height:1.5;color:#fff;background:#193d3873;backdrop-filter:blur(8px);border:1px solid #ffffff20;border-radius:6px;padding:5px 8px;width:fit-content;max-width:calc(100% - 24px);pointer-events:none}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 10px 8px}
.preview-toolbar strong{font-size:16px;display:block;letter-spacing:-.3px}.preview-toolbar small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.preview-control{border-radius:50%;height:42px;width:42px;flex-shrink:0;background:white;border:1px solid #d4dfcc;font-size:21px}
.sketch-timeline{display:flex;align-items:center;gap:10px;padding:0 10px 10px;font-size:8px;color:#7c8c72}
.sketch-timeline>div{height:3px;flex:1;background:#d3dfc9;border-radius:5px;overflow:hidden}.sketch-timeline i{display:block;height:100%;background:var(--green);width:0;transition:width .2s linear}
.preview-bottom{font-size:9px;border-top:1px solid #dbe4d2;padding:10px 8px 3px;gap:12px;align-items:center}
.preview-bottom>span{color:var(--muted);line-height:1.5}.preview-bottom button{font-size:10px;font-weight:700;white-space:nowrap;min-height:32px}
.photo-tips{padding:22px 16px 12px}.photo-tips h3{font-size:18px;letter-spacing:-.5px;margin:9px 0}.photo-tips p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}
.tip-pair{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.tip-pair span{font-size:9px;line-height:1.5;padding:6px 8px;background:#edf2e6;border-radius:5px}.tip-pair span:last-child{background:#f9efea;color:#9c7766}
.upload-grid{display:grid;grid-template-columns:1fr;gap:10px}.upload-grid.two-uploads{grid-template-columns:1fr 1fr}
.upload-slot{position:relative;min-width:0}.upload{height:142px;border-radius:11px;display:block;overflow:hidden;position:relative}
.upload input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;left:10px;top:10px}
.upload:focus-within{outline:3px solid #39927c;outline-offset:3px}
.upload-visual{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.upload-visual strong{font-size:12px}.upload-visual small{font-size:9px;text-align:center;padding:0 8px;color:var(--muted)}
.upload-plus{font-size:28px;color:#79a388;line-height:1.1}.upload.has-photo{height:142px;background:#e7edde;border-style:solid}
.upload.has-photo .sample-photo,.upload.has-photo img{width:100%;height:100%;display:block}
.upload-visual .local-photo{object-fit:contain}
.upload-visual .sample-photo{width:116px!important;max-width:100%;border-radius:6px}
.local-photo{object-fit:cover;width:100%;height:100%;display:block}
.sample-photo{display:block;width:100%;height:100%;background-size:300% auto;background-position-y:calc(50% + var(--crop-y,0px));}
.sample-photo.home-scene{background-position-x:calc(0% + var(--crop-x,0px))}
.sample-photo.dance-scene{background-position-x:calc(50% + var(--crop-x,0px))}
.sample-photo.kiss-scene{background-position-x:calc(100% + var(--crop-x,0px))}
.sample-photo.kiss-scene.sample-person-0{background-size:600% auto;background-position-x:calc(80% + var(--crop-x,0px))}
.sample-photo.kiss-scene.sample-person-1{background-size:600% auto;background-position-x:calc(100% + var(--crop-x,0px))}
.replace-label{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;padding:5px 10px;background:#fffff1e8;border-radius:20px;white-space:nowrap}
.remove-photo{position:absolute;right:7px;top:7px;border:1px solid #d5dfcf;border-radius:50%;width:28px;height:28px;background:#fffff2e8;font-size:18px}
.try-row{margin:7px 0 6px;gap:12px;justify-content:space-between}.try-row button{font-size:10px;font-weight:650;min-height:32px}
.try-row button:disabled{opacity:.4}
.photo-guidance{font-size:10px;color:var(--muted);line-height:1.6;margin:0 0 17px;padding-left:1px}
.field-label{font-size:12px}textarea{min-height:65px;font-size:12px;padding:11px}
.presets{gap:5px}.presets button{font-size:9px;padding:7px 9px}
.field-note{font-size:9px;line-height:1.6}
.output-heading{display:flex;align-items:center;gap:8px;margin:23px 0 12px}.output-heading h2{font-size:14px;margin:0}.output-heading>span:last-child{font-size:9px;color:#829078;margin-left:auto}
.review-summary dd{max-width:65%;overflow-wrap:anywhere}
.output-controls{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:8px}
.output-controls label{display:flex;flex-direction:column;gap:7px;font-size:10px;color:var(--muted)}
.output-controls select{min-width:0;width:100%;height:37px;border:1px solid #dfe6d9;background:#fffefa;border-radius:8px;color:var(--ink);font-size:11px;padding:0 6px}
.output-controls select:disabled{color:#5f735b;opacity:1;background:#eff3e8}
.output-facts{display:flex;gap:7px;margin:10px 0 16px;flex-wrap:wrap}.output-facts span{font-size:9px;color:#72836b;padding:4px 8px;background:#f0f4ea;border-radius:5px}
.quote-card{background:#f3f6ee;border:1px solid #e2e9da;border-radius:11px;padding:13px 15px;margin-bottom:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quote-card span{font-size:9px;color:var(--muted);display:block;margin-bottom:5px}.quote-card strong{font-size:14px;font-weight:700}
.quote-card>div:nth-child(2){text-align:right}.quote-card>div:nth-child(2) strong{font-size:12px;font-weight:500}
.quote-card p{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid #dfe6d7;font-size:9px;color:#72836b;line-height:1.5}.quote-card .low-balance{color:#a4654a}
.privacy-note{font-size:9px;line-height:1.7}.privacy-note span{font-size:8px;color:#8a9681}
#dance-picker{margin-bottom:20px}.dance-options{gap:8px}.dance-option{padding:5px;border-radius:9px}
.motion-expand{font-size:9px;min-height:28px;padding:0;color:#5f816a}
.dance-option b{font-size:11px;margin:7px 3px 3px}.dance-option small{font-size:9px;margin-left:3px;display:block;line-height:1.6}
.mini-stage{display:block;position:relative;height:80px;background:#e9f0de;border-radius:6px;overflow:hidden}
.dance-option:nth-child(2) .mini-stage{background:#f5eae0}.dance-option:nth-child(3) .mini-stage{background:#e4ecee}
.mini-play{position:absolute;bottom:4px;right:6px;font-size:16px;color:#6d8e79}
.dancer{width:140px;height:215px;position:relative;transform-origin:50% 65%;color:#448b72}
.dancer i{display:block;position:absolute;background:currentColor}
.dancer .head{width:47px;height:44px;left:47px;top:0;border-radius:48%;background:#b6dbb7;border:2px solid #508e70}
.dancer .head:before{content:"";position:absolute;width:5px;height:5px;left:10px;top:16px;border-radius:50%;background:#2f6453;box-shadow:17px 0 #2f6453}
.dancer .head:after{content:"⌣";position:absolute;font-size:16px;left:17px;top:16px;color:#3e715b}
.dancer .body{width:48px;height:75px;left:47px;top:48px;border-radius:18px 18px 12px 12px;background:#84bba0}
.dancer .arm{height:68px;width:15px;border-radius:15px;top:53px;transform-origin:50% 7px;background:#a4d1ad}
.dancer .arm.left{left:30px;transform:rotate(30deg)}.dancer .arm.right{right:28px;transform:rotate(-30deg)}
.dancer .leg{width:18px;height:78px;top:116px;border-radius:15px;transform-origin:50% 8px}
.dancer .leg.left{left:47px;transform:rotate(6deg)}.dancer .leg.right{right:45px;transform:rotate(-6deg)}
.dancer .floor{height:9px;width:120px;bottom:6px;left:10px;border-radius:50%;background:#88a67c36}
.mini-stage .dancer{position:absolute;left:50%;top:5px;scale:.34;transform-origin:top left;translate:-24px 0}
.mini-stage .hands .arm.left{transform:rotate(140deg)}.mini-stage .hands .arm.right{transform:rotate(-140deg)}
.mini-stage .shuffle .leg.left{transform:rotate(27deg)}.mini-stage .shuffle .leg.right{transform:rotate(-23deg)}
.motion-stage{height:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 35%,#f7f8e8,#dfead4);position:relative}
.motion-stage>.dancer{scale:1.25;z-index:1}
.motion-orbit{position:absolute;border:1px solid #acbda64a;border-radius:50%;width:330px;height:330px}
.orbit-two{width:245px;height:245px}.motion-star{position:absolute;left:19%;top:24%;font-size:38px;color:#93b292;rotate:-12deg}
.motion-note{position:absolute;bottom:43px;right:24px;font-size:12px;letter-spacing:.25em;color:#87a07d}
.playing .sway{animation:sway 1.6s ease-in-out infinite alternate}
.playing .hands .arm.left{animation:hand-left .8s ease-in-out infinite alternate}.playing .hands .arm.right{animation:hand-right .8s ease-in-out infinite alternate}
.playing .hands .head{animation:nod .8s ease-in-out infinite alternate}
.playing .shuffle{animation:shuffle .8s ease-in-out infinite alternate}.playing .shuffle .leg.left{animation:step-left .8s ease-in-out infinite alternate}.playing .shuffle .leg.right{animation:step-right .8s ease-in-out infinite alternate}
.playing .inspiration-art{animation:camera-push 5s ease-in-out both}
@keyframes sway{from{transform:translateX(-17px) rotate(-9deg)}to{transform:translateX(17px) rotate(9deg)}}
@keyframes hand-left{from{transform:rotate(40deg)}to{transform:rotate(150deg)}}@keyframes hand-right{from{transform:rotate(-150deg)}to{transform:rotate(-40deg)}}
@keyframes nod{to{transform:rotate(8deg) translateY(4px)}}
@keyframes shuffle{to{transform:translateX(22px) translateY(-7px)}}@keyframes step-left{to{transform:rotate(33deg)}}@keyframes step-right{to{transform:rotate(-35deg)}}
@keyframes camera-push{to{transform:scale(1.16)}}
.composition{display:flex;max-height:340px;height:auto;max-width:100%;width:auto;margin:auto;border:1px solid #d4dfcc;border-radius:12px;background:#e3ebda;overflow:hidden}
.composition-cell{flex:1;min-width:0;position:relative;overflow:hidden}
.composition-cell+.composition-cell{border-left:1px dashed #d3dccc}
.composition-cell img,.composition-cell>.sample-photo{position:absolute;inset:0;width:100%;height:100%}
.person-marker{position:absolute;bottom:10px;left:10px;background:#fffdf3e6;border-radius:15px;padding:4px 9px;font-size:9px}
.photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#8ba07c;font-size:30px}
.photo-placeholder small{font-size:11px;margin-top:10px}
.framing-stage{height:100%;padding:18px 20px 42px;display:flex;align-items:center;justify-content:center}
.framing-stage .composition{height:100%;max-height:100%;width:auto;max-width:100%}
.review-composition .composition{height:150px;max-width:100%}
#crop-preview{background:#eaf0e2;border-radius:12px;padding:12px;display:flex;justify-content:center}
#crop-preview .composition{height:270px;max-height:35vh}
.crop-controls{display:flex;gap:18px;margin-top:18px}.crop-controls fieldset{border:0;padding:0;margin:0;flex:1;min-width:0}.crop-controls legend{font-size:12px;font-weight:700;margin-bottom:9px}
.crop-controls label{display:flex;flex-direction:column;font-size:10px;color:var(--muted);gap:7px;margin:8px 0}
.crop-controls input{width:100%;accent-color:var(--green);min-height:30px}
.wide-dialog{width:min(620px,calc(100vw - 24px))}
.review-summary{margin:18px 0}.review-summary>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:10px 0;font-size:11px;line-height:1.5}
.review-summary dt{color:var(--muted)}.review-summary dd{margin:0;text-align:right;font-weight:600}
.auth-placeholder{padding:18px;border:1px dashed #bbcdb0;border-radius:10px;color:var(--muted);font-size:12px;background:#eef3e8}
.creations-view{padding-top:42px;min-height:650px;padding-bottom:55px}
.library-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.library-heading h1{font-size:48px;letter-spacing:-2px;margin:10px 0}.library-heading p{font-size:13px;color:var(--muted);margin:10px 0}
.library-note{background:#edf3e5;border:1px solid #e0e8d8;border-radius:10px;padding:13px 16px;margin:25px 0;font-size:11px;line-height:1.6;color:#74826b}
.library-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}
.library-filters button{padding:9px 17px;border-radius:25px;font-size:12px;border:1px solid #dfe6d6}
.library-filters button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}
.creation-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.creation-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white}
.creation-image{height:210px;position:relative}.creation-image>span{position:absolute;bottom:9px;left:10px;font-size:8px;color:white;background:#173c3570;padding:4px 8px;border-radius:5px}
.job-status{position:absolute;left:10px;top:10px;border-radius:20px;background:#fffff1ed;font-size:10px;padding:7px 10px}
.job-status.complete{background:#e6f3dced}.job-status.failed,.job-status.expired{background:#f7e6dced}
.creation-copy{padding:18px}.creation-copy small{font-size:9px;color:var(--muted)}
.creation-copy h3{font-size:18px;margin:7px 0;letter-spacing:-.4px}.creation-copy p{font-size:10px;color:var(--muted);margin:0 0 16px}
.creation-copy>div{display:flex;align-items:center;gap:12px}.creation-copy .secondary{padding:9px 12px;font-size:11px}
.text-button{font-size:11px;text-decoration:underline;text-underline-offset:4px;min-height:34px}.text-button:disabled{opacity:.4}
.library-empty{grid-column:1/-1;text-align:center;padding:55px 20px;background:#f4f7ee;border:1px dashed #d2dfc8;border-radius:18px}
.library-empty img{height:65px}.library-empty h2{font-size:25px;letter-spacing:-.6px}.library-empty p{font-size:13px;color:var(--muted);margin-bottom:28px}
.library-empty .primary{display:inline-flex;align-items:center;padding:12px 20px}
.library-bottom{display:flex;align-items:center;gap:18px;margin-top:25px}.library-bottom span{font-size:10px;color:var(--muted)}
.job-detail-art{height:220px;border-radius:12px;position:relative}.job-detail-art span{position:absolute;bottom:10px;left:12px;background:#173d367d;color:white;font-size:9px;padding:5px 8px;border-radius:5px}
.detail-status{margin:20px 0 0}.detail-status strong{font-size:15px}.detail-status p{margin:8px 0}
.state-overlay{padding:25px}.state-overlay h3{font-size:23px}.state-overlay.complete-state{inset:auto 10px 45px}.state-overlay p{font-size:11px}
.review-dock{gap:12px}.review-dock #demo-reset{opacity:.65;font-size:9px}
@media(min-width:761px){
  .nav-wrap{height:76px}.hero{padding:22px 20px 22px}.hero h1{font-size:49px}
  .upload,.upload.has-photo{height:116px}.mini-stage{height:64px}
  #dance-picker{margin-bottom:17px}.panel-title{margin-bottom:11px}
  .output-heading{margin-top:17px}.photo-guidance{margin-bottom:13px}
  .quote-card{padding:11px 13px;gap:8px}.privacy-note{margin:8px 0 0}
  .preview-stage{height:340px}
}
@media(max-width:1100px){.desktop-nav{gap:17px;margin-left:0}.nav-wrap{padding:0 24px;gap:15px}.nav-actions{gap:10px}.brand img{width:140px}.desktop-nav a,.nav-link{font-size:11px}.creations-nav{font-size:11px}.studio{margin:0 24px;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.generator-panel{padding:10px 8px 6px}.preview-stage{height:355px}.output-controls{gap:5px}.creation-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .prototype-banner{font-size:9px;padding:7px 16px}.prototype-banner>span{display:block;margin:0;font-size:8px}.nav-wrap{height:70px;padding:0 16px;gap:8px}
  .nav-actions{gap:9px}.brand img{width:125px;height:48px}.creations-nav{font-size:10px}.signin{font-size:10px}.menu-button{width:35px;height:35px}
  .hero{padding:26px 20px 23px}.hero h1{font-size:38px;letter-spacing:-1.8px;line-height:1.15;margin:13px auto}.hero>p{font-size:12px;max-width:330px}
  .studio{margin:0 12px;padding:10px;gap:12px;display:flex}.preview-column{position:static;width:100%;order:1}.generator-panel{padding:8px 8px 10px;width:100%;order:0}
  .preview-panel{margin:0;padding:0 6px 6px}.preview-meta{padding:9px 8px}.preview-stage{height:190px}
  .preview-tabs{margin-bottom:7px!important;max-width:100%}.preview-tabs button{min-height:32px;padding:5px;font-size:10px}
  .preview-toolbar{padding:10px 6px 5px}.preview-toolbar strong{font-size:14px}.preview-toolbar small{font-size:9px;line-height:1.5}
  .preview-control{width:38px;height:38px}.preview-bottom{padding:5px 6px 0;gap:7px;font-size:8px}.preview-bottom button{font-size:9px;min-height:36px}
  .stage-label{font-size:7px;left:8px;bottom:8px;max-width:calc(100% - 16px);padding:4px 6px}
  .art-caption{font-size:24px;bottom:34px;left:18px}.photo-tips{display:none}.sketch-timeline{font-size:7px;padding:0 6px 6px}
  .motion-stage>.dancer{scale:.65}.motion-orbit{width:180px;height:180px}.orbit-two{width:130px;height:130px}.motion-star{font-size:25px;top:22%}.motion-note{font-size:9px;bottom:30px}
  .upload{height:146px}.upload.has-photo{height:146px}.upload-visual strong{font-size:12px}.upload-visual small{font-size:9px}
  .try-row{margin:7px 0 3px}.try-row button{min-height:40px;font-size:11px}.photo-guidance{font-size:11px;margin-bottom:18px}
  .output-controls select{height:43px;font-size:11px}.output-controls label{font-size:10px}.output-heading{margin-top:20px}
  .quote-card{padding:13px}.quote-card strong{font-size:14px}.quote-card p{font-size:10px}
  .output-facts span{font-size:9px}.privacy-note{font-size:10px}.privacy-note span{font-size:9px}
  .segmented button{min-height:42px;font-size:11px;padding:7px}.consent{font-size:11px}
  .field-note{font-size:10px}.dance-option b{font-size:10px}.dance-option small{font-size:8px}.mini-stage{height:73px}
  .state-overlay{padding:14px}.state-overlay h3{font-size:17px;margin:7px 0}.state-overlay p{font-size:10px;margin-bottom:8px}.status-badge{font-size:7px;margin-top:8px}
  .preview-stage:has(.state-overlay:not([hidden])){height:270px}.state-overlay.complete-state{inset:10px}.state-actions .primary,.state-actions .secondary{font-size:10px;min-height:36px;padding:8px}
  .framing-stage{padding:12px 12px 35px}#crop-preview .composition{height:230px}.crop-controls{gap:12px}
  .creations-view{padding-top:28px}.library-heading{align-items:start;flex-direction:column;gap:10px}.library-heading h1{font-size:38px}.library-heading p{font-size:12px}
  .library-note{font-size:10px;margin:20px 0}.library-filters{gap:6px}.library-filters button{font-size:10px;padding:10px 13px}
  .creation-list{grid-template-columns:1fr}.creation-image{height:210px}.library-bottom{align-items:start;flex-direction:column;gap:10px}
  .review-dock{gap:8px;padding:7px 10px}.review-dock #demo-reset{font-size:8px}.review-label{max-width:54px}.review-dock select{max-width:115px;font-size:9px}
}
@media(max-width:370px){.nav-wrap{padding:0 10px}.brand img{width:105px}.nav-actions{gap:7px}.creations-nav{font-size:9px}.creations-nav span{display:none}.signin{font-size:9px}.hero h1{font-size:33px}.generator-panel{padding:8px 4px}.preview-bottom{align-items:start}.preview-bottom>span{max-width:140px}.review-dock{gap:6px}.review-dock #demo-reset{font-size:7px}.quote-card strong{font-size:13px}.output-controls select{font-size:10px}}
@media(prefers-reduced-motion:reduce){.playing .dancer,.playing .dancer i,.playing .inspiration-art{animation:none!important}.sketch-timeline i{transition:none!important}}
