/* Quiztris v582 image-editor dock, adapted for Spellform. */
.compact-workspace .inspector.unified-inspector{padding:0;border:0;background:transparent;box-shadow:none}
.stage-edit-dock #boardMenuBody,.stage-edit-dock #gameMenuBody{padding:14px 18px 10px;margin:0}
.stage-edit-dock .mobile-edit-menu button[data-board-menu="paint"]{--tab-color:#e8523f!important}
.stage-edit-dock .mobile-edit-menu button[data-board-menu="grid"]{--tab-color:#2878d0!important}
.stage-edit-dock .mobile-edit-menu button[data-board-menu="colours"]{--tab-color:#db8218!important}
.stage-edit-dock .mobile-edit-menu button[data-board-menu="rules"]{--tab-color:#8d52a8!important}
.stage-edit-dock .mobile-edit-menu button[data-game-menu="game"]{--tab-color:#168878!important}
.stage-edit-dock .mobile-edit-menu button[data-game-menu="scoring"]{--tab-color:#db8218!important}
.stage-footer{align-items:center}.stage-edit-dock .board-brush-bar{display:flex;grid-template-columns:none;gap:6px}
@media(max-width:700px){.stage-edit-dock #boardMenuBody,.stage-edit-dock #gameMenuBody{padding:12px 10px 10px}}
.region-border{vector-effect:non-scaling-stroke;transition:stroke .12s,fill .12s;stroke-width:1.5px}
.region-hover .region-border{stroke:#fff6cc;stroke-width:3px;fill:#ffdf91;fill-opacity:.12;filter:drop-shadow(0 0 3px #183c32)}
.image-editing .region-tag{cursor:grab}.region-trash{cursor:pointer;color:#fff3d7}.region-trash:hover rect,.region-trash:focus-visible rect{fill:#a83f36}.region-trash:focus-visible{outline:none}.region-trash:focus-visible rect{stroke:#fff;stroke-width:2}
.compact-workspace .inspector.image-inspector{padding:0;border:0;background:transparent;box-shadow:none}
.workspace.image-editing .surface-actions #undoButton,.workspace.image-editing .surface-actions #redoButton{display:none}
.mobile-edit-dock{--line:#dfdcd2;display:flex;flex-direction:column;width:100%;margin:20px auto 0;border-radius:16px;background:#f7f5ef}
.mobile-controls{padding:14px 18px 10px}
.mobile-edit-menu svg,.mobile-controls svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.frame-action-bar,.draw-action-bar,.obscure-action-bar,.tone-action-bar{display:flex;width:100%;justify-content:center;gap:6px;padding:2px 0 9px;overflow-x:auto;scrollbar-width:thin}
.frame-action-bar button,.draw-action-bar button,.obscure-action-bar button,.tone-action-bar button,.draw-color-control{display:grid;place-items:center;flex:0 0 64px;min-height:50px;border:0;border-radius:14px;background:transparent;color:#565850;padding:0;margin:0}
.frame-action-bar button.active,.draw-action-bar button.active,.obscure-action-bar button.on,.tone-action-bar button.active{background:#e3f2e5;color:#2d9b4a}
.frame-action-bar button[data-frame-action="crop"]{color:#2878d0}.frame-action-bar button[data-frame-action="rotate"]{color:#db8218}.frame-action-bar button[data-frame-action="mirror"]{color:#168878}.frame-action-bar button[data-frame-action="quality"]{color:#8d52a8}
.tone-action-bar button[data-tone-action="brightness"]{color:#e5951c}.tone-action-bar button[data-tone-action="contrast"]{color:#5865b5}.tone-action-bar button[data-tone-action="saturation"]{color:#d64f83}.tone-action-bar button[data-tone-action="grayscale"]{color:#6f746d}.tone-action-bar button[data-tone-action="hue"]{color:#8d52a8}
.draw-color-control{position:relative;cursor:pointer}.draw-color-control span{font-size:30px;line-height:1}.draw-color-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.draw-options>input{display:block;width:min(100%,420px);min-height:44px;margin:0 auto 8px;padding:10px 12px;border:1px solid #dfdcd2;border-radius:10px;background:#fff;font:inherit}
.editor-extra-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.editor-extra-actions button{min-width:44px}
.editor-footer-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.editor-region-settings{padding:12px;border:1px solid #d7e3df;border-radius:14px;background:white;margin:12px 0}.editor-region-settings summary{font-size:.85rem}
.obscure-vertical-control:not([hidden]){position:absolute;right:10px;top:50%;z-index:3;display:flex;flex-direction:column;align-items:center;gap:7px;padding:11px 8px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(24,25,19,.76);color:#fff;box-shadow:0 6px 22px rgba(0,0,0,.3);transform:translateY(-50%);backdrop-filter:blur(5px)}
.obscure-vertical-control input[type="range"]{width:30px!important;height:210px;margin:0;writing-mode:vertical-lr;direction:rtl;accent-color:#d7f04b;touch-action:none}
.obscure-vertical-control span:empty{display:none}.obscure-vertical-control output{font-size:11px;min-width:32px;text-align:center}
.obscure-mode-flip{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(255,255,255,.12);color:#fff}
.obscure-mode-flip svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}.obscure-mode-flip.inside{background:#d7f04b;color:#181913;border-color:#d7f04b}.obscure-mode-flip.inside svg{transform:rotate(180deg)}
@media(max-width:700px){.mobile-controls{padding:12px 10px 10px}.frame-action-bar,.draw-action-bar,.obscure-action-bar,.tone-action-bar{justify-content:flex-start}.frame-action-bar button,.draw-action-bar button,.obscure-action-bar button,.tone-action-bar button,.draw-color-control{flex-basis:48px}.obscure-vertical-control input[type="range"]{height:150px}.obscure-vertical-control:not([hidden]){right:6px;padding:8px 5px}}
/* Animated raised-icon editor tab bar v66, adapted from the referenced interaction */
.mobile-edit-dock{overflow:visible!important}
.mobile-edit-dock .mobile-edit-menu{position:relative;z-index:4;display:flex!important;align-items:center!important;justify-content:space-around!important;min-height:74px;padding:10px 9px 5px!important;border:0!important;border-radius:18px 18px 0 0;background:#1d1d27!important;overflow:visible!important;isolation:isolate}
.editor-tab-wave{position:absolute;z-index:0;top:-18px;left:0;width:88px;height:50px;border-radius:48px 48px 10px 10px;background:#1d1d27;opacity:0;transform:translate3d(max(var(--wave-min,18px),var(--wave-x,18px)),0,0);transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .2s ease;pointer-events:none}
.editor-tab-wave::before,.editor-tab-wave::after{content:"";position:absolute;bottom:0;width:22px;height:22px;background:transparent}
.editor-tab-wave::before{left:-18px;border-bottom-right-radius:20px;box-shadow:8px 8px 0 5px #1d1d27}.editor-tab-wave::after{right:-18px;border-bottom-left-radius:20px;box-shadow:-8px 8px 0 5px #1d1d27}
.mobile-edit-menu:has(button.active) .editor-tab-wave{opacity:1}
.mobile-edit-dock .mobile-edit-menu button[role="tab"]{--tab-color:#2d9b4a;position:relative;z-index:2;display:grid;place-items:center;flex:1 1 64px;min-width:52px;max-width:104px;min-height:54px;margin:0!important;padding:0;border:0!important;border-radius:50%!important;background:transparent!important;color:#d8d8df!important;box-shadow:none!important;transform:translateY(0);transition:transform .55s cubic-bezier(.34,1.56,.64,1),color .3s ease;isolation:isolate}
.mobile-edit-dock .mobile-edit-menu button[role="tab"]::before{content:"";position:absolute;z-index:-1;width:52px;height:52px;border-radius:50%;background:var(--tab-color);box-shadow:0 0 0 0 #f7f5ef,0 8px 20px rgba(0,0,0,.28);opacity:0;transform:scale(.45);transition:transform .45s cubic-bezier(.34,1.56,.64,1),opacity .25s ease,box-shadow .45s ease}
.mobile-edit-dock .mobile-edit-menu button[role="tab"] svg{position:relative;z-index:1;width:25px;height:25px;opacity:.76;transition:transform .45s cubic-bezier(.34,1.56,.64,1),opacity .25s ease}
.mobile-edit-dock .mobile-edit-menu button[role="tab"].active{z-index:6;color:#fff!important;transform:translateY(-15px)}
.mobile-edit-dock .mobile-edit-menu button[role="tab"].active::before{opacity:1;transform:scale(1);box-shadow:0 0 0 6px #f7f5ef,0 9px 20px rgba(0,0,0,.28)}
.mobile-edit-dock .mobile-edit-menu button[role="tab"].active svg{opacity:1;transform:scale(1)}
.mobile-edit-menu button[data-mobile-tool="frame"]{--tab-color:#2878d0!important}.mobile-edit-menu button[data-mobile-tool="draw"]{--tab-color:#e8523f!important}.mobile-edit-menu button[data-mobile-tool="obscure"]{--tab-color:#8d52a8!important}.mobile-edit-menu button[data-mobile-tool="tone"]{--tab-color:#db8218!important}.mobile-edit-menu button[data-mobile-tool="help"]{--tab-color:#168878!important}
.mobile-edit-dock .mobile-controls:not([hidden]){position:relative;z-index:2;border:1px solid #9fbe67!important;border-top:0!important;border-radius:0 0 16px 16px;background:#edf6e7!important}
@media(max-width:480px){.mobile-edit-dock .mobile-edit-menu{padding-inline:4px!important}.mobile-edit-dock .mobile-edit-menu button[role="tab"]{min-width:48px}.mobile-edit-dock .mobile-edit-menu button[role="tab"]::before{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.mobile-edit-dock .mobile-edit-menu button[role="tab"],.mobile-edit-dock .mobile-edit-menu button[role="tab"]::before,.mobile-edit-dock .mobile-edit-menu button[role="tab"] svg,.editor-tab-wave{transition:none}}

/* Context help, edit history, and post-only answers v68 */
.tool-info-panel{display:flex;align-items:center;gap:11px;width:100%;margin:4px 0 2px;padding:11px 13px;border:2px solid #2d9b4a;border-radius:14px;background:#f4fbf3;color:#34372f}
.tool-info-panel .info-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#2d9b4a;color:#fff;font:900 18px/1 Georgia,serif}.tool-info-panel p{margin:0;font-size:13px;line-height:1.45}
.editor-history-actions{position:relative;z-index:7;display:flex;align-items:center;justify-content:flex-end;flex:0 0 86px;gap:4px;margin-left:auto;padding-left:7px;border-left:1px solid rgba(255,255,255,.18)}
.mobile-edit-dock .mobile-edit-menu .editor-history-actions button{display:grid;place-items:center;flex:0 0 38px!important;width:38px;min-width:38px!important;max-width:38px;height:38px;min-height:38px!important;margin:0;padding:0;border:1px solid rgba(255,255,255,.18)!important;border-radius:50%!important;background:rgba(255,255,255,.09)!important;color:#fff!important;transform:none!important;transition:background .2s ease,opacity .2s ease}
.mobile-edit-dock .mobile-edit-menu .editor-history-actions button:hover:not(:disabled){background:rgba(255,255,255,.2)!important}.mobile-edit-dock .mobile-edit-menu .editor-history-actions button:disabled{opacity:.28;cursor:not-allowed}.mobile-edit-dock .mobile-edit-menu .editor-history-actions svg{width:20px;height:20px;opacity:1}
@media(max-width:480px){.editor-history-actions{flex-basis:76px;gap:2px;padding-left:4px}.mobile-edit-dock .mobile-edit-menu .editor-history-actions button{flex-basis:34px!important;width:34px;min-width:34px!important;max-width:34px;height:34px;min-height:34px!important}.mobile-edit-dock .mobile-edit-menu button[role="tab"]{min-width:43px}}
@media(max-width:600px) and (orientation:portrait){
  .editor-tab-wave{--wave-min:-10px}
  .mobile-edit-dock .mobile-edit-menu{min-height:64px;padding:8px 4px 4px!important}
  .mobile-edit-dock .mobile-edit-menu button[role="tab"]{flex-basis:42px;min-width:38px;max-width:64px;min-height:46px}
  .mobile-edit-dock .mobile-edit-menu button[role="tab"]::before{width:42px;height:42px}
  .mobile-edit-dock .mobile-edit-menu button[role="tab"] svg{width:20px;height:20px}
  .mobile-edit-dock .mobile-edit-menu button[role="tab"].active{transform:translateY(-11px)}
  .editor-history-actions{flex-basis:66px;gap:2px;padding-left:3px}
  .mobile-edit-dock .mobile-edit-menu .editor-history-actions button{flex-basis:30px!important;width:30px;min-width:30px!important;max-width:30px;height:30px;min-height:30px!important}
  .mobile-edit-dock .mobile-edit-menu .editor-history-actions svg{width:16px;height:16px}
}
@media(max-width:600px){.mobile-edit-dock .mobile-edit-menu{clip-path:inset(-32px -32px -32px 0)}}
/* Full-width compact word placement sub-menu. */
#autoWordSettings { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; min-width:0; }
#autoWordSettings[hidden] { display:none; }
#autoWordSettings > p { grid-column:1 / -1; }
#autoWordSettings input { width:100%; min-width:0; }
#autoWordSettings > button { justify-self:start; }
