:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #70787c; color: #101010; }
button, input { font: inherit; }
button { color: inherit; }
.portfolio-return { position: fixed; top: 12px; left: 16px; z-index: 20; border: 1px solid rgb(255 255 255 / 35%); background: rgb(23 31 34 / 82%); padding: 8px 12px; color: #fff; text-decoration: none; font: 600 11px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }
.portfolio-return:hover { background: #006c6d; }
.bpt-stage { min-height: 100vh; padding: clamp(42px, 4vw, 58px) clamp(0px, 2vw, 28px) clamp(0px, 2vw, 28px); overflow-x: auto; }
.software-copyright { margin: 10px auto 0; color: rgb(228 233 235 / 62%); text-align: center; font: 9px/1.3 Arial, sans-serif; letter-spacing: .035em; }
.bpt-window { width: 1240px; min-width: 1240px; min-height: 800px; margin: 0 auto; overflow: hidden; border: 1px solid #272727; background: #d9e1e5; box-shadow: 0 14px 46px rgb(0 0 0 / 35%); }
.bpt-titlebar { height: 25px; border-bottom: 1px solid #8a8a8a; background: linear-gradient(#f7f7f7, #dedede); padding: 4px 8px; font-size: 12px; }
.bpt-header { display: grid; grid-template-columns: 1.1fr 1fr .5fr 170px; align-items: center; min-height: 78px; border-bottom: 2px solid #007c7d; background: linear-gradient(90deg, #fff 0%, #f4f7f7 62%, #d5dfdf 100%); }
.bpt-brand { padding: 0 16px; color: #777; font-size: 8px; letter-spacing: 3px; }
.bpt-brand strong { display: block; color: #595959; font-size: 22px; letter-spacing: 2px; }
.bpt-brand span { display: block; }
.bpt-header h1 { margin: 0; color: #006c6d; font-size: clamp(23px, 3vw, 34px); }
.bpt-header h1 small { display: inline-block; border: 1px solid #006c6d; padding: 3px 5px; vertical-align: middle; font-size: 8px; letter-spacing: .12em; }
.bpt-organism { color: #006c6d; font-size: 18px; text-decoration: underline 4px #e4e300; text-underline-offset: 6px; }
.bpt-power { align-self: stretch; border: 0; border-left: 2px solid #007c7d; background: transparent; padding: 20px 12px 0; text-align: left; font-size: 11px; line-height: 13px; cursor: pointer; }
.bpt-power b { float: left; margin: 8px 9px 0 0; font-size: 15px; }
.bpt-power span { float: left; width: 24px; height: 24px; margin-right: 6px; border: 2px solid #000; background: linear-gradient(#ec140f 50%, #888 50%); }
.bpt-power span.on { background: linear-gradient(#24a60e 50%, #b8e5ae 50%); }
.bpt-workspace { display: grid; grid-template-columns: minmax(700px, 1fr) 196px; min-height: 700px; }
.bpt-process { position: relative; min-width: 0; border-right: 2px solid #007c7d; }
.bpt-process-note { display: grid; grid-template-columns: 1fr auto 1fr; height: 28px; align-items: center; gap: 12px; padding: 3px 10px; font-size: 11px; }
.bpt-process-note > span:first-child { color: #006c6d; font-weight: 700; }
.bpt-process-note > span:last-child { text-align: right; }
.bpt-process-note button { border: 1px solid #9aa; background: #edf3f3; padding: 3px 9px; color: #005d5e; font-size: 10px; cursor: pointer; }
.bpt-process-note button:hover { background: #fff; }
.bpt-diagram { position: relative; height: 535px; overflow: hidden; }
.bpt-feed-bank { position: absolute; z-index: 2; display: flex; gap: 34px; }
.bpt-feed-bank-top { top: 35px; left: 32px; }
.bpt-feed-bank-bottom { bottom: 10px; left: 38px; gap: 18px; }
.bpt-tank-button, .bpt-tank-static { position: relative; display: grid; width: 72px; justify-items: center; border: 0; background: transparent; padding: 0; font-size: 11px; }
.bpt-tank-button { cursor: pointer; }
.bpt-tank-button:hover .bpt-vessel, .bpt-tank-button:focus-visible .bpt-vessel { outline: 2px solid #007c7d; outline-offset: 2px; }
.bpt-vertical-label { position: absolute; top: 18px; left: -22px; writing-mode: vertical-rl; transform: rotate(180deg); }
.bpt-vessel { position: relative; display: block; width: 38px; height: 82px; overflow: hidden; border: 2px solid #555; border-radius: 10px 10px 19px 19px; background: #f4f4f0; box-shadow: inset 5px 0 #fff, inset -5px 0 #9c9c9c; }
.bpt-vessel.small { height: 72px; }
.bpt-vessel .liquid { position: absolute; right: 7px; bottom: 8px; left: 7px; height: 70%; border: 1px solid #222; transition: height .3s ease; }
.liquid.brown { background: #8c4b04; }.liquid.teal { background: #087c77; }.liquid.purple { background: #7f0b85; }.liquid.blue { background: #0b7395; }.liquid.red { background: #d32613; }
.bpt-vessel .shine { position: absolute; top: 0; right: 10px; width: 5px; height: 100%; background: rgb(255 255 255 / 45%); }
.bpt-valve { display: grid; width: 34px; height: 34px; margin-top: 2px; place-items: center; border: 1px solid #999; background: #eee; font-size: 25px; line-height: 1; }
.bpt-tank-button strong, .bpt-tank-static strong { margin-top: 2px; font-size: 11px; }.bpt-tank-button small, .bpt-tank-static small { font-size: 10px; white-space: nowrap; }
.bpt-inoculation { position: absolute; top: 92px; left: 340px; z-index: 2; display: grid; justify-items: center; border: 0; background: transparent; padding: 0; font-size: 12px; cursor: pointer; }
.bpt-bottle { display: block; width: 25px; height: 60px; border: 2px solid #606060; border-radius: 4px 4px 8px 8px; background: linear-gradient(90deg, #888 0 12%, #fafafa 12% 68%, #a9a9a9 68%); }
.bpt-bottle.ready { background: linear-gradient(90deg, #888 0 12%, #e8d9a0 12% 68%, #a9a9a9 68%); box-shadow: 0 0 0 2px #2c9a3a; }
.bpt-gas-station { position: absolute; top: 26px; right: 25px; z-index: 2; width: 204px; border: 1px solid #aaa; background: #eaeaea; padding: 8px 12px; text-align: left; font-size: 11px; line-height: 21px; cursor: pointer; }
.bpt-gas-station > span { position: absolute; top: -18px; left: -28px; }
.bpt-gas-station div::before { content: '◉ ─ ◉'; margin-right: 10px; color: #777; }
.bpt-gas-station:hover, .bpt-gas-station:focus-visible { outline: 2px solid #007c7d; outline-offset: 2px; }
.bpt-reactor-area { position: absolute; top: 188px; left: 43%; z-index: 2; display: flex; align-items: center; }
.bpt-motor { position: absolute; top: -38px; left: 38px; z-index: 3; display: grid; width: 42px; height: 42px; place-items: center; border: 3px double #444; border-radius: 50%; background: #f8f8f8; font-weight: 700; cursor: pointer; }
.bpt-motor.running { box-shadow: 0 0 0 3px rgb(0 124 125 / 28%); }
.bpt-reactor { position: relative; width: 114px; height: 178px; overflow: hidden; border: 6px solid #a5a5a5; border-radius: 12px 12px 24px 24px; background: linear-gradient(90deg, #9b9b9b, #fbfbfb 18%, #efefef 72%, #969696); box-shadow: 0 4px 2px rgb(0 0 0 / 35%); }
.bpt-reactor-liquid { position: absolute; right: 18px; bottom: 12px; left: 18px; height: 0; border: 1px solid #333; background: linear-gradient(90deg, #f4ef00, #fff9a9 48%, #f0ea00); transition: height .3s ease; }
.bpt-shaft { position: absolute; top: -3px; left: 50%; width: 5px; height: 150px; background: #777; transform: translateX(-50%); }.bpt-impeller { position: absolute; left: 29px; width: 48px; height: 9px; background: #747000; }.impeller-one { bottom: 66px; }.impeller-two { bottom: 37px; }
.bpt-scale { margin-left: 10px; font-size: 10px; line-height: 12px; }
.bpt-bubbles { position: absolute; inset: 0; display: none; overflow: hidden; }.bpt-bubbles.active { display: block; }.bpt-bubbles i { position: absolute; bottom: 10px; width: 5px; height: 5px; border: 1px solid #7c7800; border-radius: 50%; animation: bubble 2.2s linear infinite; }.bpt-bubbles i:nth-child(1) { left: 25px; animation-delay: -.4s; }.bpt-bubbles i:nth-child(2) { left: 44px; animation-delay: -1.5s; }.bpt-bubbles i:nth-child(3) { left: 60px; animation-delay: -.9s; }.bpt-bubbles i:nth-child(4) { left: 70px; animation-delay: -1.9s; }.bpt-bubbles i:nth-child(5) { left: 35px; animation-delay: -2.1s; }
.bpt-values { position: absolute; top: 120px; right: 35px; z-index: 2; display: grid; grid-template-columns: repeat(2, 78px); gap: 6px; }
.bpt-values output { display: grid; min-height: 47px; place-items: center; border: 1px solid #7d7d7d; border-radius: 12px; background: #fff; font-size: 12px; line-height: 13px; }.bpt-values output.set { grid-column: 1 / -1; justify-self: end; width: 78px; background: #fff9c9; }.bpt-values b { font-size: 13px; }
.bpt-product { position: absolute; right: 52px; bottom: 10px; z-index: 2; display: grid; grid-template-columns: 55px 68px; align-items: center; gap: 8px; font-size: 11px; }.bpt-product-vessel { position: relative; grid-row: span 2; width: 42px; height: 65px; overflow: hidden; border: 2px solid #777; border-radius: 0 0 16px 16px; background: linear-gradient(90deg, #999, #fff, #aaa); }.bpt-product-vessel i { position: absolute; right: 7px; bottom: 4px; left: 7px; height: 0; background: #d7b036; }.bpt-product > span:last-child { padding: 12px 5px; border: 1px solid #999; border-radius: 9px; background: #fff; }
.bpt-sample-point { position: absolute; right: 385px; bottom: 92px; z-index: 3; display: flex; align-items: center; border: 0; background: transparent; font-size: 24px; cursor: pointer; }.bpt-sample-point span { margin-left: 7px; font-size: 11px; }
.bpt-thermal { position: absolute; top: 270px; left: 270px; z-index: 2; display: grid; width: 82px; justify-items: center; border: 1px solid #8da4a6; background: #eef4f4; padding: 4px; color: #005d5e; font-size: 10px; line-height: 13px; }.bpt-thermal b { font-family: 'Courier New', monospace; }
.bpt-piping { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }.bpt-piping path { fill: none; stroke-width: 3; stroke-linecap: square; stroke-linejoin: round; vector-effect: non-scaling-stroke; }.bpt-piping .pipe-feed { stroke: #a75000; }.bpt-piping .pipe-inoculum, .bpt-piping .pipe-product { stroke: #6f6f6f; }.bpt-piping .pipe-dose { stroke: #039b2c; }.bpt-piping .pipe-thermal { stroke: #00898a; }.bpt-piping .pipe-gas, .bpt-piping .pipe-sensor { stroke: #247ec1; }.bpt-piping .pipe-sensor { stroke-dasharray: 7 4; }
.bpt-model-readout { display: grid; grid-template-columns: repeat(5, 1fr); height: 32px; border-top: 2px solid #007c7d; background: #c8d3d5; }.bpt-model-readout span { display: flex; align-items: center; justify-content: center; gap: 5px; border-right: 1px solid #8b989a; font-size: 10px; }.bpt-model-readout b { color: #004f50; font-family: 'Courier New', monospace; font-size: 12px; }
.bpt-statusline { display: flex; height: 28px; align-items: center; gap: 14px; overflow: hidden; border-top: 1px solid #818181; background: #e5e5e5; padding: 4px 8px; font-size: 10px; }.bpt-statusline > span { flex: 1; overflow: hidden; color: #006c6d; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.bpt-statusline b { white-space: nowrap; }.bpt-statusline i { font-style: normal; }.bpt-alert { border: 1px solid #75959a; background: #e4f3f0; padding: 3px 6px; color: #24544f; font-weight: 700; }.bpt-alert.warning { border-color: #a96e00; background: #fff1c2; color: #795000; }.bpt-alert.critical { border-color: #b13e30; background: #ffd6d0; color: #8d2519; }
.bpt-bottom-nav { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 155px .85fr 1.15fr; min-height: 77px; border-top: 2px solid #007c7d; background: #d1d1d1; }.bpt-bottom-nav > div { position: relative; display: flex; align-items: end; padding: 18px 6px 5px; border-right: 1px solid #555; }.bpt-bottom-nav span { position: absolute; top: 3px; font-weight: 700; font-size: 12px; }.bpt-bottom-nav button, .bpt-sidebar button, .bpt-exit, .medium-grid > button { min-height: 36px; flex: 1; border: 2px outset #f5f5f5; border-radius: 0; background: #ddd; padding: 4px 6px; color: #000; text-align: center; font-size: 11px; text-decoration: none; cursor: pointer; }.bpt-bottom-nav button:hover, .bpt-sidebar button:hover, .bpt-exit:hover, .medium-grid > button:hover { background: #eee; }.bpt-bottom-nav button:active, .bpt-sidebar button:active, .medium-grid > button:active { border-style: inset; }
.bpt-sidebar { display: flex; flex-direction: column; background: #d0d0d0; }.bpt-time { margin: 0; padding: 8px; border-bottom: 2px solid #007c7d; }.bpt-time > div { display: grid; grid-template-columns: 1fr 80px; align-items: center; margin-bottom: 6px; font-size: 12px; }.bpt-time dt { font-weight: 700; }.bpt-time dd { margin: 0; border: 1px inset #aaa; background: #f5f5f5; padding: 4px; text-align: center; }
.bpt-sidebar-group { display: grid; gap: 5px; padding: 10px 9px; border-bottom: 2px solid #007c7d; }.bpt-sidebar-group h2 { margin: -2px 0 2px; font-size: 13px; }.bpt-sidebar-group fieldset { border: 1px solid #333; padding: 4px; }.bpt-sidebar-group legend { padding: 0 4px; font-size: 12px; font-weight: 700; }.bpt-split { display: grid; grid-template-columns: 1fr 1fr; }.bpt-speed-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 4px; }.bpt-speed-buttons button { min-height: 24px; padding: 3px; }.bpt-speed-buttons button.active { border-style: inset; background: #007c7d; color: #fff; }.bpt-run { margin: auto 9px 5px; width: calc(100% - 18px); }.bpt-exit { display: grid; min-height: 40px; margin: 0 9px 10px; place-items: center; }
.bpt-sidebar-group > button { min-height: 30px; }.bpt-sidebar-group.operations { gap: 3px; padding-top: 7px; padding-bottom: 7px; }.bpt-sidebar-group.operations > button { min-height: 27px; padding-top: 2px; padding-bottom: 2px; }
.bpt-dialog { width: min(560px, calc(100vw - 28px)); overflow: hidden; border: 2px solid #202020; border-radius: 0; background: #d7d7d7; padding: 0; color: #111; box-shadow: 8px 10px 28px rgb(0 0 0 / 38%); }.bpt-dialog.wide { width: min(760px, calc(100vw - 28px)); }.bpt-dialog::backdrop { background: rgb(0 0 0 / 18%); backdrop-filter: blur(1px); }.bpt-dialog form { margin: 0; }.bpt-dialog h2 { margin: 0; border-bottom: 1px solid #757575; background: linear-gradient(#f7f7f7, #d7d7d7); padding: 7px 34px 7px 9px; font-size: 13px; }.bpt-dialog > form > p { margin: 0; border-bottom: 2px solid #007c7d; padding: 8px 12px; font-size: 11px; }.dialog-close { position: absolute; top: 2px; right: 3px; width: 28px; height: 25px; border: 1px outset #eee; background: #ddd; font-size: 18px; line-height: 1; cursor: pointer; }
.environment-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 10px 12px 0; }.environment-switch button { min-height: 32px; border: 2px outset #f5f5f5; background: #ddd; cursor: pointer; }.environment-switch button.active { border-style: inset; background: #007c7d; color: #fff; }.gas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 12px; }.gas-grid label { display: grid; grid-template-rows: auto 150px auto auto; justify-items: center; border: 1px solid #a1a1a1; background: #cecece; padding: 8px; font-size: 11px; font-weight: 700; }.gas-grid input[type='range'] { width: 145px; transform: rotate(-90deg); accent-color: #092dd0; }.gas-grid input:disabled { opacity: .42; }.gas-grid output { align-self: end; width: 100%; border: 1px inset #eee; background: #eee; padding: 4px; text-align: center; font-weight: 400; }.gas-channel-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; margin-top: 7px; }.gas-channel-modes button { min-width: 0; min-height: 24px; border: 2px outset #f5f5f5; background: #ddd; padding: 2px; font-size: 8px; cursor: pointer; }.gas-channel-modes button.active { border-style: inset; background: #007c7d; color: #fff; }.dialog-footnote { border-top: 1px solid #999 !important; border-bottom: 0 !important; color: #454545; }
.medium-grid { display: grid; gap: 10px; padding: 14px; }.medium-grid label, .controller-grid label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }.medium-grid input, .controller-grid input { width: 76px; border: 1px inset #eee; background: #efefef; padding: 3px 5px; text-align: right; }.medium-grid label:nth-child(3) { border-top: 1px solid #aaa; padding-top: 10px; font-weight: 700; }
.controller-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }.controller-grid fieldset { display: grid; gap: 8px; border: 1px solid #999; background: #cecece; padding: 12px; }.controller-grid legend { padding: 0 8px; color: #004f50; font-weight: 700; }
.model-switches { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; padding-right: 12px; }.model-mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px 0 0 12px; }.model-mode-switch button { min-height: 34px; border: 2px outset #f5f5f5; background: #ddd; cursor: pointer; }.model-mode-switch button.active { border-style: inset; background: #007c7d; color: #fff; }.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; }.model-grid fieldset { display: grid; align-content: start; gap: 8px; border: 1px solid #999; background: #cecece; padding: 10px; }.model-grid legend { padding: 0 6px; color: #004f50; font-size: 12px; font-weight: 700; }.model-grid label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }.model-grid input { width: 66px; border: 1px inset #eee; background: #f0f0f0; padding: 3px 4px; text-align: right; }.model-grid small { color: #555; font-size: 9px; line-height: 1.4; }.model-equation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 2px solid #007c7d; background: #edf3f3; padding: 9px 12px; color: #004f50; font: 10px/1.4 'Courier New', monospace; }
.process-data-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; padding: 12px; }.process-data-grid section { border: 1px solid #999; background: #cecece; padding: 10px; }.process-data-grid h3 { margin: 0 0 8px; color: #004f50; font-size: 12px; }.process-data-current { display: grid; gap: 5px; margin: 0; }.process-data-current > div { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 8px; }.process-data-current dt { font-size: 11px; }.process-data-current dd { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 7px; margin: 0; }.process-data-current b { text-align: right; font: 10px/1.2 'Courier New', monospace; }.process-data-current meter { width: 100%; height: 16px; accent-color: #007c7d; }.last-sample-grid { display: grid; gap: 5px; }.last-sample-grid span { display: flex; justify-content: space-between; gap: 12px; border: 1px inset #eee; background: #eee; padding: 5px; font-size: 11px; }.last-sample-grid b { font-family: 'Courier New', monospace; }.sample-storage-note { margin: 8px 0; color: #454545; font-size: 10px; }.data-export-button { width: 100%; min-height: 32px; border: 2px outset #f5f5f5; background: #ddd; cursor: pointer; }.sample-table-wrap { max-height: 170px; overflow: auto; margin: 0 12px 12px; border: 1px solid #777; background: #eee; }.sample-table-wrap table { width: 100%; border-collapse: collapse; font-size: 10px; }.sample-table-wrap th, .sample-table-wrap td { border: 1px solid #aaa; padding: 5px 6px; text-align: right; white-space: nowrap; }.sample-table-wrap th:first-child, .sample-table-wrap td:first-child { text-align: center; }.sample-table-wrap thead { position: sticky; top: 0; background: #d3dddd; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 10px 0; border: 1px solid #777; border-bottom: 0; background: #fff; padding: 7px; font-size: 11px; font-weight: 700; }.trend-chart { display: block; width: calc(100% - 20px); height: auto; margin: 0 10px 10px; background: #fff; }
@keyframes bubble { from { transform: translateY(0) scale(.7); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-110px) scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bpt-bubbles i { animation: none; } }
@media (max-width: 900px) { .bpt-header { grid-template-columns: 240px 1fr 160px 170px; }.bpt-workspace { grid-template-columns: minmax(0, 1fr) 196px; } }
@media (max-width: 640px) { .portfolio-return { position: absolute; }.bpt-dialog { max-height: calc(100vh - 24px); overflow-y: auto; }.controller-grid, .model-grid, .model-equation, .model-switches, .process-data-grid { grid-template-columns: 1fr; }.environment-switch { padding-left: 12px; }.gas-grid { gap: 4px; padding: 7px; } }
@media (max-width: 1279px) {
  .bpt-stage { overflow-x: hidden; padding: 48px 12px 16px; }
  .bpt-window { margin: 0; zoom: calc((100vw - 24px) / 1240px); }
  .bpt-header { grid-template-columns: 1.1fr 1fr .5fr 170px; }
  .bpt-workspace { grid-template-columns: minmax(700px, 1fr) 196px; }
}

.bpt-time { padding: 7px 8px 5px; }
.bpt-time > div { margin-bottom: 4px; font-size: 11px; }
.bpt-time dd { padding: 3px 4px; }
.bpt-sidebar-group { gap: 4px; padding: 8px 9px; }
.bpt-sidebar-group > button { min-height: 27px; }
.bpt-sidebar-group fieldset { padding: 3px 4px 4px; }
.bpt-speed-buttons button { min-height: 22px; }
.bpt-sidebar-group.operations { gap: 2px; padding: 6px 9px; }
.bpt-sidebar-group.operations > button { min-height: 23px; }
.bpt-run { min-height: 32px; }
.bpt-exit { min-height: 34px; }

/* Portfolio-aligned studio finish */
:root {
  --bpt-ink: #061a33;
  --bpt-ink-2: #0b3260;
  --bpt-paper: #f4f4f1;
  --bpt-white: #fbfbf9;
  --bpt-blue: #2856f6;
  --bpt-blue-2: #5263ff;
  --bpt-signal: #ffd21c;
  --bpt-line: rgb(6 26 51 / 18%);
  --bpt-muted: #697481;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgb(40 86 246 / 22%), transparent 34%),
    linear-gradient(145deg, #061a33 0%, #0a2749 52%, #06162a 100%);
  color: var(--bpt-ink);
}

.portfolio-return {
  border-color: rgb(244 244 241 / 28%);
  border-radius: 999px;
  background: rgb(6 26 51 / 88%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
  font-weight: 700;
  letter-spacing: .09em;
}
.portfolio-return:hover,
.portfolio-return:focus-visible { background: var(--bpt-blue); }

.bpt-window {
  overflow: hidden;
  border: 1px solid rgb(244 244 241 / 20%);
  border-radius: 16px;
  background: #e9eef2;
  box-shadow: 0 30px 80px rgb(0 0 0 / 34%), 0 0 0 1px rgb(255 255 255 / 8%);
}
.bpt-titlebar {
  border-bottom-color: rgb(244 244 241 / 12%);
  background: linear-gradient(90deg, var(--bpt-ink), var(--bpt-ink-2));
  padding-left: 12px;
  color: rgb(244 244 241 / 72%);
  font: 9px/17px "Courier New", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bpt-header {
  border-bottom-color: var(--bpt-blue);
  background: linear-gradient(112deg, var(--bpt-white), #eef2f7 66%, #e1e8f0);
}
.bpt-brand { color: var(--bpt-muted); font-family: "Courier New", monospace; }
.bpt-brand strong { color: var(--bpt-blue); }
.bpt-header h1 { color: var(--bpt-ink); letter-spacing: -.035em; }
.bpt-header h1 small {
  border-color: var(--bpt-blue);
  border-radius: 999px;
  background: rgb(40 86 246 / 8%);
  color: var(--bpt-blue);
}
.bpt-organism {
  color: var(--bpt-ink-2);
  text-decoration-color: var(--bpt-signal);
}
.bpt-power { border-left-color: var(--bpt-line); }
.bpt-power span {
  border: 1px solid var(--bpt-ink);
  border-radius: 5px;
  background: linear-gradient(#d83e46 50%, #8c1c29 50%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 25%), 0 2px 6px rgb(6 26 51 / 18%);
}
.bpt-power span.on { background: linear-gradient(#8fe388 50%, #2ca45d 50%); }

.bpt-process {
  border-right-color: var(--bpt-blue);
  background: #e8edf1;
}
.bpt-process-note {
  border-bottom: 1px solid var(--bpt-line);
  background: rgb(251 251 249 / 78%);
}
.bpt-process-note > span:first-child { color: var(--bpt-blue); }
.bpt-process-note button {
  border-color: rgb(40 86 246 / 24%);
  border-radius: 999px;
  background: rgb(40 86 246 / 7%);
  color: var(--bpt-ink-2);
}
.bpt-process-note button:hover { background: var(--bpt-white); }
.bpt-diagram {
  background-color: #e7edf1;
  background-image:
    linear-gradient(rgb(6 26 51 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(6 26 51 / 3.5%) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bpt-vessel {
  border: 1px solid #66788a;
  border-radius: 9px 9px 19px 19px;
  background: linear-gradient(90deg, #7b8997 0%, #f7f9fb 18%, #d5dce4 48%, #fff 68%, #8b98a5 100%);
  box-shadow: inset 1px 0 rgb(255 255 255 / 78%), inset -2px 0 rgb(6 26 51 / 18%), 0 8px 16px rgb(6 26 51 / 16%);
}
.bpt-vessel .shine {
  right: 8px;
  width: 7px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 72%), transparent);
}
.bpt-vessel .liquid { border-color: rgb(6 26 51 / 54%); border-radius: 2px 2px 8px 8px; }
.liquid.brown { background: linear-gradient(90deg, #d4a800, var(--bpt-signal), #ffe883); }
.liquid.teal { background: linear-gradient(90deg, #173fca, var(--bpt-blue), #6f8cff); }
.liquid.purple { background: linear-gradient(90deg, #2f3ad1, var(--bpt-blue-2), #938cff); }
.liquid.blue { background: linear-gradient(90deg, #196aa8, #56aef8, #94d7ff); }
.liquid.red { background: linear-gradient(90deg, #0b2443, #173f6d, #315982); }
.bpt-valve {
  border-color: rgb(6 26 51 / 28%);
  border-radius: 6px;
  background: linear-gradient(#fff, #dfe6ed);
  color: var(--bpt-ink);
  box-shadow: 0 3px 8px rgb(6 26 51 / 12%);
}
.bpt-tank-button strong,
.bpt-tank-static strong,
.bpt-tank-button small,
.bpt-tank-static small,
.bpt-scale { font-family: "Courier New", monospace; }

.bpt-bottle {
  border-color: #657585;
  background: linear-gradient(90deg, #7d8996 0 12%, #f9fbfc 12% 68%, #9da9b6 68%);
  box-shadow: 0 7px 14px rgb(6 26 51 / 16%);
}
.bpt-bottle.ready { box-shadow: 0 0 0 2px var(--bpt-blue), 0 7px 14px rgb(6 26 51 / 16%); }
.bpt-motor {
  border-color: #68798a;
  background: radial-gradient(circle at 35% 28%, #fff, #dde4eb 58%, #8d9aa7);
  color: var(--bpt-ink);
  box-shadow: 0 6px 14px rgb(6 26 51 / 20%);
}
.bpt-motor.running { box-shadow: 0 0 0 3px rgb(40 86 246 / 28%), 0 6px 14px rgb(6 26 51 / 20%); }
.bpt-reactor {
  border-color: #7d8b99;
  background:
    linear-gradient(90deg, #7e8a96 0%, #eef2f6 12%, #fff 27%, #c7d0d9 49%, #f9fbfd 72%, #7c8996 100%);
  box-shadow:
    inset 5px 0 10px rgb(255 255 255 / 72%),
    inset -8px 0 14px rgb(6 26 51 / 18%),
    0 14px 22px rgb(6 26 51 / 24%);
}
.bpt-reactor-liquid {
  border-color: rgb(6 26 51 / 65%);
  border-radius: 2px 2px 12px 12px;
  background: linear-gradient(90deg, #e0b500, #fff1a6 45%, var(--bpt-signal));
}
.bpt-shaft { background: linear-gradient(90deg, #455667, #d5dce2, #455667); }
.bpt-impeller { border-radius: 999px; background: linear-gradient(#314356, #091f38); box-shadow: 0 2px 3px rgb(6 26 51 / 28%); }

.bpt-gas-station,
.bpt-thermal {
  border-color: var(--bpt-line);
  border-radius: 9px;
  background: rgb(251 251 249 / 94%);
  color: var(--bpt-ink);
  box-shadow: 0 10px 24px rgb(6 26 51 / 12%);
}
.bpt-gas-station:hover,
.bpt-gas-station:focus-visible { outline-color: var(--bpt-blue); }
.bpt-gas-station div::before { color: var(--bpt-blue); }
.bpt-thermal { color: var(--bpt-ink-2); }
.bpt-values output {
  border-color: rgb(6 26 51 / 22%);
  background: var(--bpt-white);
  box-shadow: 0 7px 16px rgb(6 26 51 / 12%);
}
.bpt-values output.set {
  border-color: rgb(255 210 28 / 72%);
  background: #fff9dc;
}
.bpt-values b { color: var(--bpt-ink); font-family: "Courier New", monospace; }
.bpt-product-vessel {
  border-color: #657585;
  background: linear-gradient(90deg, #788693, #f7f9fb 28%, #c3ccd5 58%, #fff 72%, #74818e);
  box-shadow: 0 9px 17px rgb(6 26 51 / 18%);
}
.bpt-product > span:last-child {
  border-color: var(--bpt-line);
  background: var(--bpt-white);
  box-shadow: 0 5px 12px rgb(6 26 51 / 10%);
}

.bpt-piping .pipe-feed { stroke: var(--bpt-blue); }
.bpt-piping .pipe-dose { stroke: var(--bpt-blue-2); }
.bpt-piping .pipe-gas,
.bpt-piping .pipe-sensor { stroke: #2b82e6; }
.bpt-piping .pipe-inoculum,
.bpt-piping .pipe-product { stroke: var(--bpt-ink-2); }
.bpt-piping .pipe-thermal { stroke: #66798c; }
.bpt-piping #arrow-feed path { fill: var(--bpt-blue); }
.bpt-piping #arrow-dose path { fill: var(--bpt-blue-2); }
.bpt-piping #arrow-gas path { fill: #2b82e6; }
.bpt-piping #arrow-product path { fill: var(--bpt-ink-2); }
.bpt-piping #arrow-thermal path { fill: #66798c; }

.bpt-model-readout {
  border-top-color: var(--bpt-blue);
  background: var(--bpt-ink);
  color: rgb(244 244 241 / 76%);
}
.bpt-model-readout span { border-right-color: rgb(244 244 241 / 14%); }
.bpt-model-readout b { color: #8fafff; }
.bpt-statusline {
  border-top-color: var(--bpt-line);
  background: var(--bpt-white);
}
.bpt-statusline > span { color: var(--bpt-blue); }
.bpt-alert {
  border-color: rgb(40 86 246 / 34%);
  border-radius: 999px;
  background: rgb(40 86 246 / 8%);
  color: var(--bpt-ink-2);
}

.bpt-bottom-nav {
  border-top-color: var(--bpt-blue);
  background: #e3e8ed;
}
.bpt-bottom-nav > div { border-right-color: var(--bpt-line); }
.bpt-bottom-nav button,
.medium-grid > button,
.data-export-button,
.environment-switch button,
.model-mode-switch button,
.gas-channel-modes button {
  border: 1px solid rgb(6 26 51 / 20%);
  border-radius: 6px;
  background: linear-gradient(#fff, #e1e7ec);
  box-shadow: 0 2px 5px rgb(6 26 51 / 8%);
}
.bpt-bottom-nav button:hover,
.medium-grid > button:hover,
.data-export-button:hover { border-color: var(--bpt-blue); background: #fff; }

.bpt-sidebar {
  background: linear-gradient(180deg, var(--bpt-ink-2), var(--bpt-ink));
  color: var(--bpt-paper);
}
.bpt-time,
.bpt-sidebar-group { border-bottom-color: rgb(82 99 255 / 72%); }
.bpt-time dd {
  border: 1px solid rgb(244 244 241 / 18%);
  border-radius: 5px;
  background: rgb(244 244 241 / 8%);
  color: var(--bpt-white);
  font-family: "Courier New", monospace;
}
.bpt-sidebar button,
.bpt-exit {
  border: 1px solid rgb(244 244 241 / 18%);
  border-radius: 6px;
  background: rgb(244 244 241 / 8%);
  color: var(--bpt-white);
  box-shadow: none;
}
.bpt-sidebar button:hover,
.bpt-exit:hover { border-color: rgb(244 244 241 / 44%); background: rgb(244 244 241 / 16%); }
.bpt-sidebar-group fieldset { border-color: rgb(244 244 241 / 24%); border-radius: 7px; }
.bpt-speed-buttons button.active,
.environment-switch button.active,
.model-mode-switch button.active,
.gas-channel-modes button.active {
  border-color: transparent;
  background: var(--bpt-blue);
  color: #fff;
}
.bpt-sidebar .bpt-run {
  border-color: var(--bpt-signal);
  background: var(--bpt-signal);
  color: var(--bpt-ink);
  font-weight: 800;
}
.bpt-exit { color: rgb(244 244 241 / 78%); }

.bpt-dialog {
  border: 1px solid rgb(6 26 51 / 26%);
  border-radius: 12px;
  background: var(--bpt-paper);
  color: var(--bpt-ink);
  box-shadow: 0 26px 70px rgb(6 26 51 / 38%);
}
.bpt-dialog::backdrop { background: rgb(6 26 51 / 38%); backdrop-filter: blur(5px); }
.bpt-dialog h2 {
  border-bottom-color: var(--bpt-line);
  background: linear-gradient(90deg, var(--bpt-white), #e7ecf2);
  color: var(--bpt-ink);
}
.bpt-dialog > form > p { border-bottom-color: var(--bpt-blue); }
.dialog-close {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bpt-ink);
}
.dialog-close:hover { background: rgb(40 86 246 / 10%); }
.controller-grid fieldset,
.model-grid fieldset,
.process-data-grid section,
.gas-grid label {
  border-color: var(--bpt-line);
  border-radius: 8px;
  background: #e5eaf0;
}
.controller-grid legend,
.model-grid legend,
.process-data-grid h3 { color: var(--bpt-blue); }
.medium-grid input,
.controller-grid input,
.model-grid input {
  border: 1px solid rgb(6 26 51 / 20%);
  border-radius: 5px;
  background: var(--bpt-white);
  color: var(--bpt-ink);
}
.medium-grid input:focus,
.controller-grid input:focus,
.model-grid input:focus { outline: 2px solid rgb(40 86 246 / 32%); border-color: var(--bpt-blue); }
.model-equation { border-top-color: var(--bpt-blue); background: #e4eaf2; color: var(--bpt-ink-2); }
.trend-chart,
.trend-legend,
.sample-table-wrap { border-color: var(--bpt-line); background: var(--bpt-white); }
.software-copyright { color: rgb(244 244 241 / 54%); }

@media (max-width: 1279px) {
  .bpt-stage { overflow-x: hidden; padding: 48px 12px 16px; }
  .bpt-window { margin: 0; zoom: calc((100vw - 24px) / 1240px); }
  .bpt-header { grid-template-columns: 1.1fr 1fr .5fr 170px; }
  .bpt-workspace { grid-template-columns: minmax(700px, 1fr) 196px; }
}
