:root{--v35-rail-border:#d6ad50;--v35-forest:#0d3c33;--v35-cream:#fff4d2;--v35-coral:#a35239}

/* Keep the wallpaper continuous outside the finite SVG world. */
body.native-v24 #viewport{
  background-color:#c9d0bc!important;
  background-image:linear-gradient(#f7f1db12,#274c4020),url('coaching-forest-wallpaper.webp')!important;
  background-repeat:repeat,repeat!important;
  background-size:auto,628px 628px!important;
  background-position:0 0!important;
}
body.native-v24 #stage.native-stage{background:transparent!important}
body.native-v24 .native-paper{fill:transparent!important;stroke:none!important;filter:none!important}

/* The tree bar keeps the stats action visible at every supported width. */
.history-guide-heading{grid-template-columns:62px minmax(0,1fr) auto!important}
.history-guide-actions{display:flex!important;min-width:max-content;align-items:center;gap:6px}
.history-guide-actions>a{display:flex!important;flex:0 0 auto;min-width:82px;justify-content:center}
.forest-breadcrumb{display:flex;min-width:0;align-items:center;gap:5px;overflow-x:auto;padding:1px 2px 2px;color:#634e37;font:800 10px/1.3 var(--archive-sans,system-ui,sans-serif);scrollbar-width:none;white-space:nowrap}
.forest-breadcrumb::-webkit-scrollbar{display:none}
.forest-breadcrumb button{display:inline!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:#81503a!important;font:inherit!important;text-decoration:underline;text-underline-offset:2px;box-shadow:none!important;cursor:pointer}
.forest-breadcrumb button:hover,.forest-breadcrumb button:focus-visible{color:#173f35!important;outline:2px solid #a3523966!important;outline-offset:2px}
.forest-breadcrumb-home{color:#173f35;font-weight:950}
.forest-breadcrumb-separator{color:#a35239}
.forest-breadcrumb-current{max-width:260px;overflow:hidden;color:#173f35;text-overflow:ellipsis}
.history-guide:not(.is-expanded){min-height:78px!important}
.history-guide:not(.is-expanded) .history-guide-dossier{gap:3px!important}

/* Fixed controls plus one deliberate scrolling area in the highlighted-tree navigator. */
.generation-guide[data-mode="tree-list"]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden!important;overscroll-behavior:contain}
.generation-guide[data-mode="tree-list"] header{position:relative!important;top:auto!important}
.tree-navigator-actions{display:grid;gap:6px;padding:8px 7px 7px;border-bottom:1px solid #44675d;background:#0c342d}
.generation-guide[data-mode="tree-list"] .tree-navigator-actions .tree-generation-all{width:100%;margin:0!important}
.generation-guide[data-mode="tree-list"] .tree-lineage-action{border-color:#b66645;background:#713d2c}
.generation-guide[data-mode="tree-list"] .tree-lineage-action>span{background:#f0c95d}
.tree-navigator-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 0 10px;scrollbar-color:#c6a353 #123e35;scrollbar-width:thin}
.tree-navigator-scroll::-webkit-scrollbar{width:9px}.tree-navigator-scroll::-webkit-scrollbar-track{background:#123e35}.tree-navigator-scroll::-webkit-scrollbar-thumb{border:2px solid #123e35;border-radius:9px;background:#c6a353}
.tree-navigator-scroll .tree-navigator-insights{margin-top:0}
.generation-guide[data-mode="tree-list"] .tree-generation-help{position:relative!important;bottom:auto!important;margin:0!important;padding:9px 8px!important;border-top:1px solid #496b60;background:#0a3029}

/* A compact filter switch keeps the tree-size rule explicit and shareable. */
.filter-switch{display:flex!important;align-items:flex-start!important;gap:10px;margin-top:11px;padding:11px;border:1px solid #9f8458;border-radius:7px;background:#f7ecd2;color:#173f35;cursor:pointer}
.filter-switch input{width:18px!important;height:18px!important;flex:0 0 18px;margin:1px 0 0;accent-color:#174a3e}
.filter-switch span,.filter-switch strong,.filter-switch small{display:block}
.filter-switch strong{font-size:12px;line-height:1.25}.filter-switch small{margin-top:3px;color:#555d53!important;font-size:11px!important;line-height:1.4!important}

@media(max-width:1599px){
  .history-guide-details-toggle{display:none!important}
  .history-guide-actions>a{display:flex!important}
}
@media(max-width:1100px){
  .history-guide-actions>a{min-width:72px;padding-inline:7px!important;font-size:9px!important}
  .forest-breadcrumb-current{max-width:180px}
}
@media(max-width:720px){
  .history-guide{min-height:76px!important}
  .history-guide-heading{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
  .history-guide-year{display:none!important}
  .history-guide-actions{display:flex!important}
  .history-guide-actions>a{display:flex!important;min-width:64px;min-height:34px!important;padding-inline:6px!important;font-size:9px!important}
  .forest-breadcrumb{font-size:9px}
  .forest-breadcrumb-current{max-width:145px}
}

@media(prefers-reduced-motion:reduce){.tree-navigator-scroll{scroll-behavior:auto}}
