/* Scene-first editing. Original experimental editor remains in background.css. */
.scene-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.scene-gallery .scene-idea{display:block;position:relative;min-height:190px;padding:22px;border:1px solid #dfe2d6;border-radius:13px;background:#edeedfa6;overflow:hidden}.scene-idea .scene-number{display:block;font-size:10px;letter-spacing:2px;color:#8a947e}.scene-idea>svg{width:30px;height:30px;margin:20px 0 15px;stroke-width:1.3;color:var(--green)}.scene-idea h3{font-size:16px;font-weight:550;letter-spacing:-.5px}.scene-idea>p{font-size:11px;line-height:1.7;max-width:170px}.scene-idea .scene-arrow{position:absolute;right:20px;top:18px;font-size:18px;color:#6f8165}.scene-gallery .scene-selfie,.scene-gallery .scene-professional{background:#e9dfd1a3}.scene-gallery .scene-id{background:#dee7dfb3}.scene-gallery .scene-restore{background:#e8e5df}.scene-gallery .scene-idea:hover{background:#e2e8d7;border-color:#9daf8e;transform:translateY(-2px)}
.scene-picker{margin-bottom:26px}.scene-picker-heading{display:flex;align-items:center;gap:20px;margin:6px 0 17px}.scene-picker-heading .overline{font-size:10px;white-space:nowrap}.scene-picker h2{font-size:18px;font-weight:450;letter-spacing:-.5px}.scene-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.scene-card{border:1px solid var(--line);border-radius:11px;padding:13px 14px;display:flex;align-items:center;gap:12px;text-align:left;background:#fbfbf7;min-width:0;min-height:75px}.scene-card>svg{width:23px;height:23px;color:#87927e}.scene-card>span{min-width:0}.scene-card b{display:block;font-size:13px;font-weight:550;white-space:nowrap}.scene-card small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:3px}.scene-card i{font-style:normal;margin-left:auto;font-size:14px;color:#8b9881}.scene-card.active{background:#e6ecde;border-color:#829b73;box-shadow:inset 0 0 0 1px #829b7322}.scene-card.active>svg,.scene-card.active b{color:var(--green)}.experimental-tools{margin-top:12px;color:#858d7d;font-size:10px}.experimental-tools summary{cursor:pointer;width:fit-content;min-height:30px;display:flex;align-items:center;gap:7px}.experimental-tools summary:before{content:'＋';font-size:14px}.experimental-tools[open] summary:before{content:'−'}.experimental-tools button{font-size:12px;padding:7px 12px;background:#e9ecdf;border-radius:7px;color:var(--green);margin:4px 0}.experimental-tools p{font-size:11px;margin:5px 0}.experimental-tools button.active{outline:1px solid #829b73}.scene-description{font-size:12px;color:var(--muted);margin:-9px 0 24px;line-height:1.85}.instruction-field label{display:flex;justify-content:space-between;align-items:center;gap:8px}.instruction-field label span,.field label span{font-size:10px;color:#959c8b;font-weight:400}.instruction-field textarea{min-height:120px;background:#f9faf5}.instruction-field .help{font-size:10px;margin-top:12px}.more-options .field{margin-top:16px}.more-options .strengths button{font-size:12px;min-height:41px}.more-options .help{font-size:10px}.more-options #portraitOptions{padding-top:1px}.conversation{border-left:2px solid #bccbac;padding:3px 0 3px 13px;margin-bottom:23px}.conversation small{font-size:10px;color:#89917f}.conversation p{font-size:12px;line-height:1.8;color:#53614b;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:115px;overflow:auto}.base-choice{flex-wrap:wrap}.base-choice select{max-width:100%}.edit-panel .panel-content h2{margin-bottom:18px}.reference-info{margin-bottom:14px}.reference-picker{padding-top:0;padding-bottom:16px;min-height:42px}.reference-picker>span{margin-left:10px}.editor-heading h1{font-size:23px}#refineEdit textarea{min-height:120px}.scene-card:focus-visible{outline-offset:2px}
@media(min-width:1100px){.editor-layout{grid-template-columns:minmax(0,1fr) 365px;gap:28px}.photo-area{position:sticky;top:20px}.photo-canvas{height:clamp(360px,calc(100vh - 280px),720px)}}
@media(max-width:1050px){.scene-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.scene-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.scene-picker-heading{align-items:flex-start;flex-direction:column;gap:6px}}
@media(max-width:760px){.scene-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.scene-gallery .scene-idea{min-height:177px;padding:17px}.scene-idea>svg{margin:16px 0 10px;width:26px;height:26px}.scene-idea h3{font-size:14px}.scene-idea>p{font-size:10px}.scene-idea .scene-arrow{right:16px;top:15px}.scene-picker{margin-top:21px;margin-bottom:23px}.scene-picker-heading{margin-bottom:13px;gap:5px}.scene-picker h2{font-size:19px}.scene-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.scene-card{padding:11px 10px;gap:9px;min-height:74px}.scene-card>svg{width:19px;height:19px}.scene-card b{font-size:12px}.scene-card small{font-size:9px;line-height:1.65}.scene-card i{display:none}.experimental-tools summary{min-height:37px;font-size:10px}.editor-heading h1{font-size:19px}.photo-canvas{height:340px}.scene-description{font-size:12px}.instruction-field .help,.more-options .help{font-size:11px}.instruction-field textarea,#refineEdit textarea{font-size:14px;min-height:110px}.more-options .strengths button{min-height:44px;font-size:12px}.panel-content{padding-top:24px}.conversation small{font-size:11px}.conversation p{font-size:13px}.scene-picker-heading .overline{font-size:9px}.photo-toolbar{flex-wrap:wrap}.photo-toolbar>span{font-size:10px}.panel-action{position:static}.edit-panel{overflow:hidden}}

/* A border badge consumes no title/description width or card height. */
.season-badge{display:inline-flex!important;align-items:center;gap:4px;width:fit-content;padding:3px 6px;border:1px solid #eadcc6;border-radius:5px;background:#f5ecde;color:#8b643f;font-size:10px!important;font-weight:500;line-height:1.35;white-space:nowrap}
.season-badge svg{width:12px;height:12px;stroke-width:1.5}
.scene-card{position:relative}
.scene-card .season-badge,.scene-freeform>.season-badge{position:absolute;top:-8px;right:9px;margin:0;padding:2px 5px;font-size:9px!important;line-height:12px}
.scene-card .season-badge svg,.scene-freeform>.season-badge svg{width:10px;height:10px}
.scene-gallery .scene-freeform{overflow:visible}
.theme-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:52px;padding:10px;border:1px solid #dce1d5;border-radius:9px;text-align:left;background:#fafbf7}
.theme-choice[aria-pressed=true]{border-color:#829b73;background:#edf2e7;box-shadow:inset 0 0 0 1px #829b7322}
.theme-state{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.theme-state i{font-style:normal;font-size:17px}.theme-choice[aria-pressed=true] .theme-state{color:var(--green)}
.theme-hint{font-size:10px;line-height:1.6;color:#858d7d;margin:6px 0 16px}
#outfitThemePriority{margin-top:-8px}#outfitThemeRow{margin-bottom:4px}
@media(max-width:760px){.scene-card .season-badge{right:7px}.scene-freeform>.season-badge{right:7px}}
