/* β29: stabilize the action position and collapse older history. */

/* Reserve enough text area for the common 1–4 line event messages.
   Longer messages may still expand naturally instead of being truncated. */
.eventPrimary .eventText{
  min-height:6.4rem;
}

.historyRecent,
.historyOlderList{
  display:grid;
  gap:.45rem;
}

.historyOlder{
  margin-top:.1rem;
  border:1px solid var(--line-soft);
  border-radius:.8rem;
  overflow:hidden;
  background:rgba(13,18,26,.35);
}

.historyOlder > summary{
  cursor:pointer;
  list-style:none;
  min-height:2.65rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  padding:.62rem .75rem;
  color:var(--muted);
  font-size:.7rem;
  font-weight:750;
  user-select:none;
}

.historyOlder > summary::-webkit-details-marker{display:none}
.historyOlder > summary::after{
  content:'＋';
  flex:0 0 auto;
  color:#d7deea;
  font-size:.9rem;
  line-height:1;
}
.historyOlder[open] > summary::after{content:'−'}

.historyOlderList{
  padding:0 .45rem .45rem;
}

@media(min-width:700px){
  .eventPrimary .eventText{min-height:5.7rem}
}

@media(max-width:430px){
  .eventPrimary .eventText{min-height:6.4rem}
}
