/* stats fallbacks — works without theme-dark.css */
/* stats + action buttons */
.stats{gap:9px}
.stats .stat{
  position:relative;border:1px solid var(--line,#2a2a30);border-radius:12px;
  padding:12px 13px 13px;background:var(--panel2,#16161a);overflow:hidden;
}
.stats .stat::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--line2,#3a3a42);
}
.stats .stat:nth-child(1)::before{background:#0d9b63}
.stats .stat:nth-child(2)::before{background:#e0b76a}
.stats .stat:nth-child(3)::before{background:#5b7fb0}
.stats .stat:nth-child(4)::before{background:var(--pur,#8b5cf6)}
.stats .stat:nth-child(5)::before{background:#c98a4b}
.stats .stat:nth-child(6)::before{background:var(--mut2,#8b8b98)}
.stats .lbl{
  display:block;text-transform:none;letter-spacing:0;font-size:11.5px;
  font-weight:500;color:var(--mut,#c4c4d0);line-height:1.2;
}
.stats .stat b{
  display:block;margin-top:5px;font-size:19px;font-weight:600;
  letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--txt,#f5f5f8);
}

/* action row */
.card.rainbow .row{gap:8px}
.card.rainbow .row .btn{
  flex:1;height:38px;border-radius:10px;font-size:13px;font-weight:600;
  transition:background .15s,border-color .15s,transform .12s;
}
.card.rainbow .row .btn.p{
  background:linear-gradient(180deg,#8b5cf6,#7343e0);border:1px solid transparent;
  color:#fff;box-shadow:0 8px 20px -10px rgba(139,92,246,.9);
}
.card.rainbow .row .btn.p:hover{filter:brightness(1.08)}
.card.rainbow .row .btn:not(.p){
  background:transparent;border:1px solid var(--line2,#3a3a42);color:var(--txt,#f5f5f8);
}
.card.rainbow .row .btn:not(.p):hover{background:rgba(255,255,255,.05);border-color:var(--mut2,#8b8b98)}
.card.rainbow .row .btn:active{transform:translateY(1px)}

/* claim / rewards bars */
#claimBtn,#rwOut{
  height:38px;border-radius:10px;font-size:12.5px;font-weight:600;letter-spacing:.01em;
}
#claimBtn:disabled{
  opacity:.55;color:#9dc4da;border-color:rgba(120,205,255,.32);
  text-shadow:none;box-shadow:none;
}
#claimBtn:not(:disabled){border-color:rgba(120,205,255,.95)}
@media (max-width:900px){
  .stats .stat b{font-size:17px}
  .card.rainbow .row .btn{font-size:12.5px}
}
#rwOut:disabled{opacity:.55;color:#9dc4da;border-color:rgba(120,205,255,.32);text-shadow:none;box-shadow:none}
#rwOut:not(:disabled){border-color:rgba(120,205,255,.95)}
/* hide the dashboard calculator; the element and its ids stay in place */
html body .main #p-dash .card:has(#dAmount){display:none!important}

/* dashboard stakes: no inner scrollbar, full height */
html body .main #p-dash .stakes{max-height:none!important;overflow:visible!important}
html body .main #p-dash .stakes-t{overflow:visible!important}
html body .main #p-dash .card{height:auto!important}

/* notes card sits on its own */
html body .main #notesCard .notes-inline{border-top:0!important;margin-top:0!important;padding-top:0!important}

/* dashboard stakes: capped height with a quiet scrollbar */
html body .main #p-dash .stakes{
  max-height:360px!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.2) transparent;
}
html body .main #p-dash .stakes::-webkit-scrollbar{width:8px}
html body .main #p-dash .stakes::-webkit-scrollbar-track{background:transparent}
html body .main #p-dash .stakes::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:99px}
html body .main #p-dash .stakes::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28)}
html body .main #p-dash .stakes thead th{position:sticky;top:0;z-index:1}

/* stakes card: fixed height, table scrolls inside */
html body .main #p-dash .card:has(#stakesT){height:430px!important;display:flex!important;flex-direction:column}
html body .main #p-dash .stakes{flex:1 1 auto!important;max-height:none!important;min-height:0!important;overflow-y:auto!important}

/* stakes card: fixed height, table scrolls inside */
html body .main #p-dash .card:has(#stakesT){height:430px!important;display:flex!important;flex-direction:column;overflow:hidden}
html body .main #p-dash .stakes{flex:1 1 auto!important;max-height:none!important;min-height:0!important;overflow-y:auto!important}

/* fewer lines in the dashboard side boxes */
html body .main #p-dash .card:has(#stakesT){height:300px!important}
html body .main #notesCard{display:block!important}
html body .main #notesCard .list{max-height:196px!important;overflow-y:auto!important;scrollbar-width:thin}
html body .main .ref-list-card{display:block!important}
html body .main .ref-list-card .list{flex:none!important;margin-bottom:0!important}
html body .main .ref-list-card .notes-inline{margin-top:14px}

/* notes list scrolls like the stakes list */
html body .main #notesCard{display:block!important}
html body .main #notesCard .list{
  max-height:150px!important;
  overflow-y:auto!important;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.2) transparent;
}
html body .main #notesCard .list::-webkit-scrollbar{width:8px}
html body .main #notesCard .list::-webkit-scrollbar-track{background:transparent}
html body .main #notesCard .list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:99px}
html body .main #notesCard .list::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28)}
html body .main .ref-list-card{display:block!important}
html body .main .ref-list-card .list{flex:none!important;margin-bottom:0!important}

/* the notification list keeps every entry and scrolls */
html body .main #notesCard .list{max-height:190px!important}

/* dash-align: flush tops, shared bottom line */
html body .main #p-dash .grid{align-items:stretch!important}
html body .main #p-dash .grid > div{display:flex!important;flex-direction:column!important;min-width:0}
html body .main #p-dash .grid > div > .card{flex:0 0 auto!important}
html body .main #p-dash .grid > div > .card:first-child,
html body .main #p-dash .grid > div > .card[data-results]{margin-top:0!important}

/* the two last cards fill their column so both bottoms land on one line */
html body .main #p-dash .grid > div > #notesCard,
html body .main #p-dash .grid > div > .ref-list-card{flex:1 1 auto!important}

/* notification list stays capped and scrolls inside its card */
html body .main #notesCard .list{max-height:190px!important;overflow-y:auto!important;flex:0 0 auto!important}
html body .main .ref-list-card .list{flex:0 0 auto!important}


/* dash-align-v3: explicit equal bottoms */
html body .main #p-dash .grid > div > #notesCard,
html body .main #p-dash .grid > div > .ref-list-card{flex:0 0 auto!important}
html body .main #notesCard,
html body .main .ref-list-card{display:flex!important;flex-direction:column!important;min-height:0!important}
html body .main #notesCard .list{flex:0 0 auto!important;max-height:190px!important;overflow-y:auto!important}
html body .main .ref-list-card .list{flex:0 0 auto!important}
