/* Layout for the change-log page (history.html) only -- everything
   token-level (colors, fonts, .bar-btn, .rename-input) comes from
   styles.css, loaded first, so this file only adds what's unique here. */

.history-title{font-family:var(--sans);font-size:1rem;font-weight:700;margin-left:10px;}
.history-filter{width:180px;margin-right:6px;}
.history-body{max-width:960px;margin:0 auto;padding:24px 16px 60px;}
.history-empty{color:var(--text-muted);font-family:var(--mono);font-size:0.85rem;}

.history-list{display:flex;flex-direction:column;gap:10px;}

.history-row{
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  overflow:hidden;
}
.history-row-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  cursor:pointer;
  font-family:var(--mono);
  font-size:0.78rem;
}
.history-row.is-pending .history-row-head{cursor:default;}
.history-dot{
  width:10px;height:10px;border-radius:50%;
  flex:0 0 auto;
}
.history-tag{font-weight:700;color:var(--text);}
.history-time{color:var(--text-muted);}
.history-count{color:var(--text-muted);}
.history-deltas{display:flex;gap:10px;flex-wrap:wrap;margin-left:auto;}
/* "base +delta%" -- base in the row's normal text colour, delta coloured
   green/red so a change is legible without an arrow to cross anything
   out (see deltaParts/appendDeltaSpan in history.js). */
.history-delta{white-space:nowrap;margin-right:10px;}
.history-delta:last-child{margin-right:0;}
.history-delta-amount{font-weight:700;vertical-align:super;font-size:0.8em;}
.history-delta-amount.is-up{color:var(--good);}
.history-delta-amount.is-down{color:var(--danger);}
.history-chevron{margin-left:8px;color:var(--text-muted);transition:transform 150ms ease;flex:0 0 auto;}
.history-row.is-open .history-chevron{transform:rotate(90deg);}

.history-row-detail{
  border-top:1px solid var(--border);
  padding:10px 14px 14px 30px;
  font-family:var(--mono);
  font-size:0.76rem;
  display:none;
}
.history-row.is-open .history-row-detail{display:block;}
.history-detail-line{padding:3px 0;color:var(--text);}
.history-detail-kind{display:inline-block;width:1.4em;font-weight:700;}
.history-detail-kind.is-added{color:var(--good);}
.history-detail-kind.is-modified{color:var(--warn);}
.history-detail-kind.is-removed{color:var(--danger);}
.history-detail-score{color:var(--text-muted);margin-left:8px;}

.history-status{font-family:var(--mono);font-size:0.72rem;color:var(--text-muted);}
.history-status.is-stale{color:var(--danger);}
.history-status.is-reverted{color:var(--text-muted);}
.history-force-btn{margin-left:auto;}
