/* Etapa 47 — solo registro en la vista Compatibles, sin alterar fichas de Todas. */
body.rk-collections-v20 .collection-set-view .rk-col47-open {
  appearance:none !important;
  display:inline-flex !important;
  flex:0 0 auto !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:3px 7px !important;
  font:700 10px/1.2 system-ui,sans-serif !important;
  color:#f8d68c !important;
  background:#332b1e !important;
  border:1px solid #997640 !important;
  border-radius:5px !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
body.rk-collections-v20 .collection-set-view .rk-col47-open:hover,
body.rk-collections-v20 .collection-set-view .rk-col47-open:focus-visible {
  background:#64451d !important;
  outline:2px solid #ebbc5d !important;
  outline-offset:1px !important;
}
/* Native <dialog> is in the browser's top layer: not part of grid row height. */
body.rk-collections-v20 dialog.rk-col47-dialog:not([open]){display:none !important}
body.rk-collections-v20 dialog.rk-col47-dialog[open] {
  display:block !important;
  box-sizing:border-box !important;
  position:fixed !important;
  inset:0 !important;
  margin:auto !important;
  padding:18px !important;
  width:min(440px,calc(100vw - 28px)) !important;
  max-width:440px !important;
  max-height:min(85dvh,660px) !important;
  overflow-y:auto !important;
  z-index:99999 !important;
  color:#e7effa !important;
  background:#152034 !important;
  border:1px solid #bd934b !important;
  border-radius:12px !important;
  box-shadow:0 24px 80px #000b !important;
  font:13px/1.45 system-ui,Arial,sans-serif !important;
}
body.rk-collections-v20 dialog.rk-col47-dialog::backdrop {background:rgba(3,7,14,.76)}
.rk-col47-dialog-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #435169}
.rk-col47-dialog-heading small{display:block;color:#e6bd6d;font-size:10px;font-weight:700;letter-spacing:.065em}
.rk-col47-dialog-heading h3{margin:4px 0 3px;color:#ffdaa1;font-size:19px;line-height:1.25}
.rk-col47-dialog-heading p{margin:0;color:#aebfd1;font-size:12px}
.rk-col47-close{flex:none;border:1px solid #627085;border-radius:6px;padding:0 8px;background:transparent;color:#edf4fc;font-size:23px;cursor:pointer}
body.rk-collections-v20 .rk-col47-dialog .rk-col47-form{display:grid !important;gap:14px !important;margin:0 !important;padding:0 !important;background:transparent !important;border:0 !important}
.rk-col47-form>label:not(.collection-consent){display:grid;gap:6px;color:#e4edf7;font-size:12px;font-weight:700}
body.rk-collections-v20 .rk-col47-form select,
body.rk-collections-v20 .rk-col47-form input[name=code]{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:10px 12px;border-radius:7px;background:#090f1b;color:#f5f8fd;border:1px solid #74849c;font:13px/1.3 system-ui}
.rk-col47-form .collection-consent{display:flex !important;gap:9px !important;align-items:flex-start !important;margin:0 !important;color:#dbe5f1;font:12px/1.4 system-ui}
.rk-col47-form .collection-consent input{flex:0 0 auto;width:16px;height:16px;margin:1px 0 0;accent-color:#eabd6d}
.rk-col47-actions{display:flex;gap:9px;justify-content:flex-end;align-items:center;margin-top:5px}
body.rk-collections-v20 .rk-col47-dialog .rk-col47-actions button{font:700 12px/1.3 system-ui;min-height:38px;border-radius:7px;padding:9px 12px;cursor:pointer}
body.rk-collections-v20 .rk-col47-dialog .rk-col47-cancel{background:#26354b;color:#e1eafa;border:1px solid #516277}
body.rk-collections-v20 .rk-col47-dialog .rk-col47-submit{background:#e7b65d;color:#18130d;border:1px solid #e7b65d}
.rk-col47-feedback{margin:0 0 14px;padding:10px;border-radius:7px;border:1px solid #a9864e;background:#44341f;color:#ffe1ab;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.rk-col47-feedback.rk-col47-offline{border-color:#cc805f;background:#40251f}
.rk-col47-warning{color:#deebf7;margin:0 0 12px;font:12px/1.55 system-ui}
@media (min-width:1100px){
 body.rk-collections-v20 .collection-set-view .collection-card.is-available-mode .collection-pieces {
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(0,290px)) !important;
  justify-content:center !important;
  align-content:start !important;
  align-items:start !important;
  gap:10px !important;
 }
}
@media (max-width:1099px){
 body.rk-collections-v20 .collection-set-view .collection-card.is-available-mode .collection-pieces{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(0, min(290px,100%))) !important;
  justify-content:center !important;
  align-content:start !important;
  gap:10px !important;
 }
}
