/* Quiet feedback for the editor shell; never ease artwork or pointer geometry. */
:root[data-student-workspace=modern]{--motion-hover:150ms;--motion-press:80ms;--motion-ease:cubic-bezier(.2,.7,.2,1)}
:root[data-student-workspace=modern] :is(.context-command,.paint-modes button,.brush-presets button,.bento-swatch,.bento-color-add){transition:background-color 150ms ease-out,border-color 150ms ease-out,color 150ms ease-out,box-shadow 150ms ease-out}
:root[data-student-workspace=modern] :is(.context-command,.paint-modes button,.brush-presets button,.bento-swatch,.bento-color-add):focus-visible{outline:2px solid #9a7bdd;outline-offset:2px}
@media(hover:hover) and (pointer:fine){
  :root[data-student-workspace=modern] :is(.bento-swatch,.bento-color-add):hover{background:var(--surface-hover)}
  :root[data-student-workspace=modern] .brush-presets button:not(:disabled):hover{border-color:var(--accent);background:var(--surface-active)}
}
@media(max-width:699px){
  /* One scale effect produces an 18 → 28px thumb; do not enlarge it twice. */
  :root[data-student-workspace=modern] .bento-parameter.is-range-dragging .slider-thumb{width:18px;height:18px}
}
/* One moving highlight follows the paint state without delaying the color change. */
@supports selector(:has(*)){
  .paint-modes{position:relative;isolation:isolate;--paint-switch-inset:4px;--paint-switch-radius:7px}
  .paint-modes::before{content:"";position:absolute;box-sizing:border-box;inset:var(--paint-switch-inset) auto var(--paint-switch-inset) var(--paint-switch-inset);width:calc((100% - var(--paint-switch-inset) - var(--paint-switch-inset) - 4px)/2);border:1px solid transparent;border-radius:var(--paint-switch-radius);background:var(--surface-active,#eee8f6);pointer-events:none;transform:translateX(0);transition:transform 220ms cubic-bezier(.2,.7,.2,1),opacity 160ms ease-out}
  .paint-modes:has([data-paint-mode=gradient][aria-pressed=true])::before{transform:translateX(calc(100% + 4px))}
  .paint-modes:has(button:disabled)::before{opacity:.45}
  .paint-modes button{position:relative;z-index:1}
  :root[data-student-workspace=modern] .paint-modes button[aria-pressed=true]{background:transparent}
  @media(max-width:699px){
    .bento-style .paint-modes{--paint-switch-inset:0px;--paint-switch-radius:10px}
    :root[data-student-workspace=modern] .bento-style .paint-modes button{background:transparent}
    :root[data-student-workspace=modern] .bento-style .paint-modes button[aria-pressed=true]{background:transparent;border-color:transparent}
    .bento-style .paint-modes::before{background:rgba(139,107,214,.20);border-color:rgba(166,130,235,.45)}
  }
}
@media(prefers-reduced-motion:reduce){
  :root[data-student-workspace=modern] :is(.context-command,.paint-modes button,.brush-presets button,.bento-swatch,.bento-color-add){transition:none!important}
  .paint-modes::before{transition:none!important}
}
