/* Local content geometry; public header, navigation and control skin are unchanged. */
.model-stage{overflow:hidden}.population-workbench,.succession-workbench{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.ecology-toolbar{display:flex;align-items:center;gap:7px;padding:5px 14px;min-height:39px;flex:none;border-bottom:1px solid #dce9e3;background:#f5faf7;z-index:3}
.ecology-tabs{display:flex;gap:4px;flex:none}.ecology-toolbar .ecology-action{font-size:12px;min-height:29px;padding:4px 9px;border-radius:8px;white-space:nowrap}
.ecology-action.is-active{background:#e5f3eb;border-color:#68a891;color:#236b57;box-shadow:inset 0 -2px #438975}
.ecology-status{font-size:11px;color:#6c8580;margin-right:auto;white-space:nowrap}.ecology-toolbar [data-ecology=context]{margin-left:auto}
.ecology-toolbar :is(.soil-toggle,.tangent-option){font-size:12px;min-height:29px;white-space:nowrap}.ecology-context{display:none}.shell-dialog .ecology-context{display:block;max-width:720px;color:#557671;line-height:1.65}.ecology-context>p{font-size:13px}.ecology-equation-note h3{font-size:16px;margin:14px 0 6px;color:#315f55}
.ecology-context .parameter-form{display:flex;flex-wrap:wrap;padding:12px;gap:12px;border:1px solid #dce9e3;border-radius:12px;font-size:13px}.ecology-context .parameter-field{width:100%;justify-content:flex-start}.ecology-context .parameter-field input{margin-left:auto;font-size:16px;width:90px;min-height:38px}.ecology-context .parameter-k{font-size:12px}.ecology-context .parameter-error{flex-basis:100%}.ecology-context .growth-equation{min-height:54px;margin:0}.ecology-context #parameter-hint{position:static;clip-path:none;width:100%;height:auto;font-size:11px}
.science-viewport{position:relative;flex:1;min-height:0;height:auto;overflow:hidden;padding:0;background:#fbfdfc}
.plots-scroll,.scene-scroll{position:relative;z-index:1;height:calc(100% - 27px);min-height:0;overflow:auto;overscroll-behavior:contain}
.growth-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);height:100%;min-height:230px;padding:8px 16px 0;gap:16px;--panel-gap:16px}
.growth-panel,.growth-panel+.growth-panel{height:auto;min-height:0;padding:0;border:0;display:flex;flex-direction:column}.growth-panel[hidden]{display:none!important}.growth-panel+.growth-panel:before{display:none}
.growth-panel+.growth-panel{border-left:1px solid #dce9e3;padding-left:16px}.plot-heading{gap:2px}.plot-heading h2{font-size:20px;line-height:1.35}.plot-context{font-size:11px;gap:4px 12px}.scale-caption{font-size:11px;min-height:23px;padding:4px 0 2px}.growth-chart{height:0;flex:1;min-height:130px}.plot-state{font-size:11px;min-height:29px;padding:2px 0;justify-content:center;gap:12px}.plot-state .work-button{font-size:11px;min-height:27px}.growth-rates{padding:4px 0 0;margin:0;font-size:11px}.growth-rates>div{margin:0 0 2px;gap:5px}.growth-rates dd{font-size:12px}
[data-eco-layout=single] .growth-panels{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);max-width:1180px;margin:auto}[data-eco-layout=single] .growth-panel{border:0;padding:0}
[data-eco-layout=pair][data-eco-orientation=portrait] .growth-panels{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(220px,1fr));height:100%;min-height:450px;gap:8px}
[data-eco-layout=pair][data-eco-orientation=portrait] .growth-panel+.growth-panel{border-left:0;border-top:1px solid #dce9e3;padding:6px 0 0}
.growth-panels.show-rates{min-height:270px}[data-eco-layout=pair][data-eco-orientation=portrait] .growth-panels.show-rates{min-height:530px;grid-template-rows:repeat(2,minmax(260px,1fr))}
.science-note,.science-footnote{position:absolute;left:66px;right:12px;bottom:2px;min-height:23px;margin:0;padding:0;display:flex;justify-content:center;align-items:center;gap:3px 14px;font-size:10px;line-height:1.35;text-align:center;z-index:1;pointer-events:none}
.science-note span:last-child{display:none}.science-footnote>span:not(.compact-note){display:none}.science-footnote .compact-note{display:block;width:auto}.playback-state{display:none}
.science-time.timeline-wrap{padding:0;border:0;min-width:0;gap:7px;flex-wrap:nowrap}.timeline-wrap .time-label{flex:0 0 auto;gap:3px;font-size:11px}.timeline-wrap .time-label i{font-size:14px}.timeline-wrap .time-label output{font-size:12px;width:calc(5.7ch + 1.4em);min-width:0}.timeline-wrap .time-end{font-size:10px}.timeline-wrap #time-slider{order:initial;flex-basis:auto;height:auto;min-width:30px}.timeline-wrap label{min-width:0;font-size:11px}.timeline-wrap output{font-size:11px}
.scene-world{width:100%;position:relative}.scene-heading[hidden]{display:none!important}.scene-heading .title-line{height:32px;gap:7px;padding:0 4px}.scene-heading h2{font-size:18px;line-height:1.2;white-space:nowrap}.scene-heading h2 span{font-size:10px;margin-top:2px}.scene-number{font-size:18px}.site-tag{font-size:10px;padding-left:7px}.stage-readout{height:43px;padding:4px 44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center}.stage-readout b{font-size:13px;line-height:1.2;white-space:normal}.stage-readout span{font-size:11px;line-height:1.3}.context-bar[hidden]{display:none!important}
@media(max-width:1050px){.ecology-toolbar{padding:4px 8px;gap:5px;min-height:35px}.ecology-toolbar .ecology-action{font-size:11px;padding:3px 7px;min-height:28px}.ecology-status{display:none}.ecology-toolbar :is(.tangent-option,.soil-toggle){font-size:11px;gap:4px}.growth-panels{padding:5px 8px 0;gap:10px}.growth-panel+.growth-panel{padding-left:10px}.plot-heading h2{font-size:16px}.plot-context{font-size:10px;gap:4px 8px}.scale-caption{font-size:10px;min-height:20px}.plot-state{font-size:10px}.growth-chart text{font-size:11px}.growth-chart .population-label{font-size:12px}.growth-chart .reference-label{font-size:10px}.science-note,.science-footnote{left:54px;right:7px;font-size:9px}.scene-heading h2{font-size:16px}.scene-heading h2 span{display:none}.scene-heading .title-line{height:27px}.site-tag{font-size:9px;padding-left:6px}.stage-readout{height:40px}.stage-readout b{font-size:12px}.stage-readout span{font-size:10px}}
@media(max-width:420px){.ecology-toolbar{gap:4px;padding:4px 5px}.ecology-tabs{gap:3px}.ecology-toolbar .ecology-action{padding:3px 6px;font-size:10px}.ecology-toolbar :is(.tangent-option,.soil-toggle){font-size:10px}.ecology-toolbar [data-ecology=context]{font-size:0;gap:0;min-width:38px}.ecology-toolbar [data-ecology=context]:after{content:'设置';font-size:10px}.timeline-wrap .time-label label{font-size:10px}.timeline-wrap .time-end{display:none}.stage-readout span{font-size:10px}.science-footnote{font-size:9px}.scene-heading h2{font-size:16px}}
body[data-shell-compact=true] .ecology-toolbar{padding-block:2px;min-height:32px}body[data-shell-compact=true] .plot-context>span:first-child{display:none}body[data-shell-compact=true] .plot-heading{flex-direction:row;justify-content:center;gap:10px}body[data-shell-compact=true] .plot-heading h2{font-size:14px}body[data-shell-compact=true] .scale-caption{font-size:9px;min-height:17px;padding:2px 0}body[data-shell-compact=true] .plot-state{min-height:22px;font-size:9px}body[data-shell-compact=true] .plot-state .work-button{min-height:23px;padding:2px 6px;font-size:9px}body[data-shell-compact=true] .growth-panels{padding:2px 9px 0;min-height:183px}body[data-shell-compact=true] .growth-chart{min-height:124px}body[data-shell-compact=true] .growth-panels.show-rates{min-height:223px}body[data-shell-compact=true] .plots-scroll,body[data-shell-compact=true] .scene-scroll{height:calc(100% - 20px)}body[data-shell-compact=true] .science-note,body[data-shell-compact=true] .science-footnote{min-height:18px;bottom:0;left:37px;font-size:9px}
.model-area[data-immersive=true] :is(.population-workbench,.succession-workbench){position:relative}.model-area[data-immersive=true] .ecology-toolbar{position:absolute;top:var(--shell-identity-height,44px);left:0;right:0;z-index:7;transition:transform .18s,opacity .18s;background:#f5faf7ed}
.model-area[data-immersive=true][data-chrome=hidden] .ecology-toolbar{visibility:hidden;pointer-events:none;opacity:0;transform:translateY(-10px)}
.model-area[data-immersive=true] .plots-scroll,.model-area[data-immersive=true] .scene-scroll{height:calc(100% - 24px)}
.model-area[data-immersive=true] .growth-panels{padding-top:9px}
@media(prefers-reduced-motion:reduce){.model-area[data-immersive=true] .ecology-toolbar{transition:none}}
/* Reserve horizontal label room, not an extra logo row. */
.science-note,.science-footnote{left:84px;right:84px}
@media(max-width:1050px){.science-note,.science-footnote{left:54px;right:54px}}
body[data-shell-compact=true] .science-note,body[data-shell-compact=true] .science-footnote{left:50px;right:50px}
.growth-panels.show-rates{height:100%}.growth-panels.show-rates .growth-panel,.growth-panels.show-rates .growth-panel+.growth-panel{height:auto}
.growth-rates{padding-inline:clamp(44px,6vw,72px)}
.model-area[data-eco-dense=true] .growth-panels,.model-area[data-eco-dense=true] .growth-panels.show-rates{height:100%;min-height:150px;padding-top:0}
.model-area[data-eco-dense=true] .plot-heading{flex-direction:row;justify-content:center;gap:8px;min-height:18px}.model-area[data-eco-dense=true] .plot-heading h2{font-size:14px;line-height:18px}.model-area[data-eco-dense=true] .plot-context>span:first-child{display:none}.model-area[data-eco-dense=true] .scale-caption{font-size:9px;line-height:14px;min-height:14px;padding:0}
.model-area[data-eco-dense=true] .growth-chart{flex:0 0 max(112px,calc(var(--eco-surface-height) - 34px));min-height:112px}
.model-area[data-eco-dense=true] .growth-panels.show-rates .growth-chart{flex-basis:max(112px,calc(var(--eco-surface-height) - 76px))}
.model-area[data-eco-dense=true][data-eco-layout=pair][data-eco-orientation=portrait] .growth-panels{height:auto;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr))}
.model-area[data-eco-sparse=true] .growth-chart :is([data-y-tick="1"],[data-y-tick="3"],[data-y-tick="4"]){visibility:hidden}
