.controller-editor {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #a4bedb;
  border-radius: 20px;
  padding: clamp(12px, 2.2vw, 23px);
  background: #f4faff;
  color: #102245;
  font: 650 15px system-ui, sans-serif;
  box-shadow: 0 18px 60px #07193165;
}
.controller-editor::backdrop { background: #11274a80; }
.controller-editor h2 { margin: 0; font-size: 1.25rem; }
.controller-editor-value { overflow-wrap: anywhere; min-height: 1.5em; margin: 7px 0 10px; padding: 7px 10px; background: white; border-radius: 8px; }
.controller-editor-keys { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.controller-editor-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; margin-top: 9px; }
.controller-editor button { color: #102245; border: 1px solid #a4bedb; border-radius: 7px; background: #fff; min-height: 36px; padding: 4px; cursor: pointer; pointer-events: auto; }
.controller-editor-actions button { padding-inline: 9px; }
.controller-editor button:focus, [data-pad-focus]:focus { outline: 2px solid #297dc2; outline-offset: 2px; box-shadow: 0 0 0 3px #ffd144; }
.controller-editor-keys:has(> button:nth-child(2):last-child), .controller-editor-keys:has(> button:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
