*{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:#fdfbf6}.control-dock{flex-shrink:0}
.science-toolbar{display:flex;gap:20px;align-items:center;padding:6px 14px;border-bottom:1px solid #e5e9df;flex:none;min-height:42px;background:#fffef9;font-size:12px}.science-toolbar label{display:flex;align-items:center;gap:6px;white-space:nowrap}.science-toolbar select{background:#fff;border:1px solid #d6dfd6;border-radius:5px;padding:0 5px;line-height:normal;color:#48645f;height:30px;font-size:12px}.family-choice select{max-width:235px}.part-choice select{max-width:156px}.mode-status{font-size:11px;color:#8e816a;margin-left:auto;white-space:nowrap}
.science-viewport{position:relative;flex:1;overflow:hidden;min-height:0;touch-action:none;isolation:isolate;background:#fdfbf6;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:#3f5859}
.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}
.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}
.atom{font:500 22px Arial,sans-serif}.atom-charge{font:600 18px Arial,sans-serif;fill:#b66d57!important}.mol-bond{fill:none;stroke:#526967;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.molecule-region{stroke:none;opacity:.9}.reactive-bond .mol-bond,.c4-added{stroke:#b87561;stroke-width:3}.atom-number{font:600 11px Arial;fill:#b15d50!important}.transferred-h{fill:#8d5d36!important;font-weight:650}.hydride-atom{font:650 21px Arial;fill:#88623e!important}.site-label{font-size:13px;fill:#a46554!important}.r-label{font-size:14px;fill:#809188!important}.r-group{font-style:italic}.token-label{font-size:94px;font-weight:650;fill:#577566!important}.part-faded{opacity:.12!important}
.molecular-frame{fill:none;stroke:#b6c4b0;stroke-width:1.6;stroke-dasharray:5 8}.species{font-size:32px;font-weight:650;fill:#4a7565!important}.eyebrow{font-size:16px;fill:#80918a!important}.small,.micro{font-size:17px}.muted{fill:#83938a!important}.route-label{font-size:23px;font-weight:600}.green{fill:#69927d!important}.coral{fill:#b27a66!important}.card-plate{fill:#f9faf4;stroke:#c6d1c1;stroke-width:1.5}.source-card{cursor:pointer}.source-card.active .card-plate{fill:#f4e6ca;stroke:#ba946a;stroke-width:2.4}.context-heading{font-size:24px;font-weight:650}.card-title{font-size:20px;font-weight:600}.card-body{font-size:17px}.pair-label{font-size:28px;font-weight:650;fill:#ad705c!important}.chain-protein{fill:#9cbab3;stroke:#678d86;stroke-width:1.3}.water-product{font-size:24px;fill:#5f93a2!important}.active>.card-plate{fill:#e6f0e4;stroke:#86aa94;stroke-width:2.4}.electron-text{font:600 15px Arial;fill:white!important}.boundary{font-size:17px;fill:#7b8b82!important}
.view-title{font-size:28px;font-weight:650}.detail-subtitle{font-size:19px}.context-plate{fill:#f0f4e9;stroke:#c5d2be;stroke-width:1.3}.context-plate.use{fill:#eef3ef}.context-title{font-size:26px;font-weight:600}.context-body{font-size:20px}.detail-indicator{font-size:25px;font-weight:600;fill:#a76d58!important}.detail-readout{font-size:21px;fill:#748b7e!important}.half-reaction{font-size:29px;font-weight:600}.extra-phosphate-label{font-size:18px;fill:#4d937a!important}
.lipid-tail-core{fill:none;stroke:#a9d2df;stroke-width:4;stroke-linecap:round}.lipid-tail-shadow{fill:none;stroke:#82b7c6;stroke-width:1;opacity:.38}
.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 img{width:100%;height:auto}.detail-copy .keyframe-choice{margin:5px 3px}.science-viewport:focus{outline-offset:-3px}
#startup-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:16px;z-index:10;background:#fdfbf6;font-size:13px}#startup-status button{padding:10px;border:1px solid #91b5a4;border-radius:8px;background:#fff;color:#38565a}
@media(max-width:860px) and (orientation:portrait){.independent-model-workspace{padding:0 6px 6px}.science-toolbar{gap:6px;padding:4px 7px;min-height:36px}.science-toolbar label>span{display:none}.science-toolbar select{font-size:11px;max-width:175px;height:28px}.part-choice select{max-width:125px}.mode-status{display:none}.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}}
body[data-shell-compact=true] .science-toolbar{min-height:31px;padding:2px 10px;gap:10px}body[data-shell-compact=true] .science-toolbar select{height:26px;min-height:26px;line-height:normal;padding:0 4px;font-size:10px}body[data-shell-compact=true] .science-toolbar label{font-size:10px}body[data-shell-compact=true] .mode-status{font-size:10px}body[data-shell-compact=true] .reading-line{min-height:27px;padding:2px 10px;font-size:10px}body[data-shell-compact=true] .view-tools{top:2px;right:2px}body[data-shell-compact=true] .view-tools button{min-height:25px;font-size:10px;padding:2px 5px}
@media(max-height:540px) and (orientation:portrait){.science-toolbar{min-height:31px;padding:2px 4px}.family-choice select{max-width:170px}.part-choice select{max-width:118px}.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}}


.model-area[data-static=true] .timeline-wrap,.model-area[data-static=true] [data-action=play],.model-area[data-static=true] [data-action=speed]{display:none!important}
.compact-label{font-size:23px}
.small-context{font-size:21px}
body[data-shell-compact=true] .timeline-wrap label{display:none}
.model-area[data-compact-canvas=true] .science-toolbar{gap:5px}
.model-area[data-compact-canvas=true] .science-toolbar label>span,.model-area[data-compact-canvas=true] .mode-status{display:none}
.model-area[data-compact-canvas=true] .view-tools{position:static;margin-left:auto;background:none;border:0;padding:0}
.model-area[data-compact-canvas=true] .view-tools button{padding:2px 4px;font-size:9px}
.model-area[data-compact-canvas=true] .family-choice select{max-width:165px}
.model-area[data-compact-canvas=true] .part-choice select{max-width:110px}

/* Linked zoom and explicit two-electron transfer; content-only styling. */
.nicotinamide-locator{fill:#bd756418;stroke:#b26c59;stroke-width:2.8;stroke-dasharray:5 4;pointer-events:none}
.zoom-leader{fill:none;stroke:#a4826b;stroke-width:2.4;stroke-dasharray:6 5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.locator-plate{fill:#f6f6ee;stroke:#d6d9ca;stroke-width:1.3}.locator-species{font-size:29px;font-weight:650;fill:#47765e!important}.locator-label{font-size:22px;font-weight:600}.locator-hint{font-size:18px;fill:#8d7967!important}.ledger-note{font-size:17px;fill:#7b8b82!important}
.equivalent-outline{fill:#fbf1dfb0;stroke:#c7ab80;stroke-width:1.6;stroke-dasharray:4 3}.transfer-proton{fill:#ebcc95;stroke:#ad8756;stroke-width:1.5}.transfer-proton-text{font:bold 17px Arial;fill:#785b3b!important}.electron-core{fill:#b55f50;stroke:#fff5e9;stroke-width:2}.electron-halo{fill:#c4775c;opacity:.18}.electron-storage{fill:#f7e5d6;stroke:#d4a58b;stroke-width:1.4}.electron-status{font-size:22px;font-weight:600;fill:#a75b4c!important}.equivalent-note{font-size:21px;fill:#9e7549!important}.hydrogen-ledger{font-size:16px;fill:#8c956f!important}.small-equation{font-size:23px;font-weight:600}

/* Shape-following glow behind the centered molecular detail; labels remain unfiltered. */
.nicotinamide-glow{opacity:.48;pointer-events:none}.zoom-caption{font-size:18px;font-weight:600;fill:#9b6852!important}.science-plane [data-view=cycle]>.zoom-leader{stroke:#b78972;stroke-width:3}

/* NADPH source and acceptor, using the existing scientific palette. */
.photon-wave{fill:none;stroke:#bd9b44;stroke-width:4.5;stroke-linecap:round}.photon-label{fill:#a68c3e!important;font-size:19px}.light-protein{fill:#b5d1b7;stroke:#70957c;stroke-width:2}.light-active .light-protein{fill:#d9cf89;stroke:#b09443}.ferredoxin{fill:#ccdedc;stroke:#779a96;stroke-width:1.5}.fnr-protein{fill:#dccbdc;stroke:#a38ba7;stroke-width:1.8}.calvin-node{fill:#f4f6ed;stroke:#b9cbb8;stroke-width:1.7}.calvin-active .calvin-node{fill:#ecdbc9;stroke:#ba7a64;stroke-width:2.4}.reduction-node{fill:#f3f7ee}
.integrated-ring-glow{fill:#df9f7c;stroke:#d99a78;stroke-width:35;opacity:.48;pointer-events:none}.integrated-label{font-size:25px;font-weight:650;fill:#9b6852!important}.integrated-readout{font-size:19px;fill:#648274!important}.panel-role{font-size:19px;fill:#819080!important}.integrated-status{font-size:22px;fill:#a06753!important}.coenzyme-panel.is-working>.molecular-frame{stroke:#86a78f;stroke-width:2}.coenzyme-panel .locator-hint{font-size:17px}.carbon-node .calvin-node{stroke-width:2.2}.carbon-node.calvin-active .calvin-node{fill:#e8d5bb;stroke:#b88563}.carrier-name{font-size:23px;font-weight:650;fill:#658675!important}

/* A4: locally circled reaction site and actual molecular carriers. */
.nicotinamide-focus{fill:#f4ddc8;fill-opacity:.6;stroke:#bc8b6e;stroke-width:3;stroke-dasharray:8 7;pointer-events:none}.carrier-name{font-size:20px}.coenzyme-panel .integrated-label{paint-order:stroke;stroke:#fdfbf6;stroke-width:4px;stroke-linejoin:round}

/* Particle path geometry is retained solely for deterministic motion. */
.science-plane [data-particle-route="true"]{visibility:hidden;pointer-events:none}

/* Local operations share the existing shell's immersive lifecycle. No layout
   row is reserved; the scientific viewport stays fixed while chrome fades. */
.coenzyme-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] .coenzyme-immersive-tools .science-toolbar{position:static;margin-right:auto;min-height:30px;padding:0;gap:8px;border:0;background:none}
.model-area[data-immersive=true] .coenzyme-immersive-tools .mode-status{display:none}
.model-area[data-immersive=true] .coenzyme-immersive-tools .view-tools{position:static;flex:none;margin:0;padding:0;border:0;background:none}
.model-area[data-immersive=true] .coenzyme-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:#fffef9d9;pointer-events:none}
.model-area[data-immersive=true][data-chrome=visible] .reading-line{visibility:hidden}
.model-area[data-immersive=true][data-compact-canvas=true] .shell-identity>.coenzyme-immersive-tools{display:none}
.model-area[data-immersive=true] .shell-dialog .coenzyme-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 .coenzyme-immersive-tools .science-toolbar{margin:0;justify-content:center;flex-wrap:wrap}
.model-area[data-immersive=true] .shell-dialog .coenzyme-immersive-tools .view-tools{justify-content:center;flex-wrap:wrap}
.model-area[data-immersive=true][data-compact-canvas=true] g[data-view=reactionCompact]>.integrated-status,
.model-area[data-immersive=true][data-compact-canvas=true] g[data-view=reactionCompact]>.half-reaction{transform:translateY(-20px)}
@media(max-width:559px){
 .coenzyme-immersive-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px;padding:3px 6px}
 .model-area[data-immersive=true] .coenzyme-immersive-tools .science-toolbar{grid-column:1/-1;justify-content:center;width:100%;gap:6px}
 .model-area[data-immersive=true] .coenzyme-immersive-tools .view-tools{justify-content:center}
 .model-area[data-immersive=true] .coenzyme-immersive-tools .science-toolbar label>span{display:none}
}
