:root{--ink:#233239;--muted:#87908d;--orange:#e87934;--paper:#f3f0e8;--paper2:#ebe8e0;--panel:#fbf9f3;--line:#e2dfd7;--dark:#23333c;--jade:#448d83;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;font-family:var(--sans);color:var(--ink)}body{background:var(--paper);font-size:13px;-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e87934;outline-offset:2px}.app-shell{height:100dvh;min-height:650px;display:flex;flex-direction:column;overflow:hidden;max-width:2200px;margin:auto}
.topbar{height:76px;flex-shrink:0;background:var(--panel);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px}.brand{display:flex;align-items:center;gap:13px;min-width:265px}.brandmark{width:40px;height:40px;border-radius:12px;background:var(--dark);position:relative;display:grid;place-items:center;box-shadow:0 5px 12px #1b26261a}.brandmark span{font-family:Georgia,serif;color:#fff;font-size:32px;font-weight:bold;line-height:1;transform:translateY(-4px)}.brandmark i{width:7px;height:7px;position:absolute;background:var(--orange);border-radius:50%;right:5px;top:7px}.brandtext{display:flex;flex-direction:column;gap:3px}.brandtext strong{font-size:17px;letter-spacing:.095em;font-weight:840}.brandtext strong span{color:var(--orange);font-weight:680}.brandtext small{color:#9a9f9d;letter-spacing:.18em;font-size:8px;font-weight:760}.top-center{color:#8a9392;letter-spacing:.15em;font-size:9px;font-weight:740;display:flex;align-items:center;gap:10px;white-space:nowrap}.capsule-dot{width:7px;height:7px;border:2px solid #e97832;border-radius:50%}.top-divider{height:12px;border-left:1px solid #d9d7d0;margin:0 9px}.build{color:#b8b9b5}.top-actions{display:flex;align-items:center;gap:17px}.simulation-state{font-size:10px;letter-spacing:.13em;font-weight:800;color:#428b70;display:flex;align-items:center;gap:8px;white-space:nowrap}.simulation-state span,.live-indicator{display:inline-block;width:7px;height:7px;background:#6cb58e;border-radius:50%;box-shadow:0 0 0 3px #78b39725}.simulation-state.paused{color:#a78b55}.simulation-state.paused span{background:#c6a158}.icon-button{width:35px;height:35px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--dark);font-size:22px;line-height:1}
.workspace{flex:1;display:flex;min-height:0}.sidebar{flex-shrink:0;background:var(--panel);display:flex;flex-direction:column;min-height:0}.control-sidebar{width:292px;border-right:1px solid var(--line)}.data-sidebar{width:296px;border-left:1px solid var(--line)}.sidebar-header{padding:26px 25px 21px;border-bottom:1px solid var(--line);flex-shrink:0}.eyebrow,.section-number{font-size:9px;font-weight:840;letter-spacing:.16em;color:var(--orange)}.sidebar-header h2{margin:9px 0 5px;font-weight:820;font-size:24px;letter-spacing:-.065em}.orange-dot{color:var(--orange)}.sidebar-header p{font-size:11px;color:#89938f;line-height:1.65;margin:0}.sidebar-body{padding:22px 24px 36px;overflow:auto;scrollbar-color:#ddd7cd transparent;scrollbar-width:thin}.section-number{color:var(--orange);margin-bottom:16px}.section-number span{color:#6b7777;margin-left:12px}.section-gap{margin-top:29px}.select-wrap{position:relative}.select-wrap:after{content:'⌄';pointer-events:none;position:absolute;right:13px;top:7px;font-size:21px;color:#657472}.select-wrap select{appearance:none;width:100%;height:41px;padding:0 12px;background:white;border:1px solid #dcded9;border-radius:6px;color:var(--ink);font-size:11px;font-weight:750;box-shadow:0 3px 6px #0a1a0808}.field-notation{display:flex;align-items:center;gap:3px;justify-content:space-between;margin-top:10px;color:#8d9995;font-size:10px}.field-notation span:first-child{max-width:170px}.tag{padding:4px 6px;border-radius:4px;background:#e3f0e9;color:#609a7d;font-size:8px;letter-spacing:.06em;font-weight:800}.control-row{display:flex;justify-content:space-between;align-items:center;margin:14px 0 8px;font-size:11px;color:#5e6d6e}.control-row label{font-weight:640}.control-row label em{color:#abb1ad;font-style:normal;margin-left:4px}.control-row output{font-size:11px;color:#283b42;font-weight:800;font-variant-numeric:tabular-nums}input[type=range]{display:block;width:100%;height:4px;margin:0 0 17px;accent-color:var(--orange);appearance:none;background:linear-gradient(90deg,#e47f3c,#e8c4a1);border-radius:99px;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;background:#fcfbf6;border:3px solid var(--orange);border-radius:50%;box-shadow:0 1px 3px #0002}input[type=range]::-moz-range-thumb{width:9px;height:9px;background:white;border:3px solid var(--orange);border-radius:50%}.palette-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.palette-button{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e2e3dc;border-radius:5px;background:white;padding:9px 1px;color:#75807d;font-weight:720;font-size:10px}.palette-button.active{border-color:#e77e3d;background:#fff6ef;color:#bc6530}.swatch{width:10px;height:10px;border-radius:50%}.swatch.ember{background:linear-gradient(125deg,#222e37,#f3a846)}.swatch.marine{background:linear-gradient(125deg,#184035,#c3f7b8)}.swatch.spectrum{background:linear-gradient(125deg,#283b8c,#ed617b)}.switch-row{display:flex;align-items:center;justify-content:space-between;margin:19px 0 0;font-size:11px;color:#617071;font-weight:680;cursor:pointer}.switch-row input{position:absolute;opacity:0}.switch-track{width:34px;height:19px;border-radius:25px;background:#d5d9d4;position:relative;transition:background .15s}.switch-track:before{content:'';position:absolute;width:13px;height:13px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.switch-row input:checked+.switch-track{background:#e87934}.switch-row input:checked+.switch-track:before{transform:translateX(15px)}.file-actions{display:flex;flex-wrap:wrap;gap:8px}.subtle-button{flex:1;border:1px solid var(--line);border-radius:5px;background:#fff;color:#6b7371;padding:10px 2px;font-size:10px;font-weight:700;white-space:nowrap}.subtle-button:hover{background:#f6ece5}.physical-note{margin-top:25px;padding:13px 14px;background:#f1ede5;border-left:2px solid #d59a73;font-size:10px;line-height:1.65;color:#8a918c}
.view-panel{flex:1;min-width:0;display:flex;flex-direction:column;background:#eae6dc}.viewer-topline{height:87px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #d9d6cf;background:#f4f1e8}.view-location{font-size:11px;font-weight:850;letter-spacing:.1em;color:#33444a}.live-indicator{margin-right:8px}.view-subline{font-size:11px;color:#89928f;font-weight:440;letter-spacing:0;margin:7px 0 0 16px}.viewer-tools{display:flex;align-items:center;gap:8px}.viewtool{border:1px solid #d9ddd5;background:#fbfaf4;border-radius:6px;height:33px;min-width:80px;padding:0 10px;color:#667475;font-size:16px;font-weight:600}.viewtool span{font-size:9px;letter-spacing:.06em;font-weight:820;margin-left:4px}.viewtool.active{color:#c56a31;background:#fff8f1;border-color:#e69c6a}.canvas-wrap{position:relative;flex:1;min-height:300px;overflow:hidden;background:#e4dfd4}.canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:cell}.canvas-upper{position:absolute;left:27px;top:24px;right:26px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.viewfinder,.axis-badge{font-size:9px;letter-spacing:.12em;font-weight:790;color:#68747a;background:#fbfaf2c9;border:1px solid #ebe7df;border-radius:5px;padding:10px 12px;backdrop-filter:blur(7px)}.viewfinder b{font-weight:800;color:var(--orange)}.viewfinder span{display:inline-block;width:8px;height:8px;background:#6a9b92;border-radius:50%;margin:0 5px}.axis-badge strong{color:#e27634;font-size:13px;margin-left:4px}.field-legend{position:absolute;bottom:65px;left:26px;width:174px;padding:14px 13px;background:#fcfbf4ec;border:1px solid #eee8de;border-radius:8px;backdrop-filter:blur(9px);box-shadow:0 12px 26px #202f2715;pointer-events:none}.legend-heading{font-size:9px;color:#4b585a;font-weight:800;letter-spacing:.06em;display:flex;justify-content:space-between}.legend-heading span{color:#9b9b93}.gradient{margin:12px 0 5px;height:7px;border-radius:8px;background:linear-gradient(90deg,#22343b,#b9562d,#eb8736,#f9d17b)}.legend-values{display:flex;justify-content:space-between;font-size:9px;color:#88928b;font-weight:660}.canvas-hint{position:absolute;bottom:22px;left:27px;right:20px;color:#58696d;font-size:9px;letter-spacing:.05em;font-weight:770;pointer-events:none;white-space:nowrap;text-shadow:0 1px #ffffffc0}.canvas-hint b{font-size:8px;color:#b2aba1;margin:0 3px}.mouse-icon{font-size:20px;color:#e77e39;vertical-align:middle;margin-right:8px}.sep{color:#b8b9b0;margin:0 10px}.webgl-error{margin:120px auto;text-align:center;max-width:450px;color:#ac4837;font-size:17px;line-height:1.6;padding:30px}
.playback-bar{height:83px;display:flex;flex-shrink:0;align-items:center;gap:24px;padding:0 27px;border-top:1px solid #dcdad2;background:#f9f7f0}.transport{display:flex;align-items:center;gap:9px}.primary-action{display:flex;align-items:center;justify-content:center;gap:11px;min-width:111px;height:39px;border:none;border-radius:6px;background:#263943;color:white;box-shadow:0 3px 8px #1a272a25;font-weight:790;letter-spacing:.12em;font-size:10px}.primary-action span:first-child{font-size:18px;line-height:1;color:#ec944a}.reset-button{height:39px;padding:0 13px;border:1px solid #dce0d9;border-radius:6px;background:#fff;font-size:16px;color:#667371}.reset-button span{font-size:9px;font-weight:780;letter-spacing:.1em;margin-left:5px}.experiment-progress{border-left:1px solid var(--line);padding-left:18px;display:flex;flex-direction:column;gap:6px;min-width:90px}.small-label{font-size:8px;white-space:nowrap;letter-spacing:.1em;font-weight:820;color:#a2a49d}.experiment-progress strong{font-size:18px;letter-spacing:.03em;font-variant-numeric:tabular-nums}.engine-status{margin-left:auto;white-space:nowrap;font-size:9px;font-weight:850;letter-spacing:.08em;color:#769388}.orange-led{display:inline-block;width:6px;height:6px;background:#f2a058;box-shadow:0 0 0 3px #efa86e23;border-radius:50%;margin-right:6px}
.data-head{padding-bottom:22px}.readout-body{padding-top:23px}.primary-metric{display:flex;align-items:center;gap:15px;margin-bottom:18px}.metric-icon{width:45px;height:45px;display:grid;place-items:center;font-size:24px;background:#f7e9dd;color:#d58145;border-radius:9px}.primary-metric small,.metric-small small{display:block;font-size:9px;letter-spacing:.07em;color:#86908b;font-weight:790;margin-bottom:7px}.primary-metric strong{font-size:27px;font-weight:830;font-variant-numeric:tabular-nums;letter-spacing:-.065em}.metric-grid{display:flex;gap:8px}.metric-small{flex:1;background:#f2f0ea;border-radius:7px;padding:13px 12px}.metric-small small{font-size:8px;line-height:1.4;min-height:23px}.metric-small strong{font-size:21px;letter-spacing:-.06em}.metric-small em{font-size:11px;font-style:normal;color:#7f8f88;margin-left:2px}.chart-module{border:1px solid #e4e2d9;background:#fffefa;border-radius:7px;padding:12px 12px 9px}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:5px}.chart-head strong{font-size:11px;color:#4e5859}.chart-head span{font-size:8px;color:#a9b2ad;font-weight:730;white-space:nowrap}#history-chart{width:100%;height:126px;display:block}.chart-legend{display:flex;justify-content:space-between;font-size:9px;color:#8a948f;font-weight:710;padding:5px 3px}.chart-legend i{display:inline-block;width:9px;height:9px;background:#e47b38;border-radius:50%;margin-right:5px}.chart-legend span:last-child i{background:#528279}.probe-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.probe-target{font-size:23px;color:#e47b38}.probe-title span:nth-child(2){font-size:10px;font-weight:830;line-height:1.5}.probe-title small{display:block;color:#89918e;font-size:9px;font-weight:530}.probe-title>strong{margin-left:auto;color:#6a9e82;background:#e8f2e7;font-size:8px;padding:4px 5px;border-radius:4px}.probe-values{border:1px solid var(--line);border-radius:7px;overflow:hidden}.probe-values>div{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid var(--line)}.probe-values>div:last-child{border:none}.probe-values span{font-size:9px;letter-spacing:.05em;font-weight:750;color:#8b9390}.probe-values b{font-size:13px;font-variant-numeric:tabular-nums}.probe-hint{font-size:10px;color:#9caaa4;line-height:1.6;margin:12px 0}.probe-hint strong{color:#e27732}.concept-card{margin-top:25px;border-radius:8px;padding:16px;background:#edf1e9;color:#65766d}.concept-card div{font-size:10px;letter-spacing:.1em;color:#538c76;font-weight:830;display:flex;justify-content:space-between}.concept-card p{font-size:11px;line-height:1.65;margin:10px 0 0}.concept-card b{color:#374a43}.footer{height:31px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;background:#28363d;color:#a3adae;flex-shrink:0;font-size:8px;font-weight:760;letter-spacing:.16em}.footer b{color:#e19a63;font-weight:800}.toast{position:fixed;right:24px;bottom:45px;padding:14px 18px;border-radius:7px;background:#243a40;color:white;box-shadow:0 8px 28px #1820203b;z-index:200;transform:translateY(15px);opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;font-weight:700;font-size:12px}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#9a4b34}
@media(max-width:1380px){.control-sidebar{width:265px}.data-sidebar{width:264px}.sidebar-header{padding-left:18px;padding-right:18px}.sidebar-body{padding-left:18px;padding-right:18px}.playback-bar{gap:12px;padding:0 15px}.engine-status{display:none}.viewer-topline{padding:0 17px}.top-center{display:none}}
@media(max-width:1060px){.data-sidebar{display:none}.control-sidebar{width:263px}.app-shell{min-height:620px}.canvas-hint{font-size:8px}.topbar{height:64px}}
@media(max-width:680px){.app-shell{height:auto;min-height:100vh;overflow:visible}.topbar{padding:0 14px}.brand{min-width:0}.brandtext strong{font-size:14px}.brandtext small{font-size:7px}.simulation-state{display:none}.workspace{flex-direction:column}.control-sidebar{width:100%;order:2;border-right:0;border-top:1px solid var(--line)}.data-sidebar{display:flex;width:100%;order:3;border-left:0;border-top:1px solid var(--line)}.sidebar-header{padding:18px}.sidebar-body{overflow:visible;padding:18px}.view-panel{order:1;height:auto}.viewer-topline{height:auto;min-height:75px;padding:12px;gap:8px;flex-wrap:wrap}.viewer-tools{gap:4px}.viewtool{min-width:70px}.canvas-wrap{height:430px;flex:initial}.playback-bar{height:74px;padding:10px;gap:9px}.experiment-progress{padding-left:9px;min-width:0}.experiment-progress strong{font-size:13px}.small-label{font-size:7px}.reset-button span{display:none}.footer{height:44px;gap:7px;flex-wrap:wrap;justify-content:center;font-size:7px}.field-legend{bottom:56px;left:10px}.canvas-upper{top:10px;left:10px;right:10px}.canvas-hint{font-size:8px;left:10px;bottom:10px;white-space:normal}.sep{margin:0 3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.001ms!important}}
