/* Content palette and SVG hierarchy adapted from tca-cycle 2.3.2; public chrome is the unmodified standard. */
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:'Microsoft YaHei',system-ui,sans-serif;color:#38565a}button,select,input{font:inherit}button{cursor:pointer}a{color:#3c7a70}[hidden]{display:none!important}button:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #ad8051;outline-offset:2px}
.independent-model-app{height:100dvh;display:flex;flex-direction:column}.independent-model-header{padding:12px 20px;flex-shrink:0}.independent-model-workspace{padding:0 14px 12px;flex:1;min-height:0;display:flex}.model-area{width:100%;display:flex;flex-direction:column;overflow:hidden;min-height:0}.model-stage{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fcfbf6}.control-dock{flex-shrink:0}
.sketch-tools{display:flex;align-items:center;gap:7px;padding:6px 12px;min-height:52px;flex:none;border-bottom:1px solid #e3e8dd;background:#fffef9}.sketch-label{font-size:12px;color:#8b815f;white-space:nowrap}.scene-select-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#607d70}.sketch-tools select{max-width:200px;min-width:0;height:38px;border:1px solid #cddfdc;background:#fffef9;border-radius:8px;color:#395f51;padding:4px 8px}.camera-tools{margin-left:auto;display:flex;gap:5px}.sketch-tools .shell-action{padding:7px 12px;min-height:38px;font-size:12px}.camera-tools #zoom-in,.camera-tools #zoom-out{padding:4px 10px;font-size:17px}
.science-viewport{position:relative;flex:1;overflow:hidden;min-height:0;touch-action:none;isolation:isolate;background:#fcfbf6;user-select:none;-webkit-user-select:none}.science-plane{position:absolute;left:0;top:0;width:1720px;height:1120px;transform-origin:0 0}.science-plane>svg{display:block;overflow:visible}.science-plane text{font-family:'Microsoft YaHei',Arial,sans-serif;fill:#405d56;pointer-events:none}.science-plane [role=button]{cursor:pointer}.science-viewport:focus{outline-offset:-3px}.science-plane .node-plate{fill:#e5f0e1;stroke:#78a48a;stroke-width:2.2}.node-heading{font-size:31px;font-weight:700;fill:#345f4c!important}.node-name{font-size:23px;font-weight:500}.node-subtitle{font-size:19px;fill:#66836b!important}.metabolite.is-active .node-plate{fill:#dcecd9;stroke:#528d72;stroke-width:3.5}.metabolite.selected .node-plate{stroke:#b38c5b;stroke-width:4}.metabolite.is-regenerated .node-plate{fill:#d4e8d8;stroke:#4f9272;stroke-width:4}.metabolite[data-node=export] .node-plate{fill:#f3eddf;stroke:#c3ae80}
.route{fill:none;stroke:#4f8d79;stroke-width:4.6;stroke-dasharray:8 7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.route.atp{stroke:#9a8b45;stroke-width:2.6;stroke-dasharray:4 6}.route.redox{stroke:#b97958;stroke-width:2.6;stroke-dasharray:4 6}.route.co2{stroke:#7c8c9d;stroke-width:2.6;stroke-dasharray:4 6}.route.output{stroke:#b2945b;stroke-width:4}.moving-arrow{stroke:#fcfbf6;stroke-width:1.5}.cofactor-plate{fill:#f4f0d8;stroke:none}.cofactor.redox .cofactor-plate{fill:#f7eadc}.cofactor.co2 .cofactor-plate{fill:#e7edf0}.cofactor-text{font-size:25px;font-weight:600;fill:#8c7d3e!important}.cofactor.redox text{fill:#a36c4d!important}.cofactor.co2 text{fill:#607f90!important}.map-kicker{font-size:20px;fill:#83917c!important;letter-spacing:2px}.zone-title{font-size:25px;font-weight:650;fill:#698a70!important}.enzyme-label{font-size:22px;fill:#678777!important;paint-order:stroke;stroke:#fcfbf6;stroke-width:9px}.small-note{font-size:18px;fill:#86947f!important}.branch-note{font-size:23px;font-weight:600;fill:#67876c!important}.output-note{font-size:23px;fill:#8d805c!important}.regen-title{font-size:26px;font-weight:650}.carbon-equation{font-size:24px;font-weight:600;fill:#4e7c5e!important}.ledger-title{font-size:31px;font-weight:650;fill:#38674e!important}.ledger-subtitle{font-size:20px;fill:#81917e!important}.ledger-value{font-size:26px;font-weight:600;fill:#65836b!important}.ledger-foot{font-size:17px;fill:#81917e!important}.actor-count{font-size:22px;font-weight:700}.actor-carbon{font-size:16px}
.scene-note{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);color:#89927c;background:#fcfbf6e8;padding:3px 6px;font-size:10px;white-space:nowrap;pointer-events:none}.reading-line{display:flex;align-items:center;gap:10px;padding:5px 14px;border-top:1px solid #e6e9df;font-size:13px;background:#fffef9;flex:none;min-height:46px}.reading-line p{margin:0;line-height:1.5;flex:1}.reading-line .shell-action{padding:5px 10px;min-height:32px;font-size:12px;white-space:nowrap}.timeline-wrap{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.timeline-wrap label{font-size:11px;color:#67847a;width:110px;min-width:110px;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}.timeline-wrap input{width:100%;min-width:40px;touch-action:none;accent-color:#3b8470}.detail-copy{font-size:14px;line-height:1.85;color:#4f665f}.detail-copy p{margin:10px 0}.detail-copy h3{font-size:17px}.detail-copy .equation{padding:10px;background:#eef4e8;border-radius:8px}.detail-copy a{font-size:13px}.detail-copy table{border-collapse:collapse;width:100%;font-size:13px}.detail-copy td,.detail-copy th{padding:7px;border:1px solid #dae3d8;text-align:left}.tool-panel{display:flex;flex-direction:column;gap:12px}
@media(max-width:860px) and (orientation:portrait){.independent-model-workspace{padding:0 6px 6px}.sketch-tools{padding:5px 7px;gap:5px;flex-wrap:wrap;min-height:0}.sketch-label,.scene-select-label>span{display:none}.scene-select-label{flex:1;min-width:0}.scene-select-label select{width:100%;max-width:none}.sketch-tools select{height:32px;font-size:12px;padding:3px 5px}.sketch-tools .shell-action{min-height:32px;padding:4px 7px;font-size:11px}.camera-tools{margin-left:0;width:100%;justify-content:center}.camera-tools .shell-action{flex:1}.reading-line{font-size:12px;min-height:48px;padding:5px 8px}.reading-line #details{display:none}.scene-note{font-size:9px;max-width:calc(100% - 70px);white-space:normal;text-align:center;left:58%}.timeline-wrap label{width:95px;min-width:95px;font-size:10px}}
body[data-shell-compact=true] .sketch-tools{padding:2px 8px;min-height:34px}.model-area[data-short=true] .sketch-label,.model-area[data-short=true] .scene-select-label>span{display:none}.model-area[data-short=true] .sketch-tools{flex-wrap:nowrap;gap:4px}.model-area[data-short=true] .sketch-tools select{height:28px;font-size:11px;max-width:175px}.model-area[data-short=true] .sketch-tools .shell-action{min-height:28px;padding:3px 7px;font-size:11px}.model-area[data-short=true] .camera-tools{width:auto;margin-left:auto}.model-area[data-short=true] #zoom-in,.model-area[data-short=true] #zoom-out{display:none}.model-area[data-short=true] .reading-line{min-height:30px;font-size:11px;padding:3px 10px}.model-area[data-short=true] #details{display:none}.model-area[data-short=true] .scene-note{display:none}
@media(max-width:359px){.sketch-tools #sample{padding:3px 5px;font-size:10px}.sketch-tools{gap:3px}.reading-line{font-size:10px;min-height:38px}.camera-tools .shell-action{min-height:27px;padding:3px 6px}.scene-select-label select{font-size:11px}.scene-note{display:none}}
.model-area[data-immersive=true] .sketch-tools{display:none}.model-area[data-immersive=true] .reading-line{position:absolute;left:75px;right:8px;bottom:8px;z-index:3;min-height:0;padding:4px 6px;border:0;background:#fffef9e8;pointer-events:none}.model-area[data-immersive=true][data-chrome=visible] .reading-line{display:none}.model-area[data-immersive=true] .scene-note{display:none}
.local-title{font-size:30px;font-weight:650;fill:#38674e!important}.local-note{font-size:24px;fill:#68836e!important}.local-foot{font-size:21px;fill:#80907c!important}.local-layout .node-name{font-size:22px}.local-layout .node-subtitle{font-size:21px}.local-layout .small-note{font-size:20px}
@media(max-width:359px){.sketch-tools{flex-wrap:nowrap;min-height:36px}.camera-tools{width:auto;margin-left:0}.camera-tools #current,.camera-tools #zoom-in,.camera-tools #zoom-out{display:none}.sketch-tools select{max-width:139px}.camera-tools #fit{padding:4px 6px;min-height:30px}}
.local-layout [data-layout=tiny] .local-title{display:none}.model-area[data-short=true] .timeline-wrap label{display:none}

.carbon-dot{fill:#4e8065;stroke:none}.carbon-groups{pointer-events:none}.cofactor-arc{stroke-width:3.2!important;stroke-dasharray:none!important}.cofactor-link{stroke-width:2!important;stroke-dasharray:4 5!important}.carbon-legend{font-size:19px;fill:#617c68!important}.local-layout .node-subtitle{font-size:18px}.local-layout .node-name{font-size:22px}.carbon-groups[data-carbon-count="6"] .carbon-dot{fill:#9a8b51}.cycle-ground{pointer-events:none}

/* Special multi-step carbon rearrangement: shared overview/local accent. */
.route.regeneration{stroke:#b87538}
.regeneration .regen-title,.regeneration .carbon-equation{fill:#995b2b!important}
.regeneration .carbon-dot{fill:#b87538}
.regeneration .small-note{fill:#9b7758!important}

.transfer-label{font-size:16px;font-weight:700;fill:#65572c!important}.science-plane [data-carbon-actor]{pointer-events:none}

@media(max-width:359px) and (orientation:portrait){
 .model-stage>.sketch-tools{display:none}
 .reading-line{min-height:31px;line-height:1.25}
}

.load-error{position:absolute;inset:20px;display:grid;place-content:center;gap:12px;text-align:center}

#cycle-round{white-space:nowrap;color:#42715c;font-weight:650;font-variant-numeric:tabular-nums}
#science-svg[data-scene="F"] .local-layout g.regeneration{opacity:.4}
.prior-reaction .prior-label{fill:#80502b;font-size:21px;font-weight:600}.prior-reaction .prior-count{fill:#80502b;font-size:18px}
