/* PC 전용 키보드 단축키 설정 모달 (.scs-*) — 2026-08-18
   profiles/_shortcut_settings_modal + shortcut_settings_controller 짝.
   규칙 10: 폼 컨트롤은 배경·글자색 함께 지정(브라우저 강제 다크 대응). */

.scs-body { padding: 18px; }

.scs-intro {
  margin: 0 0 14px;
  padding: 11px 13px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.6;
}

.scs-head {
  display: flex;
  gap: 8px;
  padding: 0 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.scs-head-action { flex: 1; min-width: 0; }
.scs-head-key { width: 150px; flex-shrink: 0; }
.scs-head-del { width: 26px; flex-shrink: 0; }

.scs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 8px;
}
.scs-row.has-error { border-color: #fca5a5; }

.scs-action {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
  color: #111827;
  box-sizing: border-box;
}

.scs-key {
  width: 150px;
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: #f8fafc;
  color: #3e6187;
  cursor: pointer;
  box-sizing: border-box;
}
.scs-key::placeholder { font-weight: 400; color: #94a3b8; }
.scs-key.capturing {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.scs-remove {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
}
.scs-remove:hover { background: #fef2f2; }

.scs-row-error {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
  color: #dc2626;
  display: none;
}
.scs-row.has-error .scs-row-error { display: block; }

.scs-empty {
  margin: 4px 0 12px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

.scs-add {
  width: 100%;
  padding: 11px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #fff;
  color: #3e6187;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.scs-add:hover { background: #f8fafc; }

/* 다크모드 (개발자 전용 자체 다크) */
html.dark .scs-intro { background: #1e3a5f; border-color: #2c5282; color: #bfdbfe; }
html.dark .scs-head { color: #94a3b8; }
html.dark .scs-row { background: #1e293b; border-color: #334155; }
html.dark .scs-action { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html.dark .scs-key { background: #0f172a; border-color: #334155; color: #7dd3fc; }
html.dark .scs-add { background: #1e293b; color: #7dd3fc; border-color: #475569; }
html.dark .scs-add:hover { background: #263449; }
