:root{color-scheme:light;--ink:#242e2a;--muted:#6d7770;--line:#dce1dc;--accent:#265f49;--tint:#e8f1eb;--bg:#f6f7f5;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:40px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12px;font-weight:650;line-height:1.3}button:hover:enabled{border-color:#93a89a;background:#f4f7f4}button:disabled{opacity:.42;cursor:not-allowed}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover:enabled{background:#1b4c39;border-color:#1b4c39}button[aria-pressed=true],button[aria-selected=true]{color:var(--accent);background:var(--tint);border-color:#9bbba7}a{color:var(--accent)}:focus-visible{outline:3px solid #709d82;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h2{font-size:17px;letter-spacing:-.02em}p{line-height:1.6}.shell{width:min(1180px,calc(100% - 40px));margin:auto}.skip-link{position:fixed;left:16px;top:-100px;z-index:1000;background:#fff;padding:12px}.skip-link:focus{top:12px}.visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.collage-app{max-width:1840px;margin:auto;padding:24px 28px 0;scroll-margin-top:88px}.app-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.app-heading{display:flex;align-items:center;gap:14px}.app-heading h1{margin:0;font-size:28px;font-weight:650;letter-spacing:-.055em}.local-badge{font-size:10px;font-weight:650;color:var(--accent);background:var(--tint);border-radius:4px;padding:5px 7px}.app-bar p{font-size:12px;color:var(--muted);margin:5px 0 0}.app-actions{display:flex;gap:6px;align-items:center}.app-actions .primary{margin-left:8px;min-width:106px}.icon-button{font-size:22px;width:40px;min-width:40px;padding:3px}.workflow{display:flex;gap:24px;align-items:center;font-size:11px;color:var(--muted);padding-bottom:14px}.workflow b{display:inline-grid;place-items:center;border:1px solid #c7cfc8;border-radius:50%;width:18px;height:18px;margin-right:5px;font-size:10px;font-weight:500}.workflow .privacy-note{margin-left:auto;font-size:11px}
.editor{display:grid;grid-template-columns:244px minmax(0,1fr) 256px;border:1px solid var(--line);border-radius:10px;overflow:hidden;height:clamp(590px,calc(100dvh - 222px),1050px);background:#fff}.panel{padding:18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;min-width:0}.left-panel{border-right:1px solid var(--line)}.right-panel{border-left:1px solid var(--line)}.sheet-heading{display:none}.tabs{display:flex;gap:4px;background:#f2f4f1;padding:3px;border-radius:7px;margin-bottom:18px}.tabs button{flex:1;border-color:transparent;min-height:36px}.tabs button[aria-selected=true]{background:#fff;box-shadow:0 1px 3px #192d1710;color:var(--ink)}.add-button{width:100%;border-style:dashed;min-height:44px}.panel-help{font-size:11px;color:var(--muted);margin:10px 0 14px}.empty-library{font-size:12px;color:var(--muted);text-align:center;padding:40px 12px}.photo-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-card{position:relative;min-width:0}.photo-select{padding:0;width:100%;aspect-ratio:1;border:2px solid transparent;background:#eef1ec;overflow:hidden;position:relative}.photo-select img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.photo-select[aria-pressed=true]{border-color:var(--accent)}.photo-number{position:absolute;bottom:4px;left:4px;background:#fffe;padding:2px 6px;border-radius:4px;font-size:10px;color:#27342b}.photo-caption{display:block;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 0 7px}.photo-card.drop-target{outline:3px solid var(--accent);outline-offset:2px}.text-button{background:transparent;border-color:transparent;padding:6px 3px;min-height:32px;font-size:11px;color:var(--muted)}#clear{margin-top:12px}.layout-actions{display:flex;gap:6px}.layout-actions button{flex:1;padding:7px;font-size:11px}.layout-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.layout-option{padding:5px;min-width:0;text-align:left;position:relative;border-radius:7px}.layout-option canvas{width:100%;aspect-ratio:1;display:block;object-fit:contain;background:#edf0ec;border-radius:2px}.layout-option span{display:block;font-size:10px;margin:6px 1px 1px;font-weight:600}.layout-option small{font-size:9px;color:var(--muted);font-weight:400;display:block;margin:2px 1px}.layout-option[aria-pressed=true]{border:2px solid var(--accent);padding:4px}
.preview-panel{background:#e9ede8;display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 24px}.preview-bar{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#718075;font-size:11px;flex-shrink:0}.canvas-stage{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;position:relative;padding:12px 0}.canvas-stage.drag-over{outline:3px dashed var(--accent);outline-offset:-5px}.canvas-wrap{position:relative;flex-shrink:0;box-shadow:0 3px 18px #24302718;background:#fff;max-width:100%;max-height:100%}.canvas-wrap canvas{display:block;width:100%;height:100%}.photo-overlay{position:absolute;inset:0}.photo-cell{position:absolute;outline:none;touch-action:pan-y;cursor:grab;border:0;background:transparent;border-radius:0;padding:0;min-height:0}.photo-cell:hover{box-shadow:inset 0 0 0 1px #fff9}.photo-cell.is-selected{box-shadow:inset 0 0 0 2px #fff,inset 0 0 0 4px var(--accent)}.photo-cell:focus-visible{outline:3px solid #fff;outline-offset:-5px}.photo-cell.drop-target{background:#265f4944;box-shadow:inset 0 0 0 4px #ebffef}.photo-cell.is-cropping{touch-action:none;cursor:move}.swap-grip{position:absolute;top:5px;right:5px;min-width:44px;min-height:36px;padding:5px;background:#ffff;border:1px solid #c4d4c8;border-radius:5px;font-size:10px;cursor:grab;touch-action:none;opacity:0;box-shadow:0 1px 4px #12251625}.photo-cell:hover .swap-grip,.photo-cell.is-selected .swap-grip,.swap-grip:focus-visible{opacity:1}.swap-grip:active{cursor:grabbing}.is-swapping .photo-cell{cursor:crosshair}.is-swapping .swap-grip{display:none}.empty-state{text-align:center;width:min(360px,100%);padding:12px}.empty-state h2{font-size:22px;letter-spacing:-.045em;margin:24px 0 9px}.empty-state p{font-size:13px;color:var(--muted);margin-bottom:22px}.empty-state .primary{min-width:142px;min-height:44px}.empty-state .small{font-size:10px;margin:12px 0}.empty-state .privacy{margin-top:32px;color:#59725e}.empty-art{width:106px;height:96px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:1fr 1fr;gap:4px;padding:7px;background:#fff;box-shadow:0 3px 8px #122a1620;transform:rotate(-5deg)}.empty-art span{background:#a2b5a4}.empty-art span:first-child{grid-row:span 2;background:#6d897b}.empty-art span:last-child{background:#d0c6ae}.canvas-help{font-size:11px;line-height:1.5;color:#617168;text-align:center;margin:12px 0 4px;flex-shrink:0}.status{font-size:12px;line-height:1.5;color:var(--muted);min-height:18px;margin:6px 0 14px;overflow-wrap:anywhere}.preview-panel>.status{text-align:center;font-size:11px;flex-shrink:0}.status.error{color:#a63223;background:#fff0eb;padding:8px;border-radius:5px}.selection-actions{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:12px;flex-shrink:0}.selection-actions strong{font-size:11px;margin-right:5px}.selection-actions button{min-height:34px;padding:6px 9px;font-size:11px}
.right-panel h2{font-size:12px;font-weight:700;margin-bottom:14px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.section-heading h2{margin:0}.filename{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin:5px 0 12px}.right-panel section:not([hidden])+section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.shape-list{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.shape-option{min-width:0;padding:8px 2px 6px;font-size:9px;border-radius:6px}.shape-icon{display:block;border:1px solid #718276;border-radius:1px;height:19px;max-width:34px;margin:0 auto 7px;aspect-ratio:var(--ratio)}.shape-option span:last-child{display:block;color:var(--muted);font-size:8px;margin-top:3px}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:11px;font-weight:600;min-width:0}.field>span{display:flex;align-items:center;justify-content:space-between;gap:6px}.field output{color:var(--muted);font-size:10px;font-weight:400}.field input:not([type=range]):not([type=color]),.field select,.field textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:5px;background:#fff;padding:9px;font-size:12px;min-height:38px}.field textarea{resize:vertical;max-height:130px}.field small{font-size:10px;font-weight:400;color:var(--muted)}input[type=range]{width:100%;margin:5px 0;accent-color:var(--accent);height:18px}.color-field{flex-direction:row;align-items:center;justify-content:space-between}.color-field input{height:32px;width:46px;border:1px solid var(--line);border-radius:4px;background:transparent;padding:2px}.looks{display:flex;gap:5px;flex-wrap:wrap;margin:4px 0 15px}.looks button{font-size:10px;min-height:30px;padding:5px 8px}.right-panel details{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.right-panel summary{font-size:12px;font-weight:650;cursor:pointer;margin-bottom:14px}.button-pair{display:flex;gap:7px}.button-pair>button,.button-pair>.field{flex:1;min-width:0}.button-pair+.button-pair{margin-top:8px}.button-pair>button{font-size:11px;padding:8px}.segmented{display:flex;gap:5px}.segmented button{flex:1}.check{display:flex;align-items:center;gap:7px;font-size:12px}.check input{accent-color:var(--accent)}.mobile-toolbar{display:none}
.guide{padding:60px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1.25fr;gap:70px}.guide h2{font-size:26px;font-weight:600;line-height:1.3;letter-spacing:-.04em}.guide p,.faq p{font-size:14px;line-height:1.8;color:var(--muted)}.eyebrow{font-size:10px!important;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)!important;margin-bottom:15px}.steps{list-style:none;margin:0;padding:0;counter-reset:step}.steps li{position:relative;padding-left:40px;margin-bottom:23px;counter-increment:step}.steps li:before{content:counter(step);position:absolute;left:0;top:1px;border:1px solid #c8d3c9;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:11px}.steps h3{font-size:14px;margin-bottom:5px}.steps p{margin-bottom:0;font-size:13px}.features{grid-template-columns:repeat(3,1fr);gap:40px}.features h2{font-size:18px}.features p{font-size:13px}.faq{padding:55px 0}.faq h2{font-size:26px;font-weight:600;letter-spacing:-.03em}.faq details{border-bottom:1px solid var(--line);padding:16px 0}.faq summary{font-size:14px;font-weight:600;cursor:pointer;line-height:1.5}.faq p{margin:12px 0 2px;max-width:860px}.related{padding-bottom:50px;display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.related h2{flex-basis:100%;margin-bottom:0;font-size:15px}.related a{text-decoration-thickness:1px;text-underline-offset:3px}
dialog{border:1px solid var(--line);border-radius:12px;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;color:var(--ink);box-shadow:0 12px 60px #13251b25}dialog::backdrop{background:#19271f66}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid var(--line)}.dialog-header h2{margin:0;font-size:18px}.export-body{padding:8px 22px 20px}.export-body .field{font-size:12px}.export-actions{display:flex;gap:8px}.export-actions button:first-child{flex:1}.export-dimensions{font-size:20px;font-weight:600;letter-spacing:-.025em;margin:20px 0 5px}.export-body .status{margin-bottom:12px}.sheet-backdrop{display:none}
@media(min-width:1800px){.editor{grid-template-columns:270px minmax(0,1fr) 280px}.panel{padding:22px}}
@media(max-width:1100px) and (min-width:901px){.collage-app{padding:18px 16px 0}.editor{grid-template-columns:204px minmax(0,1fr) 224px}.panel{padding:13px}.preview-panel{padding:0 14px}.workflow .privacy-note{display:none}.app-heading h1{font-size:25px}.layout-list{gap:8px}}
@media(max-width:900px){.shell{width:calc(100% - 32px)}header .nav-links>a:not(.nav-pill){display:none}.collage-app{padding:15px 12px 0}.app-bar{margin-bottom:12px}.app-heading h1{font-size:22px}.local-badge{display:none}.app-actions{gap:4px}.app-actions .primary{min-width:76px;margin-left:2px;padding:8px}.icon-button{width:36px;min-width:36px}.app-bar p{font-size:10px}.workflow{font-size:9px;gap:12px;padding-bottom:12px;justify-content:center}.workflow b{width:16px;height:16px;font-size:9px;margin-right:3px}.workflow .privacy-note{display:none}.editor{display:flex;flex-direction:column;height:clamp(380px,calc(100dvh - 238px),880px);border-radius:8px;min-height:0}.preview-panel{flex:1;padding:0 14px}.preview-bar{min-height:34px;font-size:10px}.canvas-stage{padding:6px 0}.empty-state h2{font-size:20px;margin:16px 0 7px}.empty-state p{font-size:12px;margin-bottom:16px}.empty-art{width:80px;height:74px}.empty-state .privacy{margin-top:16px}.empty-state .small{font-size:9px}.panel{display:none;position:fixed;inset:auto 0 0;max-height:min(64dvh,580px);z-index:210;background:#fff;border-radius:18px 18px 0 0;padding:12px 20px calc(18px + env(safe-area-inset-bottom));border:1px solid var(--line);box-shadow:0 -10px 40px #12261725}.panel.sheet-open{display:block}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px}.sheet-close{min-width:44px;min-height:44px}.sheet-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#12261738;z-index:200}.photo-list{grid-template-columns:repeat(4,1fr)}.layout-list{grid-template-columns:repeat(3,1fr)}.layout-option canvas{aspect-ratio:1.2}.panel .empty-library{padding:16px}.panel .shape-list{grid-template-columns:repeat(5,1fr)}.panel button{min-height:44px}.panel input[type=range]{height:28px}.panel input,.panel select,.panel textarea{font-size:16px!important}.panel input[type=color]{width:54px;height:40px}.panel details summary{padding:6px 0;font-size:14px}.panel .field{font-size:13px}.panel .panel-help{font-size:12px}.mobile-toolbar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:120;gap:7px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.mobile-toolbar button{flex:1;min-height:44px;font-size:11px;padding:7px}.selection-actions{gap:5px;margin-top:7px}.selection-actions button{min-height:44px;font-size:10px}.selection-actions strong{font-size:10px;margin-right:2px}.canvas-help{font-size:10px;margin:7px 0 2px}.preview-panel>.status{font-size:10px;margin:4px 0 9px}.swap-grip{display:none}.guide{padding:38px 0;grid-template-columns:1fr;gap:24px}.guide h2{font-size:23px}.features{gap:22px}.features h2{font-size:18px}.faq{padding:38px 0}.related{gap:16px;padding-bottom:35px}.site-footer{margin-bottom:78px!important}.export-actions button{min-height:44px}.export-body input,.export-body select{font-size:16px!important}.export-dimensions{font-size:18px}.preview-panel .status.error{max-height:72px;overflow:auto}}
@media(max-width:360px){.app-heading h1{font-size:20px}.app-actions .primary{min-width:68px}.app-actions .icon-button{min-width:30px;width:30px}.preview-panel{padding:0 10px}.workflow{gap:8px}.selection-actions strong{display:none}.panel .shape-list{grid-template-columns:repeat(4,1fr)}.photo-list{grid-template-columns:repeat(3,1fr)}.empty-state .small{max-width:200px;margin:12px auto}.empty-art{width:66px;height:61px}}
@media(max-height:650px) and (min-width:901px){.editor{height:520px}.collage-app{padding-top:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
