/* Personal Finance 2.9 — account and category history shortcuts */
.account-history-link,.category-history-link{
  border:0;background:transparent;color:var(--text);padding:0;text-align:left;
  cursor:pointer;min-width:0;min-height:44px;
}
.account-history-link{flex:1;display:flex;align-items:center;gap:12px}
.account-history-link .row-main{flex:1}
.account-history-link .iconbox{flex:none}
.category-history-link{flex:1;display:flex;flex-direction:column;justify-content:center}
.history-chevron{color:var(--mint);font-size:17px;font-weight:500}
.account-history-link:hover strong,.category-history-link:hover strong{color:var(--mint)}
.account-history-link:focus-visible,.category-history-link:focus-visible{
 outline:2px solid var(--selected-ring);outline-offset:3px;border-radius:8px
}
.entity-history-balance{background:var(--panel2);padding:15px;border-radius:13px;
 display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.entity-history-balance span{color:var(--muted);font-size:12px}
.entity-history-balance strong{font-size:17px;font-variant-numeric:tabular-nums}
.entity-history-list{max-height:min(55dvh,480px);overflow-y:auto;overscroll-behavior:contain}
.entity-history-row{display:flex;align-items:start;gap:12px;justify-content:space-between;
 padding:12px 1px;border-bottom:1px solid var(--border)}
.entity-history-row:last-child{border-bottom:0}
.entity-history-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.entity-history-info small{font-size:11px;color:var(--muted);line-height:1.35}
.entity-history-info strong{font-size:13px;font-weight:720;overflow-wrap:anywhere;line-height:1.35}
.entity-history-info span{font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.entity-history-value{font-size:13px;white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
@media(max-width:760px){
 .account-history-link{gap:9px}
 .account-history-link .row-main strong{font-size:13px}
 .category-history-link strong{font-size:13px}
 .account-row{gap:8px}
 .account-row .row-right strong{font-size:13px}
 .account-row .row-right small{font-size:10px}
 .entity-history-row{gap:7px}
 .entity-history-value{font-size:12px}
 .entity-history-list{max-height:55dvh}
 .modal-head h2{font-size:19px}
}

.account-balance-link{border:0;background:transparent;color:inherit;cursor:pointer;
 text-align:right;padding:0;min-height:44px}
.account-balance-link:hover strong{color:var(--mint)}
.account-balance-link:focus-visible{outline:2px solid var(--selected-ring);outline-offset:3px;border-radius:8px}
