.editor-screen{padding-block:30px 56px}.editor-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.editor-heading .eyebrow{margin-bottom:2px}.editor-heading h1{margin:0;font-size:clamp(19px,2.3vw,26px);font-weight:800;letter-spacing:-.04em;line-height:1.45}.editor-heading__privacy{margin:0 0 3px;color:var(--color-text-secondary);font-size:13px;white-space:nowrap}.editor-toolbar{display:flex;min-height:70px;align-items:center;gap:15px;padding:10px 16px;border:1px solid var(--color-border);border-radius:16px 16px 0 0;background:#fff}.toolbar-group{display:inline-flex;min-width:0;align-items:center;gap:6px}.toolbar-group--view{margin-left:auto}.toolbar-label{margin-right:3px;color:var(--color-text-secondary);font-size:13px;font-weight:700}.toolbar-divider{width:1px;height:28px;flex:0 0 1px;background:var(--color-border)}.tool-button{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:6px;padding:8px 11px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--color-text);font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease}.tool-button:hover:not(:disabled){background:#f1f6f4}.tool-button:disabled{color:#9ba8ad}.tool-button.is-active,.tool-button[aria-pressed=true]{border-color:#7fcdb7;background:var(--color-brand-soft)}.tool-button svg,.editor-actions__primary svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.tool-button--icon{font-size:23px;font-weight:400;line-height:.8}.color-swatch{display:block;width:18px;height:18px;flex:0 0 18px;border-radius:5px}.color-swatch--black{background:#000}.color-swatch--white{border:1.5px solid #87959b;background:#fff}.editor-workspace{padding:16px 16px 10px;border:1px solid var(--color-border);border-top:0;border-radius:0 0 16px 16px;background:#fff;box-shadow:var(--shadow-card)}.stage-frame{position:relative}.editor-stage{position:relative;width:100%;min-height:min(56vh,640px);overflow:hidden;border:1px solid #dbe5e2;border-radius:12px;background:#edf2f0;touch-action:none;user-select:none}.editor-stage:focus-visible{outline-offset:2px}#image-canvas,.selection-overlay{position:absolute;top:0;left:0;width:100%;height:100%}#image-canvas{display:block}.selection-overlay{pointer-events:none}.selection-border{position:absolute;outline:2px solid #178e74;outline-offset:2px;box-shadow:0 0 0 1px #fff inset;pointer-events:none}.selection-handle{position:absolute;z-index:2;width:28px;height:28px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:7px;background:#178e74;box-shadow:0 1px 5px #182a3547;cursor:nwse-resize;touch-action:none}.selection-handle.handle-ne,.selection-handle.handle-sw{cursor:nesw-resize}.selection-overlay button,.selection-overlay .resize-handle,.selection-overlay .selection-handle{pointer-events:auto}.keyboard-mask-button{position:absolute;z-index:3;top:12px;left:12px;min-height:40px;padding:8px 12px;opacity:0;pointer-events:none}.stage-frame:focus-within .keyboard-mask-button{opacity:1;pointer-events:auto}.editor-details{display:flex;min-height:52px;align-items:center;justify-content:space-between;gap:12px;padding:9px 3px 0}.editor-status{margin:0;color:var(--color-text-secondary);font-size:14px;font-weight:600}.editor-dimensions{color:#819097;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.selection-actions{display:flex;min-height:0;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}.mask-selector{display:flex;min-width:0;flex:1 1 275px;align-items:center;gap:10px;margin:3px 0 8px 3px}.mask-selector label{flex:0 0 auto;color:var(--color-text-secondary);font-size:13px;font-weight:700;white-space:nowrap}.mask-selector select{width:100%;max-width:260px;min-width:145px;min-height:44px;padding:8px 10px;border:1px solid var(--color-border);border-radius:9px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:15px;line-height:1.4}.mask-selector select:hover:not(:disabled){border-color:var(--color-brand)}.mask-selector select:disabled{opacity:.65}.editor-instruction{margin:0 0 12px;color:var(--color-text-secondary);font-size:14px;line-height:1.55}.mobile-copy{display:none}.text-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:6px 9px;border:0;border-radius:9px;background:transparent;color:var(--color-text-secondary);font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:.18em}.text-button:hover{background:#eef5f1;color:var(--color-text)}.text-button--danger:hover{background:#fff2f2;color:#8e2323}.editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.editor-actions__secondary,.editor-actions__primary{display:flex;align-items:center;gap:10px}.editor-actions__primary .button{min-height:50px}#save-image{min-width:178px}.save-note{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-top:10px}.save-note p{margin:0;color:var(--color-text-secondary);font-size:13px}@media(max-width:860px){.editor-toolbar{flex-wrap:wrap}.toolbar-group--view{margin-left:0}.editor-heading__privacy{display:none}.editor-stage{min-height:50vh}}@media(max-width:640px){.editor-screen{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding-block:18px calc(176px + env(safe-area-inset-bottom))}.editor-heading{grid-column:1 / -1;margin-bottom:14px}.editor-heading h1{font-size:17px}.editor-heading .eyebrow{font-size:12px}.editor-toolbar{display:contents}.toolbar-divider{display:none}.toolbar-group--colors{grid-column:1;grid-row:2;margin-bottom:12px}.toolbar-group--history{grid-column:2;grid-row:2;margin-bottom:12px}.toolbar-group--history .tool-button__text{display:none}.toolbar-group--history .tool-button{width:44px;padding-inline:0}.toolbar-group--view{grid-column:1 / -1;grid-row:4;justify-self:center;margin:12px 0 0;padding:4px;border:1px solid var(--color-border);border-radius:12px;background:#fff}.editor-workspace{grid-column:1 / -1;grid-row:3;min-width:0;padding:8px 8px 2px;border:1px solid var(--color-border);border-radius:14px}.editor-stage{height:clamp(220px,calc(100dvh - 480px),440px);min-height:0;border-radius:9px}.editor-details{min-height:44px;padding-inline:3px}.editor-status,.editor-dimensions{font-size:12px}.selection-actions{min-height:0}.mask-selector{width:100%;flex-basis:100%;gap:8px;margin:3px 0 7px}.mask-selector label{font-size:13px}.mask-selector select{flex:1;max-width:none;min-width:0;font-size:16px}.editor-instruction{margin:-5px 0 12px;font-size:13px}.desktop-copy{display:none}.mobile-copy{display:inline}.selection-actions .text-button{min-height:38px;font-size:12px}.editor-actions{position:fixed;z-index:20;right:0;bottom:0;left:0;flex-direction:column;align-items:stretch;gap:3px;margin:0;padding:7px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid var(--color-border);background:#fffffff7;box-shadow:0 -8px 24px #182a350f}.editor-actions__secondary{gap:12px}.editor-actions__secondary .text-button{min-height:34px;padding-block:2px;font-size:12px}.editor-actions__primary{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:8px}.editor-actions__primary .button{width:100%;min-width:0!important;min-height:50px;padding-inline:7px;font-size:14px}.save-note{grid-column:1 / -1;grid-row:5;justify-content:center;flex-wrap:wrap;gap:0;margin-top:12px;text-align:center}.save-note p{width:100%;font-size:12px}.toast{right:16px;bottom:calc(132px + env(safe-area-inset-bottom));left:16px;max-width:none}body:has(.editor-screen:not([hidden])) .site-footer{padding-bottom:calc(114px + env(safe-area-inset-bottom))}}@media(max-width:375px){.toolbar-label{display:none}.toolbar-group--colors,.toolbar-group--history{gap:2px}.tool-button--color{padding-inline:8px}}.editor-screen{padding-block:30px 66px}.editor-heading{margin-bottom:20px}.editor-heading .eyebrow{color:var(--color-brand)}.editor-toolbar{border-color:var(--color-border);border-radius:16px 16px 0 0;background:var(--color-surface)}.toolbar-divider{background:var(--color-border)}.tool-button{color:var(--color-text)}.tool-button:hover:not(:disabled){background:var(--color-brand-soft)}.tool-button:disabled{color:#9aa8bd}.tool-button.is-active,.tool-button[aria-pressed=true]{border-color:#aac0ff;background:var(--color-brand-soft);color:#2d60dd}.editor-workspace{border-color:var(--color-border);background:var(--color-surface)}.editor-stage{border-color:var(--color-border);background:#eef2fa}.selection-border{outline-color:#416fff}.selection-handle{background:#416fff}.text-button{color:var(--color-text-secondary)}.text-button:hover{background:var(--color-brand-soft);color:var(--color-text)}.text-button--danger{color:var(--color-danger)}.text-button--danger:hover{background:#fff0f2;color:#a62538}.editor-actions__primary .button{min-height:52px}#save-image{min-width:202px}html[data-theme=dark] .editor-toolbar,html[data-theme=dark] .editor-workspace,html[data-theme=dark] .toolbar-group--view{background:var(--color-surface)}html[data-theme=dark] .tool-button.is-active,html[data-theme=dark] .tool-button[aria-pressed=true]{border-color:#627fcb;color:#c7d6ff}html[data-theme=dark] .editor-stage{background:#101a2d}html[data-theme=dark] .editor-actions{background:var(--color-background)}html[data-theme=dark] .text-button--danger:hover{background:#492532;color:#ffc2c9}@media(max-width:640px){.editor-screen{padding-block:20px calc(176px + env(safe-area-inset-bottom))}.editor-toolbar{display:contents}.toolbar-group--view{background:var(--color-surface)}.editor-workspace{border-color:var(--color-border)}.editor-stage{height:clamp(220px,calc(100dvh - 475px),440px)}.editor-actions,html[data-theme=dark] .editor-actions{background:var(--color-surface)}}
