.sidebar { overflow-y:auto; scrollbar-width:thin; }
.sidebar > * { flex-shrink:0; }
.sector-figure { position:relative; margin:0 0 18px; background:#111b23; border-radius:10px; overflow:hidden; }
.sector-image { display:block; width:100%; height:auto; object-fit:cover; }
.sector-figure figcaption { position:absolute; bottom:8px; inset-inline-start:8px; margin-inline-end:8px;
  color:#fff4df; background:#121a22dc; border-radius:4px; padding:2px 8px; font-size:.76rem; }
.chapter-card .sector-image { aspect-ratio:2.35; }
#dialog-body .sector-figure img { max-height:280px; }
.tree-leaves button { grid-template-columns:54px minmax(0,1fr); column-gap:9px; align-content:center; }
.tree-leaves .tree-thumb { grid-column:1; grid-row:1 / span 2; align-self:center; height:52px; border-radius:5px; }
.tree-leaves button > span,.tree-leaves button > small { grid-column:2; }
.visit-topics,.tour-stages,.tour-move { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.visit-topics { margin:0 0 18px; }
.visit-topics button,.tour-stages button { border:1px solid var(--border); min-height:44px; padding:6px 14px;
  background:var(--surface); color:var(--ink); border-radius:8px; font-size:.94rem; }
.visit-topics [aria-pressed=true],.tour-stages [aria-current] { background:var(--purple-light); border-color:var(--purple); color:var(--ink); font-weight:bold; }
.tour-panel { display:grid; grid-template-columns:minmax(0, .88fr) minmax(0,1.12fr); overflow:hidden; border:1px solid var(--border);
  border-radius:14px; background:var(--surface); }
.tour-art .sector-figure { height:100%; margin:0; border-radius:0; }
.tour-art img { width:100%; height:100%; min-height:360px; }
.tour-body { padding:clamp(20px,2.9vw,42px); display:flex; flex-direction:column; align-items:start; }
.tour-stages button { border-radius:4px; padding:5px 9px; font-size:.875rem; }
#tour-reading { padding-block:23px; width:100%; }
#tour-reading h2 { font-size:clamp(1.35rem,2.1vw,2rem); margin-bottom:12px; }
#tour-reading h3 { margin-top:16px; }
#tour-reading p { line-height:1.9; overflow-wrap:anywhere; }
#tour-reading .button-row { margin-top:15px; }
.file-name,.visit-empty { margin-top:15px; font-size:.94rem; color:var(--muted); }
.tour-move { margin-top:auto; }
.compare-selects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.round-picker { display:grid; gap:6px; font-weight:bold; }
.round-picker select { min-width:0; width:100%; max-width:100%; font-weight:normal; }
.guard-caption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; align-items:center; margin:0 0 14px;
  padding:14px 18px; background:var(--purple-light); border-radius:9px; }
.guard-caption p { flex:1 1 30ch; }
.comparison-scroll { overflow-x:auto; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.comparison-table { table-layout:fixed; min-width:470px; }
.comparison-table th,.comparison-table td { padding:13px; vertical-align:top; overflow-wrap:anywhere; white-space:normal; }
.comparison-table th:first-child { width:21%; }
.comparison-table thead small { display:block; font-weight:normal; }
.comparison-table caption { text-align:start; padding:14px; color:var(--muted); }
.compare-docs { display:grid; gap:6px; justify-items:start; }
.compare-docs .button { min-width:0; max-width:100%; display:block; text-align:start; white-space:normal; overflow-wrap:anywhere; unicode-bidi:plaintext; }
.change-list,.release-history ol { margin:18px 0 0; padding:0; list-style:none; }
.release-history { margin-top:28px; }
.release-history ol { border-inline-start:2px solid var(--border); margin-inline-start:8px; }
.release-history li { position:relative; padding:0 16px 24px; }
.release-history li::before { content:''; position:absolute; inset-inline-start:-5px; top:12px; width:8px; height:8px; border-radius:50%; background:var(--purple); }
.release-history li p { margin:6px 0 12px; }
.change-list li { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 0; border-top:1px solid var(--border); }
.change-list strong { display:block; overflow-wrap:anywhere; }
.change-list small { color:var(--muted); }
@media(max-width:960px) {
  .tour-panel { grid-template-columns:1fr; }
  .tour-art img { height:clamp(155px,33vw,250px); min-height:0; }
}
@media(max-width:600px) {
  .compare-selects { grid-template-columns:1fr; }
  .comparison-table { min-width:0; }
  .comparison-table th:first-child { width:22%; }
  .comparison-table td,.comparison-table th { padding:8px 5px; font-size:.875rem; }
  .compare-docs .button { padding:5px; }
  .tour-body { padding:17px; }
}
.track-illustration .sector-image { max-height:185px; object-position:50% 50%; }
