/* Winston V3 — keyboard shortcut help overlay. */

.kbhelp-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(20, 18, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.kbhelp {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kbhelp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.kbhelp-head h3 { font-size: var(--type-lg); font-weight: var(--weight-bold); margin: 0; }
.kbhelp-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  color: var(--ink-muted);
  font-size: 18px;
}
.kbhelp-close:hover { background: var(--surface-2); color: var(--ink); }
.kbhelp-body {
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.kbhelp-section-title {
  display: block;
  font-size: var(--type-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.kbhelp-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px var(--space-3);
  font-size: var(--type-sm);
  align-items: center;
}
.kbhelp-grid kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  font-weight: var(--weight-semi);
  color: var(--ink-2);
}
