/* AIMAP Studio — shared light/dark palette, Arabic and English. */
.header-inner{gap:24px}.header nav{gap:20px}.editor-page{padding-block:42px 60px}.editor-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}.editor-intro h1{font-weight:900;font-size:36px;line-height:1.7;letter-spacing:-.7px;margin:8px 0 1px}.editor-intro p{color:var(--muted);margin:0;font-size:13px}.editor-privacy{display:flex;gap:7px;align-items:center;background:var(--white);border:1px solid var(--line);padding:10px 15px;border-radius:24px;font-size:11px;white-space:nowrap}.editor-privacy svg{color:var(--purple);width:15px;height:15px}.editor-toolbar{display:flex;align-items:center;gap:10px;padding:12px;background:var(--white);border:1px solid var(--line);border-radius:14px;margin-bottom:18px}.editor-toolbar-group{display:flex;align-items:center;gap:8px;margin-inline-end:auto}.ed-button{position:relative;display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:9px;min-height:41px;padding:7px 13px;font-size:11px;font-weight:500;cursor:pointer;line-height:1.7;text-align:center}.ed-button:hover:not(:disabled){border-color:var(--purple);color:var(--purple)}.ed-button:disabled{cursor:default;opacity:.45}.ed-primary,.ed-primary:hover:not(:disabled){background:var(--purple);border-color:var(--purple);color:#fff}.ed-open{border-color:var(--purple);color:var(--purple)}.ed-open>span{font-size:19px;line-height:1}.ed-file{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.ed-open:focus-within,.ed-button:focus-within{outline:3px solid var(--purple);outline-offset:3px}.editor-workspace{display:grid;grid-template-columns:292px minmax(0,1fr);gap:20px;align-items:start}.editor-controls{background:var(--white);border:1px solid var(--line);border-radius:15px;overflow:hidden}.editor-controls fieldset{padding:0;border:0;margin:0;min-width:0}.editor-controls fieldset:disabled{opacity:.5}.ed-section{padding:19px;border-bottom:1px solid var(--line)}.ed-section:last-child{border:0}.ed-section h2{font-size:12px;margin:0 0 13px;font-weight:700}.ed-section-title{display:flex;align-items:center;justify-content:space-between}.ed-ai-tag{background:var(--lime);color:#211b35;font-family:Arial,sans-serif;font-weight:800;font-size:10px;padding:1px 6px;border-radius:4px;letter-spacing:.5px}.ed-hint{color:var(--muted);font-size:10px;line-height:2;margin:0 0 10px}.ed-small{font-size:9px;color:var(--muted);line-height:2;margin:10px 0 0}.ed-section label:not(.ed-button){font-size:10px;display:block;color:var(--muted);margin-top:11px;margin-bottom:6px}.ed-section input:not([type=range]):not([type=checkbox]):not([type=file]):not([type=color]),.ed-section select{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:10px;padding:9px;min-height:39px}.ed-section input[type=range]{width:100%;accent-color:var(--purple);height:19px;margin:0;cursor:pointer}.ed-range-label{display:flex!important;justify-content:space-between;gap:10px}.ed-range-label output{direction:ltr;font-family:Arial,sans-serif;font-size:12px;color:var(--ink)}.ed-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ed-two .ed-button{font-size:10px;padding-inline:5px}.ed-wide{width:100%;margin-top:10px}.ed-bg-button{width:100%;background:#f1ecff;color:var(--purple);border-color:#ded3ff;justify-content:space-between}.ed-bg-button>span{font-size:20px}.ed-cancel{width:100%;margin-top:10px}.ed-text-options{align-items:center}.ed-section input[type=color]{display:block;width:100%;height:28px;border:1px solid var(--line);padding:2px;background:var(--bg);border-radius:5px}.ed-section .ed-check{display:flex!important;align-items:center;gap:7px;font-size:9px;margin-top:12px}.ed-check input{accent-color:var(--purple)}.editor-preview-column{min-width:0;position:sticky;top:18px}.editor-stage{display:flex;align-items:center;justify-content:center;min-height:510px;height:min(61vw,580px);border:1px solid var(--line);border-radius:15px;background:var(--white);padding:25px;position:relative;overflow:hidden}.editor-stage.drag-over{border:2px dashed var(--purple);background:#f3efff}.editor-empty{text-align:center;display:flex;align-items:center;flex-direction:column}.ed-empty-art{position:relative;width:128px;height:128px;background:#f1ecff;border-radius:29px;transform:rotate(-7deg);display:flex;align-items:center;justify-content:center;margin-bottom:28px;color:var(--purple)}.ed-empty-art svg{width:85px;height:85px}.ed-empty-art>span{position:absolute;top:-13px;right:-14px;background:var(--lime);width:41px;height:41px;line-height:41px;border-radius:12px;font-size:23px;color:var(--purple)}.editor-empty h2{font-size:19px;margin:0 0 8px;font-weight:700}.editor-empty p{font-size:11px;color:var(--muted);margin:0 0 20px}.editor-empty .ed-button{padding-inline:24px;min-height:45px}.ed-sample{background:none;border:0;text-decoration:underline;text-underline-offset:4px;font-size:10px;color:var(--muted);margin-top:17px;cursor:pointer}.ed-canvas-wrap{display:flex;align-items:center;justify-content:center;position:relative;max-width:100%;max-height:100%;width:100%;height:100%}#ed-canvas{display:block;max-width:100%;max-height:100%;object-fit:contain;width:auto;height:auto;background-color:#fff;background-image:linear-gradient(45deg,#eceaf1 25%,transparent 25%),linear-gradient(-45deg,#eceaf1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eceaf1 75%),linear-gradient(-45deg,transparent 75%,#eceaf1 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;touch-action:none;cursor:default}#ed-canvas.cropping{cursor:crosshair}.ed-crop-help,.ed-comparing{position:absolute;bottom:7px;background:var(--ink);color:var(--white);border-radius:7px;font-size:10px;padding:7px 12px;pointer-events:none}.ed-comparing{top:7px;bottom:auto;background:var(--purple);color:#fff}.editor-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 3px;color:var(--muted);font-size:10px}#ed-file-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ed-dimensions{flex-shrink:0;font-family:Arial,sans-serif;font-size:12px}.editor-status{padding:12px 15px;border:1px solid var(--line);background:var(--white);border-radius:10px;font-size:11px;line-height:2;min-height:48px}.editor-status[data-error=true]{border-color:#ba3764;color:#ba3764}.ed-progress{padding:9px 2px}.ed-progress progress{width:100%;height:9px;accent-color:var(--purple)}.editor-tips{display:flex;gap:14px;margin-top:18px;padding:19px;border:1px solid var(--line);border-radius:13px}.ed-tip-number{background:var(--lime);color:#211b35;border-radius:9px;font-family:Arial,sans-serif;font-weight:800;font-size:13px;width:35px;height:35px;line-height:35px;text-align:center;flex-shrink:0}.editor-tips h3{font-size:11px;margin:0 0 5px}.editor-tips p{font-size:10px;color:var(--muted);margin:0;line-height:2}.editor-faq{border-top:1px solid var(--line);margin-top:38px;padding-top:28px;display:grid;grid-template-columns:1fr 1fr;column-gap:35px}.editor-faq>div{grid-row:span 3}.editor-faq h2{font-size:19px;margin:0 0 10px}.editor-faq p{font-size:11px;line-height:2.2;color:var(--muted);max-width:520px}.editor-faq details{border-bottom:1px solid var(--line);padding:13px 0}.editor-faq summary{font-size:12px;cursor:pointer}.editor-faq a{text-decoration:underline;text-underline-offset:3px;color:var(--purple)}.editor-page [hidden]{display:none!important}.editor-page:has(#ed-cancel-ai:not([hidden])) #ed-controls .ed-section:not(:first-child){opacity:.5;pointer-events:none}
[data-theme=dark] .ed-bg-button,[data-theme=dark] .ed-empty-art{background:#31264d;border-color:#584276;color:var(--purple)}[data-theme=dark] .editor-stage.drag-over{background:#31264d}[data-theme=dark] .ed-primary{color:#211b35}[data-theme=dark] .ed-crop-help{background:#211b35;color:#fff}[data-theme=dark] .ed-comparing{color:#211b35}[data-theme=dark] .editor-status[data-error=true]{color:#ff91b9;border-color:#ff91b9}
@media(min-width:901px){.header nav{gap:16px}.header .nav-link{font-size:11px}.header .private-label{padding-inline:7px;font-size:9px}}
@media(max-width:1000px){.header-inner{gap:16px}.editor-workspace{grid-template-columns:255px minmax(0,1fr)}.editor-stage{min-height:440px;padding:16px}.editor-intro h1{font-size:31px}.editor-privacy{font-size:9px}.editor-toolbar{gap:7px}.editor-toolbar .ed-button{font-size:10px;padding-inline:9px}}
@media(max-width:900px){.header{height:auto}.header-inner{flex-wrap:wrap;padding-block:13px;gap:12px}.header nav{order:5;width:100%;height:40px;justify-content:space-between;gap:8px}.header .nav-link{padding-top:0;font-size:11px;white-space:nowrap}.header .brand{margin-inline-end:auto}.header .private-label{display:none}.editor-intro{align-items:start;flex-direction:column;gap:12px}.editor-intro h1{font-size:30px}.editor-page{padding-top:26px}.editor-toolbar{flex-wrap:wrap}.editor-toolbar-group{width:100%;justify-content:space-between;margin:0}.editor-toolbar #ed-compare{margin-inline-end:auto}.editor-workspace{grid-template-columns:1fr}.editor-preview-column{order:-1;position:static}.editor-stage{min-height:360px;height:480px}.editor-controls .ed-section{padding:19px}.editor-controls fieldset{display:grid;grid-template-columns:1fr 1fr}.editor-controls .ed-section{border-inline-end:1px solid var(--line)}.editor-controls .ed-section:last-child{grid-column:1/-1}.editor-controls .ed-section:last-child{display:block}.editor-faq{grid-template-columns:1fr}.editor-faq>div{grid-row:auto}.editor-faq h2{font-size:17px}}
@media(max-width:480px){.editor-page.container{width:calc(100% - 28px)}.editor-intro h1{font-size:25px}.editor-intro p{font-size:11px}.editor-stage{height:360px;min-height:300px;padding:12px}.editor-toolbar{padding:9px}.editor-toolbar-group{gap:5px}.editor-toolbar .ed-button{font-size:9px;padding-inline:9px;min-height:38px}.editor-controls fieldset{display:block}.editor-empty h2{font-size:16px}.editor-empty p{font-size:10px}.ed-empty-art{width:96px;height:96px;margin-bottom:21px}.ed-empty-art svg{width:67px;height:67px}.editor-meta{font-size:9px}#ed-dimensions{font-size:10px}.editor-tips{padding:14px}.header nav .nav-link{font-size:9px;gap:4px}.header nav .nav-link svg{width:13px;height:13px}.editor-faq{margin-top:25px}.editor-status{font-size:10px}}
