.ed{background:var(--bg);grid-template:"top top top"64px"tools center panel"minmax(0,1fr)/232px minmax(0,1fr) 360px;height:100dvh;display:grid;overflow:hidden}.ed-top{background:var(--surface);border-bottom:1px solid var(--line);grid-area:top;align-items:center;gap:16px;min-width:0;padding:0 16px;display:flex}.ed-top .brand{flex:none}.ed-history{scrollbar-width:none;white-space:nowrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex;overflow-x:auto}.ed-history::-webkit-scrollbar{display:none}.chip{background:var(--surface-2);height:28px;color:var(--text-2);border-radius:99px;flex:none;align-items:center;padding:0 10px;font-size:.82rem;font-weight:600;display:inline-flex}.chip.step{background:var(--brand-soft);color:var(--brand-ink)}.chip.step:before{content:"→";color:var(--brand-2);margin-right:6px;font-weight:400}.ed-size{flex:none;margin-left:6px}.ed-actions{flex:none;align-items:center;gap:6px;display:flex}.ghost-btn{height:40px;color:var(--text-2);background:0 0;border:0;border-radius:10px;padding:0 12px}.ghost-btn:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.ghost-btn:disabled{opacity:.35}.ed-tools{background:var(--surface);border-right:1px solid var(--line);grid-area:tools;padding:12px 10px 20px;overflow-y:auto}.ed-tool-group+.ed-tool-group{margin-top:10px}.ed-tool-group p{color:var(--text-3);margin:6px 8px;font-size:.75rem;font-weight:700}a.ed-tool{align-items:center;text-decoration:none;display:flex}.ed-tool{width:100%;height:auto;color:var(--text-2);background:0 0;border:0;border-radius:12px;justify-content:flex-start;gap:10px;padding:7px 8px;font-size:.92rem;font-weight:600}.ed-tool .icon-tile.sm{border-radius:10px;width:34px;height:34px}.ed-tool:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.ed-tool.on{background:var(--brand-soft);color:var(--brand-ink)}.ed-tool:disabled{opacity:.6}.ed-center{flex-direction:column;grid-area:center;min-width:0;min-height:0;display:flex;position:relative}.ed-remove{z-index:3;height:36px;color:var(--text-2);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(8px);box-shadow:var(--shadow);border:0;border-radius:10px;gap:4px;padding:0 12px;font-size:.85rem;font-weight:700;position:absolute;top:14px;right:14px}.ed-remove:hover:not(:disabled){color:var(--danger)}.ed-stage{flex:1;min-height:0;position:relative;overflow:hidden}.ed-zoom{transform-origin:50%;will-change:transform;place-items:center;padding:24px;display:grid;position:absolute;inset:0}.ed-stage.space .ed-zoom *{pointer-events:none}.zoom-bar{z-index:2;background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(8px);box-shadow:var(--shadow);border-radius:12px;align-items:center;gap:2px;padding:4px;display:flex;position:absolute;bottom:14px;right:14px}.zoom-bar button{min-width:32px;height:32px;color:var(--text-2);background:0 0;border:0;border-radius:8px;padding:0 8px;font-size:.85rem}.zoom-bar button:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.zoom-pct{font-variant-numeric:tabular-nums;font-weight:700;min-width:58px!important}.zoom-hint{z-index:2;color:#fff;white-space:nowrap;pointer-events:none;background:#0f1119b3;border-radius:99px;padding:5px 12px;font-size:.78rem;font-weight:600;position:absolute;top:12px;left:50%;transform:translate(-50%)}@media (width<=760px){.zoom-hint{display:none}}.ed-img{object-fit:contain;-webkit-user-select:none;user-select:none;border-radius:6px;max-width:100%;max-height:100%;display:block;box-shadow:0 10px 40px -12px #14182859}canvas.ed-img{width:auto;height:auto}.ed-img.draw{cursor:crosshair;touch-action:none}.ed-stage .crop{max-width:100%}.ed-wait{color:var(--text-3)}.ed-empty{grid-column:2/4;justify-content:center;align-items:center;gap:14px;padding:32px}.ed-empty .drop-card{justify-self:center;width:min(480px,100%)}.ed-strip{background:var(--surface);border-top:1px solid var(--line);flex-direction:column;flex:none;gap:8px;padding:10px 16px 12px;display:flex}.ed-strip-head{align-items:baseline;gap:10px;font-size:.85rem;display:flex}.ed-strip-list{align-items:center;gap:10px;padding:4px 2px 2px;display:flex;overflow-x:auto}.ed-thumb{transition:transform .15s var(--ease), opacity .15s;cursor:grab;border-radius:14px;flex:none;position:relative}.ed-thumb.drop-here:before{content:"";background:var(--brand);border-radius:3px;width:3px;position:absolute;top:6px;bottom:6px;left:-7px}.ed-thumb-img{border:2px solid var(--line);background:var(--surface-2);border-radius:14px;width:76px;height:76px;padding:0;display:block;position:relative;overflow:hidden}.ed-thumb-img:hover:not(:disabled){border-color:var(--brand-2)}.ed-thumb-img img{object-fit:cover;width:100%;height:100%;display:block}.ed-thumb.on .ed-thumb-img{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.ed-no{color:#fff;background:#0f1119a6;border-radius:7px;place-items:center;min-width:20px;height:20px;padding:0 5px;font-size:.72rem;font-weight:800;display:grid;position:absolute;bottom:4px;left:4px}.ed-thumb.on .ed-no{background:var(--brand)}.ed-badge{background:var(--good);color:#fff;border-radius:7px;place-items:center;height:20px;padding:0 6px;font-size:.7rem;font-weight:800;display:grid;position:absolute;bottom:4px;right:4px}.ed-thumb-x{border:2px solid var(--surface);color:#fff;opacity:0;background:#2a2e3a;border-radius:99px;width:22px;height:22px;padding:0;transition:opacity .15s;position:absolute;top:-6px;right:-6px}.ed-thumb:hover .ed-thumb-x,.ed-thumb:focus-within .ed-thumb-x{opacity:1}.ed-thumb-x:hover:not(:disabled){background:var(--danger);border-color:var(--surface)}@media (hover:none){.ed-thumb-x{opacity:1}}.ed-strip .add-more{border:2px dashed var(--brand-soft-2);border-radius:14px;flex-direction:column;flex:none;gap:2px;width:76px;height:76px;padding:0;font-size:.78rem}.ed-scope{text-align:center;color:var(--text-3);margin:0;font-size:.82rem}.ed-scope b{color:var(--text)}.ed-panel{background:var(--surface);border-left:1px solid var(--line);flex-direction:column;grid-area:panel;min-height:0;display:flex}.ed-panel-head{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:16px 20px;display:flex}.ed-panel-head div{flex-direction:column;min-width:0;display:flex}.ed-panel-head strong{font-size:1.05rem}.ed-panel-head small{color:var(--text-3);font-size:.82rem}.ed-panel-body{flex-direction:column;flex:1;gap:20px;min-height:0;padding:20px;display:flex;overflow-y:auto}.ed-panel-foot{border-top:1px solid var(--line);padding:14px 20px 18px}.ed-apply{flex-direction:column;gap:10px;display:flex}.tabs.small button{height:32px;font-size:.85rem}.ed-panel .opt-cards{grid-template-columns:1fr 1fr}.ed-panel .opt-cards.three{grid-template-columns:repeat(3,1fr)}@media (width<=1100px){.ed{grid-template-columns:76px minmax(0,1fr) 340px}.ed-tool-group p{display:none}.ed-tool{text-align:center;flex-direction:column;gap:4px;padding:8px 2px;font-size:.7rem}.ed-tool span:last-child{white-space:normal;line-height:1.2}.ed-brand-text{display:none}}@media (width<=760px){.ed{height:auto;padding-bottom:96px;display:block;overflow:visible}.ed-top{z-index:30;gap:8px;height:56px;padding:0 10px;position:sticky;top:0}.ed-history{display:none}.ed-actions{margin-left:auto}.ghost-btn span,.hide-sm{display:none}.ghost-btn{padding:0 9px}.ed-tools{border-right:0;border-bottom:1px solid var(--line);z-index:20;gap:4px;padding:8px;display:flex;position:sticky;top:56px;overflow-x:auto}.ed-tool-group{display:contents}.ed-tool{flex:none;width:72px}.ed-stage{flex:none;height:52vh}.ed-zoom{padding:12px}.ed-panel{border-left:0;border-top:1px solid var(--line)}.ed-panel-body{overflow:visible}.ed-panel-foot{z-index:40;background:color-mix(in srgb, var(--surface) 94%, transparent);-webkit-backdrop-filter:blur(12px);padding:10px 14px calc(10px + env(safe-area-inset-bottom));position:fixed;bottom:0;left:0;right:0;box-shadow:0 -10px 30px -12px #14182833}.ed-empty{padding:20px 14px}.toaster{bottom:120px}}.ed-thumb{touch-action:pan-x;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.ed-thumb-img img{-webkit-user-drag:none;pointer-events:none}.ed-thumb.dragging{opacity:.35}.ed-thumb.drop-end:after{content:"";background:var(--brand);border-radius:3px;width:3px;position:absolute;top:6px;bottom:6px;right:-7px}.ed-ghost{z-index:300;border:2px solid var(--brand);pointer-events:none;background:var(--surface-2);border-radius:14px;width:76px;height:76px;margin:-38px 0 0 -38px;position:fixed;overflow:hidden;transform:rotate(-4deg)scale(1.06);box-shadow:0 16px 40px -10px #14182880}.ed-ghost img{object-fit:cover;width:100%;height:100%;display:block}
