/* AX-Edge の鍵盤(DEVICE 欄。axpad.js)。紙の地・えんじの差し色に合わせる */
.axp { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; font-size: 13px; }
.axp[hidden] { display: none; }
.axp-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.axp-link { padding: 4px 12px; }
.axp-link.off { border-color: var(--warn); color: var(--warn); }
.axp-state { color: var(--dim); font-size: 12px; }
.axp-state .ok { color: var(--ok); }
.axp-state .bad { color: var(--warn); }
.axp-oct { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.axp-oct button { width: 30px; padding: 2px 0; }
.axp-range { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.axp-hint { color: var(--dim); font-size: 11.5px; }
.axp-kb { position: relative; height: 112px; user-select: none; touch-action: none; background: #2b2724; border-radius: 8px; padding: 0; overflow: hidden;
  box-shadow: 0 2px 6px rgba(60, 40, 20, .18); }
.axk { position: absolute; top: 0; margin: 0; padding: 0; border-radius: 0 0 4px 4px; min-width: 0; cursor: pointer; }
.axk.w { height: 100%; background: #fdfcf8; border: 1px solid #b9b0a3; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.axk.w small { font-size: 9.5px; color: var(--dim); margin-bottom: 4px; pointer-events: none; }
.axk.b { height: 60%; background: #2b2724; border: 1px solid #111; z-index: 2; }
.axk.w.on { background: #e7b9bd; }
.axk.b.on { background: var(--accent); }
.axk:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.axp-ctl { display: grid; gap: 6px; }
.axp-ctl label { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3.4em; gap: 8px; align-items: center; }
.axp-ctl label span { display: flex; flex-direction: column; line-height: 1.2; }
.axp-ctl small { color: var(--dim); font-size: 10.5px; }
.axp-ctl input { width: 100%; }
.axp-ctl output { text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); }
.axp-mode { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.axp-mode p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.5; }
.axp-dest { color: var(--ink); font-size: 12px; }
.axp.unlinked .axp-kb { opacity: .55; }
@media (max-width: 900px) {
  .axp-kb { height: 96px; }
  .axp-ctl label { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 3em; }
}

/* v28: AX-Edge のボタン(CC#80。Maestro の BTN を試す) */
.axp-sw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.axp-sw .axp-swb { padding: 4px 12px; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.axp-sw .axp-swb.on { box-shadow: inset 0 0 0 2px currentColor; font-weight: 700; }
.axp-sw small { opacity: .75; }
