#diyImageDialog{position:fixed;z-index:3100;top:78px;right:156px;width:350px;max-width:calc(100vw - 28px);max-height:calc(100vh - 96px);overflow:auto;background:#fff;color:#223044;border:1px solid #d8e1eb;border-radius:12px;box-shadow:0 10px 40px #12213340;font:13px/1.55 system-ui,sans-serif}
#diyImageDialog[hidden],#diyImageDialog [hidden]{display:none!important}
#diyImageDialog *{box-sizing:border-box}
#diyImageDialog .dic-header{position:sticky;top:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid #e3e9ef}
#diyImageDialog strong{font-size:16px}#diyImageDialog small{display:block;color:#637489;font-size:11px}
#diyImageDialog .dic-body{display:flex;flex-direction:column;gap:11px;padding:14px}
#diyImageDialog label{display:block;font-size:13px}#diyImageDialog input,#diyImageDialog select{width:100%;margin-top:4px;padding:7px;border:1px solid #cbd6e2;border-radius:6px;color:#223044;background:#fff;font:inherit}
#diyImageDialog input[type=range]{padding:0;accent-color:#176ed5}#diyImageDialog input[type=checkbox]{width:auto;margin:0 7px 0 0}
#diyImageDialog .dic-check{display:flex;align-items:center}#diyImageDialog .dic-row{display:flex;gap:9px}#diyImageDialog .dic-row>*{flex:1;min-width:0}
#diyImageDialog .dic-scale{display:flex;justify-content:space-between;font-size:11px;color:#637489;margin-top:-10px}#diyImageDialog output{float:right;color:#176ed5;font-weight:600}
#diyImageDialog .dic-note{margin:0;font-size:11px;color:#637489}#diyImageDialog figure{margin:0;text-align:center}#diyImageDialog canvas{display:block;max-width:100%;max-height:160px;width:auto;height:auto;margin:auto;border:1px solid #dce4ec;background:repeating-conic-gradient(#eef1f5 0% 25%,#fff 0% 50%) 50%/16px 16px;border-radius:6px}#diyImageDialog figcaption{font-size:11px;color:#637489}
#diyImageDialog button{width:auto;border:1px solid #cbd6e2;border-radius:7px;padding:7px 10px;background:#fff;color:#253750;cursor:pointer;font:inherit;margin:0}
#diyImageDialog button:disabled{opacity:.5;cursor:default}#diyImageDialog .dic-primary{width:100%;background:#176ed5;color:#fff;border-color:#176ed5}
#diyImageDialog [data-id=status]{margin:0;padding:8px;border-radius:6px;background:#f0f6ff;font-size:12px}
#diyImageDialog footer{position:sticky;bottom:0;padding:11px 14px;border-top:1px solid #e3e9ef;background:#f6f9fc;text-align:center}#diyImageDialog footer small{margin-top:5px}
@media(max-width:900px){#diyImageDialog{right:14px;top:72px;max-height:calc(100vh - 86px)}}

#diyImageDialog .dic-section{display:flex;flex-direction:column;gap:11px}
#diyImageDialog .dic-tabs{display:flex;gap:6px;background:#edf2f7;padding:4px;border-radius:8px}#diyImageDialog .dic-tabs button{flex:1;border:0;background:transparent;font-weight:600}#diyImageDialog .dic-tabs button[aria-pressed=true]{color:#176ed5;background:white;box-shadow:0 1px 4px #182b4418}
#diyImageDialog .dic-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}#diyImageDialog .dic-preset{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 3px;min-width:0;font-size:11px;background:#fafbfd}#diyImageDialog .dic-preset svg{display:block;width:100%;height:56px}#diyImageDialog .dic-preset polygon{fill:#e7d7bd;stroke:#927b5a;stroke-width:1.5;stroke-linejoin:round}#diyImageDialog .dic-preset:hover{border-color:#176ed5;background:#eff6ff}#diyImageDialog .dic-preset[aria-pressed=true]{border-color:#176ed5;box-shadow:0 0 0 1px #176ed5;background:#eff6ff}#diyImageDialog button:focus-visible{outline:3px solid #79b6ff;outline-offset:2px}
#diyImageDialog .dic-material{display:flex;flex-direction:column;gap:5px;padding:9px;border-radius:7px;background:#f6f8fb;font-size:12px}#diyImageDialog .dic-material button{font-size:12px;color:#176ed5}
