[data-controller-focus="true"] {
  outline: 3px solid #087c75 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #fff9 !important;
}
.controllerMenuCursor {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  padding: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #087c75;
  box-shadow: 0 1px 5px #000b;
  pointer-events: none;
  z-index: 2147483647;
}
.controllerMenuCursor[hidden] { display: none !important; }
.controllerMenuCursor::backdrop { display: none; }
.controllerKeyboard {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 14px;
  border: 1px solid #78908c;
  border-radius: 8px;
  background: #f5faf8;
  color: #173d38;
  overflow: auto;
  font: 16px/1.3 system-ui, sans-serif;
  letter-spacing: 0;
}
.controllerKeyboard::backdrop { background: #061f27b3; }
.controllerKeyboard header { margin-bottom: 8px; }
.controllerKeyboard input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 38px;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid #78908c;
  border-radius: 4px;
  font: inherit;
  color: #173d38;
  background: #fff;
}
.controllerKeyboardKeys { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.controllerKeyboard button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  padding: 4px;
  border: 1px solid #b4c7c1;
  border-radius: 4px;
  font: inherit;
  color: #173d38;
  background: #fff;
  cursor: pointer;
}
.controllerKeyboard button:hover, .controllerKeyboard button[aria-pressed="true"] { background: #d8f0e5; }
.controllerKeyboard footer { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.controllerKeyboard footer button:last-child { background: #176f5d; color: #fff; }
.controllerKeyboard svg { width: 20px; height: 20px; }
@media (max-height: 450px) {
  .controllerKeyboard { padding: 8px 12px; }
  .controllerKeyboard header { display: none; }
  .controllerKeyboard input { margin-bottom: 6px; }
  .controllerKeyboardKeys { gap: 4px; }
  .controllerKeyboard button { height: 32px; }
}
