.collection-finder-debug{
  position:fixed;
  z-index:99999;
  top:34px;
  left:145px;
  width:min(720px,calc(100vw - 290px));
  max-height:calc(100vh - 68px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.35);
  border-radius:14px;
  background:white;
  color:var(--violet);
  font-size:12px;
  line-height:1.3;
  box-shadow:0 12px 35px rgba(0,0,0,.22);
  contain:layout paint;
}

.collection-finder-debug,
.collection-finder-debug *,
.collection-finder-debug *::before,
.collection-finder-debug *::after{
  box-sizing:border-box;
}

.collection-finder-debug__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
  padding:12px 15px;
  background:var(--violet);
  color:white;
}

.collection-finder-debug__header>div{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.collection-finder-debug__header strong{
  display:block;
  margin:0;
  color:white;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
}

.collection-finder-debug__header span{
  display:block;
  margin:0;
  color:white;
  font-size:11px;
  font-weight:400;
  line-height:1.2;
  opacity:.85;
}

.collection-finder-debug__toggle{
  flex:0 0 auto;
  min-width:60px;
  margin:0;
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:transparent;
  color:white;
  font:inherit;
  font-size:11px;
  font-weight:500;
  line-height:1;
  text-align:center;
  box-shadow:none;
  cursor:pointer;
}

.collection-finder-debug__toggle:hover,
.collection-finder-debug__toggle:focus{
  border-color:white;
  background:rgba(255,255,255,.08);
  color:white;
  outline:0;
  box-shadow:none;
}

.collection-finder-debug__body{
  display:block;
  width:100%;
  max-height:calc(100vh - 130px);
  margin:0;
  padding:14px;
  overflow:auto;
  background:white;
}

.collection-finder-debug__body[hidden]{
  display:none !important;
}

.collection-finder-debug__status{
  display:block;
  margin:0 0 10px;
  padding:0;
  color:var(--violet);
  font-size:12px;
  font-weight:600;
  line-height:1.3;
}

.collection-finder-debug__table-wrapper{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  overflow-x:auto;
}

.collection-finder-debug__table{
  width:100%;
  margin:0;
  border:0;
  border-collapse:collapse;
  border-spacing:0;
  background:white;
  color:var(--violet);
  font-size:11px;
  line-height:1.25;
  table-layout:auto;
  white-space:nowrap;
}

.collection-finder-debug__table thead,
.collection-finder-debug__table tbody,
.collection-finder-debug__table tr{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.collection-finder-debug__table th,
.collection-finder-debug__table td{
  margin:0;
  padding:9px 10px;
  border:0;
  border-bottom:1px solid rgba(88,50,122,.14);
  background:transparent;
  color:var(--violet);
  font:inherit;
  line-height:1.25;
  text-align:center;
  vertical-align:middle;
}

.collection-finder-debug__table thead th{
  background:rgba(88,50,122,.07);
  font-weight:700;
}

.collection-finder-debug__table tbody th{
  text-align:left;
  font-weight:500;
}

.collection-finder-debug__table tbody tr:last-child th,
.collection-finder-debug__table tbody tr:last-child td{
  border-bottom:0;
}

.collection-finder-debug__table tr.is-winner th,
.collection-finder-debug__table tr.is-winner td{
  background:rgba(203,132,187,.24);
}

.collection-finder-debug__table tr.is-winner th,
.collection-finder-debug__table tr.is-winner .collection-finder-debug__total{
  font-weight:700;
}

.collection-finder-debug__table tr.is-tied th,
.collection-finder-debug__table tr.is-tied td{
  background:rgba(184,143,214,.15);
}

.collection-finder-debug__total{
  font-size:13px;
  font-weight:700;
}

.collection-finder-debug__answer,
.collection-finder-debug__diagnostic{
  display:block;
  width:100%;
  margin:14px 0 0;
  padding:12px 13px;
  border:0;
  border-radius:10px;
  background:rgba(88,50,122,.06);
  color:var(--violet);
  font-size:11px;
  line-height:1.4;
}

.collection-finder-debug__answer strong,
.collection-finder-debug__diagnostic>strong{
  display:block;
  margin:0 0 6px;
  padding:0;
  color:var(--violet);
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}

.collection-finder-debug__answer p,
.collection-finder-debug__diagnostic p{
  display:block;
  margin:0 0 6px;
  padding:0;
  color:var(--violet);
  font-size:11px;
  font-weight:400;
  line-height:1.4;
}

.collection-finder-debug__answer p:last-child,
.collection-finder-debug__diagnostic p:last-child{
  margin-bottom:0;
}

.collection-finder-debug__contribution{
  display:block;
  margin:0;
  padding:0;
  color:var(--violet);
  font-size:11px;
  font-weight:600;
  line-height:1.4;
}

.collection-finder-debug__winner{
  display:block;
  margin:8px 0 0;
  padding:0;
  color:var(--violet);
  font-size:11px;
  line-height:1.4;
}

.collection-finder-debug__winner strong{
  color:var(--violet);
  font-weight:700;
}

.collection-finder-debug__consistency{
  display:block;
  margin:5px 0 0;
  padding:0;
  color:var(--violet);
  font-size:11px;
  font-weight:600;
  line-height:1.35;
}

.collection-finder-debug__diagnostic.has-warning{
  border:1px solid var(--light-pink);
}

.collection-finder-debug.is-collapsed{
  width:215px;
  max-height:none;
}

.collection-finder-debug.is-collapsed .collection-finder-debug__header{
  border-radius:14px;
}

@media(max-width:991px){
  .collection-finder-debug{
    top:20px;
    left:20px;
    width:min(680px,calc(100vw - 40px));
    max-height:70vh;
  }

  .collection-finder-debug__body{
    max-height:calc(70vh - 58px);
  }
}

@media(max-width:767px){
  .collection-finder-debug{
    top:auto;
    right:10px;
    bottom:10px;
    left:10px;
    width:auto;
    max-height:58vh;
  }

  .collection-finder-debug__body{
    max-height:calc(58vh - 58px);
  }

  .collection-finder-debug.is-collapsed{
    right:10px;
    bottom:10px;
    left:auto;
    width:200px;
  }

  .collection-finder-debug__table{
    font-size:10px;
  }

  .collection-finder-debug__table th,
  .collection-finder-debug__table td{
    padding:7px 8px;
  }
}