#mask-page{font-size:14px}#mask-page .header-inner{gap:48px}#mask-page .intro{margin-bottom:27px}#mask-page .intro h1{font-size:34px}.benefits{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:15px;font-size:11px;color:#827079}.benefits span:before{content:'✓';color:#7d896c;margin-right:5px}#mask-page .tool-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}#mask-page .tool-card h2{font-size:13px}#mask-page .tool-card p{font-size:11px}.remove-workspace{border-radius:22px;box-shadow:0 14px 42px rgba(54,43,48,.055);overflow:hidden}.remove-studio{display:grid;grid-template-columns:minmax(300px,.92fr) minmax(0,1.1fr);grid-template-areas:'settings preview' 'settings downloads';align-items:start}.remove-settings{grid-area:settings;padding:24px;background:#fcf8fa;border-right:1px solid #eee5e9}.upload-box{border:1px dashed #d9c8d0;border-radius:12px;background:#fff;padding:25px 18px;text-align:center;transition:.2s}.upload-box.drag{border-color:#925b69;background:#fbf2f5}.upload-icon{width:44px;height:44px;margin:0 auto 11px;display:grid;place-items:center;border-radius:50%;background:#f4e9ed;color:#78383f;font-size:22px}.upload-box h3{font-size:14px;margin:0 0 5px}.upload-box p{font-size:10px;color:#97868e;margin:0 0 15px}.upload-actions{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.upload-actions button{border:1px solid #e2d7de;background:#fff;border-radius:7px;padding:9px 12px;color:#765c69;font-size:11px}.upload-actions .primary{background:#78383f;color:#fff;border-color:#78383f}.file-info{margin-top:11px;padding:10px 12px;border-radius:8px;background:#fff;border:1px solid #eadfe4;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px}.file-info strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.file-info button{border:0;background:none;color:#8b5968;font-size:10px;cursor:pointer}.setting-group{border-top:1px solid #e9dfe4;margin-top:22px;padding-top:18px}.setting-group h3{font-size:12px;margin:0 0 13px}.range{display:block;font-size:11px;margin:15px 0}.range output{float:right;color:#805360;font-variant-numeric:tabular-nums}.range input{display:block;width:100%;margin:9px 0 0;accent-color:#78383f;cursor:pointer}.choices{display:flex;gap:6px}.choices button{flex:1;min-width:0;min-height:38px;padding:7px 5px;border:1px solid #e5dce1;border-radius:7px;background:#fff;color:#75616d;font-size:11px}.choices button[aria-pressed=true]{border-color:#925b69;color:#78383f;background:#f3e7ec;box-shadow:inset 0 0 0 .5px #925b69}.check{display:flex;align-items:center;gap:8px;font-size:11px;color:#75616d;margin:14px 0}.check input{accent-color:#78383f}.hint{font-size:10px;line-height:1.6;color:#9a8590;margin:8px 0 0}.reset{width:100%;background:none;border:1px solid #e2d7de;border-radius:7px;padding:10px;margin-top:20px;color:#88717e;font-size:11px}.remove-preview{grid-area:preview;padding:24px 23px 0;background:#fff;position:sticky;top:0;z-index:2}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.preview-heading h3{font-size:13px;margin:0}.preview-heading span{font-size:10px;color:#7c8a71}.preview-heading i{display:inline-block;width:5px;height:5px;background:#8f9b81;border-radius:50%;margin-right:4px}.preview-box{aspect-ratio:1;display:grid;place-items:center;border:1px solid #e6dbe1;border-radius:12px;overflow:hidden;background-color:#fff;background-image:conic-gradient(#f0e9ed 25%,#fcfafb 0 50%,#f0e9ed 0 75%,#fcfafb 0);background-size:18px 18px;box-shadow:0 0 0 7px #fbf6f8;position:relative}.preview-box.white{background:#fff}.preview-box canvas{max-width:94%;max-height:94%;width:auto;height:auto;object-fit:contain}.empty-preview{text-align:center;color:#a28d98}.empty-preview b{display:block;font-size:30px;font-weight:400;color:#b78390;margin-bottom:8px}.empty-preview p{font-size:11px;line-height:1.7}.preview-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px}.preview-tools .choices button{min-height:32px;padding:6px 11px;font-size:10px}.compare{display:flex;gap:6px}.compare button{border:1px solid #e5dce1;background:#fff;border-radius:6px;padding:7px 10px;font-size:10px;color:#79626f}.compare button.active{background:#f3e7ec;border-color:#925b69;color:#78383f}.preview-tip{font-size:10px;text-align:center;color:#9a8792;line-height:1.7;margin:13px 0 0}.downloads{grid-area:downloads;padding:10px 23px 25px;background:#fff}.download-buttons{display:flex;gap:8px}.download-buttons button{flex:1;border:1px solid #e0d4dc;border-radius:8px;padding:11px 8px;min-height:45px;font-size:11px;background:#fff;color:#78383f}.download-buttons .primary{flex:1.6;background:#78383f;color:#fff;border-color:#78383f}.download-buttons button:disabled{background:#e9dfe5;border-color:#e9dfe5;color:#9c8793}.export-note{font-size:10px;text-align:center;margin:10px 0 18px;color:#99858f}.local-note{background:#eef1e9;border:1px solid #dfe5d7;border-radius:8px;padding:13px 14px;font-size:10px;color:#6e7b60;line-height:1.8}.local-note strong{font-size:11px;font-weight:600}.local-note p{color:#839076;margin:5px 0 0;font-size:10px}.cross-link{display:block;margin-top:11px;padding:11px 12px;border:1px solid #eadfe4;border-radius:8px;background:#fff8fa;color:#78383f;font-size:10px;text-decoration:none}.remove-guide{max-width:980px;margin:42px auto 0}.remove-guide>section{border-top:1px solid var(--line);padding:25px 0}.remove-guide h2{font-size:21px;margin:0 0 12px}.remove-guide p{font-size:13px;line-height:1.9}.remove-guide .guide-grid{margin:20px 0 0;padding:24px;gap:30px;border-radius:12px}.remove-guide details{padding:15px 0;border-bottom:1px solid var(--line)}.remove-guide summary{font-size:13px;cursor:pointer}.status{font-size:10px;min-height:28px;padding-top:9px;color:#8f6c7d}.privacy-small{font-size:9px;color:#a4919c;line-height:1.6;margin:9px 2px 0}
@media(min-width:1500px){#mask-page main,#mask-page .header-inner{max-width:1440px}.remove-studio{grid-template-columns:350px minmax(0,1fr)}.preview-box{max-height:520px}}
@media(max-width:1100px){#mask-page .tool-layout{grid-template-columns:180px minmax(0,1fr);gap:17px}.remove-studio{grid-template-columns:minmax(245px,.95fr) minmax(0,1fr)}.remove-settings{padding:18px}.remove-preview{padding:20px 17px 0}.downloads{padding:10px 17px 20px}}
@media(max-width:760px){#mask-page .tool-layout{display:block}.remove-studio{display:flex;flex-direction:column}.remove-preview{order:1;position:static;width:100%;padding:18px}.remove-settings{order:2;width:100%;border-right:0;border-top:1px solid #eee5e9;padding:18px}.downloads{order:3;width:100%;padding:8px 18px 20px}.preview-box{max-height:420px}.benefits{gap:5px 11px}.upload-box{padding:21px 13px}}

/* Preview backgrounds are CSS only; exported PNG pixels stay transparent. */
.preview-box.black{background:#17191f}.preview-tools{flex-wrap:wrap}.preview-tools #background{margin-left:auto}.preview-tools #background button{min-width:44px;min-height:44px}

/* ID mask tool additions */
#mask-page .preview-box{background-image:none;background-color:#f1ebee;box-shadow:0 0 0 7px #fbf6f8}
#mask-page .preview-box canvas{cursor:crosshair;touch-action:none;background:#fff;box-shadow:0 2px 14px rgba(54,43,48,.2);user-select:none;-webkit-user-select:none}
.mask-actions{display:flex;gap:7px;margin-top:12px}.mask-actions button{flex:1;min-height:44px;border:1px solid #e2d7de;border-radius:7px;background:#fff;color:#765c69;font-size:12px}.mask-actions button:disabled{opacity:.5}
.mask-count{font-size:11px;color:#8f6c7d;margin:10px 0 0}
.text-field{display:block;width:100%;min-height:46px;border:1px solid #e4d9df;border-radius:8px;padding:8px 12px;font-size:16px;background:#fff;color:var(--ink)}
.field-row{display:flex;gap:7px;margin-top:8px}.field-row button{min-height:40px;padding:6px 12px;border:1px solid #e2d7de;border-radius:7px;background:#fff;color:#765c69;font-size:12px}
.notice-box{background:#fff8ec;border:1px solid #f0dfc0;border-radius:8px;padding:12px 14px;font-size:11px;line-height:1.8;color:#7d6a3e;margin:0 0 14px}.notice-box strong{font-size:12px}
#mask-page .choices button{min-height:44px}
@media(max-width:600px){#mask-page nav{gap:11px;font-size:12px}#mask-page .header-inner{gap:10px}}@media(max-width:360px){#mask-page nav{gap:8px;font-size:11px}}

/* Zoomable viewport + full-screen editing on phones */
#mask-page .preview-box{position:relative}
#mask-page .viewport{position:absolute;inset:0;overflow:auto;display:flex;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#f1ebee}
#mask-page .viewport canvas{max-width:none;max-height:none;flex:none;margin:auto;width:auto;height:auto}
#mask-page .viewport.panning canvas{cursor:grab}
.zoom-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.zoom-bar .choices{flex:0 0 auto}.zoom-bar .choices button{min-width:64px}
.zoom-btns{display:flex;align-items:center;gap:6px}
.zoom-btns button,.open-editor{min-height:44px;min-width:44px;padding:6px 12px;border:1px solid #e2d7de;border-radius:8px;background:#fff;color:#765c69;font-size:15px}
.zoom-btns button:disabled{opacity:.45}
.zoom-btns output{min-width:52px;text-align:center;font-size:12px;color:#8f6c7d;font-variant-numeric:tabular-nums}
.open-editor{width:100%;background:#78383f;color:#fff;border-color:#78383f;font-size:14px;font-weight:600;margin-top:4px}
.editor-bar{display:none}
@media(max-width:760px){
  #mask-page .preview-box{aspect-ratio:auto;height:min(62vh,460px);max-height:none}
  #mask-page .remove-preview.editing{position:fixed;inset:0;z-index:1000;width:100%;padding:0;margin:0;background:#fff;display:flex;flex-direction:column;order:0}
  body.editing-open{overflow:hidden}
  #mask-page .remove-preview.editing .preview-heading,#mask-page .remove-preview.editing .preview-tip{display:none}
  #mask-page .remove-preview.editing .editor-bar{display:flex;gap:6px;align-items:center;padding:8px 10px;border-bottom:1px solid #eee5e9;background:#fff;order:1}
  #mask-page .remove-preview.editing .editor-bar .choices{flex:1;min-width:0}
  #mask-page .remove-preview.editing .editor-bar .choices button{min-height:44px;font-size:12px;padding:6px 3px}
  .editor-undo,.editor-done{min-height:44px;padding:6px 12px;border-radius:8px;border:1px solid #e2d7de;background:#fff;color:#765c69;font-size:13px;white-space:nowrap}
  .editor-undo:disabled{opacity:.45}
  .editor-done{background:#78383f;color:#fff;border-color:#78383f;font-weight:700}
  #mask-page .remove-preview.editing .preview-box{order:2;flex:1 1 auto;height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;max-height:none;aspect-ratio:auto}
  #mask-page .remove-preview.editing .zoom-bar{order:3;margin:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #eee5e9;background:#fff;flex-wrap:nowrap}
  #mask-page .remove-preview.editing .zoom-bar .choices button{min-width:56px}
  #mask-page .remove-preview.editing #status{order:4;position:absolute;left:10px;right:10px;top:62px;z-index:2;margin:0;padding:6px 10px;min-height:0;background:rgba(255,255,255,.92);border-radius:8px;pointer-events:none;font-size:11px}
  #mask-page .remove-preview.editing #status:empty{display:none}
  #mask-page .remove-preview.editing .open-editor{display:none}
}
#mask-page #status{margin:0;padding:9px 2px 0;background:transparent;border-radius:0;color:#8f6c7d;font-size:11px;line-height:1.6}
@media(max-width:760px){#mask-page .remove-preview.editing #status{margin:0;padding:6px 10px;background:rgba(255,255,255,.92);border-radius:8px}}
