/* PASS425 focused homepage monthly-record refinement. Existing Activity page/API unchanged. */
.home-page #concept-a .a-activity .act-row.act-monthly{
  grid-template-columns:74px minmax(0,1fr) minmax(98px,auto)!important;
  border-left-color:rgba(159,113,198,.88)!important;
  background:linear-gradient(90deg,rgba(119,72,158,.14),transparent 75%)!important;
  max-height:none!important;
}
.home-page #concept-a .act-monthly .act-month-media{
  border:1px solid rgba(161,118,198,.68)!important;
  background:linear-gradient(140deg,rgba(38,27,57,.95),rgba(9,20,29,.94))!important;
  width:74px!important;max-width:74px!important;height:64px!important;max-height:64px!important;
}
.home-page #concept-a .act-month-stamp{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;width:100%;height:100%;line-height:1.05;
}
.home-page #concept-a .act-month-stamp .act-month-name{
  color:#ddbee9;font-size:16px;letter-spacing:.055em;font-weight:950;
}
.home-page #concept-a .act-month-stamp .act-month-year{
  color:#b99ed0;font-size:10px;font-weight:850;letter-spacing:.11em;
  border-top:1px solid rgba(167,132,199,.48);padding-top:5px;
}
.home-page #concept-a .act-monthly .act-detail{
  font-size:10px!important;color:#cbbbd9!important;
  -webkit-line-clamp:2!important;
}
.home-page #concept-a .act-monthly .act-level{
  min-width:98px!important;max-width:none!important;overflow:visible!important;
  white-space:nowrap!important;font-size:17px!important;text-align:right!important;
}
.home-page #concept-a .act-monthly .act-level small{
  font-size:8px!important;letter-spacing:.045em!important;white-space:nowrap!important;
}
@media(max-width:500px){
  .home-page #concept-a .a-activity .act-row.act-monthly{
    grid-template-columns:56px minmax(0,1fr)!important;
    column-gap:10px!important;row-gap:2px!important;
    max-height:none!important;min-height:0!important;
    align-items:start!important;padding-top:11px!important;padding-bottom:11px!important;
  }
  .home-page #concept-a .act-monthly .act-month-media{
    width:54px!important;max-width:54px!important;height:56px!important;max-height:56px!important;
  }
  .home-page #concept-a .act-monthly .act-month-name{font-size:13px!important}
  .home-page #concept-a .act-monthly .act-month-year{font-size:9px!important}
  .home-page #concept-a .act-monthly .act-content{grid-column:2;min-width:0!important}
  .home-page #concept-a .act-monthly .act-level{
    grid-column:2;justify-self:start;display:flex!important;align-items:baseline;gap:8px;
    text-align:left!important;min-width:0!important;margin-top:3px;
    font-size:17px!important;
  }
  .home-page #concept-a .act-monthly .act-level small{display:inline!important;margin:0!important}
}

@media(max-width:300px){
  .home-page #concept-a .act-monthly .act-level{grid-column:1/-1!important;justify-self:start!important;margin-left:5px!important;}
}

/* PASS434: five-stat summary only. Keep the existing card height on narrow phones. */
@media(max-width:300px){
  .home-page #concept-a .act-monthly.act-monthly-gains .act-detail{
    font-size:9px!important;
    letter-spacing:-.15px!important;
  }
}
@media(max-width:279px){
  /* Exceptionally narrow screens: show the full summary instead of clipping the last figure. */
  .home-page #concept-a .act-monthly.act-monthly-gains .act-detail{
    display:block!important;
    -webkit-line-clamp:unset!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
  }
}

@media(min-width:768px) and (max-width:879px){
  /* Narrow desktop sidebar: preserve established monthly preview height. */
  .home-page #concept-a .act-monthly.act-monthly-gains .act-detail{
    font-size:9px!important;
    letter-spacing:-.15px!important;
  }
}
