:root{--font:"Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;--bg:#eef2f7;--surface:#fff;--surface-2:#f6f8fb;--line:#e2e8f0;--line-strong:#cbd5e1;--text:#0f172a;--muted:#5b6b82;--faint:#94a3b8;--primary:#1f4ea3;--primary-hover:#183f87;--primary-soft:#e8eefa;--danger:#c0392b;--danger-soft:#fdeceb;--radius:12px;--shadow:0 1px 2px #0f172a0a, 0 4px 16px #0f172a0f;font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}h1,h2,h3{margin:0;font-weight:600}button{font:inherit;cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);height:38px;color:var(--text);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:0 16px;transition:background .15s,border-color .15s,color .15s;display:inline-flex}button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,[role=separator]:focus-visible{outline:2px solid var(--primary);outline-offset:2px}button.primary{background:var(--primary);border-color:var(--primary);color:#fff}button.primary:hover:not(:disabled){background:var(--primary-hover);color:#fff}button.big{height:46px;font-size:16px;font-weight:600}button.small{height:30px;padding:0 12px;font-size:14px}button.link{height:auto;color:var(--primary);background:0 0;border:none;padding:0;font-size:14px}button.ghost{color:var(--muted);background:0 0;border-color:#0000;font-size:15px}button.ghost:hover:not(:disabled){background:var(--surface-2);border-color:var(--line)}button.icon{width:32px;height:32px;color:var(--muted);background:0 0;border-color:#0000;padding:0}button.icon:hover:not(:disabled){background:var(--primary-soft);border-color:#0000}button.icon.danger:hover:not(:disabled){background:var(--danger-soft);color:var(--danger)}input,select{font:inherit;font-variant-numeric:tabular-nums;border:1px solid var(--line-strong);background:var(--surface);width:100%;min-width:0;height:40px;color:var(--text);border-radius:8px;padding:0 12px;font-size:16.5px;transition:border-color .15s,box-shadow .15s}input:hover,select:hover{border-color:var(--faint)}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:none}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[aria-invalid=true]{border-color:var(--danger);background:var(--danger-soft)}input[type=range]{accent-color:var(--primary);height:auto;box-shadow:none;background:0 0;border:none;padding:0}.input-wrap{min-width:0;display:block;position:relative}.input-wrap.with-unit input{padding-right:48px}.input-wrap.with-steppers input{padding-right:32px}.input-wrap.with-unit.with-steppers input{padding-right:62px}.input-wrap .unit{color:var(--faint);pointer-events:none;font-size:14.5px;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.input-wrap.with-steppers .unit{right:34px}.steppers{border-left:1px solid var(--line);flex-direction:column;width:24px;display:flex;position:absolute;top:1px;bottom:1px;right:1px}.steppers button{height:auto;min-height:0;color:var(--muted);background:0 0;border:none;border-radius:0;flex:1;padding:0}.steppers button:first-child{border-bottom:1px solid var(--line);border-top-right-radius:7px}.steppers button:last-child{border-bottom-right-radius:7px}.steppers button:hover:not(:disabled){background:var(--primary-soft);color:var(--primary)}.steppers button:disabled{opacity:.35}.steppers svg{width:13px;height:13px}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field-label{color:var(--muted);align-items:center;gap:4px;font-size:15px;display:flex}.field-error{color:var(--danger);font-size:13px}.fields-2{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px 10px;display:grid}.group-body>*+*{margin-top:14px}.hint{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:14.5px;display:flex}.error{color:var(--danger)}.stack{color:var(--muted);flex-direction:column;gap:6px;font-size:14px;display:flex}button.infotip{width:20px;height:20px;color:var(--faint);background:0 0;border:none;border-radius:50%;padding:0}button.infotip:hover:not(:disabled){color:var(--primary)}.tooltip{z-index:100;white-space:normal;text-align:left;color:#f1f5f9;pointer-events:none;background:#1e293b;border-radius:8px;width:max-content;max-width:300px;padding:8px 12px;font-size:14.5px;line-height:1.55;position:fixed;transform:translate(-50%,-100%);box-shadow:0 6px 20px #0f172a40}.tooltip.below{transform:translate(-50%)}.segmented{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;gap:3px;padding:3px;display:flex}.segmented button{height:36px;color:var(--muted);background:0 0;border:none;border-radius:8px;flex:1;padding:0 12px}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--primary);font-weight:600;box-shadow:0 1px 3px #0f172a24}.switch{background:var(--line-strong);border:none;border-radius:999px;justify-content:flex-start;width:44px;height:26px;padding:2px}.switch:hover:not(:disabled){background:var(--faint)}.switch .knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .15s;box-shadow:0 1px 3px #00000040}.switch[aria-checked=true],.switch[aria-checked=true]:hover:not(:disabled){background:var(--primary)}.switch[aria-checked=true] .knob{transform:translate(18px)}.switch-row{flex-direction:row;justify-content:space-between;align-items:center}.stepper{grid-template-columns:28px minmax(0,1fr) 28px;gap:2px;display:grid}.stepper button{padding:0}.stepper input{text-align:center;padding:0 4px}.app{grid-template-rows:52px minmax(0,1fr);height:100vh;display:grid}.topbar{background:var(--surface);border-bottom:1px solid var(--line);z-index:5;justify-content:space-between;align-items:center;gap:20px;padding:0 14px 0 18px;display:flex;position:relative}.brand{flex:none;align-items:center;gap:10px;display:flex}.brand h1{letter-spacing:.5px;font-size:18px}.logo{background:radial-gradient(circle at 30% 70%,#ffffffe6 0 2px,#0000 3px),repeating-radial-gradient(circle at 30% 70%,#0000 0 4px,#ffffff8c 5px 6px),linear-gradient(135deg,#1f4ea3,#2f8fd8);border-radius:9px;width:30px;height:30px}.topbar-actions{flex:none;align-items:center;gap:2px;display:flex}.credit{color:var(--faint);white-space:nowrap;margin-right:10px;font-size:13px}button.icon-only{width:38px;height:38px;padding:0}button.icon-only svg{width:20px;height:20px}.popover-anchor{position:relative}.popover{border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);width:280px;box-shadow:var(--shadow);z-index:20;flex-direction:column;gap:10px;padding:16px;display:flex;position:absolute;top:calc(100% + 8px);right:0}.popover label{color:var(--muted);flex-direction:column;gap:6px;font-size:14px;display:flex}.workspace{min-height:0;display:grid}.sidebar{background:var(--bg);flex-direction:column;min-width:0;min-height:0;display:flex}.sidebar-scroll{flex:1;padding:16px 16px 24px;overflow-y:auto}.run-actions{background:var(--surface);border-top:1px solid var(--line);gap:10px;padding:14px 16px;display:grid;box-shadow:0 -4px 12px #0f172a0a}.splitter{cursor:col-resize;background:var(--bg);touch-action:none;position:relative}.splitter:after{content:"";background:var(--line);width:2px;transition:background .15s;position:absolute;top:0;bottom:0;left:2px}.splitter:hover:after,.splitter.dragging:after{background:var(--primary)}.results{background:var(--bg);flex-direction:column;gap:12px;min-width:0;min-height:0;padding:12px 14px 12px 10px;display:flex;overflow:hidden}.panes{flex:1;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;min-height:0;display:grid}.panes .card{padding:12px 14px}.viewer{flex-direction:column;min-width:0;min-height:0;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px}.results h2{font-size:17px}.panel-tools{align-items:center;gap:12px;margin:0 2px 12px;display:flex}.panel-title{white-space:nowrap;flex:1;font-size:18px;font-weight:600}.group{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:12px;overflow:hidden}.group-head{text-align:left;width:100%;height:54px;color:var(--text);background:0 0;border:none;border-radius:0;grid-template-columns:22px minmax(0,1fr) 18px;gap:12px;padding:0 16px;font-size:17px;display:grid}.group-head:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.group-icon{color:var(--primary);display:flex}.group-title{font-weight:600}.chevron{color:var(--faint);transition:transform .2s;display:flex}.group.open .chevron{transform:rotate(180deg)}.group-body{border-top:1px solid var(--line);padding:4px 16px 18px}.group-note{color:var(--muted);text-wrap:pretty;margin:12px 0 0;font-size:14.5px;line-height:1.55}.material-table{flex-direction:column;gap:8px;display:flex}.material-row{grid-template-columns:minmax(86px,1fr) repeat(3,minmax(0,1.15fr));align-items:center;gap:6px;display:grid}.material-row input{text-align:center;padding:0 3px;font-size:14.5px}.material-row.head span{color:var(--muted);white-space:nowrap;align-items:center;gap:2px;font-size:15px;display:flex}.material-name{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:8px;font-size:16px;display:flex;overflow:hidden}.dot{border-radius:50%;flex:none;width:11px;height:11px;box-shadow:0 0 0 1px #00000014}.badge{background:var(--surface-2);border:1px dashed var(--line-strong);color:var(--muted);border-radius:999px;grid-column:span 3;justify-self:start;padding:3px 12px;font-size:13.5px}.region{border:1px solid var(--line);border-left:5px solid var(--line-strong);background:var(--surface-2);border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex}.region-head{align-items:center;gap:6px;min-height:28px;display:flex}.region-title{color:var(--muted);white-space:nowrap;font-size:14.5px}.region-head .icon-buttons{margin-left:auto}.region-head button.icon{width:28px;height:28px}.region-tag{background:var(--primary-soft);color:var(--primary);white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:14.5px}.icon-buttons{display:flex}.range-row{grid-template-columns:12px minmax(0,1fr) 10px minmax(0,1fr);align-items:center;gap:5px;display:grid}.range-row input{padding-left:8px}.range-label{color:var(--muted);font-size:15px}.range-dash{text-align:center;color:var(--faint)}button.add{width:100%;color:var(--primary);background:0 0;border-style:dashed}label.file{border:1px dashed var(--line-strong);height:38px;color:var(--primary);cursor:pointer;border-radius:8px;align-items:center;padding:0 12px;font-size:14px;display:flex}label.file input{display:none}.waveform-preview{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:8px 8px 6px}.waveform-preview .fmax{white-space:nowrap;align-items:center;gap:4px;padding:0 4px;display:flex}.run-status{flex:1;align-items:center;gap:10px;min-width:0;display:flex;overflow:hidden}.status-hint{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:14.5px;overflow:hidden}.chips{flex-wrap:nowrap;gap:6px;min-width:0;display:flex}.chip{background:var(--surface-2);border:1px solid var(--line);white-space:nowrap;font-variant-numeric:tabular-nums;border-radius:999px;flex:none;align-items:center;gap:2px;height:28px;padding:0 4px 0 11px;font-size:13.5px;display:inline-flex}.chip.ok{color:#047857;background:#ecfdf5;border-color:#a7f3d0;padding-right:11px;animation:1.6s ease-out flash}@keyframes flash{0%{background:#a7f3d0}}.note{border-radius:10px;align-items:flex-start;gap:8px;margin:0;padding:10px 14px;font-size:14.5px;line-height:1.55;display:flex}.note svg{flex:none;margin-top:3px}.note.warn{color:#8a5300;background:#fff8eb;border:1px solid #f6d58e}.note.error{background:var(--danger-soft);color:#a12a1f;border:1px solid #f5b5ae}.note.stale{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;justify-content:space-between;align-items:center}.progress-row{flex:1;align-items:center;gap:12px;max-width:560px;display:flex}.run-notes{flex-direction:column;gap:6px;display:flex}.run-notes .note{padding:6px 12px;font-size:14px}.progressbar{background:var(--line);border-radius:999px;flex:1;height:10px;overflow:hidden}.progressbar span{background:linear-gradient(90deg, #2f8fd8, var(--primary));border-radius:999px;height:100%;transition:width .3s;display:block}.progress-text{font-variant-numeric:tabular-nums;color:var(--muted);min-width:180px;font-size:14.5px}.card-head{flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:8px;display:flex}.colorbar{color:var(--muted);align-items:center;gap:6px;font-size:14.5px;display:inline-flex}.colorbar.in-plot{border:1px solid var(--line);pointer-events:none;background:#ffffffd9;border-radius:8px;justify-content:center;width:180px;height:30px;padding:0 10px;position:absolute;bottom:8px;right:8px}.colorbar.in-plot i{width:110px}.colorbar em{font-style:normal}.colorbar i{border:1px solid var(--line-strong);background:linear-gradient(90deg,#1c4dc7,#fff 50%,#cc2121);border-radius:999px;width:130px;height:10px}.toggle{color:var(--muted);align-items:center;gap:8px;margin-left:auto;font-size:14.5px;display:inline-flex}.stage{flex-direction:column;flex:1;justify-content:flex-start;min-height:0;display:flex;container-type:size}.plot{justify-content:center;padding:8px 24px 58px 80px;display:flex}.field-box{outline:1px solid var(--line-strong);background:#fff;border-radius:2px;flex:none;position:relative}.field-box canvas,.field-box .scene,.field-box .placeholder{width:100%;height:100%;position:absolute;inset:0}.field-box .placeholder{color:var(--muted);pointer-events:none;justify-content:center;align-items:flex-start;padding-top:10px;font-size:14px;display:flex}.scene .media.faint{opacity:.2}.scene rect.outline{stroke:#0f172a8c;stroke-width:1px;stroke-dasharray:6 4}.scene rect.cavity{stroke:#0f172abf;stroke-width:1.5px;stroke-dasharray:none}.hatch-bg{fill:#cbd5e173}.hatch-line{stroke:#64748b8c}.scene .receiver{fill:#0f172a;stroke:#fff;stroke-width:1.2px;vector-effect:non-scaling-stroke}.scene .receiver-no{fill:#0f172a;text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:3px;vector-effect:non-scaling-stroke;font-weight:700}.scene .source{fill:#f59e0b;stroke:#92400e;stroke-width:1.2px;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #0f172a59)}.scene .arrow{stroke:#0f172ab3;stroke-width:1.4px}.scene .arrow-head{fill:#0f172acc}.annot{border:1px solid var(--line-strong);color:var(--text);white-space:nowrap;pointer-events:none;background:#fffffff5;border-radius:7px;padding:3px 11px;font-size:15px;line-height:22px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 2px 6px #0f172a1f}.plot-hint{border:1px solid var(--line);pointer-events:none;white-space:nowrap;color:var(--muted);background:#fffffff2;border-radius:999px;padding:3px 12px;font-size:14.5px;position:absolute;bottom:10px;left:50%;transform:translate(-50%);box-shadow:0 1px 4px #0f172a1a}.axis-x{height:58px;position:absolute;top:100%;left:0;right:0}.axis-x span,.axis-y span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:15px;position:absolute}.axis-x span{top:12px;transform:translate(-50%)}.axis-x span:before{content:"";background:var(--faint);width:1px;height:6px;position:absolute;top:-12px;left:50%}.axis-y{width:84px;position:absolute;top:0;bottom:0;right:100%}.axis-y span{right:14px;transform:translateY(-50%)}.axis-y span:after{content:"";background:var(--faint);width:6px;height:1px;position:absolute;top:50%;right:-14px}.axis-x em,.axis-y em{color:var(--text);white-space:nowrap;font-size:15px;font-style:normal;position:absolute}.axis-x em{top:36px;left:50%;transform:translate(-50%)}.axis-y em{top:50%;left:24px;transform:translate(-50%,-50%)rotate(-90deg)}.viewer-controls{border-top:1px solid var(--line);flex-direction:column;gap:8px;padding-top:10px;display:flex}.controls-row{align-items:center;gap:16px;display:flex}.viewer-controls button.play{background:var(--primary);border-color:var(--primary);color:#fff;border-radius:50%;width:42px;height:42px;padding:0}.viewer-controls button.play:hover:not(:disabled){background:var(--primary-hover);color:#fff}.viewer-controls .time{font-variant-numeric:tabular-nums;font-size:15.5px;font-weight:600}.viewer-controls .time.total{color:var(--muted);margin-left:-10px;font-weight:400}.head-tools{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;display:flex}.head-tools .control,.head-tools .toggle{gap:6px}.head-tools .toggle{margin-left:0}.viewer .control{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;font-size:14.5px;display:inline-flex}.viewer .control b{color:var(--text);font-variant-numeric:tabular-nums;min-width:38px;font-weight:600}.viewer-controls input[aria-label=播放进度]{flex:1;min-width:160px}.viewer input[aria-label=增益]{width:70px}.stage-notes{border-top:1px solid var(--line);flex:1;min-height:0;margin-top:12px;padding-top:10px;overflow-y:auto}.model-notes h3{color:var(--text);margin:0 0 4px;font-size:14.5px;font-weight:600}.model-notes h3:not(:first-child){margin-top:12px}.model-notes p{color:var(--muted);margin:0 0 4px;font-size:14px;line-height:1.6}.model-notes .formula{color:var(--text);font-family:"Cambria Math", "Times New Roman", var(--font);font-size:15.5px}.modal.floating{z-index:40;border:1px solid var(--line-strong);background:var(--surface);resize:both;border-radius:16px;flex-direction:column;min-width:480px;min-height:320px;display:flex;position:fixed;overflow:hidden;box-shadow:0 24px 60px #0f172a4d}.modal-head{cursor:move;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 18px 8px;display:flex}.modal-head h2{font-size:18px}.modal-head .hint{margin-top:2px}.modal-head button.close{font-size:24px;line-height:1}.modal-tools{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:10px 14px;padding:0 18px 10px;display:flex}.modal-tools .spacer{flex:1}.modal-tools .legends{width:auto}.modal-body{flex-direction:column;flex:1;min-height:0;padding:8px 18px 14px;display:flex}.save-menu{position:relative}.save-menu .menu{z-index:30;border:1px solid var(--line);background:var(--surface);border-radius:10px;flex-direction:column;min-width:160px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 30px #0f172a29}.save-menu .menu button{background:0 0;border:none;justify-content:flex-start;height:34px;font-size:14.5px}.save-menu .menu button:hover:not(:disabled){background:var(--primary-soft)}.waves{flex-direction:column;min-width:0;min-height:0;display:flex;container:waves/inline-size}@container waves (width<=480px){.btn-text{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.waves .card-head{gap:8px 14px}.waves .spacer{flex:1}.legends{flex-wrap:wrap;justify-content:center;gap:4px 14px;width:100%;display:flex}.waves-body{flex-direction:column;flex:1;gap:8px;min-height:0;display:flex;overflow-y:auto}.waves-body .chart+.chart,.waves-body .input-loading+.chart{border-top:1px solid var(--line)}.waves-empty{padding:16px 6px}.chart.pickable{cursor:crosshair}.input-loading{padding:24px 6px}.legend{color:var(--muted);align-items:center;gap:6px;font-size:14px;display:inline-flex}.legend i{border-radius:2px;width:18px;height:3px}.legend.dashed i{border-top:2px dashed;height:0}.chart{width:100%}.tour{z-index:50;position:fixed;inset:0}.tour-spot{pointer-events:none;border-radius:14px;outline:2px solid #60a5fa;transition:all .25s;position:fixed;box-shadow:0 0 0 9999px #0f172a8c}.tour-dim{background:#0f172a8c;position:fixed;inset:0}.tour-bubble{background:var(--surface);width:320px;color:var(--text);border-radius:14px;padding:18px 20px 16px;transition:all .25s;position:fixed;box-shadow:0 16px 40px #0000004d}.tour-bubble:before{content:"";background:var(--surface);width:14px;height:14px;position:absolute;top:24px;transform:rotate(45deg)}.tour-bubble.right:before{left:-7px}.tour-bubble.left:before{right:-7px}.tour-bubble.inside:before,.tour-bubble.center:before{display:none}.tour-step{color:var(--primary);font-size:13px;font-weight:600}.tour-bubble h3{margin:4px 0 6px;font-size:18px}.tour-bubble p{color:var(--muted);margin:0 0 16px;font-size:15px;line-height:1.65}.tour-actions{align-items:center;gap:8px;display:flex}.tour-actions .spacer{flex:1}.splash{background:var(--bg);justify-content:center;align-items:center;height:100vh;display:flex}.splash-card{background:var(--surface);border:1px solid var(--line);width:460px;box-shadow:var(--shadow);border-radius:16px;flex-direction:column;gap:12px;padding:26px 28px;display:flex}.splash-card h2{font-size:20px}.splash-card p{margin:0;line-height:1.6}.splash-card pre{color:#cfe3ff;white-space:pre-wrap;background:#0f1724;border-radius:8px;margin:0;padding:10px 12px;font-size:13.5px}.splash-card button{align-self:flex-start}.spinner{border:3px solid var(--line);border-top-color:var(--primary);border-radius:50%;width:38px;height:38px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}
