.wall-edit-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:44px;border-color:#c9b2e76b;background:#241b32ee;color:#f0e4ff;font-size:12px;font-weight:600;line-height:1.25;touch-action:manipulation}
.wall-edit-toggle kbd{padding:3px 5px;border:1px solid currentColor;border-radius:4px;font:10px Arial,sans-serif;opacity:.8}
.wall-edit-toggle[aria-pressed=true]{background:#d8c2f0;color:#281b36;border-color:#eddefb;box-shadow:0 0 0 2px #b08bd72b}
.wall-edit-toggle:focus-visible{outline:2px solid #f0ddff;outline-offset:3px}
.wall-edit-save{min-height:44px;border-color:#f0ce7f8a;background:#3a2b18ee;color:#fff0bd;font-size:12px;font-weight:700;box-shadow:0 0 18px #e9bd5124;touch-action:manipulation}
.wall-edit-save:hover{background:#51391bee}
.wall-edit-save:focus-visible{outline:2px solid #ffe3a1;outline-offset:3px}
.wall-art-editing #world{cursor:crosshair}
.wall-art-editing #control-hint{color:#ecd8ff}
@media(max-width:650px){#wall-edit-toggle,#wall-edit-save{flex:1 1 64px;min-width:0;max-width:156px;gap:0;padding:8px;font-size:11px;white-space:normal}#wall-edit-toggle kbd{display:none}}
.gallery-frame-controls{position:fixed;inset:0;z-index:19;pointer-events:none;color:#f5f0ed;font-family:Arial,sans-serif}
.gallery-frame-controls,.gallery-frame-controls *{box-sizing:border-box}
.gallery-frame-guide{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.gallery-frame-guide polygon{fill:#cebbff07;stroke:#ddc9ff;stroke-width:2;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #000a)}
.gallery-frame-toolbar{position:fixed;width:min(590px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:13px 15px 11px;border:1px solid #c8ace668;border-radius:12px;background:#21182ef5;box-shadow:0 8px 38px #0008;pointer-events:auto;touch-action:auto;backdrop-filter:blur(12px)}
.gallery-frame-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gallery-frame-heading>div{display:flex;flex-direction:column;min-width:0;gap:3px}
.gallery-frame-kicker{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;color:#c9b2e7}
.gallery-frame-title{font:400 19px/1.2 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f4eaff}
.gallery-frame-done,.gallery-frame-artwork,.gallery-frame-duplicate{border:1px solid #c9b2e75e;background:#c9b2e711;border-radius:6px;padding:9px 12px;font-size:12px;min-height:36px;white-space:nowrap}
.gallery-frame-done{background:#d9c5f0;color:#271932;font-weight:700;border-color:#e8d8fc}
.gallery-frame-hint{font-size:12px;line-height:1.5;color:#cfc1db;margin:9px 0 11px}
.gallery-frame-fields{display:flex;align-items:end;gap:9px;flex-wrap:wrap}
.gallery-frame-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;color:#c9bcd7}
.gallery-frame-field input,.gallery-frame-field select{width:75px;min-height:37px;border:1px solid #dbc5f13d;border-radius:6px;background:#362640;color:#f8f0ff;font:12px Arial,sans-serif;padding:7px 9px;color-scheme:dark;outline-offset:2px}
.gallery-frame-field input:focus-visible,.gallery-frame-field select:focus-visible{outline:2px solid #ddc9ff}
.gallery-frame-field input:disabled{opacity:.45;cursor:not-allowed}
.gallery-frame-outline{margin-left:auto}.gallery-frame-outline select{width:97px}
.gallery-frame-color input{width:48px;padding:4px;cursor:pointer}
.gallery-frame-ratio{display:flex;align-items:center;gap:5px;min-height:37px;color:#ded0e9;font-size:11px;white-space:nowrap;cursor:pointer}
.gallery-frame-ratio input{margin:0;accent-color:#d4b6f1;width:15px;height:15px}
.gallery-frame-footer{display:flex;align-items:center;gap:12px;margin-top:11px;flex-wrap:wrap}
.gallery-frame-duplicate{background:#d8c2f02b;border-color:#dac3f28a}
.gallery-frame-duplicate:disabled{opacity:.55;cursor:wait}
.gallery-frame-artwork{font-size:12px;min-height:33px;padding:7px 10px}
.gallery-frame-status{margin:0;font-size:12px;line-height:1.5;color:#bcdbce;flex:1}
.gallery-frame-status[data-error=true]{color:#ffd1b9}
.gallery-frame-handle{position:fixed;width:20px;height:20px;padding:0;transform:translate(-50%,-50%);border:2px solid #f4e9ff;border-radius:5px;background:#8f65b9;box-shadow:0 1px 8px #000b;pointer-events:auto;touch-action:none;z-index:1}
.gallery-frame-handle:hover{background:#bc95e0}.gallery-frame-handle-nw,.gallery-frame-handle-se{cursor:nwse-resize}.gallery-frame-handle-ne,.gallery-frame-handle-sw{cursor:nesw-resize}.gallery-frame-handle-n,.gallery-frame-handle-s{cursor:ns-resize}.gallery-frame-handle-e,.gallery-frame-handle-w{cursor:ew-resize}
.gallery-frame-handle-n,.gallery-frame-handle-s,.gallery-frame-handle-e,.gallery-frame-handle-w{width:16px;height:16px;border-radius:50%}
.gallery-frame-controls[data-dragging=true] .gallery-frame-toolbar{opacity:.82}.gallery-frame-controls[data-dragging=true] .gallery-frame-guide polygon{stroke-dasharray:none;stroke:#e9d7ff}
.gallery-frame-controls[data-position-locked=true] .gallery-frame-guide polygon{stroke:#d9c58e;stroke-dasharray:3 5}
@media(pointer:coarse){.gallery-frame-handle{width:27px;height:27px}.gallery-frame-handle-n,.gallery-frame-handle-s,.gallery-frame-handle-e,.gallery-frame-handle-w{width:24px;height:24px}.gallery-frame-field input,.gallery-frame-field select{min-height:42px}.gallery-frame-done{min-height:42px}}
@media(max-width:550px){.gallery-frame-toolbar{padding:11px}.gallery-frame-title{font-size:17px}.gallery-frame-fields{gap:7px}.gallery-frame-field input{width:62px;font-size:16px}.gallery-frame-outline{margin-left:0}.gallery-frame-outline select{width:83px;font-size:12px}.gallery-frame-color input{width:40px}.gallery-frame-ratio{gap:4px}.gallery-frame-footer{gap:8px}}
@media(prefers-reduced-motion:reduce){.gallery-frame-toolbar{backdrop-filter:none}}
