.gdm-weekly-state-panel{
  margin: 0 18px 16px;
  border: 1px solid #cbd9e5;
  border-left: 3px solid #278dd5;
  background: #f7fafc;
  color: #102940;
  overflow: hidden;
}

.gdm-weekly-state-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #d9e4ec;
  background: #eef5fa;
  text-transform: uppercase;
}

.gdm-weekly-state-head strong{
  color:#176AAA;
  
  letter-spacing:0.06em;font:700 12px/1.35 Inter,sans-serif;}

.gdm-weekly-state-head span{
  color:#536B7F;
  
  letter-spacing:0.04em;font: 700 12px/1.3 Inter, sans-serif;line-height:1.35;}

.gdm-weekly-state-panel.is-live{ border-left-color: #db9c2b; }
.gdm-weekly-state-panel.is-live .gdm-weekly-state-head{ background: #fff8e9; }
.gdm-weekly-state-panel.is-live .gdm-weekly-state-head strong{ color: #986207;font:700 12px/1.35 Inter,sans-serif;}
.gdm-weekly-state-panel.is-final{ border-left-color: #159367; }
.gdm-weekly-state-panel.is-final .gdm-weekly-state-head{ background: #edf8f4; }
.gdm-weekly-state-panel.is-final .gdm-weekly-state-head strong{ color:#176AAA;font:700 12px/1.35 Inter,sans-serif;}

.gdm-weekly-state-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gdm-weekly-state-cell{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px 12px;
  border-right: 1px solid #d9e4ec;
}

.gdm-weekly-state-cell:last-child{ border-right: 0; }

.gdm-weekly-state-cell>small{
  margin-bottom: 2px;
  color:#536B7F;
  
  
  text-transform: uppercase;font:700 12px/1.35 Inter,sans-serif;letter-spacing:0.02em;}

.gdm-weekly-state-cell>span{
  color:#536B7F;font: 500 12px/1.35 Inter, sans-serif;line-height:1.35;}

.gdm-weekly-state-cell>span b{
  color: #18344d;font-weight: 800;}

.gdm-weekly-state-cell .gdm-weekly-state-note{
  color:#536B7F;font-size: 12px;line-height:1.35;}

.gdm-weekly-state-cell .gdm-weekly-state-result{
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid #dce6ed;
  color: #19364f;font-weight: 700;}

.gdm-weekly-state-result.is-win{ color: #078558; }
.gdm-weekly-state-result.is-win b{ color: #078558; }

.gdm-weekly-state-result.is-loss{ color: #ae453f; }
.gdm-weekly-state-result.is-loss b{ color: #ae453f; }

.gdm-weekly-state-result.is-push{ color: #7b640d; }
.gdm-weekly-state-result.is-push b{ color: #7b640d; }

.gdm-weekly-state-source{
  padding: 6px 12px 7px;
  border-top: 1px solid #d9e4ec;
  color:#536B7F;
  
  text-align: right;font: 500 12px/1.3 Inter, sans-serif;line-height:1.35;}

@media (max-width: 1120px) {
  .gdm-weekly-state-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gdm-weekly-state-cell:nth-child(2){ border-right: 0; }
  .gdm-weekly-state-cell:nth-child(-n+2){ border-bottom: 1px solid #d9e4ec; }
}

@media (max-width: 640px) {
  .gdm-weekly-state-panel{ margin: 0 12px 14px; }
  .gdm-weekly-state-head{
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .gdm-weekly-state-grid{ grid-template-columns: 1fr; }
  .gdm-weekly-state-cell{
    border-right: 0;
    border-bottom: 1px solid #d9e4ec;
  }
.gdm-weekly-state-cell:nth-child(2){
    border-right: 0;
    border-bottom: 1px solid #d9e4ec;
  }
  .gdm-weekly-state-cell:last-child{ border-bottom: 0; }
}

/* P4.4.19 — compact final receipt.
   Final cards are narrow even on a wide three-column board. Keep the
   prediction, recorded market and result together without forcing four
   undersized columns or repeating explanatory copy. */
.gdm-weekly-state-panel.is-final{
  margin: 0 0 12px;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-head{
  align-items: center;
  flex-direction: row;
  padding: 6px 9px;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-head strong{;font:700 12px/1.35 Inter,sans-serif;}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-head span{
  display: none;
}
.gdm-weekly-state-panel.is-final .gdm-weekly-state-note{
  display: none;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell{
  display: block;
  padding: 7px 9px 8px;
  border-right: 1px solid #d9e4ec;
  border-bottom: 0;
}
.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(2){
  display: block;
  padding: 7px 9px 8px;
  border-right: 1px solid #d9e4ec;
  border-bottom: 0;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(2n){
  border-right: 1px solid #d9e4ec;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(-n+2){
  border-bottom: 0;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(3){
  border-right: 0;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(4){
  display: none;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell>small{
  display: block;
  margin-bottom: 3px;font-size: 12px;line-height:1.35;}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell>span:not(.gdm-weekly-state-note):not(.gdm-weekly-state-result){
  display: inline;font-size: 12px;line-height: 1.25;line-height:1.35;}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell>span:not(.gdm-weekly-state-note):not(.gdm-weekly-state-result):first-of-type b{
  display: none;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-cell>span:not(.gdm-weekly-state-note):not(.gdm-weekly-state-result)+span:not(.gdm-weekly-state-note):not(.gdm-weekly-state-result)::before{
  content: " · ";
  color:#536B7F;
}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-result{
  display: block;
  margin-top: 5px;
  padding-top: 4px;font-size: 12px;line-height: 1.25;line-height:1.35;}

.gdm-weekly-state-panel.is-final .gdm-weekly-state-source{
  padding: 4px 9px 5px;font-size: 12px;line-height:1.35;}

@media (max-width: 680px) {
  .gdm-weekly-state-panel.is-final .gdm-weekly-state-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(2){
    border-right: 0;
  }

  .gdm-weekly-state-panel.is-final .gdm-weekly-state-cell:nth-child(3){
    grid-column: 1 / -1;
    border-top: 1px solid #d9e4ec;
  }
}
