/* CREDITS_UI_V5 */

.credits-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.credits-v4-actions{
  display:grid;
  gap:8px;
  width:100%;
  margin:0 0 14px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--card);
  box-shadow:0 8px 24px rgba(26,43,36,.06);
}

.credits-v4-sections{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  padding:3px;
  border-radius:13px;
  background:rgba(105,126,117,.09);
}

.credits-v4-section{
  min-width:0;
  min-height:38px;
  padding:7px 5px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  font-weight:850;
  line-height:1.15;
  text-align:center;
}

.credits-v4-section:hover,
.credits-v4-section:focus-visible{
  color:#087f66;
  outline:none;
}

.credits-v4-section.is-active{
  background:linear-gradient(135deg,#16c79a,#0eaa83);
  color:#062a20;
  box-shadow:0 5px 14px rgba(14,170,131,.24);
}

.credits-v4-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}

.credits-v4-reset,
.credits-v4-tools #pageFilters{
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(100,120,135,.055);
  color:var(--ink);
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}

.credits-v4-tools #pageFilters{
  margin:0;
  background:var(--card);
}

.credits-v4-chip{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  max-width:150px;
  margin-right:auto;
  padding:0 10px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(25,199,155,.11);
  color:#087e68;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.credits-v4-chip[hidden]{
  display:none;
}

#pageCredits #resultSummary{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
}

#pageCredits #loans{
  display:grid;
  gap:9px;
  margin-top:0;
}

#pageCredits #loans>*{
  min-width:0;
  border-radius:16px;
}

html[data-theme="light"] .credits-v4-actions{
  border-color:#d6e1dc;
  background:#fff;
  box-shadow:0 8px 24px rgba(32,63,50,.08);
}

html[data-theme="light"] .credits-v4-sections{
  background:#edf3f0;
}

html[data-theme="light"] .credits-v4-section{
  color:#4e625a;
}

html[data-theme="light"] .credits-v4-section.is-active{
  color:#04251c;
}

@media(max-width:430px){
  .credits-v4-section{
    min-height:42px;
    font-size:9px;
  }

  .credits-v4-tools{
    justify-content:stretch;
  }

  .credits-v4-reset,
  .credits-v4-tools #pageFilters{
    flex:1;
  }
}

@media(max-width:350px){
  .credits-v4-sections{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* END CREDITS_UI_V5 */
