/* keyboard-test 전용. 공용은 /assets/site.css */
.kb-ui .focus-hint { margin: 0 0 10px; font-size: 14px; color: var(--seal); font-weight: 600; }
.kb-ui .board { position: relative; width: 100%; aspect-ratio: 23 / 6.5; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.kb-ui .key {
  position: absolute; box-sizing: border-box; border: 1px solid var(--ink-3); border-radius: 2px; background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: 0.4cqw 0.5cqw; overflow: hidden;
  font: 600 1.05cqw/1.1 var(--mono); color: var(--ink); transition: background-color .06s, border-color .06s;
}
.kb-ui .key .l { white-space: nowrap; }
.kb-ui .key.long .l { font-size: 0.82cqw; }
.kb-ui .key .j { align-self: flex-end; font: 500 1.05cqw/1 var(--sans); color: var(--ink-3); }
.kb-ui .key.tested { background: var(--seal-soft); border-color: var(--seal); }
.kb-ui .key.down { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kb-ui .key.down .j { color: var(--paper); }
.kb-ui .key.chatter { box-shadow: inset 0 0 0 0.3cqw var(--danger); }
.kb-ui .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid var(--ink); }
.kb-ui .stats div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.kb-ui .stats dt { font-size: 13px; color: var(--ink-3); }
.kb-ui .stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-ui .controls { margin-top: 14px; gap: 10px; }
.kb-ui .controls label { margin: 0; }
.kb-ui .controls select { width: auto; min-width: 96px; }
.kb-ui .log-label { margin: 18px 0 6px; font-size: 13px; color: var(--ink-3); }
.kb-ui .log { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); min-height: 3em; white-space: pre; overflow-x: auto; }
.kb-ui .log li.warn { color: var(--danger); font-weight: 700; }
@media (max-width: 640px) {
  .kb-ui .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
