/* === KP PLAYER REGISTRY PANEL (v1.0) ===
   Fixed-height, always-visible sidecar panel above legacy multiline input. */

.kp-player-registry-panel {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 320px;
  min-height: 320px;
  box-sizing: border-box;
}

.kp-pr-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kp-pr-search-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .kp-pr-search-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.kp-pr-search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.2;
  box-sizing: border-box;
}

.kp-pr-search-input:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 0;
  border-color: #2563eb;
}

.kp-pr-add-new-btn {
  min-height: 42px;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.kp-pr-add-new-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.kp-pr-feedback {
  min-height: 18px;
  font-size: 12px;
  color: #334155;
}

.kp-pr-feedback.is-ok {
  color: #047857;
}

.kp-pr-feedback.is-warn {
  color: #b45309;
}

.kp-pr-feedback.is-error {
  color: #b91c1c;
}

.kp-pr-list {
  flex: 1 1 auto;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #ffffff;
  overflow-y: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}

.kp-pr-list-empty {
  padding: 12px 10px;
  font-size: 13px;
  color: #64748b;
}

.kp-pr-row {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  min-height: 54px;
}

.kp-pr-row + .kp-pr-row {
  margin-top: 4px;
}

.kp-pr-row:hover,
.kp-pr-row:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  outline: none;
}

.kp-pr-row-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.kp-pr-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kp-pr-row-code {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.kp-pr-row-sub {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}
