*{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}button:disabled{cursor:default;opacity:.5}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}
.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;-webkit-touch-callout:none}.science-plane{position:absolute;left:0;top:0;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}
.node-plate{fill:#f2f6ed;stroke:#aec5b6;stroke-width:1.8}.node-name{font-size:26px;font-weight:650}.node-subtitle{font-size:17px;fill:#768d7d!important}.branch-node .node-plate{fill:#faf8ef;stroke:var(--node-color);stroke-opacity:.55}.branch-node .node-name{font-size:24px}.branch-node .node-subtitle{font-size:16px}.metabolite.is-active .node-plate{fill:#e1efe2;stroke:#528d72;stroke-width:3.3}.metabolite.selected .node-plate{stroke:#b38c5b;stroke-width:4}
.route{fill:none;stroke:#4f8d79;stroke-width:3.2;stroke-dasharray:7 7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.route.is-active{stroke-width:4.5}.route-hit{stroke:transparent;stroke-width:23;pointer-events:stroke}.route.sugar{stroke:#729c89}.route.lipid{stroke:#b59b61}.route.amino{stroke:#9a8ba8}.route.heme{stroke:#b8807b}.route.redox{stroke:#b97958}.route.co2{stroke:#7c8c9d}.route.gtp{stroke:#9a8b45}.edge-label{font-size:18px;fill:#698b7c!important;paint-order:stroke;stroke:#fcfbf6;stroke-width:8px;stroke-linejoin:round}.edge-label.amino{fill:#93849f!important}.edge-label.lipid{fill:#a68b53!important}.edge-label.heme{fill:#a96f69!important}.moving-arrow{stroke:#fcfbf6;stroke-width:1.5}
.step-number circle{fill:#f8fbf4;stroke:#a8c5b3;stroke-width:1.5}.step-text{font-size:16px;font-weight:700;fill:#4d826b!important}.step-number.is-active circle{fill:#4f8d79;stroke:#4f8d79}.step-number.is-active .step-text{fill:white!important}.cofactor-plate{fill:#f6eee2;stroke:none}.cofactor-input{font-size:20px;fill:#9a7653!important}.cofactor-output{font-size:21px;font-weight:650;fill:#ad6e4d!important}.cofactor.gtp .cofactor-plate{fill:#f4f0d8}.cofactor.gtp text{fill:#92813d!important}.cofactor.is-active .cofactor-plate{fill:#f1dfc7}.simple-tag rect{fill:#e9eff1;stroke:#b2c1c7;stroke-width:1.2}.simple-label{font-size:21px;fill:#778795!important}.simple-tag.core rect{fill:#eff3e7;stroke:#c5d4bf}.simple-tag.core .simple-label{fill:#688776!important}.simple-tag.is-active rect{stroke-width:2.8;stroke:#7a9f8c}
.ledger-plate{fill:#f3f5eaf2;stroke:#dbe5d4;stroke-width:1.2}.ledger-title{font-size:29px;font-weight:650;fill:#537b63!important}.ledger-subtitle{font-size:18px;fill:#8b957f!important}.ledger-value{font-size:25px;font-weight:600;fill:#65836b!important}.ledger-foot{font-size:17px;fill:#8a937c!important}.map-kicker{font-size:21px;letter-spacing:2px;fill:#899c89!important}.map-note{font-size:17px;fill:#92a08e!important}.preview-note{font-size:17px;fill:#9a9b8a!important}.sample-heading{font-size:20px;fill:#8b9a82!important}.sample-status{font-size:28px;font-weight:650;fill:#5f846b!important}.sample-count{font-size:22px;fill:#9d7959!important}
.view-tools{position:absolute;top:6px;right:6px;z-index:3;display:flex;gap:3px;padding:3px;background:#fffef7ef;border:1px solid #e7e9dc;border-radius:7px}.view-tools button{border:0;border-radius:5px;color:#54766b;background:transparent;min-height:30px;padding:3px 7px;font-size:12px}.view-tools button[aria-pressed=true]{background:#e4eee3;color:#396e59}.view-tools #zoom-in,.view-tools #zoom-out{font-size:18px;min-width:27px}.legend{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:4px 9px;background:#fffdf2e6;border-radius:6px;font-size:10px;z-index:2;pointer-events:none;white-space:nowrap}.key:before{content:'';display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;background:#4f8d79}.key.redox:before{background:#b97958}.key.co2:before{background:#7c8c9d}.key.gtp:before{background:#9a8b45}
.reading-line{display:flex;align-items:center;gap:12px;min-height:38px;padding:6px 18px;border-top:1px solid #e6e9df;font-size:12px;background:#fffef9;flex:none}.reading-line p{margin:0;line-height:1.5;flex:1}.note-link{margin-left:auto;white-space:nowrap;background:none;border:0;color:#4f8270;font-size:11px;text-decoration:underline;min-height:28px}.timeline-wrap{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.timeline-wrap label{font-size:10px;color:#67847a;width:85px;min-width:85px;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;margin:12px 0 5px}.detail-copy a{font-size:12px}.detail-copy .equation{padding:12px;background:#eef4e8;border-radius:8px}.detail-copy ul{padding-left:24px}.detail-copy .source-list li{margin:6px 0}
#startup-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:16px;z-index:10;background:#fcfbf6;font-size:13px}#startup-status button{padding:10px;border:1px solid #91b5a4;border-radius:8px;background:#fff;color:#38565a}
.core-node .node-name{font-size:32px}.core-node[data-node=succinyl] .node-name,.core-node[data-node=akg] .node-name{font-size:32px}.core-node .node-subtitle{font-size:19px}
@media(max-width:860px) and (orientation:portrait){.independent-model-workspace{padding:0 6px 6px}.view-tools{top:3px;right:3px;gap:0;padding:1px}.view-tools button{min-height:29px;font-size:10px;padding:3px 5px}.reading-line{min-height:37px;padding:4px 10px;font-size:11px;gap:4px}.note-link{font-size:10px}.timeline-wrap label{width:78px;min-width:78px;font-size:10px}.legend{gap:7px;font-size:9px}}body[data-shell-compact=true] .reading-line{min-height:27px;padding:2px 10px;font-size:10px}body[data-shell-compact=true] .view-tools button{min-height:25px;font-size:10px;padding:2px 5px}body[data-shell-compact=true] .timeline-wrap label{display:none}.model-area[data-compact-canvas=true] .view-tools{position:absolute;top:4px;right:4px;margin:0;padding:2px}.model-area[data-compact-canvas=true] .view-tools button{padding:2px 4px;font-size:10px}
@media(max-height:540px) and (orientation:portrait){.reading-line{min-height:28px;font-size:10px}.note-link{display:none}.view-tools button{font-size:9px;min-height:25px;padding:2px 4px}.view-tools #zoom-in,.view-tools #zoom-out{font-size:14px;min-width:20px}.legend{font-size:8px;gap:5px}}
/* Original nodes inherit shared chrome holds, inert and release timer. */
.tca-immersive-tools{position:absolute;top:100%;left:0;right:0;display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:3px 8px;background:#fffef9f2;border-bottom:1px solid #e5e9df}.model-area[data-immersive=true] .tca-immersive-tools .view-tools{position:static;flex:none;margin:0;padding:0;border:0;background:none}.model-area[data-immersive=true] .tca-immersive-tools .note-link{display:block;flex:none;margin:0}.model-area[data-immersive=true] .reading-line{position:absolute;left:76px;right:8px;bottom:8px;z-index:3;min-height:0;padding:3px 6px;border:0;border-radius:5px;background:#fffef9df;pointer-events:none}.model-area[data-immersive=true][data-chrome=visible] .reading-line{visibility:hidden}.model-area[data-immersive=true] .legend{bottom:45px}.model-area[data-immersive=true][data-compact-canvas=true] .shell-identity>.tca-immersive-tools{display:none}.model-area[data-immersive=true] .shell-dialog .tca-immersive-tools{display:flex;position:static;flex-direction:column;align-items:stretch;gap:12px;padding:6px;border:0;background:none}.model-area[data-immersive=true] .shell-dialog .tca-immersive-tools .view-tools{justify-content:center;flex-wrap:wrap}
@media(max-width:559px){.tca-immersive-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px;padding:3px 6px}.model-area[data-immersive=true] .tca-immersive-tools .view-tools{justify-content:center}}

#science-svg[data-projection=short] .cofactor-input,#science-svg[data-projection=short] .cofactor-output{font-size:24px}#science-svg[data-projection=short] .simple-label{font-size:27px}

.model-area[data-immersive=true][data-chrome=visible][data-short-projection=true] .reading-line{visibility:visible;bottom:calc(var(--tca-dock-height,44px) + 5px)}
.model-area[data-immersive=true][data-chrome=visible][data-short-projection=true] .legend{bottom:calc(var(--tca-dock-height,44px) + 34px)}

/* A2: a dominant circular backbone, smaller orthogonal side pathways. */
.cycle-ground{fill:none;stroke:#edf3e6;stroke-width:34}
.core-node .node-plate{fill:#e5f0e1;stroke:#578971;stroke-width:2.8}
.core-node .node-name,.core-node[data-node=akg] .node-name,.core-node[data-node=succinyl] .node-name{font-size:34px;fill:#345f4c!important;font-weight:700}
.core-node .node-subtitle{font-size:20px;fill:#66836b!important}
.entry-node .node-plate{fill:#f6f8ee;stroke:#9db9a5;stroke-width:1.8}
.entry-node .node-name{font-size:32px}.entry-node .node-subtitle{font-size:18px}
.branch-node .node-plate{fill:#f9f7f0;stroke:var(--node-color);stroke-width:1;stroke-opacity:.35}
.branch-accent{fill:var(--node-color)}.branch-node .node-name{font-size:25px;font-weight:600;fill:var(--node-color)!important}.branch-node[data-node=aa-fumarate] .node-name{font-size:22px}
.branch-node .node-subtitle{font-size:17px;fill:#869187!important}
.reaction-edge .route.core{stroke:#478467;stroke-width:6;stroke-dasharray:10 8}
.reaction-edge[data-edge=glycolysis] .route,.reaction-edge[data-edge=pdh] .route,.reaction-edge[data-edge=acetyl-entry] .route{stroke-width:4;stroke-dasharray:8 7}
.reaction-edge .route.sugar,.reaction-edge .route.lipid,.reaction-edge .route.amino,.reaction-edge .route.heme{stroke-width:2.6;stroke-dasharray:4 6}
.reaction-edge .route.auxiliary{stroke-width:2.4;stroke-dasharray:4 5}
.route.is-active{stroke-width:6.5}.edge-label{font-size:18px;stroke-width:7px}
.step-number circle{fill:#3e7b60;stroke:#fcfbf6;stroke-width:3}.step-text{font-size:21px;fill:#fff!important}
.cofactor-plate{fill:#f7eadc}.cofactor-input{font-size:21px}.cofactor-output{font-size:21px}.cofactor .route{stroke-width:2.4;stroke-dasharray:4 5}
.simple-tag rect{stroke:none;fill:#e7edf0}.simple-label{font-size:22px}
.ledger-plate{fill:#fcfbf699;stroke:none}.ledger-title{font-size:32px;fill:#38674e!important}.ledger-subtitle{font-size:16px}.ledger-value{font-size:25px}.ledger-foot{font-size:16px}
.map-note,.preview-note{font-size:18px;fill:#7a927e!important}.map-kicker{font-size:20px}

.legend .branch-key{display:none}.model-area[data-peripheral-map=true] .legend .branch-key{display:inline}.model-area[data-peripheral-map=true] .legend .process-key{display:none}
.key.sugar:before{background:#729c89}.key.lipid:before{background:#b59b61}.key.amino:before{background:#9a8ba8}.key.heme:before{background:#b8807b}

/* Phase C: persistent, separate ledgers without changing the accepted graph. */
.reading-line{height:54px;min-height:54px;flex:none;box-sizing:border-box}
.reading-main{min-width:0;flex:1}.reading-main p{margin:0;line-height:1.4}
.ledger-readouts{display:flex;flex-wrap:wrap;gap:2px 18px;font-size:11px;line-height:1.45;margin-top:2px;font-variant-numeric:tabular-nums}
.ledger-readouts[hidden]{display:none}.ledger-readouts span{white-space:nowrap}
#prep-readout{color:#897858}#cycle-readout{color:#3e7259}
.view-tools button[aria-pressed=true]{background:#e2eee5;color:#2d6952}
.core-node.is-regenerated .node-plate{stroke:#4f9272;stroke-width:4;fill:#d4e8d8}
@media(max-width:860px) and (orientation:portrait){.reading-line{height:64px;min-height:64px}.reading-main p{font-size:11px}.ledger-readouts{gap:0 10px;font-size:10px;line-height:1.5}.ledger-readouts span{display:block}#prep-readout{width:100%}.note-link{max-width:46px}}
body[data-shell-compact=true] .reading-line{height:41px;min-height:41px}.model-area[data-immersive=true] .reading-line{height:auto;min-height:0}


/* Peripheral captions follow the same continuous timeline. */
.edge-small{font-size:17px;fill:#857c65!important;paint-order:stroke;stroke:#fcfbf6;stroke-width:6px;stroke-linejoin:round}
.model-area[data-network=true] .reading-main p{line-height:1.4}
@media(max-width:860px) and (orientation:portrait){.model-area .reading-line{height:82px;min-height:82px}.model-area[data-immersive=true] .reading-line{height:auto;min-height:0}}
body[data-shell-compact=true] .model-area .reading-line{height:54px;min-height:54px}
body[data-shell-compact=true] .model-area[data-immersive=true] .reading-line{height:auto;min-height:0}
@media(max-width:359px){.model-area[data-network=true]:not([data-immersive=true]) .legend{bottom:34px}}
@media(min-width:861px) and (min-height:541px){body[data-model-shell] .model-area[data-tca-model] > .stage-strip{grid-auto-columns:164px!important}}
