:root{color-scheme:dark}body{margin:0;background:#132033;color:#e8effa;font-family:Inter,system-ui,sans-serif}.history-app{max-width:1360px;margin:auto;padding:24px 30px 36px}.history-header,.history-header nav,.history-actions,.ledger-top,.ledger-footer,.ledger-footer>div{display:flex;align-items:center;justify-content:space-between;gap:14px}.history-header{padding-bottom:23px;border-bottom:1px solid #33485f}.history-brand{display:flex;align-items:center;gap:12px;color:#eff4fc;text-decoration:none;font-size:19px;font-weight:750}.history-brand img{width:34px}.history-brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px;color:#a4b7ce}.history-header nav a{color:#c6d3e5;text-decoration:none;font-size:13px}.pill{font-size:12px;border:1px solid #607080;border-radius:30px;padding:8px 12px;color:#bbc7d7}.pill.live{color:#9ce2c6;border-color:#3e7867;background:#22443a}.pill.warn{color:#efc791;border-color:#80643d}.history-intro{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:32px 0 10px}.eyebrow{font-size:10px;letter-spacing:2px;color:#b3a1e8}h1{font-size:clamp(23px,3vw,34px);letter-spacing:-1px;margin:10px 0}p{font-size:13px;color:#b1c1d5;line-height:1.6}.history-intro p{margin:0}.history-actions{flex-shrink:0}button,input,select{font:inherit}button{border:1px solid #52667e;color:#e5edfa;background:#293d55;padding:10px 13px;border-radius:9px;cursor:pointer;font-size:12px;font-weight:650}button:hover{border-color:#b9a7ec}button:disabled{opacity:.5;cursor:default}#export{background:#c5b3f0;color:#21263d;border-color:#c5b3f0}#history-message{min-height:20px;margin:8px 0;font-size:12px;color:#e7cf9d}.history-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.history-metrics article{border:1px solid #415369;border-radius:14px;padding:18px;background:linear-gradient(135deg,#24364b,#1b2b41)}.history-metrics span{font-size:12px;color:#afc0d5}.history-metrics strong{font-size:30px;display:block;margin:10px 0;font-variant-numeric:tabular-nums;color:#e0d7fb}.history-metrics small{display:block;font-size:11px;color:#9eb2ca}.coverage{margin:18px 0 24px;background:#1a2b40;border:1px solid #3c526c;border-radius:12px;padding:14px 16px}.coverage summary{display:flex;justify-content:space-between;cursor:pointer;font-size:12px;font-weight:650}.coverage summary span:last-child{color:#a89bcf;font-weight:450}.coverage p{font-size:12px;margin:10px 0}.gap-row{font-size:11px;padding:5px;color:#f1cba2;border-top:1px solid #354459}.history-ledger{border:1px solid #40536d;background:#1a2b40;border-radius:16px;overflow:hidden}.ledger-top{padding:18px 18px 12px}.ledger-top h2{margin:0;font-size:18px}.ledger-top span{font-size:11px;color:#9cacc2;display:block;margin-top:5px}.auto-refresh{display:flex;align-items:center;gap:7px;font-size:12px;color:#b9cbe0}.auto-refresh input{accent-color:#b3a2e4}.history-filters{padding:12px 18px 18px;display:grid;grid-template-columns:1.3fr 1.1fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.history-filters label{font-size:10px;color:#b5c5da;display:flex;flex-direction:column;gap:6px}.history-filters input,.history-filters select{height:38px;min-width:0;width:100%;padding:6px 9px;box-sizing:border-box;border:1px solid #4a617a;border-radius:8px;background:#16283c;color:#e6eefa;font-size:12px}.ledger-columns,.history-row-summary{display:grid;grid-template-columns:170px 80px minmax(150px,1fr) 110px;gap:15px;align-items:center}.ledger-columns{padding:9px 18px;background:#22364c;color:#92aac3;font-size:10px;letter-spacing:.5px}.history-row{border-bottom:1px solid #31465e}.history-row-summary{padding:12px 18px;cursor:pointer;list-style:none}.history-row-summary::-webkit-details-marker{display:none}.history-row-summary:hover{background:#ffffff04}.round-meta strong{font-size:12px;display:block}.round-meta small{font-size:10px;display:block;color:#aabdd3;margin-top:4px}.drawn-icons,.stake-icons,.stake-entry{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.drawn-icons img{width:30px;height:30px;object-fit:contain}.drawn-icons small{font-size:10px;color:#b5c1d1}.stake-icons span{display:flex;align-items:center;gap:2px;padding:3px 4px;border:1px solid #4d5164;border-radius:7px;color:#e8d49e;font-size:11px}.stake-icons img{width:22px;height:22px;object-fit:contain}.stake-entry{gap:8px;margin:3px 0}.activity-label{font-size:9px;text-transform:uppercase;color:#bca7ed;min-width:40px}.activity-label.live{color:#e6cb99}.strategy-name{font-size:10px;color:#a9bdd2;margin-top:4px}.outcome{text-align:right;font-size:14px;font-weight:750}.outcome small{display:block;font-size:10px;font-weight:450;margin-top:3px;color:#9eb0c9}.win{color:#94e0bc}.loss{color:#f0a3ac}.neutral{color:#b8c7dc}.quality-badge{display:inline-block;margin-top:4px;font-size:9px;font-weight:500;padding:2px 5px;border-radius:4px;border:1px solid #796641;color:#e6c182}.round-detail{padding:0 18px 15px}.round-detail p{font-size:11px;margin:5px 0}.round-detail pre{overflow:auto;max-height:280px;font:11px/1.6 ui-monospace,monospace;background:#111e2e;border-radius:8px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#b9d2e8}.empty-history{padding:25px;text-align:center}.ledger-footer{padding:14px 18px;font-size:11px;color:#aab9d0}.history-footer{text-align:center;margin:22px;color:#8fa5bd;font-size:11px}
@media(max-width:950px){.history-intro{align-items:flex-start;flex-direction:column;gap:16px}.history-filters{grid-template-columns:repeat(3,1fr)}.history-metrics{grid-template-columns:repeat(2,1fr)}.ledger-columns,.history-row-summary{grid-template-columns:132px 58px minmax(120px,1fr) 85px;gap:8px}}
@media(max-width:580px){.history-app{padding:15px 10px}.history-header{gap:10px}.history-header nav{flex-direction:column;gap:8px}.history-brand{font-size:15px}.history-brand img{width:27px}.history-intro{margin-top:24px}.history-metrics{gap:8px}.history-metrics article{padding:13px}.history-metrics strong{font-size:25px}.history-metrics span{font-size:10px}.history-filters{padding:10px;gap:8px;grid-template-columns:repeat(2,1fr)}.ledger-columns,.history-row-summary{grid-template-columns:90px 34px minmax(90px,1fr) 52px;gap:6px;padding:10px}.round-meta strong{font-size:11px}.round-meta small{font-size:9px}.drawn-icons img{width:28px}.stake-icons{gap:3px}.stake-icons span{padding:2px;font-size:10px}.stake-icons img{width:18px;height:18px}.outcome{font-size:12px}.activity-label{min-width:0;font-size:8px}.strategy-name{font-size:9px}.ledger-footer{padding:12px 10px}.ledger-footer button{font-size:10px;padding:8px}.ledger-columns{font-size:9px}.coverage{padding:12px}.history-header .pill{font-size:10px;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
