.photo-workbench{border:1px solid var(--line);background:#fff;border-radius:20px;min-width:0;padding:24px}.photo-tool-layout{grid-template-columns:minmax(260px,370px) minmax(0,1fr);gap:28px;padding-top:24px;display:grid}.photo-tool-settings,.photo-tool-output{min-width:0}.photo-upload{text-align:center;background:#faf8ff;border:1.5px dashed #d3caed;border-radius:16px;flex-direction:column;align-items:center;gap:12px;margin-bottom:24px;padding:26px 16px;display:flex}.photo-upload strong{font-size:17px}.photo-upload p{color:var(--muted);margin:0;font-size:13px;line-height:1.7}.photo-upload small{color:#91899e;letter-spacing:1px;font-size:11px}.collage-sources{overscroll-behavior:contain;max-height:330px;margin:0 0 22px;padding:0;list-style:none;overflow-y:auto}.collage-sources li{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:9px;padding:10px 0;display:flex}.collage-sources img{object-fit:contain;background:#f3f0f7;border-radius:5px;width:40px;height:40px}.photo-index{width:19px;color:var(--purple);font-size:12px;font-weight:700}.photo-source-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.photo-source-name small{color:var(--muted);margin-top:4px;font-size:10px;display:block}.photo-source-actions{justify-content:flex-end;margin-left:auto;display:flex}.photo-source-actions .icon{width:36px;height:38px}.photo-controls{margin:0}.photo-controls .field{min-height:0;margin-bottom:18px;font-size:13px;display:block}.photo-controls select{width:100%;min-height:46px;color:var(--ink);background:#fff;border:1px solid #ded9ed;border-radius:10px;margin-top:9px;padding:10px;font-size:16px;display:block}.photo-controls input[type=range]{width:100%;min-height:30px;accent-color:var(--purple);background:0 0;border:0;padding:0}.photo-two-fields{grid-template-columns:1fr 1fr;gap:14px;display:grid}.split-presets{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px;display:grid}.split-presets button{background:#faf9fd;border:1px solid #e3ddec;border-radius:9px;min-height:44px;font-size:14px}.split-presets button.active{color:var(--purple);background:#eee9ff;border-color:#9d8ee1;font-weight:700}.collage-preview{background:repeating-conic-gradient(#ebe7f1 0% 25%,#fff 0% 50%) 50%/20px 20px;border:1px solid #e1daee;border-radius:16px;overflow:hidden}.collage-preview-scroll{justify-content:center;align-items:flex-start;min-height:260px;max-height:65vh;display:flex;overflow:auto}.collage-preview-image{width:100%;line-height:0;position:relative}.collage-preview-image>img{width:100%;height:auto;display:block}.photo-placeholder{text-align:center;color:var(--muted);background:#faf8ff;flex-direction:column;justify-content:center;align-self:center;align-items:center;gap:18px;width:100%;min-height:260px;padding:50px 24px;font-size:14px;display:flex}.photo-placeholder p{margin:0;line-height:1.7}.split-overlay{pointer-events:none;display:grid;position:absolute;inset:0}.split-overlay>span{position:relative;box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 2px #30244e88}.split-overlay b{color:#fff;background:#453578da;border-radius:5px;justify-content:center;align-items:center;width:24px;height:24px;font-size:11px;line-height:1;display:flex;position:absolute;top:6px;left:6px}.photo-results{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.photo-results>p{color:#36836c;font-size:14px;line-height:1.6}.photo-results a{text-decoration:none}.photo-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.photo-results article{border:1px solid var(--line);background:#fcfbfe;border-radius:12px;flex-direction:column;gap:9px;min-width:0;padding:12px;display:flex}.photo-tiles img{object-fit:contain;background:#f1eef6;border-radius:8px;width:100%;height:130px}.photo-results article strong{overflow-wrap:anywhere;font-size:12px}.photo-results article small{color:var(--muted);font-size:11px}.photo-results article a{min-height:44px;font-size:12px}.photo-single-result{margin-top:16px}.photo-progress{color:var(--purple);margin-top:18px;font-size:13px}.photo-tool-output .notice{white-space:pre-line;margin-top:18px}.photo-tool-output>.section-title{flex-wrap:wrap;align-items:flex-start}.photo-tool-output .secondary{font-size:12px}.photo-tool-output>.full{margin-top:20px}@media (width<=1000px){.photo-tool-layout{grid-template-columns:1fr}.photo-tool-settings{grid-template-columns:1fr 1fr;align-items:start;gap:18px;display:grid}.photo-tool-settings>.section-title,.photo-tool-settings>.hint,.collage-sources{grid-column:1/-1}.photo-tool-settings>.photo-upload{grid-column:1/-1;margin:0}.photo-controls{grid-column:1/-1}.collage-sources{max-height:260px}.photo-source-actions .icon{width:42px;height:42px}}@media (width<=650px){.photo-workbench{border-radius:16px;padding:16px}.photo-workbench .tool-tabs button{flex:1;padding-inline:8px}.photo-tool-layout{gap:24px;padding-top:18px}.photo-tool-settings{display:block}.photo-upload{margin-bottom:20px!important}.photo-source-actions{flex-basis:100%;margin-top:-4px}.collage-preview-scroll{max-height:58vh}.photo-controls{margin-top:20px}.web-app .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;display:grid}.web-app .sidebar nav button{white-space:normal;flex-direction:column;gap:6px;min-height:65px;min-width:0!important}.sidebar nav button .nav-title{font-size:11px}.sidebar nav button:nth-last-child(-n+2){background-color:#f8f6ff}.sidebar nav button.nav-active{background:#eee9ff}.photo-tool-layout{flex-direction:column;gap:16px;display:flex}.photo-tool-settings,.photo-tool-output{display:contents}.photo-upload{order:0}.photo-tool-output>.section-title{order:1;margin:0}.collage-preview{order:2}.photo-tool-settings>.section-title{order:3;margin:8px 0 0}.collage-sources{order:4;margin:0}.photo-controls{order:5;margin:0}.photo-tool-settings>.hint,.photo-tool-output>.hint{order:6;margin:0}.photo-tool-output>.notice,.photo-progress{order:7}.photo-tool-output>button.full{order:8;margin:0}.photo-results{order:9;margin:0}.photo-tool-settings>.photo-upload{margin-bottom:0!important}}