.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:22px;align-items:start}.photo-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:690px;overflow:auto;padding:4px}.photo-source-grid button{position:relative;padding:8px;min-width:0}.photo-source-grid button.selected{border:2px solid #247c5f;background:#eef7f1}.photo-source-grid img{display:block;width:100%;height:115px;object-fit:contain;border-radius:8px;background:#f6f7f4}.photo-source-grid span{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:9px}.photo-source-grid b{position:absolute;top:6px;right:6px;background:#217c5f;color:white;border-radius:50%;padding:2px 6px}.photo-upload{display:flex;align-items:center;justify-content:center;gap:9px;border:1px dashed #9cbda9;border-radius:12px;padding:18px;color:#267659;cursor:pointer;background:#f4f9f5}.photo-upload input{max-width:100%;width:200px;font-size:11px;border:0;background:transparent}.photo-template-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.photo-template-grid button{padding:7px 4px;font-size:10px}.photo-template-grid button.active{border-color:#247c5f;background:#eaf4ee}.photo-template-grid i{display:grid;place-items:center;height:50px;border-radius:8px;margin-bottom:8px;color:#52775e}.photo-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-fields>*{min-width:0}.photo-checks{display:flex;flex-wrap:wrap;gap:12px;margin:17px 0;font-size:12px;line-height:1.8}.photo-checks input{accent-color:#267659}.photo-slider{display:block;font-size:12px;color:#61766a;margin:15px 0}.photo-slider output{float:right;font-variant-numeric:tabular-nums}.photo-slider input{display:block;width:100%;padding:0;margin-top:9px;accent-color:#267659}.photo-history{margin-top:24px}.photo-job{padding:18px 0;border-bottom:1px solid #e5ece6}.photo-job:last-child{border:0}.photo-output-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px;margin:18px 0}.photo-output-preview{padding:6px;width:100%;background:repeating-conic-gradient(#eef0ed 0% 25%,#fff 0% 50%) 50%/16px 16px}.photo-output-preview img{display:block;width:100%;height:180px;object-fit:contain}.photo-output-grid .download,.photo-output-grid button{font-size:11px}.photo-compare{display:grid;grid-template-columns:1fr 1fr;gap:15px}.photo-compare figure{margin:0;min-width:0;text-align:center}.photo-compare img{width:100%;height:310px;object-fit:contain;background:#f2f5f0}.photo-compare figcaption{padding:12px;color:#637a6a}#photo-error,#photo-apply-error{color:#9b5a3d}@media(max-width:1000px){.photo-layout{grid-template-columns:1fr}.photo-source-grid{max-height:360px;grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.photo-layout{gap:15px}.photo-source-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:330px}.photo-source-grid img{height:90px}.photo-template-grid{gap:4px}.photo-template-grid button{font-size:9px}.photo-output-grid{grid-template-columns:1fr 1fr}.photo-upload{flex-wrap:wrap;padding:12px}.photo-compare img{height:210px}.photo-fields{gap:8px}.photo-history{padding:15px}.photo-upload input{width:100%}}
.main-photo-tools{border-top:1px solid #dce5dd;margin-top:18px;padding-top:12px}.main-photo-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.main-photo-presets button{font-size:11px;padding:10px 5px;display:grid;justify-items:center;gap:8px;transition:transform .18s,box-shadow .18s}.main-photo-presets button:hover{transform:translateY(-2px);box-shadow:0 5px 16px #1e51341f}.main-photo-tools details{border:1px solid #dce5dd;border-radius:12px;padding:12px;margin:12px 0}.main-photo-tools summary{cursor:pointer;font-weight:600}.main-photo-preview{margin-top:20px;border-top:1px solid #dce5dd;padding-top:14px}.main-photo-preview .section-title{flex-wrap:wrap}.main-photo-preview .section-title span{font-size:11px;color:#65806d}#main-photo-canvas{position:relative;aspect-ratio:1;overflow:hidden;isolation:isolate;width:100%;max-height:650px;border:1px solid #d8e1d8;container-type:inline-size}#main-photo-canvas>*{position:absolute}#main-photo-product{object-fit:contain;cursor:move;user-select:none}#main-photo-title,#main-photo-subtitle,#main-photo-badge{transform:translateX(-50%);white-space:nowrap;max-width:94%;overflow:hidden;text-overflow:ellipsis;cursor:move;line-height:1.4;font-family:'Noto Sans CJK SC','Microsoft YaHei',sans-serif}#main-photo-badge{padding:.12em .35em;border-radius:.2em}#main-photo-features{bottom:1%;left:4%;width:92%;text-align:center;font-size:2.2cqw;white-space:nowrap}.main-photo-pedestal{left:8%;top:73%;width:84%;height:17%;background:#ffffff91;border-radius:20px}.main-photo-preview p,.main-photo-tools>p{font-size:11px;color:#63776b;line-height:1.7}.main-photo-tools .actions{flex-wrap:wrap}.main-photo-tools .photo-checks{margin:10px 0}.photo-sources .photo-source-grid{max-height:320px}.main-photo-tools textarea{width:100%}@media(max-width:600px){.main-photo-presets{grid-template-columns:repeat(2,minmax(0,1fr))}#main-photo-canvas{max-height:none}.main-photo-tools .actions button{font-size:11px}.photo-sources .photo-source-grid{max-height:230px}}
.pro-photo-shell{position:fixed;inset:0;z-index:10000;background:#20252a;color:#f1f3f5;display:flex;flex-direction:column}.pro-photo-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;background:#17251f}.pro-photo-header strong{margin-right:auto}.pro-photo-header button{font-size:12px;padding:8px 12px}.pro-photo-shell #pro-status{margin:5px 12px;font-size:12px;min-height:20px}.pro-tip{font-size:11px;padding:5px 12px;color:#c9d8cd}.pro-photo-shell iframe{width:100%;flex:1;min-height:0;border:0;background:#303030}@media(max-width:600px){.pro-photo-header strong{width:100%;font-size:13px}.pro-photo-header button{font-size:10px;padding:6px}.pro-tip{font-size:10px}}
.production-workflow{margin:24px 0}.production-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.production-columns>section{min-width:0;padding:14px;border:1px solid #dce5dd;border-radius:12px}.production-columns p{font-size:12px;line-height:1.7}.production-columns details{margin:12px 0}.production-workflow pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f2f6f0;padding:12px;border-radius:9px}.production-workflow .download{display:inline-block;margin:6px 8px 6px 0;overflow-wrap:anywhere}.production-workflow input[type=file]{max-width:100%}@media(max-width:1100px){.production-columns{grid-template-columns:1fr}.production-columns>section{padding:16px}}@media(max-width:600px){.production-workflow{padding:14px}.production-columns{gap:14px}}

.ai-image-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;margin:12px 0}.ai-image-previews figure{margin:0;min-width:0;padding:8px;border:1px solid #ddd;border-radius:12px}.ai-image-previews img{display:block;width:100%;height:120px;object-fit:contain;border-radius:8px}.ai-image-previews figcaption{overflow-wrap:anywhere;font-size:12px;margin:8px 0}.ai-image-previews a:hover img{filter:brightness(1.06)}
