body[data-editor-task] .site-header{min-height:64px;padding-top:8px;padding-bottom:8px}
body[data-editor-task] .breadcrumbs{padding-top:14px}
.editor-main{padding-top:8px;padding-bottom:48px;max-width:1120px}
.editor-main h1{font-size:clamp(30px,4vw,42px);line-height:1.15;letter-spacing:-1.3px;margin:8px 0 12px}
.editor-intro{margin-bottom:18px}.editor-intro p{max-width:780px;margin:8px 0;font-size:16px;color:var(--muted)}
.editor-intro .editor-benefits{font-size:14px}
.editor-main [hidden]{display:none!important}
.editor-upload{border:1px dashed #9a80d6;border-radius:14px;background:#f7f3fc;text-align:center;padding:36px 20px;transition:background .15s}
.editor-upload.dragover{background:#ede3fc}.editor-upload .primary{width:max-content;margin:18px auto 8px;padding:12px 26px}
.editor-upload h2{font-size:21px;margin:0 0 8px}.editor-upload p{font-size:14px;color:var(--muted);margin:10px 0}
.editor-upload .text-button{font-size:16px;min-height:44px;padding:8px 16px}.editor-upload-icon{display:block;color:var(--purple);font-size:32px;margin-bottom:10px}
.editor-file-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:12px}
.editor-file-row>div{min-width:0}.editor-file-row strong{display:block;overflow-wrap:anywhere;font-size:15px}.editor-file-row small,#editor-source-meta{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.editor-file-row button{flex-shrink:0;min-height:44px;font-size:15px}
.editor-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(285px,1fr);gap:20px;align-items:start}
.editor-workspace>.card{padding:20px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px}
.editor-units{display:flex;gap:8px;margin-bottom:16px}
.editor-units button{border:0;background:transparent;min-height:44px;font:inherit;font-size:15px;cursor:pointer;padding:8px 18px;color:var(--muted);border-radius:6px}
.editor-units{background:#f5f4f6;padding:4px;border:1px solid var(--line);border-radius:8px;gap:4px}.editor-units button{flex:1;min-width:0}
.editor-units button[aria-pressed=true]{background:var(--purple);color:#fff}
.editor-preview .compare-grid{align-items:start}
.editor-preview-stage{display:flex;align-items:center;justify-content:center;height:clamp(180px,32vh,300px);overflow:hidden;border-radius:5px;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50% / 18px 18px}
.editor-preview .editor-preview-stage img{display:block;object-fit:contain;max-width:100%;max-height:100%;width:auto;height:auto;background:none}
.editor-preview .image-tile small{font-size:13px;line-height:1.6}
.editor-preview-help{font-size:14px;color:var(--muted);margin:14px 0 0}
#editor-zoom-stage img{width:auto;height:auto;max-width:none;max-height:none}
#editor-zoom-dialog .dialog-heading button{min-width:44px;min-height:44px}
#editor-status{font-size:14px;color:var(--muted);min-height:3em;margin:8px 0 0}
.editor-settings h2{font-size:20px;margin:0 0 10px;letter-spacing:-.4px}
.editor-dimensions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.editor-settings label{display:block;font-size:15px;font-weight:550;margin-bottom:6px}
.editor-settings input[type=number],.editor-settings select{width:100%;min-width:0;min-height:46px;border:1px solid #d5d9d1;border-radius:7px;padding:10px 11px;background:#fff;color:var(--ink,#25331b);font:inherit;font-size:16px}
.editor-settings input[aria-invalid=true]{border-color:#af3737;outline-color:#af3737}
.editor-field-unit{display:flex;align-items:center;gap:6px}.editor-field-unit span{font-size:14px;color:var(--muted)}
.editor-settings p{font-size:14px;line-height:1.5;color:var(--muted);margin:10px 0}
.editor-settings .editor-error,#editor-message{color:#9b2f2f;font-size:14px}
#editor-message{background:#fff4f2;border:1px solid #efcbc5;border-radius:9px;padding:12px 16px;margin:14px 0}
#editor-reset{font-size:15px;min-height:44px;padding:8px 0;text-align:left;margin:0 0 4px}
.editor-format{border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
#editor-download{width:100%;display:flex;text-align:center;justify-content:center;padding:12px 10px;font-size:16px;min-height:48px}
#editor-download[aria-disabled=true]{opacity:.5;cursor:not-allowed}
#editor-output-meta{font-size:14px;overflow-wrap:anywhere}
#editor-brightness-range{width:100%;accent-color:var(--purple);min-height:44px;margin:8px 0}
.editor-main .content-section{margin-top:38px}.editor-main .section-lead{max-width:820px}
.editor-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.editor-examples figure{margin:0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
.editor-examples img{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:7px}
.editor-examples figcaption{font-size:15px;color:var(--muted);margin-top:12px;line-height:1.6}
.editor-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;counter-reset:step;padding:0}
.editor-steps li{counter-increment:step}.editor-steps li:before{content:counter(step);display:inline-grid;place-items:center;background:var(--purple);color:white;width:28px;height:28px;border-radius:50%;margin-bottom:10px}
.editor-steps h3{font-size:17px;margin:4px 0 8px}.editor-steps p{font-size:15px;color:var(--muted);line-height:1.7}
.editor-related{display:flex;flex-wrap:wrap;gap:12px}.editor-related a{display:block;min-height:44px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:9px;color:var(--purple)}
@media(max-width:760px){.editor-workspace{grid-template-columns:1fr}.editor-main{padding-top:6px}.editor-intro{margin-bottom:18px}.editor-workspace>.card{padding:16px}.editor-file-row{gap:12px;padding:12px}.editor-file-row strong{font-size:14px}.editor-file-row small{font-size:12px}.editor-file-row button{font-size:14px}.editor-preview-stage{height:150px}.editor-examples{grid-template-columns:1fr}.editor-steps{grid-template-columns:1fr;gap:14px}.editor-steps li{position:relative;padding-left:42px}.editor-steps li:before{position:absolute;left:0;top:2px}.editor-main .content-section{margin-top:30px}}
@media(prefers-reduced-motion:reduce){.editor-upload{transition:none}}
