/* ============================================================
   ShortcutHelp.css —— K 键速查浮窗（2026-11-26）
   设计令牌自带 light-dark()，不依赖 .iv-container 的 --iv-*。
   z-index 100000：高于中台拖放遮罩(99999)与 AI 面板(13000)。
   ============================================================ */
.shk-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100000;
  width: min(390px, calc(100vw - 36px));
  max-height: min(66dvh, 560px);
  display: flex;
  flex-direction: column;
  color-scheme: inherit;
  --shk-bg: light-dark(#ffffff, #14171d);
  --shk-fg: light-dark(#1f2430, #e8ecf3);
  --shk-dim: light-dark(#667085, #9aa4b2);
  --shk-line: light-dark(#e4e8ef, #2a3039);
  --shk-chip: light-dark(#f1f3f7, #232932);
  background: var(--shk-bg);
  color: var(--shk-fg);
  border: 1px solid var(--shk-line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.shk-panel[hidden] { display: none; }

.shk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border-bottom: 1px solid var(--shk-line);
}
.shk-head strong { font-size: 13px; letter-spacing: 0.02em; }

.shk-body { padding: 4px 14px 8px; overflow-y: auto; min-height: 0; }
.shk-group { margin: 10px 0 4px; }
.shk-group h4 {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--shk-dim);
}
.shk-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
}
.shk-keys { white-space: nowrap; }
.shk-panel kbd {
  display: inline-block;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--shk-fg);
  background: var(--shk-chip);
  border: 1px solid var(--shk-line);
  border-radius: 4px;
}
.shk-foot {
  padding: 7px 14px;
  border-top: 1px solid var(--shk-line);
  color: var(--shk-dim);
  font-size: 11px;
}

@media (max-width: 520px) {
  .shk-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: 60dvh; }
  .shk-row { grid-template-columns: 108px minmax(0, 1fr); }
}
