.bb-root{--bb-ink:#233449;--bb-muted:#64748b;--bb-line:#dce4ed;--bb-blue:#245da8;--bb-bg:#f5f8fc;color:var(--bb-ink);max-width:1600px;margin:0 auto;padding:6px 0 28px;font-size:14px;line-height:1.65}.bb-root *{box-sizing:border-box}.bb-root h1,.bb-root h2,.bb-root h3,.bb-root h4,.bb-root p{margin:0}.bb-root h1{font-size:26px;font-weight:650;line-height:1.45}.bb-root h2{font-size:18px}.bb-root h3{font-size:16px;margin-bottom:10px}.bb-root small{font-size:12px;color:var(--bb-muted);font-weight:400}.bb-root button,.bb-root input,.bb-root select{font:inherit}.bb-root button{cursor:pointer;border:1px solid var(--bb-line);border-radius:6px;padding:6px 11px;background:#fff;color:var(--bb-blue);line-height:1.5}.bb-root button:hover:not(:disabled){background:#edf4ff;border-color:#8cadd5}.bb-root button:disabled{cursor:not-allowed;color:#94a3b8;background:#f7f8fa}.bb-root button:focus-visible,.bb-root input:focus-visible,.bb-root select:focus-visible,.bb-root summary:focus-visible{outline:2px solid #4e88d4;outline-offset:2px}.bb-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.bb-heading p:last-child{color:var(--bb-muted);margin-top:5px}.bb-eyebrow{font-size:11px;letter-spacing:.1em;color:var(--bb-muted);margin-bottom:5px!important}.bb-badge{display:inline-flex;white-space:nowrap;align-items:center;padding:4px 10px;border:1px solid #d8e6f6;background:#eff5fc;color:#345e89;border-radius:5px;font-size:12px}.bb-tabs{display:flex;gap:22px;border-bottom:1px solid var(--bb-line);margin-bottom:18px}.bb-tabs button{border:0;border-radius:0;background:transparent;padding:10px 3px;border-bottom:3px solid transparent;color:var(--bb-muted)}.bb-tabs button.bb-active{border-bottom-color:var(--bb-blue);color:var(--bb-blue);font-weight:650}.bb-filters{display:flex;gap:14px;align-items:flex-end;padding:16px;background:#fff;border:1px solid var(--bb-line);border-radius:8px}.bb-filters label,.bb-version-bar label{display:flex;flex-direction:column;gap:5px;color:#4c5e73;font-size:12px}.bb-filters select,.bb-filters input,.bb-version-bar select{border:1px solid #cad5e2;background:#fff;border-radius:5px;padding:7px 9px;color:var(--bb-ink);min-height:36px;font-size:14px;width:100%}.bb-filters select{min-width:155px;max-width:260px}.bb-search{flex:1;min-width:220px}.bb-summary{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--bb-muted);margin:12px 0 16px}.bb-project{border:1px solid var(--bb-line);border-radius:8px;background:white;margin-bottom:18px;overflow:hidden}.bb-project>h2{padding:14px 18px;background:#f8fafc;border-bottom:1px solid var(--bb-line)}.bb-project h2 small{margin-left:10px}.bb-table-wrap{overflow:auto}.bb-table{width:100%;border-collapse:collapse;min-width:800px;text-align:left;font-size:13px}.bb-table th{background:#f8fafc;font-weight:550;color:#526279;white-space:nowrap}.bb-table th,.bb-table td{padding:12px 14px;border-bottom:1px solid #e8edf3;vertical-align:top}.bb-table tr:last-child td{border-bottom:0}.bb-table td:first-child{min-width:190px}.bb-table td small{display:block;max-width:300px;margin-top:4px}.bb-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.bb-table .bb-actions{min-width:160px}.bb-actions button{font-size:12px;white-space:nowrap}.bb-muted{color:var(--bb-muted);font-size:13px}.bb-note{border:1px solid #dce6f2;background:#f1f6fc;padding:10px 13px;border-radius:6px;margin:12px 0!important;color:#4c6380;font-size:13px}.bb-workspace{display:grid;grid-template-columns:285px minmax(0,1fr);gap:18px;align-items:start}.bb-tree{border:1px solid var(--bb-line);border-radius:8px;padding:14px;background:#fff;max-height:calc(100vh - 175px);overflow:auto;position:sticky;top:16px}.bb-tree h2{font-size:15px;padding:0 0 12px;border-bottom:1px solid var(--bb-line);margin-bottom:10px}.bb-tree h2 small{display:block;margin-top:3px}.bb-branch{padding-left:11px}.bb-depth-0{padding-left:0}.bb-branch summary{padding:6px 0;cursor:pointer;font-weight:550;overflow-wrap:anywhere}.bb-depth-1 summary,.bb-depth-2 summary{font-weight:400;font-size:13px}.bb-root .bb-node{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--bb-ink);padding:8px 9px;margin:3px 0;overflow-wrap:anywhere}.bb-node span,.bb-node small{display:block}.bb-root .bb-node.bb-active{background:#eaf2fd;color:#1f59a2;box-shadow:inset 3px 0 #3977c7}.bb-detail{background:#fff;border:1px solid var(--bb-line);border-radius:8px;min-width:0;padding:22px}.bb-detail>header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}.bb-detail>header h2{font-size:21px;overflow-wrap:anywhere}.bb-detail>header .bb-muted{margin-top:5px}.bb-version-bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px;background:var(--bb-bg);border-radius:6px}.bb-version-bar label{flex:1;min-width:210px}.bb-root pre{font:13px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-word;margin:0}.bb-body{padding:17px;background:#fbfcfe;border:1px solid #e4eaf1;border-radius:6px;margin-top:10px!important;max-height:650px;overflow:auto;color:#304158}.bb-sources,.bb-history,.bb-comparison{border-top:1px solid var(--bb-line);padding-top:18px;margin-top:22px}.bb-sources p{margin:7px 0}.bb-sources .bb-actions{margin:10px 0}.bb-sources button{font-size:12px}.bb-history ol{padding:0;margin:0 0 0 8px;list-style:none;border-left:2px solid #dce6f2}.bb-history li{position:relative;padding:4px 0 18px 18px}.bb-history li:before{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#b2c5df;left:-5px;top:15px}.bb-history .bb-current-version:before{background:var(--bb-blue)}.bb-history li>span,.bb-history li>small{display:block;margin:5px 0}.bb-history li>button{border:0;padding:3px 0}.bb-history li .bb-actions{margin-top:6px}.bb-diff{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bb-diff>div{min-width:0;padding:12px;border:1px solid var(--bb-line);border-radius:6px}.bb-diff h4{margin-bottom:9px}.bb-diff-table{min-width:550px;table-layout:fixed}.bb-diff-table th:first-child{width:65px}.bb-diff-table td:first-child{min-width:0}.bb-empty{text-align:center;padding:70px 20px;background:white;border:1px dashed #ced9e8;border-radius:8px}.bb-empty p{color:var(--bb-muted);margin:10px auto 17px;max-width:560px}.bb-root [hidden]{display:none!important}@media(max-width:1100px){.bb-workspace{grid-template-columns:235px minmax(0,1fr)}.bb-filters{flex-wrap:wrap}.bb-search{min-width:200px}.bb-detail{padding:17px}}@media(max-width:760px){.bb-heading{align-items:start}.bb-heading h1{font-size:23px}.bb-heading>.bb-badge{display:none}.bb-filters{gap:10px}.bb-filters label{flex:1;min-width:135px}.bb-filters .bb-search{flex-basis:100%}.bb-filters select{min-width:0;max-width:none}.bb-summary{display:block}.bb-summary span{display:block;margin:4px 0}.bb-workspace{grid-template-columns:minmax(0,1fr)}.bb-tree{position:static;max-height:300px}.bb-detail>header{flex-direction:column;gap:9px}.bb-detail{padding:14px}.bb-diff{grid-template-columns:1fr}.bb-version-bar{padding:9px}.bb-project>h2{padding:12px}.bb-project h2 small{display:block;margin:3px 0 0}}

/* Compact navigator: neutral hierarchy, consistent chevrons, unobtrusive selection. */
.bb-root .bb-workspace{grid-template-columns:260px minmax(0,1fr);gap:20px}
.bb-root .bb-tree{padding:0 10px 12px;border-color:#e4e9f0;box-shadow:none;max-height:680px}
.bb-root .bb-tree>h2{display:flex;align-items:center;justify-content:space-between;padding:15px 6px 12px;margin:0 0 8px;font-size:14px;font-weight:600}.bb-root .bb-tree>h2 small{margin:0;font-size:11px;color:#94a3b8}
.bb-root .bb-branch{margin:0;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}
.bb-root .bb-branch>summary{position:relative;display:block;margin:0;min-height:34px;padding:8px 8px 8px 24px;font-size:12px;line-height:18px;color:#526176;font-weight:500;list-style:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bb-root .bb-branch>summary::-webkit-details-marker{display:none}.bb-root .bb-branch>summary::marker{content:''}
.bb-root .bb-branch>summary::before{content:'';position:absolute;top:13px;left:10px;width:5px;height:5px;border-right:1.4px solid #8b99aa;border-bottom:1.4px solid #8b99aa;transform:rotate(-45deg)}
.bb-root .bb-branch[open]>summary::before{transform:rotate(45deg);top:12px}
.bb-root .bb-depth-0>summary{font-size:13px;color:#26374c;font-weight:600}
.bb-root .bb-depth-1{margin-left:9px}.bb-root .bb-depth-2{margin-left:10px;border-left:1px solid #edf0f5}
.bb-root .bb-node{position:relative;display:block;width:calc(100% - 10px);margin:2px 0 2px 10px;padding:8px 10px 8px 22px;min-height:34px;border-radius:5px;border:0;box-shadow:none;font-size:12px;line-height:18px;color:#556579}
.bb-root .bb-node::before{content:'';position:absolute;left:9px;top:15px;width:4px;height:4px;border-radius:50%;background:#b4bfcd}
.bb-root .bb-node>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bb-root .bb-node small{font-size:10px;line-height:16px;color:#98a3b3}
.bb-root .bb-node.bb-active{background:#edf3fc;color:#325fa4;box-shadow:none;font-weight:500}.bb-root .bb-node.bb-active::before{background:#547cb7}.bb-root .bb-node:hover:not(:disabled){background:#f3f6fa;border-color:transparent}
.bb-root .bb-detail{padding:22px 24px;border-color:#e4e9f0}.bb-root .bb-detail>header h2{font-size:19px;line-height:1.5;font-weight:600}.bb-root .bb-version-bar{background:transparent;padding:0 0 16px;border-bottom:1px solid #edf0f5;border-radius:0;align-items:flex-end;margin-bottom:14px}.bb-root .bb-version-bar label{max-width:360px;font-size:12px}.bb-root .bb-version-bar select{font-size:12px;min-height:34px;padding:6px 10px}.bb-root .bb-note{background:#f7f9fc;border:0;border-left:2px solid #d7e1ef;color:#8390a1;font-size:12px;padding:9px 12px;margin:12px 0 18px}.bb-root .bb-body{font-family:inherit;font-size:13px;line-height:1.95;background:#fff;padding:18px;border-color:#edf0f5}.bb-root .bb-filters{padding:14px 16px;gap:12px}.bb-root .bb-filters label{font-size:12px}.bb-root .bb-filters input,.bb-root .bb-filters select{font-size:13px;min-height:36px;padding:7px 10px}.bb-root .bb-summary{font-size:12px;color:#8b96a6}.bb-root .bb-summary>span:last-child{display:none}
@media(max-width:1100px){.bb-root .bb-workspace{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:760px){.bb-root .bb-workspace{grid-template-columns:minmax(0,1fr)}.bb-root .bb-tree{max-height:280px}.bb-root .bb-detail{padding:16px}.bb-root .bb-version-bar label{max-width:100%}}

/* Keep comparison in the same reading viewport instead of below the full document. */
.bb-root .bb-reading-pane{height:clamp(320px,52vh,560px);overflow:auto;overscroll-behavior:contain;padding:16px 2px 12px;min-width:0;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5}
.bb-root .bb-reading-pane .bb-body{max-height:none;border:0;padding:10px 0;margin-top:6px!important;overflow:visible}
.bb-root .bb-reading-pane .bb-comparison{border:0;padding:0;margin:0}
.bb-root .bb-reading-pane .bb-table-wrap{overflow:visible}.bb-root .bb-reading-pane .bb-table{min-width:0}
.bb-root .bb-reading-pane .bb-table th{position:sticky;top:-16px;background:#f6f8fb;z-index:1}
.bb-root .bb-reading-pane .bb-table td{padding:12px 10px;vertical-align:top}.bb-root .bb-reading-pane .bb-table pre{font-family:inherit;line-height:1.75;font-size:12px}
.bb-root .bb-change-add td:last-child{background:#f3faf5}.bb-root .bb-change-remove td:nth-child(2){background:#fff5f4}.bb-root .bb-change-modify td:nth-child(n+2){background:#fffcf2}
.bb-root .bb-extra{margin:14px 0 0;padding:0;border:0;background:transparent;box-shadow:none}.bb-root .bb-extra>summary{font-size:12px;color:#64748b;padding:8px 8px 8px 24px}.bb-root .bb-extra .bb-sources,.bb-root .bb-extra .bb-history{margin-top:12px;padding-top:12px}
.bb-root .bb-detail>.bb-note{margin:8px 0;padding:6px 10px}.bb-root .bb-version-bar{margin-bottom:8px;padding-bottom:10px}
@media(max-width:760px){.bb-root .bb-reading-pane{height:420px}.bb-root .bb-reading-pane .bb-table th{top:-16px}}
