
:where(#app,#modal,#toast,.photo-guide)[data-photo-ui]{color-scheme:light;--primary:#176f5b;--primary-dark:#0d5545;--primary-soft:#edf5f1;--ink:#263d37;--muted:#778680;--line:#e8edeb;--page:#f7f9f8;--radius:12px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:16px;color:var(--ink);background:var(--page)}
body{margin:0;width:100%;height:auto;overflow:visible}button:where([data-photo-ui]),input:where([data-photo-ui]),select:where([data-photo-ui]),textarea:where([data-photo-ui]){font:inherit}button:where([data-photo-ui]){cursor:pointer}button:disabled:where([data-photo-ui]){cursor:not-allowed;opacity:.4}button:where([data-photo-ui]),a:where([data-photo-ui]),input:where([data-photo-ui]),select:where([data-photo-ui]),textarea:where([data-photo-ui]){touch-action:manipulation}button:focus-visible:where([data-photo-ui]),a:focus-visible:where([data-photo-ui]),input:focus-visible:where([data-photo-ui]),select:focus-visible:where([data-photo-ui]),textarea:focus-visible:where([data-photo-ui]),[tabindex]:focus-visible:where([data-photo-ui]){outline:3px solid #85b8a6;outline-offset:3px}button:where([data-photo-ui]){color:inherit}.app *:where([data-photo-ui]){box-sizing:border-box}.app button:where([data-photo-ui]){border:0;background:none}button svg:where([data-photo-ui]),.icon svg:where([data-photo-ui]),span[data-icon] svg:where([data-photo-ui]){width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:where([data-photo-ui]){display:inline-flex;align-items:center;justify-content:center;gap:8px}.topbar:where([data-photo-ui]){height:82px;display:flex;align-items:center;padding:0 30px;border-bottom:1px solid var(--line);gap:30px;background:#fff}.brand:where([data-photo-ui]){display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:23px;font-weight:750;letter-spacing:2px;white-space:nowrap}.brandmark:where([data-photo-ui]){width:40px;height:40px;background:var(--primary);border-radius:12px;display:block}.brandmark svg:where([data-photo-ui]){width:100%;height:100%;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.brandmark circle:where([data-photo-ui]){fill:#d4ed9b;stroke:none}.brand small:where([data-photo-ui]){display:block;font-size:10px;letter-spacing:3px;font-weight:600;margin-top:1px;color:#7e8c86}.document-title:where([data-photo-ui]){margin-left:38px;display:flex;align-items:center;gap:12px;font-size:14px;min-width:0}.document-title>span:first-child:where([data-photo-ui]){max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subtle-pill:where([data-photo-ui]){background:var(--page);color:var(--muted);border:1px solid var(--line);padding:4px 8px;border-radius:5px;font-size:12px;white-space:nowrap}.header-actions:where([data-photo-ui]){display:flex;align-items:center;gap:10px;margin-left:auto}.app .button:where([data-photo-ui]){padding:11px 17px;font-size:14px;font-weight:600;border-radius:8px;min-height:42px;white-space:nowrap}.app .primary:where([data-photo-ui]){background:var(--primary);color:white}.app .primary:hover:not(:disabled):where([data-photo-ui]){background:var(--primary-dark)}.app .secondary:where([data-photo-ui]){background:#fff;border:1px solid #dce4e0}.app .secondary:hover:not(:disabled):where([data-photo-ui]){background:#f3f7f5}.app .icon-button:where([data-photo-ui]){width:36px;height:36px;border-radius:7px;flex-shrink:0;color:#61746b}.app .icon-button:hover:not(:disabled):where([data-photo-ui]){background:#eaf0ec}.icon-button.small:where([data-photo-ui]){width:28px;height:28px}.icon-button.small svg:where([data-photo-ui]){width:16px;height:16px}.app .text-button:where([data-photo-ui]){font-size:13px;color:#67796f;padding:7px;border-radius:6px;white-space:nowrap}.text-button svg:where([data-photo-ui]){width:17px;height:17px}.app .text-button:hover:not(:disabled):where([data-photo-ui]){background:#ecf2ee}.editor-shell:where([data-photo-ui]){--tools-width:86px;--panel-width:286px;display:grid;grid-template-columns:var(--tools-width) var(--panel-width) minmax(0,1fr);grid-template-areas:"tools properties workspace";min-height:calc(100dvh - 122px)}.tool-nav:where([data-photo-ui]){grid-area:tools;background:#fff;border-right:1px solid var(--line);padding:18px 9px;display:flex;flex-direction:column;gap:8px}.tool-nav button:where([data-photo-ui]){flex-direction:column;gap:6px;font-size:12px;color:#738078;border-radius:10px;padding:12px 0;min-height:66px}.tool-nav button svg:where([data-photo-ui]){width:23px;height:23px}.tool-nav button:hover:where([data-photo-ui]){background:#f7f9f8}.tool-nav button.active:where([data-photo-ui]){background:var(--primary-soft);color:var(--primary);font-weight:650;position:relative}.tool-nav button.active:where([data-photo-ui]):before{content:"";position:absolute;left:-9px;top:20px;bottom:20px;width:3px;background:var(--primary);border-radius:0 3px 3px 0}.tool-panel:where([data-photo-ui]){grid-area:properties;background:#fff;display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line);max-height:calc(100dvh - 122px)}.panel-head:where([data-photo-ui]){padding:12px 24px 17px;display:flex;justify-content:space-between;align-items:center}.eyebrow:where([data-photo-ui]){font-size:11px;letter-spacing:2px;color:#8b978e;margin:0 0 8px}.panel-head h1:where([data-photo-ui]){font-size:21px;margin:0;letter-spacing:1px;font-weight:650}.panel-content:where([data-photo-ui]){overflow-y:auto;scrollbar-width:thin;padding:4px 24px 20px;flex:1;overscroll-behavior:contain}.panel-footer:where([data-photo-ui]){display:flex;align-items:center;justify-content:center;gap:6px;padding:17px 10px;border-top:1px solid var(--line);color:#8b958f;font-size:12px}.panel-footer svg:where([data-photo-ui]){width:14px!important;height:14px!important}.workspace:where([data-photo-ui]){grid-area:workspace;min-width:0;background:#f0f3f1;display:flex;flex-direction:column;min-height:640px}.workspace-toolbar:where([data-photo-ui]){height:59px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 27px;border-bottom:1px solid #e7ece8;background:#f8faf9}.history-tools:where([data-photo-ui]),.view-tools:where([data-photo-ui]),.zoom-tools:where([data-photo-ui]){display:flex;align-items:center;gap:8px}.divider:where([data-photo-ui]){width:1px;height:18px;background:#dce4df;margin:0 5px}.stage:where([data-photo-ui]){position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:440px;overflow:auto;padding:52px 44px 62px;background-image:radial-gradient(#ccd6cf 0.7px,transparent .7px);background-size:13px 13px;outline:none;overscroll-behavior:contain}.canvas-wrap:where([data-photo-ui]){position:relative;flex-shrink:0;box-shadow:0 14px 42px #2f463325,0 1px 5px #00000010;background:repeating-conic-gradient(#ebedeb 0% 25%,#fff 0% 50%) 0/16px 16px;line-height:0;transform-origin:center}.canvas-wrap canvas:where([data-photo-ui]){display:block;width:100%;height:100%;position:absolute;left:0;top:0}.canvas-wrap #interactionCanvas:where([data-photo-ui]){touch-action:none;cursor:default;user-select:none;-webkit-user-select:none}.canvas-hint:where([data-photo-ui]){position:absolute;bottom:22px;left:0;right:0;pointer-events:none;text-align:center;font-size:12px;color:#89978d;letter-spacing:.4px}.original-badge:where([data-photo-ui]){position:absolute;left:65px;top:30px;background:#1e3428dc;color:white;border-radius:5px;padding:6px 12px;font-size:13px}.workspace-status:where([data-photo-ui]){display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 24px;background:#f8faf9;border-top:1px solid #e5ebe6;min-height:45px;font-size:12px;color:#809087}.workspace-status>div:first-child:where([data-photo-ui]){display:flex;gap:12px}.zoom-label:where([data-photo-ui]){font-size:12px;min-width:47px;color:#557064}.app-footer:where([data-photo-ui]){display:flex;justify-content:space-between;padding:12px 28px;font-size:11px;color:#929e96;min-height:40px;border-top:1px solid var(--line);background:#fff}.empty-state:where([data-photo-ui]){display:flex;align-items:center;flex-direction:column;text-align:center;padding:28px 20px}.empty-icon:where([data-photo-ui]){width:76px;height:76px;display:grid;place-items:center;background:#fff;border:1px solid #dbe5de;border-radius:22px;transform:rotate(-7deg);color:#3c8066;box-shadow:5px 7px 0 #dde9e1}.empty-icon svg:where([data-photo-ui]){width:35px!important;height:35px!important}.empty-state h2:where([data-photo-ui]){font-size:29px;letter-spacing:2px;margin:30px 0 10px;font-weight:650}.empty-state p:where([data-photo-ui]){font-size:14px;color:#809086;margin:0 0 24px}.format-note:where([data-photo-ui]){font-size:11px;color:#92a094;margin:15px 0 27px;letter-spacing:1px}.demo-button:where([data-photo-ui]){font-size:13px;color:var(--primary);gap:20px}.demo-button:hover:where([data-photo-ui]){text-decoration:underline}.full:where([data-photo-ui]){width:100%}.auto-button:where([data-photo-ui]){background:linear-gradient(115deg,#ecf5ef,#f4f8ec)!important;color:#3a694e;padding:13px!important;border:1px solid #dce9df!important;margin:6px 0 22px;justify-content:flex-start!important;font-size:14px!important}.auto-button svg:where([data-photo-ui]){width:18px}.auto-button small:where([data-photo-ui]){margin-left:auto;font-size:11px;color:#819c87}.section-title:where([data-photo-ui]){display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#849389;letter-spacing:1.6px;margin:4px 0 20px}.section-title:not(:first-child):where([data-photo-ui]){margin-top:28px}.section-title:where([data-photo-ui]):after{content:"";height:1px;background:var(--line);flex:1}.control:where([data-photo-ui]){margin:0 0 22px}.control-label:where([data-photo-ui]){display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:11px;gap:8px}.control-label span:where([data-photo-ui]){display:flex;align-items:center;gap:9px}.control-label svg:where([data-photo-ui]){width:16px;height:16px;color:#8b9b90;stroke-width:1.5;fill:none;stroke:currentColor}.control-value:where([data-photo-ui]){font-size:12px!important;color:#778b7c!important;border:1px solid var(--line)!important;border-radius:5px!important;padding:2px 6px!important;min-width:32px;justify-content:center!important;line-height:18px}.control-value:hover:where([data-photo-ui]){color:var(--primary)!important;border-color:#bad7c4!important}input[type=range]:where([data-photo-ui]){appearance:none;width:100%;height:4px;border-radius:9px;background:linear-gradient(to right,#86af97 0%,#86af97 var(--fill,50%),#e7ede9 var(--fill,50%),#e7ede9 100%);display:block;cursor:pointer;accent-color:var(--primary);margin:0}input[type=range]:where([data-photo-ui])::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:white;border:2px solid var(--primary);border-radius:50%;box-shadow:0 1px 3px #0001}input[type=range]:where([data-photo-ui])::-moz-range-thumb{width:10px;height:10px;background:white;border:2px solid var(--primary);border-radius:50%}.panel-note:where([data-photo-ui]){font-size:12px;line-height:1.8;color:#8b978f;margin:18px 0}.field:where([data-photo-ui]){display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:13px}.field input:not([type=range]):where([data-photo-ui]),.field select:where([data-photo-ui]),.field textarea:where([data-photo-ui]){width:100%;box-sizing:border-box;border:1px solid #dfe7e1;border-radius:7px;background:white;padding:10px 11px;color:var(--ink);font-size:14px;min-width:0}.field textarea:where([data-photo-ui]){resize:vertical;min-height:95px;line-height:1.6}.field input[type=color]:where([data-photo-ui]){padding:4px!important;height:40px;cursor:pointer}.field input[type=checkbox]:where([data-photo-ui]){width:auto}.form-row:where([data-photo-ui]){display:flex;gap:10px;align-items:flex-end}.form-row>.field:where([data-photo-ui]){flex:1;min-width:0}.check-label:where([data-photo-ui]){display:flex;gap:8px;align-items:center;font-size:13px;margin:10px 0 18px}.check-label input:where([data-photo-ui]){accent-color:var(--primary)}.preset-grid:where([data-photo-ui]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}.filter-card:where([data-photo-ui]){display:flex;flex-direction:column;gap:8px!important;font-size:12px!important;position:relative}.filter-card .thumb:where([data-photo-ui]){width:100%;aspect-ratio:1.35;object-fit:cover;border-radius:7px;box-shadow:0 0 0 1px #e6ebe7;background:#edf3ef}.filter-card.active .thumb:where([data-photo-ui]){box-shadow:0 0 0 2px var(--primary),0 0 0 5px #edf5ef}.filter-card.active:where([data-photo-ui]){color:var(--primary);font-weight:600}.chip-grid:where([data-photo-ui]){display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 20px}.chip:where([data-photo-ui]){border:1px solid #e1e8e3!important;border-radius:7px!important;padding:11px 4px!important;font-size:12px!important}.chip.active:where([data-photo-ui]){border-color:var(--primary)!important;background:var(--primary-soft)!important;color:var(--primary)}.two-cols:where([data-photo-ui]){display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0 20px}.two-cols button:where([data-photo-ui]){border:1px solid var(--line);border-radius:7px;padding:11px 5px;font-size:12px}.two-cols svg:where([data-photo-ui]){width:17px}.button-row:where([data-photo-ui]){display:flex;gap:8px;margin-top:18px}.button-row>*:where([data-photo-ui]){flex:1}.object-list:where([data-photo-ui]){display:flex;flex-direction:column;gap:7px;margin-top:15px}.object-row:where([data-photo-ui]){padding:10px!important;justify-content:flex-start!important;text-align:left;font-size:12px!important;border:1px solid var(--line)!important;border-radius:7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block!important;width:100%}.object-row.active:where([data-photo-ui]){border-color:#80b598!important;background:#f0f7f2!important}.object-actions:where([data-photo-ui]){display:flex;gap:6px;margin-top:12px}.object-actions button:where([data-photo-ui]){flex:1;font-size:12px;padding:8px 3px;border:1px solid var(--line);border-radius:6px}.history-entry:where([data-photo-ui]){width:100%;padding:13px 9px!important;justify-content:flex-start!important;border-bottom:1px solid var(--line)!important;font-size:13px}.history-entry.active:where([data-photo-ui]){color:var(--primary);background:#f0f6f2}.history-entry small:where([data-photo-ui]){margin-left:auto;color:#98a29b}.help-row:where([data-photo-ui]){padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:15px;font-size:14px;line-height:1.65}.help-number:where([data-photo-ui]){width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#eaf4ed;color:var(--primary);flex-shrink:0;font-size:12px}.help-row p:where([data-photo-ui]){margin:3px 0 0;color:var(--muted);font-size:13px}.shortcut:where([data-photo-ui]){display:flex;justify-content:space-between;margin:14px 0;font-size:13px}.shortcut kbd:where([data-photo-ui]){background:#eef3ef;border:1px solid #dfe7e0;border-radius:5px;padding:3px 7px;color:#708376;font-size:12px}.busy-overlay:where([data-photo-ui]),.drop-overlay:where([data-photo-ui]){position:absolute;inset:0;z-index:5;background:#f1f6f0e8;display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;color:var(--primary)}.drop-overlay:where([data-photo-ui]){border:2px dashed #559276;border-radius:12px;margin:12px;pointer-events:none}.spinner:where([data-photo-ui]){width:22px;height:22px;border:2px solid #c5dccd;border-top-color:#176f5b;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog:where([data-photo-ui]){border:0;border-radius:18px;padding:0;width:min(520px,calc(100vw - 32px));max-height:90dvh;box-shadow:0 30px 100px #16322640;color:var(--ink);font-family:inherit}dialog:where([data-photo-ui])::backdrop{background:#142c256b;backdrop-filter:blur(4px)}.modal-head:where([data-photo-ui]){display:flex;justify-content:space-between;align-items:center;padding:23px 26px 17px;border-bottom:1px solid var(--line)}.modal-head h2:where([data-photo-ui]){margin:0;font-size:21px;font-weight:650}.modal-body:where([data-photo-ui]){padding:24px 26px}.modal-footer:where([data-photo-ui]){padding:16px 26px 23px;display:flex;justify-content:flex-end;gap:10px}.modal-footer .button:where([data-photo-ui]),.modal-body .button:where([data-photo-ui]){border:0;border-radius:8px;padding:11px 17px;font-size:14px;background:var(--primary);color:white}.modal-footer .secondary:where([data-photo-ui]),.modal-body .secondary:where([data-photo-ui]){background:#edf3ee;color:var(--ink)}.modal-head button:where([data-photo-ui]){border:0;background:none;padding:7px;display:flex}.export-summary:where([data-photo-ui]){background:#f2f7f3;border:1px solid #e2ede4;border-radius:10px;padding:14px;font-size:13px;line-height:1.8;color:#65816d;margin-top:10px}.export-preview:where([data-photo-ui]){max-height:180px;width:100%;object-fit:contain;margin-bottom:20px;background:repeating-conic-gradient(#edf0ed 0% 25%,#fff 0% 50%) 0/14px 14px;border:1px solid var(--line);border-radius:8px}.toast:where([data-photo-ui]){position:fixed;z-index:20;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 22px;background:#243e31;color:white;border-radius:10px;box-shadow:0 8px 25px #193c2826;font-size:13px;max-width:min(520px,90vw);line-height:1.6;pointer-events:none}.app [hidden]:where([data-photo-ui]),body>[hidden]:where([data-photo-ui]){display:none!important}[aria-pressed=true]:where([data-photo-ui]){color:var(--primary)!important;background:#e5f0e9!important}.color-swatches:where([data-photo-ui]){display:flex;gap:10px;margin:12px 0 22px}.color-swatches button:where([data-photo-ui]){width:25px;height:25px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #dbe5dd}.small-heading:where([data-photo-ui]){font-size:13px;font-weight:600;margin:20px 0 12px}.mt:where([data-photo-ui]){margin-top:22px}.export-error:where([data-photo-ui]){font-size:13px;color:#a24431;line-height:1.6}.filter-card:focus-visible:where([data-photo-ui]){outline-offset:6px}.danger-link:where([data-photo-ui]){color:#a45444!important}.panel-content details summary:where([data-photo-ui]){cursor:pointer;font-size:13px;color:#6c8172;padding:12px 0}.panel-content details[open] summary:where([data-photo-ui]){margin-bottom:14px}.summary-note:where([data-photo-ui]){font-size:12px;color:#7c8e81;line-height:1.7;margin:0 0 18px}
@media(min-width:1600px){.editor-shell:where([data-photo-ui]){--tools-width:96px;--panel-width:308px}.panel-content:where([data-photo-ui]){padding:4px 28px 24px}.panel-head:where([data-photo-ui]){padding:12px 28px 20px}.workspace-toolbar:where([data-photo-ui]){padding:0 35px}.stage:where([data-photo-ui]){padding:60px 65px 68px}.topbar:where([data-photo-ui]){padding:0 36px}.control:where([data-photo-ui]){margin-bottom:27px}}
@media(max-width:1150px){.editor-shell:where([data-photo-ui]){--tools-width:76px;--panel-width:260px}.panel-content:where([data-photo-ui]){padding-left:20px;padding-right:20px}.panel-head:where([data-photo-ui]){padding-left:20px;padding-right:20px}.document-title:where([data-photo-ui]){margin-left:0}.workspace-toolbar:where([data-photo-ui]){padding:0 16px}.stage:where([data-photo-ui]){padding-left:26px;padding-right:26px}.topbar:where([data-photo-ui]){padding:0 20px;gap:24px}}
@media(max-width:800px){.topbar:where([data-photo-ui]){height:68px;padding:0 15px;gap:10px}.brand:where([data-photo-ui]){font-size:19px;gap:8px}.brandmark:where([data-photo-ui]){width:34px;height:34px}.brand small:where([data-photo-ui]){font-size:8px}.document-title:where([data-photo-ui]){display:none}.header-actions:where([data-photo-ui]){gap:6px}.app .header-actions .button:where([data-photo-ui]){padding:9px 11px;font-size:12px;min-height:38px}.header-actions .button svg:where([data-photo-ui]){width:16px}.header-actions #helpBtn:where([data-photo-ui]){display:none}.editor-shell:where([data-photo-ui]){display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;grid-template-areas:"workspace" "tools" "properties";min-height:0}.tool-nav:where([data-photo-ui]){grid-row:2;display:flex;flex-direction:row;overflow-x:auto;justify-content:space-between;padding:8px 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:5px}.tool-nav button:where([data-photo-ui]){flex:1;min-width:54px;min-height:58px;padding:7px 6px;font-size:11px;gap:4px}.tool-nav button svg:where([data-photo-ui]){width:21px;height:21px}.tool-nav button.active:where([data-photo-ui]):before{display:none}.tool-panel:where([data-photo-ui]){grid-row:3;max-height:none;min-height:280px;border-right:0}.panel-head:where([data-photo-ui]){padding:20px 22px 12px}.panel-head h1:where([data-photo-ui]){font-size:19px}.eyebrow:where([data-photo-ui]){display:none}.panel-content:where([data-photo-ui]){padding:10px 22px 24px;overflow:visible}.panel-footer:where([data-photo-ui]){display:none}.workspace:where([data-photo-ui]){grid-row:1;min-height:0}.workspace-toolbar:where([data-photo-ui]){height:44px;padding:0 10px}.stage:where([data-photo-ui]){height:48dvh;min-height:290px;max-height:570px;flex:none;padding:28px 22px 42px}.workspace-status:where([data-photo-ui]){padding:5px 12px;font-size:11px;min-height:35px}.zoom-tools:where([data-photo-ui]){gap:2px}.zoom-tools .divider:where([data-photo-ui]){margin:0 4px}.app-footer:where([data-photo-ui]){padding:16px 20px;justify-content:center;text-align:center}.app-footer>span:last-child:where([data-photo-ui]){display:none}.preset-grid:where([data-photo-ui]){grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 12px}.control:where([data-photo-ui]){margin-bottom:26px}.panel-content .auto-button:where([data-photo-ui]){margin:0 0 22px}.empty-state:where([data-photo-ui]){padding:10px}.empty-icon:where([data-photo-ui]){width:51px;height:51px;border-radius:15px}.empty-icon svg:where([data-photo-ui]){width:25px!important;height:25px!important}.empty-state h2:where([data-photo-ui]){font-size:23px;margin:17px 0 9px}.empty-state p:where([data-photo-ui]){font-size:13px;margin-bottom:17px}.format-note:where([data-photo-ui]){margin:10px 0 15px;font-size:10px}.canvas-hint:where([data-photo-ui]){bottom:13px;font-size:10px}.view-tools:where([data-photo-ui]){gap:4px}.workspace-toolbar .text-button:where([data-photo-ui]){font-size:12px}.app-footer:where([data-photo-ui]){font-size:11px}.filter-card .thumb:where([data-photo-ui]){aspect-ratio:1.2}.tool-panel .chip-grid:where([data-photo-ui]){grid-template-columns:repeat(6,1fr)}.panel-content .two-cols:where([data-photo-ui]){grid-template-columns:repeat(4,1fr)}}
@media(prefers-reduced-motion:reduce){*:where([data-photo-ui]),*:where([data-photo-ui])::before,*:where([data-photo-ui])::after{animation-duration:.01ms!important;transition:none!important}}

.download-link:where([data-photo-ui]){display:flex;align-items:center;justify-content:center;padding:13px 17px;border-radius:8px;background:var(--primary);color:white;text-decoration:none;font-size:14px;word-break:break-all}.download-link:hover:where([data-photo-ui]){background:var(--primary-dark)}
@media(max-width:800px){.tool-nav:where([data-photo-ui]){gap:2px;padding:8px}.tool-nav button:where([data-photo-ui]){min-width:44px;flex-basis:0;padding:7px 3px}.stage:where([data-photo-ui]){height:32dvh;min-height:230px;max-height:380px}}
dialog [hidden]:where([data-photo-ui]){display:none!important}
@media(min-width:801px){.editor-shell:where([data-photo-ui]){height:calc(100dvh - 122px);min-height:640px}.stage:where([data-photo-ui]){min-height:280px}.tool-panel:where([data-photo-ui]){max-height:none}}

/* 快捷操作放在画布上方，底部空间全部留给照片。 */
.workspace-toolbar:where([data-photo-ui]){display:grid;grid-template-columns:auto minmax(0,1fr) auto;min-height:59px;height:auto;padding:10px 18px;gap:8px}
.quick-tools:where([data-photo-ui]){display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
.app .quick-tools button:where([data-photo-ui]){border:1px solid #dce4e0;border-radius:7px;padding:8px;font-size:13px;white-space:nowrap;background:#fff;min-height:34px;gap:5px}
.app .quick-tools button:hover:not(:disabled):where([data-photo-ui]){border-color:#9bbcac;background:#edf5f1}
.quick-tools svg:where([data-photo-ui]){width:15px;height:15px}
.view-tools:where([data-photo-ui]){justify-content:flex-end}
.panel-placement:where([data-photo-ui]){display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 24px 0;font-size:12px;color:var(--muted);flex-shrink:0}
.panel-side-options:where([data-photo-ui]){display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f5f8f6}
.app .panel-side-options button:where([data-photo-ui]){font-size:13px;padding:5px 10px;border-radius:5px;color:#6c8075;min-height:28px}
.app .panel-side-options button[aria-pressed=true]:where([data-photo-ui]){background:#fff!important;color:var(--primary)!important;box-shadow:0 1px 4px #214f2d18;font-weight:600}
.panel-head:where([data-photo-ui]),.panel-footer:where([data-photo-ui]){flex-shrink:0}
@media(min-width:801px){
 .editor-shell[data-panel-side=right]:where([data-photo-ui]){grid-template-columns:var(--tools-width) minmax(0,1fr) var(--panel-width);grid-template-areas:"tools workspace properties"}
 .editor-shell[data-panel-side=right]>.tool-panel:where([data-photo-ui]){border-right:0;border-left:1px solid var(--line)}
 .tool-panel:where([data-photo-ui]){min-height:0}
 .panel-content:where([data-photo-ui]){min-height:0}
}
@media(min-width:1600px){.panel-placement:where([data-photo-ui]){padding-left:28px;padding-right:28px}.workspace-toolbar:where([data-photo-ui]){padding-left:28px;padding-right:28px}}
@media(max-width:1250px){
 .workspace-toolbar:where([data-photo-ui]){grid-template-columns:1fr auto}
 .history-tools:where([data-photo-ui]){grid-column:1;grid-row:1}
 .view-tools:where([data-photo-ui]){grid-column:2;grid-row:1}
 .quick-tools:where([data-photo-ui]){grid-column:1 / -1;grid-row:2;justify-content:flex-start}
}
@media(min-width:801px) and (max-width:1150px){.panel-placement:where([data-photo-ui]){padding-left:20px;padding-right:20px}}
@media(max-width:800px){
 /* 窄屏延续上下布局，桌面的左右偏好在恢复宽屏后继续生效。 */
 .panel-placement:where([data-photo-ui]){display:none}
 .workspace-toolbar:where([data-photo-ui]){padding:6px 10px;gap:4px}
 .quick-tools:where([data-photo-ui]){justify-content:space-between;gap:5px}
 .app .quick-tools button:where([data-photo-ui]){flex:1;padding:7px 4px;font-size:12px;gap:4px;min-height:32px}
 .quick-tools svg:where([data-photo-ui]){width:14px;height:14px}
}
@media(max-width:380px){.quick-tools svg:where([data-photo-ui]){display:none}}

/* 页面自然向下延伸；编辑器内部保留原有的可滚动画布。 */
#app[data-photo-ui]{width:100%;height:auto;overflow:visible}
#modal[data-photo-ui]{background:#fff}
.brand[data-photo-ui]{letter-spacing:0}
@media(max-width:420px){.brand[data-photo-ui]{font-size:17px;gap:7px}.brandmark[data-photo-ui]{width:30px;height:30px}.topbar[data-photo-ui]{padding:0 10px;gap:8px}.header-actions[data-photo-ui]{gap:5px}.app .header-actions .button[data-photo-ui]{padding:9px 8px}}
