/* Editing controls appear beside the painting, and only the active action expands. */
.editing-panel>summary,.edit-subdetails>summary{cursor:pointer;font-size:10px;color:var(--ink);padding:4px 0;list-style-position:inside;user-select:none}
.editing-panel>summary{font-size:12px;font-weight:550}.editing-panel>summary span,.edit-subdetails>summary span{display:block;font-size:9px;font-weight:400;color:var(--muted);margin:5px 0 2px 14px}
.editing-panel[open]>summary{margin-bottom:12px}.editing-panel p{line-height:1.6;margin:9px 0}.editing-panel .select-row{gap:7px}.editing-panel select{max-width:145px;font-size:10px}.editing-panel .select-row{font-size:10px}
.edit-number-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 10px;margin:11px 0}.edit-number-grid label{display:flex;flex-direction:column;gap:5px;font-size:9px;color:var(--muted)}
.edit-number-grid input{min-width:0;width:100%;padding:7px;border:1px solid var(--line);background:#fffefa;color:var(--ink);font:11px ui-monospace,monospace;border-radius:4px}
.edit-actions{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.edit-actions button,.edit-reset{border:1px solid var(--line);background:#fffaf260;padding:6px 8px;font-size:9px}.edit-reset{margin:8px 0}
.edit-subdetails{border-top:1px solid var(--line);margin-top:11px;padding-top:7px}.edit-commit{margin:14px -3px 0;padding:11px 7px;background:#e6e9dc;border:1px solid #d0d7c0;border-radius:6px}.edit-commit>span{font-size:9px;display:block;color:#526146;margin-bottom:9px}.edit-commit>div{display:flex;justify-content:space-between;gap:8px}.edit-commit button{font-size:10px;padding:8px 9px;border:1px solid #bdc7ad;background:#fafbef}.edit-commit #edit-apply{background:#59684a;color:#fff;border-color:transparent}
.edit-dock{padding:9px 3px;border:1px solid #cbd0bc;margin:6px 3px 12px;font-size:10px;color:#526044;background:#e7e9dc}.editing-active{cursor:crosshair!important}.editing-active~.cursor-ring{display:none!important}
.edit-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:5;touch-action:none}.edit-overlay path{vector-effect:non-scaling-stroke;fill:none}.edit-guide{stroke:#fff9ec;stroke-width:1.6;filter:drop-shadow(0 0 1px #273529)}.selection-guide{stroke:#303b32;stroke-width:1.2;stroke-dasharray:5 4;filter:drop-shadow(0 0 1px #fffbef)}.symmetry-guide{stroke:#765eae;stroke-width:1;stroke-dasharray:7 5;opacity:.7}.control-guide{stroke:#656f58;stroke-width:1;stroke-dasharray:3 3}.edit-overlay .edit-handle{fill:#fff9e9;stroke:#4d6645;stroke-width:1.7;pointer-events:all;cursor:move;filter:drop-shadow(0 1px 2px #0005)}.edit-overlay .selection-dimming{fill:#202a31;fill-opacity:.24;stroke:none}
.layer.clipped-layer{padding-left:13px;border-left:2px solid #9caa84}.layer-extras .select-row{font-size:10px}.layer-extras .check-row{font-size:10px}.layer-extras summary span{font-size:8px;line-height:1.5}
.preset-list{max-height:260px;overflow:auto;scrollbar-width:thin;margin-top:8px}.preset-row{display:flex;align-items:center;border-bottom:1px solid #e5e2d650;padding:2px 0}.preset-choice{display:flex;align-items:center;justify-content:space-between;gap:4px;flex:1;min-width:0;padding:5px 3px;border:1px solid transparent}.preset-choice span{font-size:9px;text-align:left}.preset-choice canvas{width:73px;height:22px;border-radius:4px}.preset-choice[aria-pressed=true]{background:#e6e9dc;border-color:#c7d0ba}.preset-fav{font-size:16px;color:#7f7959;padding:3px 0 3px 5px}.preset-panel summary span{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.symmetry-panel .select-row{font-size:10px}
.editing-panel input[type=color]{width:42px;height:27px;padding:0;border:1px solid var(--line)}
@media(max-width:680px){.edit-overlay .edit-handle{stroke-width:2}.editing-panel{padding:12px}.edit-dock{font-size:9px;padding:7px 1px}}
