/* Optional: einmal zentral einstellen */
:root{
  --cpr-gap: 12px;
  --cpr-card-h: 170px; /* Höhe einer Card = sichtbare 1 Reihe im Grid */
}

/* Section / Category header (falls du die Klassen nutzt) */
.cpr-section{
  margin-bottom:14px;
}

.cpr-cathead{
  padding:8px 10px;
  border-radius:8px;
  margin-bottom:10px;
}

/* 2 Spalten + Scroll ab der 2. Reihe */
.cpr-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap: var(--cpr-gap);

  max-height: var(--cpr-card-h); /* 1 Reihe sichtbar */
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  scrollbar-gutter: stable;
}

/* Card */
.cpr-card{
  border:1px solid #202a2a;
  padding:10px;
  border-radius:8px;

  width:100%;
  box-sizing:border-box;
  min-width:0;

  height: var(--cpr-card-h); /* wichtig für “ab 3 = scroll” */
  overflow:hidden;
}

/* Inneres Layout */
.cpr-row{
  display:flex;
  gap: var(--cpr-gap);
  align-items:flex-start;

  min-width:0; /* wichtig */
  height:100%;
}

.cpr-left{
  width:110px;
  text-align:center;
  flex:0 0 auto;
}

.cpr-avatar{
  width:100px;
  height:100px;
  object-fit:cover;
  border-radius:10px;
  display:block;
  margin:0 auto;
}

.cpr-charname{
  margin-top:6px;
  font-weight:bold;
  font-size:11px;
}

.cpr-prof{
  font-style:italic;
  font-size:10px;
}

/* Rechter Bereich muss schrumpfen dürfen */
.cpr-right{
  flex:1 1 auto;
  min-width:0;
  height:100%;
}

.cpr-prop{
  font-weight:bold;
  margin-bottom:6px;
}

/* Note scrollt innerhalb der Card */
.cpr-note{
  line-height:1.4;
  max-height:100px;
  overflow:auto;
  padding-right:7px;

  overflow-wrap:anywhere;
  word-break:break-word;
}
