#remote-input-panel .keyboard-commands { border-top: 1px solid #36383e; padding-top: 14px; margin-top: 6px; }
.keyboard-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 14px; border: 1px solid #42464c; border-radius: 6px; background: #18191d; }
.keyboard-mode button { min-width: 0; height: 34px; padding: 0 6px; border: 1px solid transparent; border-radius: 4px; color: #b9c0c9; background: transparent; font: inherit; font-size: 13px; letter-spacing: 0; cursor: pointer; }
.keyboard-mode button[aria-pressed="true"] { background: #34363b; border-color: #686b70; color: #fff; }
.keyboard-mode button:focus-visible { outline: 2px solid #fb8b36; outline-offset: 1px; }
#remote-input-panel .keyboard-add { display: flex; align-items: start; gap: 8px; }
#remote-input-panel .keyboard-add select { min-width: 0; flex: 1; }
.keyboard-icon-button { width: 36px; height: 38px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #42464c; border-radius: 6px; background: #25272d; color: #f2f3f5; cursor: pointer; }
.keyboard-icon-button:hover { background: #34383e; }
.keyboard-icon-button img, #remote-input-panel .dock-panel-close img { filter: invert(1); }
.keyboard-icon-button:focus-visible, .keyboard-mappings input:focus-visible { outline: 2px solid #fb8b36; outline-offset: 2px; }
.keyboard-mappings { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 12px; font-size: 11px; letter-spacing: 0; }
.keyboard-mappings th { padding: 6px 2px; color: #b9c0c9; font-weight: 500; text-align: left; overflow-wrap: anywhere; }
.keyboard-mappings th:first-child { width: 46px; }
.keyboard-mappings th:last-child { width: 26px; }
.keyboard-mappings td { padding: 5px 2px; border-bottom: 1px solid #34363b; }
.keyboard-mappings input { display: block; width: 100%; min-width: 0; height: 32px; box-sizing: border-box; border: 1px solid #42464c; border-radius: 4px; background: #202227; color: #fff; font: inherit; font-size: 13px; padding: 3px; text-align: center; }
.keyboard-mappings .keyboard-icon-button { width: 24px; height: 30px; border: 0; background: transparent; }
.keyboard-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.remote-keyboard-sink { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; resize: none; }
#remote-input-panel .keyboard-status { margin: 5px 0 12px; font-size: 12px; color: #efba70; }
#remote-input-panel .dock-panel-kicker { letter-spacing: 0; }
#remote-input-panel select:disabled { opacity: .5; }
@media (max-width: 900px) {
  #remote-input-panel { position: fixed; z-index: 9602; top: calc(64px + env(safe-area-inset-top, 0px)); right: 8px; width: min(360px, calc(100vw - 16px)); max-height: calc(100dvh - 80px - env(safe-area-inset-top, 0px)); overflow: auto; box-sizing: border-box; padding: 16px; border: 1px solid #3c3e44; border-radius: 8px; background: #15161a; color: #edf0f4; box-shadow: 0 12px 32px #0008; }
  #remote-input-panel[hidden] { display: none; }
  #remote-input-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  #remote-input-panel .dock-panel-kicker { display: block; margin-bottom: 4px; color: #8e98a7; font-size: 10px; font-weight: 600; text-transform: uppercase; }
  #remote-input-panel h2 { margin: 0; font-size: 17px; }
  #remote-input-panel .dock-panel-close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 1px solid #42464c; border-radius: 6px; background: #25272d; cursor: pointer; }
  #remote-input-panel .dock-field-label { display: block; margin-bottom: 7px; color: #b9c0c9; font-size: 12px; font-weight: 500; }
  #remote-input-panel .dock-select, #remote-input-panel .dock-action { width: 100%; min-height: 42px; border: 1px solid #42464c; border-radius: 6px; background: #25272d; color: #f2f3f5; font: inherit; font-size: 13px; padding: 8px 10px; }
  #remote-input-panel .dock-select { margin-bottom: 12px; }
  #remote-input-panel .dock-action { margin-top: 8px; text-align: left; cursor: pointer; }
  #remote-input-panel .dock-action-subtle { color: #b9c0c9; }
  #remote-input-panel .dock-panel-close:focus-visible, #remote-input-panel .dock-select:focus-visible, #remote-input-panel .dock-action:focus-visible { outline: 2px solid #fb8b36; outline-offset: 2px; }
}
