.rd-history-panel { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 25; padding: 10px 12px; border: 1px solid #b8c7d9; border-radius: 6px; background: #f6f9fd; box-shadow: 0 2px 8px #0002; color: #212529; }
.rd-history-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-history-controls select { max-width: 340px; min-width: 80px; padding: 6px; }
.rd-history-controls button[aria-pressed="true"] { background: #dceaff; border-color: #3974b4; }
.rd-history-status, .rd-history-detail { margin-top: 7px; font-size: 12px; }
.rd-history-detail { max-height: 110px; overflow: auto; }
.rd-history-active .layer-elements, .rd-history-active .layer-connections,
.rd-history-active .layer-asutp, .rd-history-active .layer-asutp-power,
.rd-history-active .layer-overlay, .rd-history-active .scheme-minimap, .rd-history-active .scheme-raster { visibility: hidden !important; }
.layer-rd-history .rd-history-element { color: #212529; }
.layer-rd-history .rd-history-added, .layer-rd-history .rd-history-restored { color: #18834f; }
.layer-rd-history .rd-history-changed { color: #b77a13; }
.layer-rd-history .rd-history-excluded { color: #8b939e; }
.layer-rd-history .rd-history-frame { stroke: currentColor; }
.layer-rd-history .rd-history-element > text:last-child { fill: currentColor; }
.layer-rd-history .rd-history-excluded [stroke]:not([stroke="none"]) { stroke: #8b939e; }
.layer-rd-history .rd-history-excluded text { fill: #8b939e; }
.layer-rd-history .rd-history-excluded .rd-history-frame { stroke-dasharray: 5 4; }
.layer-rd-history .rd-history-connection { stroke: currentColor; cursor: pointer; }
.layer-rd-history .rd-history-element[role="button"] { cursor: pointer; }
.layer-rd-history .rd-history-element:focus .rd-history-frame { stroke-width: 4; }

.layer-elements > .element.excluded { display: none; }
