.panel {
  width: 100%;
  height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
}
.linkBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  color: rgba(var(--fg-dim), 0.95);
}
.linkBtn:hover {
  background: rgba(var(--border), 0.08);
  color: rgb(var(--fg-color));
}

.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(var(--border), 0.03);
}

.rowCol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(var(--border), 0.03);
}

.rowLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgb(var(--fg-color));
}
.muted {
  color: rgba(var(--fg-dim), 0.8);
  font-size: 10px;
  margin-left: 6px;
}

.divider {
  height: 1px;
  background: rgba(var(--border), 0.08);
  margin: 6px 0;
}

.sectionTitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(var(--fg-dim), 0.8);
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(var(--border), 0.1);
  border-radius: 2px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(var(--accent));
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

/* Toggle */
.toggle {
  position: relative;
  width: 32px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggleTrack {
  position: absolute;
  inset: 0;
  background: rgba(var(--border), 0.2);
  border-radius: 999px;
  transition: background 0.18s;
}
.toggleThumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.18s;
}
.toggle input:checked + .toggleTrack {
  background: rgb(var(--accent));
}
.toggle input:checked + .toggleTrack .toggleThumb {
  transform: translateX(14px);
}

/* Hotkey row */
.hotkeyRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
}
.hotkeyLabel {
  font-size: 12px;
  color: rgba(var(--fg-color), 0.95);
}
.hotkeyInput {
  width: 140px;
  height: 26px;
  font-size: 11px;
  font-family: "Consolas", "Menlo", monospace;
  text-align: center;
  padding: 2px 6px;
}

.hint {
  font-size: 10px;
  color: rgba(var(--fg-dim), 0.7);
  margin-top: 4px;
  padding: 0 8px;
  line-height: 1.5;
}
.kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(var(--border), 0.1);
  border: 1px solid rgba(var(--border), 0.12);
  font-family: "Consolas", "Menlo", monospace;
  font-size: 10px;
  margin: 0 1px;
}
