/* Compact, shared Browser/timeline presentation; original CAD handlers remain. */
:root{--history-tile-size:36px;--history-timeline-step:40px;--history-tile-height:34px}
#tree.browserStructured{font:12px 'Segoe UI',Arial,sans-serif;color:#d8e5eb;user-select:none}
body.browser-history #modelHistoryList,body.browser-history #modelHistoryList.historyNeedsScroll{max-height:none!important;overflow:visible!important;overflow-x:visible!important;padding-right:0!important}
#tree.browserStructured .browserDocument{display:flex;align-items:center;gap:7px;padding:8px 6px!important;border:0!important;border-bottom:1px solid #334650!important;cursor:default;background:transparent!important}
#tree.browserStructured .browserDocument strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}
#tree.browserStructured .browserDocument[role=button]{cursor:text}
#tree.browserStructured .browserDocument strong[hidden]{display:none}
#tree.browserStructured .browserProjectName{box-sizing:border-box;min-width:0;flex:1;width:100%;height:26px;padding:3px 5px;border:1px solid #7dc9dc;border-radius:3px;background:#112833;color:#effaff;font:12px 'Segoe UI',Arial,sans-serif}
#tree.browserStructured .browserNodeIcon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;color:#99c7d3;vertical-align:middle}
#tree.browserStructured .browserFolder{margin:0;padding:0;border:0}
#tree.browserStructured .browserFolder[hidden],#tree.browserStructured .browserFolderRows[hidden]{display:none!important}
#tree.browserStructured .browserFolderHead{display:flex;align-items:center;gap:6px;min-height:30px;width:100%;padding:3px 5px;border:0;border-radius:2px;background:transparent;color:#dae7ec;text-align:left;font:600 12px 'Segoe UI',Arial,sans-serif;box-shadow:none;cursor:pointer}
#tree.browserStructured .browserFolderHead:hover,#tree.browserStructured .browserFolderHead:focus-visible{background:#223943;outline:none}
#tree.browserStructured .browserFolderHead>span{color:inherit!important}#tree.browserStructured .browserFolderHead small{margin-left:auto;color:#8ea8b3;font-weight:400;font-size:10px}
#tree.browserStructured .browserChevron{display:block;width:10px;text-align:center;font-size:11px;color:#a5bbc5!important;transition:transform .1s}
#tree.browserStructured .browserFolderHead[aria-expanded=true] .browserChevron{transform:rotate(90deg)}
#tree.browserStructured .browserFolderRows{padding:0 0 3px 15px;border-left:1px solid #2d434e;margin-left:10px;min-width:0}
#tree.browserStructured .browserEmpty{padding:5px 6px!important;font-size:11px;color:#7f98a4;border:0!important;background:transparent!important;cursor:default}
#tree.browserStructured .historyRow{min-height:28px!important;height:28px!important;max-height:none!important;margin:1px 0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:2px!important;grid-template-columns:minmax(0,1fr) 24px 20px!important;grid-template-rows:auto!important;box-shadow:none!important;outline:0!important;font-size:12px}
#tree.browserStructured .historyRow:hover{background:#203740!important}#tree.browserStructured .historyRow.selected{background:#234958!important;box-shadow:inset 2px 0 #8fd5e6!important}
#tree.browserStructured .historyRow.problem{background:#48232a!important;box-shadow:inset 2px 0 #f17977!important}
#tree.browserStructured .historyRowMain{min-height:28px!important;height:28px!important;padding:0 4px!important;gap:4px!important;font:12px 'Segoe UI',Arial,sans-serif!important;outline:none;border-radius:2px!important}
#tree.browserStructured .historyRowLabel{color:#d5e4eb!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;min-width:0;font-size:12px!important}
#tree.browserStructured .historyEye{width:22px!important;height:24px!important;padding:2px!important;border:0!important;background:transparent!important;box-shadow:none}
#tree.browserStructured .historyEye.off{opacity:.45}#tree.browserStructured .historyActionWrap{height:26px!important;min-height:0!important;width:20px!important;min-width:20px!important}
#tree.browserStructured .historyActionBtn{width:18px!important;height:24px!important;border:0!important;font-size:10px!important}
#tree.browserStructured .historyRow:has(.historyActionMenu.show){height:auto!important;grid-template-rows:28px auto!important}
#tree.browserStructured .historyRenameInput{position:absolute;inset:0 44px 0 0;z-index:3;box-sizing:border-box;min-width:0;height:28px;background:#112833;color:#effaff;border:1px solid #7dc9dc;padding:3px 5px;font:12px 'Segoe UI',Arial,sans-serif}
#tree.browserStructured [data-virtual-prefix],#tree.browserStructured [data-virtual-tree]{position:relative;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
#tree.browserStructured [data-virtual-slot]{height:30px!important}#tree.browserStructured [data-virtual-slot]>.historyRow{height:28px!important;min-height:28px!important;max-height:28px!important}
#tree.browserStructured .solidGroupHeader{grid-template-columns:18px minmax(0,1fr) 22px 20px 20px!important;gap:1px!important}.browserNestedRow{margin-left:8px!important}
#tree.browserStructured .solidGroupHeader>button{width:20px!important;min-width:0!important;min-height:26px!important;height:26px!important;padding:0!important;grid-row:1!important;grid-column:auto!important;border:0!important;background:transparent!important}
#tree.browserStructured .solidGroupHeader>.historyRowMain{width:100%!important;justify-content:flex-start}
#tree.browserStructured .browserPlaneRow{grid-template-columns:minmax(0,1fr) 24px!important}
body.browser-history #featureTimeline{flex-basis:48px;min-height:48px;padding:5px 8px;box-shadow:none;background:#132129}
body.browser-history .featureTimelineScroll{gap:4px;align-items:flex-start;padding-bottom:3px}
body.browser-history .featureTimelineItem{flex:0 0 var(--history-tile-size);min-width:var(--history-tile-size);width:var(--history-tile-size);height:var(--history-tile-height);box-sizing:border-box;border:1px solid transparent;border-radius:3px;background:transparent;box-shadow:none}
body.browser-history .featureTimelineItem:hover{border-color:#547888;background:#24404e}body.browser-history .featureTimelineItem.selected{border-color:#8ed6e7;background:#285567;box-shadow:none}
body.browser-history .featureTimelineItem.problem{border-color:#df7d7d;background:#452129}body.browser-history .featureTimelineMain{width:100%;padding:3px 2px;gap:0}
body.browser-history .featureTimelineIcon{font-size:20px;color:#a8cdd7;line-height:1}body.browser-history .featureTimelineIcon .toolIcon{width:21px;height:21px}
body.browser-history .featureTimelineActionWrap{position:absolute;right:0;top:0;width:10px;height:100%;display:block}
body.browser-history .featureTimelineMore{position:absolute;right:-1px;top:0;width:10px;height:23px;border:0;background:#1a3342;border-radius:2px;color:#afc6cf;opacity:0;font-size:11px}
body.browser-history .featureTimelineItem:hover .featureTimelineMore,body.browser-history .featureTimelineItem:focus-within .featureTimelineMore{opacity:1}
body.browser-history .featureTimelineStatus{left:4px;bottom:1px;width:4px;height:3px;border-radius:1px}
body.browser-history .timelineMarker{height:34px;min-height:34px}body.browser-history .timelineMarker:before{top:10px}body.browser-history .timelineMarker:after{width:9px;height:12px}
body.browser-history .timelinePlayback{gap:0;margin-right:7px;padding-right:7px;align-items:flex-start}
body.browser-history .timelinePlayback button{width:25px;height:33px;min-height:0}
body.browser-history .virtualTimelineScroll{min-height:37px}.virtualTimelineScroll>[data-virtual-timeline-space]{height:var(--history-tile-height,54px)}
body.browser-history .virtualTimelineScroll>[data-virtual-timeline-slot]{width:var(--history-tile-size);height:var(--history-tile-height)}
body.browser-history .virtualTimelineScroll .featureTimelineItem{width:var(--history-tile-size)!important;min-width:var(--history-tile-size)!important}
.browserFound{outline:1px solid #c7edf4!important;box-shadow:inset 0 0 0 1px #9ed7e6!important}
@media(pointer:coarse){:root{--history-tile-size:40px;--history-timeline-step:44px;--history-tile-height:38px}body.browser-history #featureTimeline{flex-basis:52px;min-height:52px}body.browser-history .featureTimelineMore{opacity:1}#tree.browserStructured .historyEye{width:24px!important}}
@media(prefers-reduced-motion:reduce){#tree.browserStructured .browserChevron{transition:none}}
#tree.browserStructured .browserFolderBar{display:flex;align-items:center;gap:2px}
#tree.browserStructured .browserFolderBar .browserFolderHead{flex:1 1 auto;min-width:0}
#tree.browserStructured .browserFolderEye{flex:0 0 auto;margin-right:2px}
.browserFolderMenu{position:fixed;z-index:100000;min-width:160px;padding:4px;border:1px solid var(--ui-border,#2c4a55);border-radius:6px;background:var(--ui-panel,#132229);box-shadow:0 8px 24px rgba(0,0,0,.35);display:flex;flex-direction:column}
.browserFolderMenu button{all:unset;padding:7px 10px;border-radius:4px;color:var(--ui-text,#dae7ec);font:12px 'Segoe UI',Arial,sans-serif;cursor:pointer}
.browserFolderMenu button:hover,.browserFolderMenu button:focus-visible{background:color-mix(in srgb,var(--ui-panel,#132229) 82%,var(--ui-accent,#55bdcf))}
.browserFolderMenu button.danger{color:var(--ui-danger,#e48f87)}
