.crucible-history { min-width: 0; --history-accent: #00edb6; }
.crucible-history[data-kind="power"] { --history-accent: #00dced; }
.crucible-history-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #ffffff14; border-radius: 12px; background: #080b1270; width: fit-content; max-width: 100%; }
.crucible-history-tabs button { padding: 9px 14px; border-radius: 8px; color: #929bae; font-size: 13px; }
.crucible-history-tabs button[aria-selected="true"] { background: #00eeb619; color: #d8fff5; }
.crucible-history button:focus-visible, .crucible-history summary:focus-visible, .crucible-history [data-point]:focus-visible { outline: 2px solid var(--history-accent); outline-offset: 3px; }
.crucible-history-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 24px 0 4px; }
.crucible-history-heading p { color: #949eae; font-size: 12px; margin-top: 4px; }
.crucible-history-heading strong { display: block; width: fit-content; max-width: 100%; font-size: 28px; font-weight: 600; color: var(--history-accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.crucible-history-range { color: #b2bbca; font-size: 12px; text-align: right; flex-shrink: 0; }
.crucible-history-chart { height: 240px; position: relative; min-width: 0; }
.crucible-history-chart svg { display: block; width: 100%; height: 100%; overflow: visible; font-family: system-ui, sans-serif; }
.crucible-history-chart .history-grid { stroke: #ffffff0e; stroke-dasharray: 3 5; }
.crucible-history-chart text { fill: #99a5b9; font-size: 11px; }
.crucible-history[data-kind="stellar"] .history-resource-value { fill: url(#crucible-history-number); }
:root[data-no-text-gradients] .crucible-history[data-kind="stellar"] .history-resource-value { fill: #fff; }
.crucible-history-chart .history-line { fill: none; stroke: var(--history-accent); stroke-width: 2.5; stroke-linejoin: round; }
.crucible-history-chart .history-dot { fill: #0b1520; stroke: var(--history-accent); stroke-width: 2; }
.crucible-history-chart .history-bar { fill: var(--history-accent); fill-opacity: .6; }
.crucible-history-chart [data-point] { cursor: crosshair; outline: none; }
.crucible-history-chart .history-hit { fill: transparent; }
.crucible-history-chart .history-guide { stroke: var(--history-accent); stroke-opacity: .5; stroke-dasharray: 3 4; visibility: hidden; }
.crucible-history-chart [data-point][data-active] .history-guide { visibility: visible; }
.crucible-history-chart [data-point][data-active] .history-dot { fill: var(--history-accent); }
.crucible-history-chart [data-point][data-active] .history-bar { fill-opacity: 1; }
.crucible-history-tooltip { position: absolute; top: 24px; max-width: min(250px, 100%); padding: 10px 12px; border: 1px solid #2e6464; border-radius: 9px; background: #0c1425f5; color: #e4edf5; box-shadow: 0 8px 28px #0008; font: 12px/1.6 system-ui, sans-serif; pointer-events: none; z-index: 2; overflow-wrap: anywhere; }
.crucible-history-tooltip strong { display: block; color: var(--history-accent); }
.crucible-history-details { border-top: 1px solid #ffffff14; margin-top: 14px; padding-top: 14px; }
.crucible-history-details summary { color: #b6bfcd; font-size: 13px; cursor: pointer; width: fit-content; }
.crucible-history-details table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.crucible-history-details th { color: #8b99b0; font-weight: 400; }
.crucible-history-details td, .crucible-history-details th { text-align: right; padding: 9px 4px; overflow-wrap: anywhere; border-bottom: 1px solid #ffffff08; }
.crucible-history-details td:first-child, .crucible-history-details th:first-child { text-align: left; width: 35%; }
.crucible-history-details td:nth-child(2) { color: var(--history-accent); }
.crucible-history-details .history-loss { color: #f9a0b8; }
.crucible-history-status { color: #909fb2; font-size: 12px; line-height: 1.5; }
.crucible-history-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crucible-history-status:not(:empty) { margin-top: 12px; }
.crucible-history-status button { color: #ddfff6; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
    .crucible-history-tabs { width: 100%; }
    .crucible-history-tabs button { flex: 1; padding: 9px 7px; font-size: 12px; }
    .crucible-history-heading { gap: 8px; }
    .crucible-history-heading strong { font-size: 24px; }
    .crucible-history-range { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    #asceltial-progress-bar { transition: none; }
    #asceltial-sync-status { animation: none; }
}
