.rpca { max-width: 640px; }
.rpca-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rpca-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.rpca-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.rpca-panel { display: flex; flex-direction: column; gap: 12px; }
.rpca-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.rpca-panel input, .rpca-panel select {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; background: #fff; color: #27331f;
}
.rpca-panel input:focus, .rpca-panel select:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.rpca-panel input[type="file"] { padding: 7px; font-size: 13px; }
.rpca-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rpca-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.rpca-btn {
  align-self: flex-start; padding: 10px 18px; font-size: 14px; font-weight: 700; border-radius: 6px;
  border: 1px solid #19616a; background: #19616a; color: #fff; cursor: pointer;
}
.rpca-btn:hover { background: #144d54; }
.rpca-btn:disabled { background: #d9e0d4; border-color: #d9e0d4; color: #5b6b56; cursor: not-allowed; }

.rpca-status { font-size: 13px; color: #5b6b56; min-height: 1.2em; }
.rpca-status.rpca-status-ok { color: #19616a; font-weight: 700; }
.rpca-status.rpca-status-err { color: #b3261e; font-weight: 700; }

.rpca-download {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 18px;
  font-size: 14px; font-weight: 700; border-radius: 6px; border: 1px solid #19616a; background: #fff;
  color: #19616a; text-decoration: none;
}
.rpca-download:hover { background: #f3f4f8; }

.rpca-note {
  margin-top: 16px; font-size: 13px; color: #5b6b56;
}
.rpca-hint { font-size: 12.5px; color: #5b6b56; margin: 0; }
.rpca-warn {
  font-size: 12.5px; color: #7a4a00; background: #fff6e6; border: 1px solid #f0d9a0; border-radius: 6px;
  padding: 8px 10px; margin: 0;
}

.rpca-preview { display: flex; align-items: center; gap: 12px; }
.rpca-preview img, .rpca-preview canvas {
  width: 48px; height: 48px; object-fit: contain; border: 1px solid #d9e0d4; border-radius: 6px; background: #f3f4f8;
  image-rendering: pixelated;
}

.rpca-emoji-list { display: flex; flex-direction: column; gap: 10px; }
.rpca-emoji-entry {
  display: flex; align-items: center; gap: 10px; padding: 10px; background: #f3f4f8; border: 1px solid #d9e0d4;
  border-radius: 6px; flex-wrap: wrap;
}
.rpca-emoji-entry label { flex: 1 1 140px; }
.rpca-emoji-remove {
  padding: 7px 10px; font-size: 12.5px; font-weight: 700; border-radius: 6px; border: 1px solid #d9e0d4;
  background: #fff; color: #b3261e; cursor: pointer;
}
.rpca-add-emoji {
  align-self: flex-start; padding: 8px 14px; font-size: 13px; font-weight: 700; border-radius: 6px;
  border: 1px dashed #19616a; background: #fff; color: #19616a; cursor: pointer;
}

@media (max-width: 480px) {
  .rpca-row2, .rpca-row3 { grid-template-columns: 1fr; }
}
