.link-history{margin:8px 0 26px;padding:24px;border:1px solid #dce5d4;border-radius:18px;background:#f4f8ee}
.link-history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.link-history-head h2{margin:7px 0 5px;font-size:22px;letter-spacing:-.5px}
.link-history-head p{margin:0;color:#7e8978;font-size:12px;line-height:1.7}
.link-history-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.history-card{min-width:0;overflow:hidden;border:1px solid #e0e6da;border-radius:12px;background:#fff}
.history-preview{display:flex;height:155px;align-items:center;justify-content:center;border-bottom:1px solid #e7ebe2;background-color:#fff;background-image:linear-gradient(45deg,#edf0ea 25%,transparent 25%),linear-gradient(-45deg,#edf0ea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0ea 75%),linear-gradient(-45deg,transparent 75%,#edf0ea 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.history-preview img{display:block;width:100%;height:100%;object-fit:contain}
.history-preview span{padding:14px;color:#8a9684;font-size:12px;text-align:center;line-height:1.7}
.history-body{padding:13px}
.history-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.history-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.history-status{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#edf3e7;color:#5e754d;font-size:9px}
.history-status.processing{background:#e8f0fc;color:#4f6f9c}.history-status.failed{background:#fff0e9;color:#a05a3d}.history-status.success{background:#eaf6dd;color:#4d7338}
.history-status.expired{background:#f0f1ee;color:#7f877c}
.history-meta{margin:8px 0 12px;color:#929c8d;font-size:9px;line-height:1.6}
.history-actions{display:flex;gap:7px}
.history-actions button{flex:1;min-height:34px;border:1px solid #dbe2d5;border-radius:7px;background:#fff;color:#52684c;font-size:10px}
.history-actions .history-download{border-color:#bfd874;background:#d3f36b;color:#2e4329;font-weight:650}
.history-empty{grid-column:1/-1;margin:0;padding:26px;text-align:center;color:#8d9788;font-size:12px}
.history-all-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}
.link-history-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#history-nav span{display:inline-grid;min-width:18px;height:18px;margin-left:3px;padding:0 5px;place-items:center;border-radius:999px;background:#d3f36b;color:#304028;font-size:10px}
@media(max-width:950px){.link-history-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.link-history{padding:19px 15px}.link-history-head{align-items:flex-start;flex-direction:column;gap:12px}.link-history-list{grid-template-columns:1fr}.history-preview{height:220px}}
