/* Live photo controls: one image, three tool families, progressive detail. */
.photo-real-button{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;min-height:38px;border:1px solid #5b5b61;border-radius:9px;background:linear-gradient(#39393e,#2a2a2e);box-shadow:inset 0 1px 0 #ffffff16,0 2px 7px #0003;font-size:12px;color:#e4e4e9;white-space:nowrap}
.photo-real-button svg{width:17px;height:17px}.photo-real-button>span:last-child{padding:2px 5px;background:#171719;border-radius:4px;color:#aaaab1;font-size:9px;letter-spacing:.5px}
#photorealisticAnchor{display:contents}.inspector-photo-slot:empty{display:none}.inspector-photo-slot{margin:0 15px 10px}.inspector-photo-slot .photo-real-button{width:100%;justify-content:center}.preview-caption{flex-wrap:wrap}#useResultAsSourceButton{border:1px solid #82744d;border-radius:5px;padding:4px 7px;color:#f0df9b}
.photo-real-button[aria-pressed=true]{border-color:#c8b77b;background:linear-gradient(#514b34,#363326);color:#fff2bf}.photo-real-button[aria-pressed=true]>span:last-child{background:#e8dcaa;color:#34301d}
#livePreviewCanvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
#livePreviewCanvas[aria-busy=true]{opacity:.78}.preview-busy{position:absolute;top:10px;left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:20px;background:#18181be8;color:#d3d3db;font-size:10px;pointer-events:none}
.preview-caption{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:31px;flex:none;padding:6px 11px;border-top:1px solid #35353a;background:#212124;color:#b3b3bd;font-size:10px}.preview-caption .text-button{font-size:10px;white-space:nowrap;color:#d0c597}
.preview-explanation{padding:10px 12px;background:#2a2924;border-top:1px solid #514d3c;font-size:11px;line-height:1.55;color:#d2cfc2;max-height:110px;overflow:auto;flex:none}
.material-intent{position:absolute;bottom:12px;right:12px;max-width:calc(100% - 24px);display:flex;align-items:center;gap:9px;background:#171719ed;border:1px solid #8b7c52;border-radius:9px;padding:6px 10px 6px 6px;pointer-events:none}.material-intent img{width:52px;height:52px;object-fit:cover;border-radius:5px}.material-intent strong{display:block;font-weight:550;font-size:12px}.material-intent span{display:block;color:#d2c397;font-size:10px;margin-top:5px}
.inspector-tabs{flex:none}.inspector-tabs button{flex:1;min-width:0;padding:9px 5px;font-size:12px}.inspector-live{display:none}.settings-summary-heading{font-size:11px}.selected-summary{max-height:58px;overflow:auto}
#adjustmentsPanel details{padding:12px 0;border-bottom:1px solid #414146}#adjustmentsPanel summary{font-size:13px;font-weight:550;cursor:pointer;margin-bottom:12px;list-style:none;display:flex;justify-content:space-between}#adjustmentsPanel summary:after{content:'+';color:#92929b}#adjustmentsPanel details[open] summary:after{content:'−'}#adjustmentsPanel .field-help{font-size:11px;margin-bottom:8px}#resetLiveAdjustments{margin-top:14px;margin-bottom:10px;font-size:12px}
.preset-card{position:relative}.preset-card .preset-preview-tag{position:absolute;top:6px;left:6px;font-size:9px;padding:3px 5px;border-radius:4px;background:#111b;color:#f4f0df;pointer-events:none}
#cameraPanel .field-help{font-size:11px}#cameraPanel .field-pair select{font-size:12px}.camera-profile-note{font-size:11px;line-height:1.5}
.stage-toolbar>#stageLabel{flex:1;max-width:24%;font-size:11px}.stage-switch{flex-shrink:0}.stage-actions{flex-shrink:0;gap:4px}.stage-actions #downloadButton{font-size:11px;padding:7px 9px}.stage-actions #editResultButton .button-label{display:none}.stage-actions #editResultButton{width:32px;padding:6px}
.retouch-controls .inspector-heading{gap:8px}.retouch-controls .inspector-heading>div{flex:1}.retouch-controls #photoAutoAdjust{font-size:11px;padding:6px 9px}
@media(max-width:1100px){
 .inspector-live{display:block;position:relative;height:148px;flex:none;background:#111113;margin:0 15px 10px;border:1px solid #434349;border-radius:9px;overflow:hidden}.inspector-live canvas{width:100%;height:100%;object-fit:contain}.inspector-live>span{position:absolute;bottom:7px;left:8px;padding:3px 5px;border-radius:4px;background:#111c;font-size:9px;color:#d1d1d7}.inspector-live>button{position:absolute;right:7px;bottom:7px;background:#29292de8;border:1px solid #73737b;border-radius:5px;padding:4px 7px;font-size:10px;color:#f0f0f5}
 #settingsPanel .inspector-heading{padding:12px 16px}.inspector-tabs{margin-bottom:10px}.settings-footer{padding:10px 15px}.settings-scroll{min-height:110px}
}
@media(max-width:760px){
 #generateView>.view-heading{flex-wrap:wrap;gap:10px}#generateView>.view-heading>div:first-child{width:100%}#generateView>.view-heading p{max-width:none}.view-heading-actions{width:100%;justify-content:space-between}.photo-real-button{min-height:36px;font-size:12px;padding:7px 10px}
 #settingsToggle{padding:8px 12px;font-size:12px}.hero-result{height:310px;min-height:310px}.stage-toolbar>#stageLabel{display:none}.stage-toolbar{gap:4px;padding:6px}.stage-switch button{font-size:11px;padding:5px 7px}.stage-actions #downloadButton{font-size:0;padding:5px}.stage-actions #editResultButton{width:28px;padding:5px}.preview-caption{font-size:9px;padding:6px 8px}.preview-caption .text-button{font-size:9px}.preview-explanation{font-size:10px}.material-intent img{width:40px;height:40px}
 .inspector-live{height:155px;margin-bottom:10px}#settingsPanel .inspector-heading h2{font-size:16px}#settingsPanel .inspector-heading span{font-size:11px}.inspector-tabs button{font-size:12px;padding:8px 4px}#settingsPanel .field-help{font-size:11px}.settings-footer{padding:9px 15px}.selected-summary{max-height:43px}.preset-card img{height:75px}.preset-card>span{font-size:12px;padding:8px}#adjustmentsPanel summary{font-size:14px}
 #retouchView.active .retouch-stage-column{position:sticky;top:0;z-index:3;background:#0c0c0d;padding-bottom:8px;box-shadow:0 9px 16px #0009}.retouch-stage{height:min(230px,30svh);min-height:min(230px,30svh)}
}
@media(max-height:660px) and (max-width:1100px){.inspector-live{height:90px}.settings-summary-heading{display:none}#settingsPanel .inspector-heading span{display:none}.selected-summary{max-height:24px}}
