/* SmileDice v18.39.18 — historical tables use the native Sport profile navy/blue theme. */
#sd-my-profile .smp-stat-overview{
  background:linear-gradient(135deg,#0d1d37 5%,#0d1b33 92%);
  border-color:#304e7b;
}
#sd-my-profile .smp-stat-topline{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:17px;
}
#sd-my-profile .smp-stat-topline>div{
  display:flex;flex-direction:column;gap:6px;padding:14px 11px;
  border:1px solid #395784;border-radius:11px;
  background:#112441;
}
#sd-my-profile .smp-stat-topline small{font-size:9px;letter-spacing:.5px;font-weight:850;color:#a4b9d8}
#sd-my-profile .smp-stat-topline strong{font-size:19px;font-weight:850;color:#e4f4ff;overflow-wrap:anywhere}
#sd-my-profile .smp-stat-topline strong .smp-positive{color:#40e8b8}
#sd-my-profile .smp-stat-topline strong .smp-negative{color:#ff8aa0}
#sd-my-profile .smp-stat-topline span:not(.smp-positive):not(.smp-negative){font-size:10px;color:#94aaca}
#sd-my-profile .smp-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#sd-my-profile .smp-stat-card{
  padding:14px 13px 12px;margin-bottom:0;
  background:linear-gradient(135deg,#0d1d37 5%,#0d1b33 92%);
  border-color:#304e7b;border-radius:15px;min-width:0;
}
#sd-my-profile .smp-stat-card .smp-panel-heading{margin-bottom:9px}
#sd-my-profile .smp-stat-card .smp-panel-heading h3{font-size:14px;font-weight:860;color:#f0f8ff}
#sd-my-profile .smp-stat-card .smp-panel-heading small{font-size:10px;color:#94aaca}
#sd-my-profile .smp-stat-card .smp-table-wrap{border:1px solid #2c4368;border-radius:10px;overflow-x:auto}
#sd-my-profile .smp-stat-table{width:100%;min-width:525px;table-layout:auto;border-collapse:collapse}
#sd-my-profile .smp-stat-table thead{background:#1b365e}
#sd-my-profile .smp-stat-table th{
  font-size:10px;color:#a7c0df;font-weight:850;text-align:left;
  padding:10px 11px;white-space:normal;border-bottom:1px solid #365488;
}
#sd-my-profile .smp-stat-table td{
  font-size:11px;color:#c6d7ef;padding:9px 11px;
  border-bottom:1px solid #24395a;white-space:nowrap;
}
#sd-my-profile .smp-stat-table td:first-child{white-space:normal;min-width:95px}
#sd-my-profile .smp-stat-table tbody tr:nth-child(even){background:#132546}
#sd-my-profile .smp-stat-table tbody tr:hover{background:#1b365e}
#sd-my-profile .smp-stat-table tbody tr:last-child td{border-bottom:0}
#sd-my-profile .smp-stat-table td .smp-positive{color:#40e8b8;font-weight:850}
#sd-my-profile .smp-stat-table td .smp-negative{color:#ff8aa0;font-weight:850}
/* Statistics v45: stable semantics in every table and responsive league card.
   Coupon volumes blue, verified wins green, losses red, profit gold. */
#sd-my-profile .smp-stat-table td[data-label="Coupons"],
#sd-my-profile .smp-stat-coupons{color:#5bc7ff;font-weight:850}
#sd-my-profile .smp-stat-win{color:#3be8b4;font-weight:850}
#sd-my-profile .smp-stat-loss,
#sd-my-profile .smp-stat-table td .smp-stat-loss{color:#ff8298;font-weight:850}
#sd-my-profile .smp-stat-profit,
#sd-my-profile .smp-stat-table td .smp-stat-profit{color:#ffd474;font-weight:850}
#sd-my-profile .smp-stat-table td[data-label="Won / settled"]{white-space:nowrap}
#sd-my-profile .smp-stat-more{display:flex;justify-content:center;margin-top:12px}
#sd-my-profile .smp-stat-more-button{
  min-height:33px;padding:6px 17px;border-radius:999px;
  border:1px solid #4e83b9;color:#e5f3ff;font-size:11px;font-weight:850;
  background:#18365f;box-shadow:none;
}
#sd-my-profile .smp-stat-more-button:hover{border-color:#79bcff;background:#264e8c}
#sd-my-profile .smp-stat-leagues{margin-top:11px;background:linear-gradient(135deg,#0d1d37,#0d1b33)}
#sd-my-profile .smp-stat-leagues .smp-stat-card{border:0;box-shadow:none;background:none;padding:0}
#sd-my-profile .smp-stat-leagues .smp-stat-table{min-width:630px}
#sd-my-profile .smp-league-sports{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 13px}
#sd-my-profile .smp-league-sports .smp-filter{min-height:31px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#sd-my-profile .smp-league-filter-count{
 display:inline-flex;justify-content:center;align-items:center;
 min-width:20px;height:20px;padding:1px 5px;border-radius:999px;
 color:#e1f5ff;background:#143355;border:1px solid #3c6d9d;
 font-size:10px;font-weight:850;line-height:1.15;font-variant-numeric:tabular-nums;
}
#sd-my-profile .smp-league-sports .smp-filter.on .smp-league-filter-count{
 background:#3875bb;color:#fff;border-color:#8bc5ff;
}
#sd-my-profile .smp-stat-leagues .smp-small-note{margin:13px 0 0;font-size:10px;color:#94aaca}
#sd-my-profile .smp-insights.smp-trust-only{grid-template-columns:minmax(0,1fr)}
#sd-my-profile .smp-coach-dna{background:linear-gradient(135deg,#0d1d37,#0d1b33)}
#sd-my-profile .smp-coach-dna .smp-minicopy{margin:0 0 12px}
@media(max-width:1160px){
 #sd-my-profile .smp-stat-topline{grid-template-columns:repeat(3,minmax(0,1fr))}
 #sd-my-profile .smp-stats-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
 #sd-my-profile .smp-stat-topline{grid-template-columns:repeat(2,minmax(0,1fr))}
 #sd-my-profile .smp-stat-topline>div:last-child{grid-column:span 2}
 #sd-my-profile .smp-stat-card .smp-panel-heading{align-items:flex-start}
 #sd-my-profile .smp-stat-table{min-width:570px}
}

/* Match the exact active Sport Chat send button, including its hover treatment. */
#lc-window #lc-send.lc-send,
#lc-dice-host #lc-window #lc-send.lc-send,
#lc-home-host #lc-window #lc-send.lc-send{
  background:linear-gradient(130deg,#20d7e8,#22b9f5)!important;
  border:1px solid #90eaff!important;
  color:#031927!important;
  box-shadow:0 0 12px #32baf287!important;
}
#lc-window #lc-send.lc-send:hover:not(:disabled){filter:brightness(1.12)}

/* v35: show the league breakdown early and make it readable on phones/tablets.
   Desktop keeps the original full table; no settlement logic is changed. */
#sd-my-profile .smp-stat-leagues{min-width:0;max-width:100%}
#sd-my-profile .smp-stat-leagues .smp-league-cards,
#sd-my-profile .smp-stat-leagues .smp-league-mobile-more{display:none}
#sd-my-profile .smp-stat-leagues .smp-league-table-view{min-width:0;max-width:100%}

@media(max-width:1050px){
 #sd-my-profile .smp-stat-leagues .smp-league-table-view{display:none}
 #sd-my-profile .smp-stat-leagues .smp-league-cards{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
 }
 #sd-my-profile .smp-stat-leagues .smp-league-mobile-more{
  display:flex;justify-content:center;margin-top:13px;
 }
 #sd-my-profile .smp-league-card{
  min-width:0;overflow:hidden;padding:14px;
  border:1px solid #3b608e;border-radius:13px;
  background:linear-gradient(145deg,#122947,#0c1d35);
 }
 #sd-my-profile .smp-league-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
 #sd-my-profile .smp-league-card-name{min-width:0}
 #sd-my-profile .smp-league-card-name small{display:block;font-size:10px;color:#8fc8f5;margin-bottom:3px}
 #sd-my-profile .smp-league-card-name h4{font-size:15px;line-height:1.35;margin:0;color:#f1f7ff;overflow-wrap:anywhere}
 #sd-my-profile .smp-league-season{
  flex:0 0 auto;border:1px solid #b39a54;background:#4b391d;
  padding:5px 9px;border-radius:8px;color:#ffe3a0;font-size:11px;font-weight:850;
 }
 #sd-my-profile .smp-league-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:13px 0}
 #sd-my-profile .smp-league-metrics>div{
  min-width:0;display:flex;flex-direction:column;gap:6px;padding:10px 8px;
  border:1px solid #294c76;border-radius:9px;background:#0a213a;
 }
 #sd-my-profile .smp-league-metrics small{font-size:10px;color:#a3b8d6;line-height:1.3}
 #sd-my-profile .smp-league-metrics strong{font-size:14px;color:#eaf4ff;overflow-wrap:anywhere}
 #sd-my-profile .smp-league-metrics strong.smp-positive{color:#40e8b8}
 #sd-my-profile .smp-league-metrics strong.smp-negative{color:#ff8aa0}
 #sd-my-profile .smp-league-metrics strong.smp-stat-coupons{color:#5bc7ff}
 #sd-my-profile .smp-league-matches{border-top:1px solid #2e4c72;padding-top:11px;min-width:0}
 #sd-my-profile .smp-league-matches summary{color:#82cfff;font-size:12px;font-weight:800;cursor:pointer;list-style-position:inside}
 #sd-my-profile .smp-league-matches summary span{float:right;color:#9eb7d6;font-size:10px;font-weight:600;margin-left:6px}
 #sd-my-profile .smp-league-match-list{display:flex;flex-direction:column;gap:6px;margin-top:11px}
 #sd-my-profile .smp-league-match{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px;border:1px solid #28496c;border-radius:8px;background:#0b1f36;min-width:0}
 #sd-my-profile .smp-league-match>div{min-width:0}
 #sd-my-profile .smp-league-match strong{display:block;color:#e9f5ff;font-size:11px;overflow-wrap:anywhere}
 #sd-my-profile .smp-league-match small{display:block;margin-top:3px;color:#9bb0cb;font-size:10px}
 #sd-my-profile .smp-league-outcome{flex:0 0 auto;font-size:10px;font-weight:900;color:#a8c8e8}
 #sd-my-profile .smp-league-outcome-won{color:#35e8b3}
 #sd-my-profile .smp-league-outcome-lost{color:#ff8aa0}
 #sd-my-profile .smp-league-outcome-void{color:#68baff}
 #sd-my-profile .smp-league-match-note{font-size:11px;line-height:1.5;margin:10px 0 0;color:#9db2ce}
}

/* Other statistical tables become labelled rows instead of clipped 570px tables. */
@media(max-width:700px){
 #sd-my-profile .smp-stat-leagues .smp-league-cards{grid-template-columns:minmax(0,1fr)}
 #sd-my-profile .smp-stat-leagues .smp-league-sports{gap:6px}
 #sd-my-profile .smp-stat-leagues .smp-league-sports .smp-filter{font-size:11px;max-width:100%;white-space:normal}
 #sd-my-profile .smp-stat-leagues .smp-panel-heading{flex-wrap:wrap}
 #sd-my-profile .smp-stat-card .smp-table-wrap{overflow-x:visible;max-width:100%}
 #sd-my-profile .smp-stat-card .smp-stat-table{display:block;width:100%;min-width:0;table-layout:auto}
 #sd-my-profile .smp-stat-card .smp-stat-table thead{display:none}
 #sd-my-profile .smp-stat-card .smp-stat-table tbody{display:grid;gap:9px;padding:7px}
 #sd-my-profile .smp-stat-card .smp-stat-table tr{
  display:block;border:1px solid #294768;border-radius:9px;background:#102741;overflow:hidden;
 }
 #sd-my-profile .smp-stat-card .smp-stat-table td,
 #sd-my-profile .smp-stat-card .smp-stat-table td:first-child{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  max-width:none;min-width:0;width:100%;padding:9px 10px;
  text-align:right;white-space:normal;overflow-wrap:anywhere;
 }
 #sd-my-profile .smp-stat-card .smp-stat-table td::before{
  content:attr(data-label);display:block;flex:0 0 43%;text-align:left;
  font-size:10px;font-weight:800;color:#94b5d8;
 }
 #sd-my-profile .smp-stat-card .smp-stat-table td>*{min-width:0}
}
