/* History shares the live application shell, native graph frame and theme. */
.history-page{--ui-a:var(--site-glow-left-color,#775cce);--ui-b:var(--site-glow-accent-color,#58b9e1);--ui-c:var(--site-glow-right-color,#ffa690);--ui-bg:#0b121b;--ui-text:#edf3fa;--ui-muted:#a6b6c7;--ui-accent:color-mix(in srgb,var(--ui-b) 72%,#edf4ff);--ui-border:color-mix(in srgb,var(--ui-b) 36%,#293449);--ui-hover:color-mix(in srgb,var(--ui-b) 15%,#101927);--ui-focus:color-mix(in srgb,var(--ui-b) 60%,#fff);--parent:#78ded5;--child:#c6a9ff}
.history-page .live-app-header{position:sticky;top:0}
.history-main{width:min(1120px,100%);margin:0 auto;padding:clamp(14px,3vw,26px)}
.history-main h1{font:500 clamp(24px,4vw,36px)/1.15 var(--font);margin:0 0 5px}
.history-intro,.history-status{margin:0 0 8px;color:var(--ui-muted);font:400 14px/1.5 var(--kaspa-body-font)}
.history-status[data-state=ready]{font:11px/1.5 var(--font);font-variant-numeric:tabular-nums;margin:0 0 12px}
.history-page [hidden]{display:none!important}
.history-page .history-graph-top{display:flex;justify-content:space-between;align-items:center}
.history-page .history-tools{margin:0;padding:4px 12px}
.history-camera-tools,.history-actions,.history-selection{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.history-page .history-tools button{min-height:44px}
.live-app-page.history-page .hero-network:not(.is-theater) .history-canvas{position:relative;height:clamp(300px,50svh,575px)}
.history-page .history-canvas .graph-atmosphere{background:radial-gradient(ellipse at 42% 52%,color-mix(in srgb,var(--scene-b) 24%,#05080f),#04060c 66%,#020307 100%);}
.history-page #live-dag{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;touch-action:pan-y}
.history-page #live-dag[data-interaction-mode=pan]{touch-action:none}
.history-page .graph-vignette{position:absolute;inset:0}
.history-page .graph-hud{color:var(--ui-muted)}
.history-legend,.history-brands{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.history-legend{background:var(--ui-bg);padding:10px 14px;border-bottom:1px solid var(--ui-border);color:var(--ui-muted);font:12px/1.4 var(--font)}
.history-legend i{display:inline-block;width:12px;height:2px;vertical-align:middle;margin-right:5px;background:var(--parent)}
.history-legend i.child{background:var(--child)}
.history-brands{flex-basis:100%}.history-brands:empty{display:none}
.history-brands span{display:inline-flex;align-items:center;gap:5px;line-height:19px}
.history-brands img{border-radius:4px;object-fit:contain}
.history-detail{padding:12px 14px 14px;background:color-mix(in srgb,var(--ui-bg) 91%,var(--ui-b));}
.history-detail-heading{display:flex;gap:6px 14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.history-detail h2,.history-detail h3{margin:0;color:var(--ui-text)}
.history-detail h2{font:500 19px/1.2 var(--kaspa-subheading-font)}
.history-detail h3{font:500 14px/1.35 var(--font)}
.history-detail code{overflow-wrap:anywhere;display:block;color:var(--ui-muted);margin:5px 0}
.history-detail p{margin:5px 0 8px;font:400 14px/1.4 var(--kaspa-body-font)}
.history-page :is(.history-actions,.history-selection,[data-history-relations]) :is(button,a){display:inline-flex;align-items:center;min-height:44px;padding:5px 9px;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text);background:var(--ui-fill);font:500 12px/1.3 var(--font);text-decoration:none}
.history-page :is(.history-actions,.history-selection,[data-history-relations]) :is(button,a):hover{border-color:var(--ui-accent)}
.history-page button:disabled{opacity:.42;cursor:default}
.history-detail :is(details,.history-detail-panel){margin-top:9px}
.history-detail summary{min-height:38px;display:list-item;padding:8px 0;cursor:pointer;color:var(--ui-text);font:500 13px/1.4 var(--font)}
.history-detail-panel{border:1px solid var(--ui-border);border-radius:12px;padding:10px 12px;background:var(--ui-bg)}
.history-detail-panel dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:4px 8px;margin:0}
.history-detail-panel dt{color:var(--ui-muted)}.history-detail-panel dd{margin:0}
.history-detail-panel ul,[data-history-relations] ul{margin:4px 0;padding:0;list-style:none}
.history-detail-panel li{display:flex;gap:8px;align-items:center;justify-content:space-between;min-height:29px;border-top:1px solid var(--ui-border)}
.history-detail-panel li a{font:12px/1.2 monospace}
[data-history-relations]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr));gap:12px}
[data-history-relations] ul{display:flex;gap:4px;flex-wrap:wrap}
.history-main footer{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:12px;padding:4px 0;background:none;border:0;color:var(--ui-muted)}
.history-main footer a{font:12px/1.4 var(--font)}
@media(max-width:480px){.history-page .live-app-header{gap:7px;min-height:54px;padding-inline:12px}.history-page .live-app-header nav>a{padding:6px 9px}.live-app-page.history-page .hero-network:not(.is-theater) .history-canvas{height:clamp(290px,49svh,430px)}.history-page .history-tools{padding-inline:7px}.history-legend,.history-detail{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.history-page .hero-network{animation:none}}
