.simple-more-settings{min-width:0;margin:18px 0;border:2px solid #d9c9e8;background:#fffdf7;border-radius:5px;padding:0 18px;scroll-margin-top:16px}.simple-more-settings>summary{min-height:58px;cursor:pointer;padding:16px 0;font-size:14px;font-weight:700;color:#624679}.simple-more-settings>summary span{font-size:12px;font-weight:400;color:#8a769a;margin-left:14px}.simple-more-actions{display:flex;flex-wrap:wrap;gap:12px;margin:4px 0 18px}.simple-more-actions .btn{min-height:44px;white-space:normal}.simple-view-settings{padding:0 0 14px}.simple-display-options{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0}.simple-display-options label{min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px}.simple-more-links{display:flex;flex-wrap:wrap;gap:18px}.simple-more-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:#76528e}.simple-pending{padding:14px;border:2px solid #d7ac5a;background:#fff6d9;margin:0 0 16px;font-size:13px;line-height:1.8}.simple-pending p{margin:0 0 10px}.simple-pending[hidden]{display:none!important}.home-trial-link{font-size:13px;padding:18px 0;color:#796488}
body[data-studio-mode=simple][data-studio-page=editor] #studioWorkspace{grid-template-columns:minmax(0,1fr);gap:14px}
body[data-studio-mode=simple][data-studio-page=editor] #editor{grid-column:1;grid-row:3}
body[data-studio-mode=simple][data-studio-page=editor] #simpleMoreSettings{grid-column:1;grid-row:4;margin:0}
body[data-studio-mode=simple][data-adjustments=open] #compositionPanel{grid-row:5}
body[data-studio-mode=simple] #simpleMoreSettings #creationSettings{padding:18px 0;margin:0;border:0;box-shadow:none;background:transparent}
body[data-studio-mode=simple] #simpleMoreSettings .generation-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body[data-studio-mode=simple] #generationResultColumn{grid-column:1/-1}
body[data-studio-mode=simple] #generationStartMaking,body[data-studio-mode=simple] #makingPlan,body[data-studio-mode=simple] #patternPanel .mini-caption,body[data-studio-mode=simple] #patternPanel .canvas-bottom,body[data-studio-mode=simple] .preview-save-actions>a,body[data-studio-mode=simple][data-studio-page=editor] #saveProjectBtn{display:none}
body[data-studio-mode=simple] .photo-quality{padding:12px;margin-bottom:12px}
body[data-studio-mode=simple] .photo-quality-heading{margin-bottom:8px}
body[data-studio-mode=simple] .photo-quality-choices button{padding:9px 5px;min-height:80px}
body[data-studio-mode=simple] .photo-quality-choices button strong{font-size:13px}
body[data-studio-mode=simple] .photo-plan-metrics{font-size:11px}
body[data-studio-mode=simple] #photoQualityHint{margin-top:7px}
body[data-studio-mode=simple] .canvas-stage{min-height:160px;max-height:410px;padding:16px;overflow:auto}
body[data-studio-mode=simple] #patternPanel .canvas-label{display:none}
body[data-studio-mode=simple] #patternExportPanel{margin-top:12px}
body[data-studio-mode=simple] #patternExportPanel h3{font-size:14px;margin:10px 0 12px}
body[data-studio-mode=simple] .preview-save-actions{margin-top:12px}
body[data-studio-mode=simple] .preview-storage-note{margin-top:7px}
body[data-studio-mode=full] #simpleMoreSettings{padding:0;border:0;background:transparent;box-shadow:none}
body[data-studio-mode=full] #simpleMoreSettings>summary,body[data-studio-mode=full] #simplePending{display:none}
body:not([data-studio-page=editor]) #simpleMoreSettings{display:none}
@media(min-width:1000px){body[data-studio-mode=simple][data-studio-page=editor] #editor{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:18px;align-items:start}body[data-studio-mode=simple][data-studio-page=editor] #editor>.right-rail{margin:0}body[data-studio-mode=simple] .stats-panel .stats-grid{grid-template-columns:1fr 1fr}body[data-studio-mode=simple] .stats-panel .stat{padding:12px 8px}body[data-studio-mode=simple] .stats-panel .stat strong{font-size:23px}}
@media(max-width:760px){.simple-more-settings{padding:0 14px}.simple-more-settings>summary span{display:block;margin:5px 0 0;font-size:11px}.simple-more-actions .btn{flex:1 1 130px}body[data-studio-mode=simple] #simpleMoreSettings .generation-layout{grid-template-columns:1fr}body[data-studio-mode=simple] .canvas-stage{max-height:320px;padding:12px}body[data-studio-mode=simple] .studio-shell-toolbar{flex-direction:row;align-items:center;padding:14px 0 0}body[data-studio-mode=simple] .studio-shell-toolbar h1{font-size:20px}body[data-studio-mode=simple] .studio-shell-actions{width:auto;flex-shrink:0}body[data-studio-mode=simple] #changeSourceBtn{min-height:44px;padding:8px 10px}body[data-studio-mode=simple] #quickPatternSummary{font-size:11px;max-width:240px;overflow-wrap:anywhere}body[data-studio-mode=simple] .creator-flow a{font-size:10px}body[data-studio-mode=simple] #patternExportPanel .export-actions{position:fixed;bottom:0;left:0;right:0;z-index:25;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#fff9e9;border-top:2px solid #baa1d2;box-shadow:0 -3px 10px #48325512}body[data-studio-mode=simple] #patternExportPanel .export-actions .btn{min-height:48px;padding:9px 6px;font-size:12px}body[data-studio-mode=simple][data-studio-page=editor]{padding-bottom:85px}body[data-studio-mode=simple] .preview-save-actions .btn{width:100%}body[data-studio-mode=simple] #patternExportPanel h3{display:none}}
@media print{.simple-more-settings,.simple-pending{display:none!important}}
.preview-save-receipt{margin:14px 0 8px;padding:14px;background:#edf8ef;border:2px solid #9dc8a8;font-size:13px;line-height:1.8}.preview-save-receipt p{margin:0 0 10px;color:#3e7150}.preview-save-receipt .btn{min-height:44px}body[data-studio-mode=simple] #previewSaveReceipt>a{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:760px){.preview-save-receipt .btn{width:100%}}
@media print{.preview-save-receipt{display:none!important}}
.home-pixel-hint{margin:14px 0;color:#77578e;line-height:1.8}.home-pixel-hint strong,.home-pixel-hint span{display:block}.home-pixel-hint strong{font-size:14px;color:#62407f}.home-pixel-hint span{font-size:12px;margin-top:3px}.home-start-links{grid-template-columns:minmax(0,1fr)}.photo-style-panel{min-width:0;margin:14px 0;padding:16px;border:2px solid #baa0d9;background:#f7f0ff;border-radius:5px;scroll-margin-top:18px}.photo-style-panel[hidden]{display:none!important}.photo-style-panel h3{font-size:16px;line-height:1.6;margin:0;color:#51356e}.photo-style-intro{font-size:13px;line-height:1.8;color:#705384;margin:6px 0 12px}.photo-style-panel .photo-style-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.photo-style-panel .photo-style-choices button{min-width:0;font-size:13px;line-height:1.5;padding:10px 8px}.photo-style-panel #openAiRedrawBtn{background:#7850c7;border:2px solid #624096;color:#fff;font-weight:700;box-shadow:2px 2px 0 #d8c5eb}.photo-style-note{font-size:11px;line-height:1.8;color:#846e95;margin:12px 0 0}
@media(max-width:760px){.photo-style-panel{padding:12px}.photo-style-panel h3{font-size:15px}.photo-style-panel .photo-style-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-style-panel #openAiRedrawBtn{grid-column:1/-1}.mobile-studio-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media print{.photo-style-panel{display:none!important}}

.subject-focus-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:14px 16px;background:#f1f7ec;border:1px solid #bcd1a9;border-radius:5px}.subject-focus-panel[hidden]{display:none!important}.subject-focus-panel h3{font-size:14px;margin:0 0 5px;color:#47643a}.subject-focus-panel p{font-size:12px;line-height:1.7;margin:0;color:#65775a}.subject-focus-panel .btn{flex-shrink:0;min-height:44px}.photo-quality-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.photo-plan-size{line-height:1.5;color:#756383}.photo-quality-choices button{min-width:0;overflow-wrap:anywhere}body[data-studio-page=editor][data-adjustments=open] #compositionPanel{grid-row:3;grid-column:1/-1}body[data-studio-page=editor][data-adjustments=open] #editor{grid-row:4;grid-column:1/-1}body[data-studio-page=editor][data-adjustments=open] #simpleMoreSettings{grid-row:5;grid-column:1/-1}
@media(max-width:760px){.mobile-studio-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-quality-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-focus-panel{align-items:stretch;flex-direction:column;gap:10px;padding:12px}.subject-focus-panel .btn{align-self:flex-start}.photo-quality-heading{flex-wrap:wrap}body[data-studio-mode=simple][data-adjustments=open] #patternExportPanel .export-actions{display:none}body[data-studio-mode=simple][data-adjustments=open]{padding-bottom:16px}}
@media print{.subject-focus-panel{display:none!important}}

/* Keep the first result in view; detailed decisions stay beside or below it. */
body[data-studio-mode=simple] .photo-style-panel{margin:4px 0 10px;padding:12px 14px}
body[data-studio-mode=simple] .photo-style-panel h3{font-size:14px}
body[data-studio-mode=simple] .photo-style-intro{display:none}
body[data-studio-mode=simple] .photo-style-panel .photo-style-choices{margin-top:8px}
body[data-studio-mode=simple] .photo-style-note{margin-top:8px}
.preview-zoom-controls{flex-wrap:wrap;gap:8px 14px}
.preview-zoom-controls .preview-quick-actions{flex-wrap:wrap;gap:8px}
.preview-quick-actions>span{font-weight:700;color:#624679}
.preview-quick-actions [hidden]{display:none!important}
.photo-plan-details{min-width:0;margin:16px 0 0;padding:0 14px;border:2px solid #d9c9e8;background:#fffdf7;border-radius:5px;scroll-margin-top:18px}
.photo-plan-details[hidden]{display:none!important}
.photo-plan-details>summary{min-height:56px;padding:13px 0;cursor:pointer;font-size:14px;font-weight:700;line-height:1.7;color:#624679}
.photo-plan-details>summary span{display:block;margin:3px 0 0 17px;font-size:12px;font-weight:400;line-height:1.6;color:#796488;overflow-wrap:anywhere}
.photo-plan-details[open]>summary{border-bottom:1px solid #e4d8ed}
.photo-plan-details .photo-quality{margin:12px 0;padding:12px;background:#f7f2fd}
.photo-plan-details .photo-quality-heading{line-height:1.6}
.photo-plan-details .photo-quality-choices{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.photo-plan-details .photo-quality-choices button{display:flex;flex-direction:column;align-items:center;min-width:0;padding:12px 7px;gap:3px}
.photo-plan-details .photo-plan-preview{display:block;width:min(100%,110px);height:90px;object-fit:contain;image-rendering:pixelated;margin:7px auto;background:#fff}
.photo-plan-details .photo-plan-suggestion{display:block;margin-top:5px;padding:5px 6px;border-radius:3px;background:#edf5e8;color:#47643a;font-size:11px;font-weight:500;line-height:1.5}
.material-list-details{min-width:0;margin-top:12px;border-top:1px solid #e3d8ec}
.material-list-details>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;font-weight:700;line-height:1.6;color:#624679}
.material-list-details[open]>summary{padding-bottom:4px}
.material-list-details .list-head{margin-top:4px}
.photo-plan-details>summary:focus-visible,.material-list-details>summary:focus-visible{outline:3px solid #8c58bd;outline-offset:3px}
@media(max-width:760px){
  body[data-studio-mode=simple] .photo-style-panel{padding:10px}
  .preview-zoom-controls .btn{padding:8px;min-height:44px}
  .preview-zoom-controls>div{min-width:0}
  .photo-plan-details{padding:0 10px}
  .photo-plan-details>summary{font-size:13px}
  .photo-plan-details>summary span{font-size:11px}
  .photo-plan-details .photo-quality{padding:10px}
  .photo-plan-details .photo-quality-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-plan-details .photo-plan-preview{height:80px}
  .photo-plan-details .photo-quality-choices button{padding:10px 5px}
}
@media print{.photo-plan-details,.material-list-details{display:none!important}}
