/* --------------------------------------------------------------------------
   Keyboard Shortcuts Modal Styling
   -------------------------------------------------------------------------- */
.shortcuts-header {
  margin-bottom: 12px;
}

.shortcuts-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shortcuts-header-top h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--graphite-dark);
  margin: 0;
}

.shortcuts-subtitle {
  font-size: 0.72rem;
  color: var(--graphite-light);
  margin-top: 3px;
}

.shortcuts-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shortcuts-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shortcuts-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pencil-gold, #c78932);
  margin-bottom: 2px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--paper-border);
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3.5px 0;
}

.shortcut-keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.shortcut-desc {
  font-size: 0.76rem;
  color: var(--graphite-medium);
  text-align: right;
  line-height: 1.3;
}

.shortcut-click {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--graphite-medium);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .shortcut-click {
  background: rgba(255, 255, 255, 0.06);
  color: var(--graphite-light);
}

.shortcut-subtext {
  font-size: 0.68rem;
  color: var(--graphite-light);
}

kbd {
  display: inline-block;
  padding: 1.5px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2b2723;
  background: #fbf9f6;
  border: 1px solid #d5cfc5;
  border-bottom: 2px solid #b8b0a2;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

[data-theme="dark"] kbd {
  color: #ede9e3;
  background: #2a2724;
  border-color: #48433d;
  border-bottom-color: #5e574f;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.latency-header,
.reverb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latency-header h3,
.reverb-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--graphite-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--graphite-light);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--graphite-dark);
}

.latency-description,
.reverb-description {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--graphite-medium);
  margin: 10px 0 16px 0;
}

/* Nudge section */
.latency-nudge-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-nudge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--paper-border);
  color: var(--graphite-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nudge:hover {
  background: var(--graphite-hover);
  border-color: var(--paper-border-focus);
}

.btn-nudge:active {
  background: var(--graphite-active);
}

.latency-input-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--paper-border-focus);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  min-width: 90px;
}

#input-latency-val {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--graphite-dark);
  width: 58px;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}

#input-latency-val::-webkit-outer-spin-button,
#input-latency-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.latency-ms-unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--graphite-light);
  margin-left: 3px;
}

/* Presets row */
.latency-presets-row,
.reverb-presets-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.presets-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--graphite-light);
}

.btn-preset,
.btn-rev-preset {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--paper-border);
  color: var(--graphite-medium);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover,
.btn-rev-preset:hover {
  background: #fff;
  border-color: var(--paper-border-focus);
  color: var(--graphite-dark);
}

.btn-preset.active,
.btn-rev-preset.active {
  background: var(--graphite-dark);
  color: #fff;
  border-color: var(--graphite-dark);
}

/* Reverb Sliders List (Tactile Audio Plugin Style) */
.reverb-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.reverb-slider-row {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.reverb-slider-track-wrap {
  position: relative;
  width: 100%;
  height: 34px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.reverb-slider-inner-labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.reverb-slider-name {
  font-family: var(--font-main);
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--graphite-dark);
  opacity: 0.55;
  letter-spacing: 0.01em;
}

.reverb-slider-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--graphite-dark);
  opacity: 0.65;
}

/* Tactile Range Slider overlay */
.reverb-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  cursor: ew-resize;
  outline: none;
}

.reverb-range::-webkit-slider-runnable-track {
  background: transparent;
  height: 100%;
  border: none;
}

.reverb-range::-moz-range-track {
  background: transparent;
  height: 100%;
  border: none;
}

.reverb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 28px;
  margin-top: 2px;
  border-radius: 4px;
  background-color: #ffffff;
  background-image: linear-gradient(
    to right,
    transparent 43%,
    rgba(0, 0, 0, 0.28) 43%,
    rgba(0, 0, 0, 0.28) 57%,
    transparent 57%
  );
  border: 1.5px solid var(--graphite-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  cursor: ew-resize;
  position: relative;
  z-index: 3;
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.reverb-range::-webkit-slider-thumb:hover {
  background-color: #fbfaf8;
  border-color: #111;
  transform: scaleY(1.04);
}

.reverb-range::-webkit-slider-thumb:active {
  background-color: var(--graphite-dark);
  background-image: linear-gradient(
    to right,
    transparent 43%,
    rgba(255, 255, 255, 0.5) 43%,
    rgba(255, 255, 255, 0.5) 57%,
    transparent 57%
  );
  border-color: var(--graphite-dark);
}

.reverb-range::-moz-range-thumb {
  width: 16px;
  height: 28px;
  border-radius: 4px;
  background-color: #ffffff;
  background-image: linear-gradient(
    to right,
    transparent 43%,
    rgba(0, 0, 0, 0.28) 43%,
    rgba(0, 0, 0, 0.28) 57%,
    transparent 57%
  );
  border: 1.5px solid var(--graphite-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  cursor: ew-resize;
}

.latency-divider {
  border: none;
  height: 1px;
  background: var(--paper-border);
  margin: 16px 0 14px 0;
}
