:root{--color-text: #14213d;--color-text-strong: #0f172a;--color-text-muted: #4b5563;--color-text-secondary: #475569;--color-text-subtle: #64748b;--color-muted-fg: #6b7280;--color-accent: #8d5b16;--color-link-active: #1d4ed8;--color-surface-soft: rgba(255, 255, 255, .82);--color-surface: rgba(255, 255, 255, .92);--color-surface-strong: rgba(255, 255, 255, .94);--color-surface-elevated: rgba(255, 255, 255, .98);--color-grid-header-bg: #e2e8f0;--color-scrollbar-track: rgba(226, 232, 240, .9);--color-scrollbar-thumb: rgba(71, 85, 105, .72);--color-scrollbar-thumb-hover: rgba(51, 65, 85, .82);--color-border: rgba(20, 33, 61, .12);--color-border-faint: rgba(20, 33, 61, .08);--color-border-subtle: rgba(148, 163, 184, .28);--color-border-grid: rgba(148, 163, 184, .18);--color-border-accent: rgba(141, 91, 22, .18);--shadow-header: 0 18px 50px rgba(20, 33, 61, .08);--shadow-panel: 0 16px 40px rgba(20, 33, 61, .06);--shadow-popover: 0 18px 36px rgba(15, 23, 42, .14);--shadow-floating: 0 8px 20px rgba(15, 23, 42, .1);--font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;--font-serif: "IBM Plex Serif", Georgia, serif;--font-mono: ui-monospace, monospace;--radius-sm: 10px;--radius-md: 14px;--radius-lg: 20px;--radius-xl: 24px;--radius-pill: 999px;--panel-left-width: 57%;--eq-col-variable-width: 140px;--eq-col-expression-width: 320px;--eq-col-role-width: 4.25rem;--notebook-sticky-surface-top: 0px}.workspace-main,.workspace-sidebar,.notebook-main-column,.notebook-outline{height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.workspace-main::-webkit-scrollbar,.workspace-sidebar::-webkit-scrollbar,.notebook-main-column::-webkit-scrollbar,.notebook-outline::-webkit-scrollbar{height:12px;width:12px}.workspace-main::-webkit-scrollbar-track,.workspace-sidebar::-webkit-scrollbar-track,.notebook-main-column::-webkit-scrollbar-track,.notebook-outline::-webkit-scrollbar-track{background:var(--color-scrollbar-track);border-radius:var(--radius-pill)}.workspace-main::-webkit-scrollbar-thumb,.workspace-sidebar::-webkit-scrollbar-thumb,.notebook-main-column::-webkit-scrollbar-thumb,.notebook-outline::-webkit-scrollbar-thumb{background:var(--color-scrollbar-thumb);border:2px solid var(--color-scrollbar-track);border-radius:var(--radius-pill)}.workspace-main::-webkit-scrollbar-thumb:hover,.workspace-sidebar::-webkit-scrollbar-thumb:hover,.notebook-main-column::-webkit-scrollbar-thumb:hover,.notebook-outline::-webkit-scrollbar-thumb:hover{background:var(--color-scrollbar-thumb-hover)}.equation-grid-header,.external-grid-header,.initial-grid-header{background:var(--color-grid-header-bg);color:var(--color-text-secondary);font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.equation-grid-body,.external-grid-body,.initial-grid-body{display:grid}.control-panel,.status-panel,.result-panel,.editor-panel{background:var(--color-surface-soft);border:1px solid var(--color-border);border-radius:var(--radius-xl);box-shadow:var(--shadow-panel);padding:.8rem}.mode-switch-link,.notebook-toolbar-link,.notebook-toolbar-button{background:var(--color-surface-soft);border:1px solid var(--color-border);border-radius:var(--radius-pill);color:var(--color-text);cursor:pointer;font:inherit;padding:.45rem .9rem;text-decoration:none}.app-kicker,.eyebrow{color:var(--color-accent);font-size:.76rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.app-header p,.panel-subtitle{color:var(--color-text-muted);margin:0}:root{color:var(--color-text);font-family:var(--font-sans);background:radial-gradient(circle at top left,rgba(253,224,71,.2),transparent 28%),linear-gradient(180deg,#f7f4ea,#edf2f7)}html,body,#root{height:100%}body{margin:0;overflow:hidden}.app-header{box-shadow:0 18px 50px var(--color-border-faint);display:grid;gap:1.5rem;grid-template-columns:minmax(0,1.8fr) minmax(280px,.9fr);margin-bottom:1.5rem;padding:1.75rem}.app-header h1{font-family:var(--font-serif);font-size:clamp(2rem,4vw,3.4rem);line-height:1;margin:.4rem 0 .75rem}.app-header-stats{display:grid;gap:.85rem;grid-template-columns:repeat(3,minmax(0,1fr))}.hero-stat{background:linear-gradient(180deg,#fffef8,#f8fafc);border:1px solid var(--color-border-accent);border-radius:var(--radius-lg);display:grid;gap:.25rem;padding:1rem}.hero-stat strong{font-size:1.65rem}.hero-stat-label{color:var(--color-muted-fg);font-size:.82rem;text-transform:uppercase}.app-shell{box-sizing:border-box;display:grid;gap:.65rem;grid-template-rows:auto minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden;padding:.25rem .65rem}.workspace-layout{--panel-left-width: 57%;display:grid;gap:1.25rem;grid-template-columns:minmax(0,var(--panel-left-width)) 8px minmax(0,1fr);align-items:stretch;min-height:0}.panel-splitter{align-self:stretch;background:transparent;border:0;cursor:col-resize;min-height:100%;padding:0;position:relative}.panel-splitter:before{background:linear-gradient(180deg,var(--color-border-faint),rgba(20,33,61,.22),var(--color-border-faint));border-radius:var(--radius-pill);content:"";top:.25rem;right:2px;bottom:.25rem;left:2px;position:absolute}.panel-splitter:hover:before,.panel-splitter:focus-visible:before,.panel-splitter.is-active:before{background:linear-gradient(180deg,#3b82f647,#1d4ed87a,#3b82f647)}.panel-splitter:focus-visible{outline:none}body.panel-splitter-body-lock{cursor:col-resize;-webkit-user-select:none;user-select:none}body.floating-panel-resize-body-lock{cursor:nwse-resize;-webkit-user-select:none;user-select:none}.mode-switch{display:flex;gap:.75rem;margin:0 0 1rem}.mode-switch-link.is-active{background:var(--color-text);color:#fff}.workspace-main,.workspace-sidebar{display:grid;gap:1.25rem}.workspace-main,.notebook-main-column{--notebook-sticky-surface-top: 0px;min-width:0}.workspace-sidebar{position:relative}.panel-header{align-items:start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:.85rem}.panel-header h2,.equation-detail h3{margin:0}.panel-header .result-chart-pin-button,.panel-header .result-chart-dismiss-button,.panel-header .result-chart-legend-mode-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:8px;color:var(--color-text-subtle);cursor:pointer;display:inline-flex;flex-shrink:0;height:1.5rem;justify-content:center;min-height:0;min-width:0;padding:0}.panel-header .result-chart-legend-mode-button{font-size:.68rem;font-weight:700;letter-spacing:.02em;min-width:2.75rem;padding:0 .35rem;width:auto}.panel-header .result-chart-pin-button,.panel-header .result-chart-dismiss-button{width:1.5rem}.panel-header .result-chart-pin-button:hover,.panel-header .result-chart-dismiss-button:hover,.panel-header .result-chart-legend-mode-button:hover,.panel-header .result-chart-pin-button:focus-visible,.panel-header .result-chart-dismiss-button:focus-visible,.panel-header .result-chart-legend-mode-button:focus-visible{background:#14213d0f;outline:none;transform:none}.panel-header .result-chart-legend-mode-button[aria-pressed=false]{color:var(--color-text-subtle)}.panel-header .result-chart-legend-mode-button[aria-pressed=true]{background:#f59e0b1f;color:#92400e}.panel-header .result-chart-pin-button[aria-pressed=false]{color:var(--color-text-subtle)}.panel-header .result-chart-pin-button[aria-pressed=false]:hover,.panel-header .result-chart-pin-button[aria-pressed=false]:focus-visible{color:var(--color-text-secondary)}.panel-header .result-chart-pin-button[aria-pressed=true]{color:#b45309}.panel-header .result-chart-pin-button[aria-pressed=true]:hover,.panel-header .result-chart-pin-button[aria-pressed=true]:focus-visible{color:#92400e}.panel-header .result-chart-dismiss-button:hover,.panel-header .result-chart-dismiss-button:focus-visible{color:var(--color-text)}.panel-header .result-chart-pin-button svg,.panel-header .result-chart-dismiss-button svg{display:block;height:.95rem;width:.95rem}.control-panel{display:grid;gap:1rem}.period-scrubber{background:var(--color-surface-strong);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:var(--radius-md);position:sticky;top:.75rem;z-index:20;gap:0;padding:.45rem .7rem}.period-scrubber-bar{align-items:center;display:grid;gap:.75rem;grid-template-columns:auto minmax(0,1fr) auto}.period-scrubber-summary{align-items:center;display:flex;justify-content:flex-end;min-width:0}.period-scrubber-label{color:#334155;font-size:.84rem;font-variant-numeric:tabular-nums;white-space:nowrap}.period-scrubber-controls{align-items:center;display:grid;gap:.55rem;grid-template-columns:auto minmax(0,1fr) auto}.period-scrubber input[type=range]{width:100%}.period-scrubber .secondary-button{border-radius:8px;font-size:.78rem;padding:.18rem .45rem}.field{display:grid;gap:.4rem}.field span,.field-label,.result-panel h2,.panel-header h2,.equation-detail h3{font-weight:700}.field input,.field select,.json-area,.equation-expression-field textarea,.button-row button{background:#fffdf7;border:1px solid #bcc6d3;border-radius:var(--radius-md);color:inherit;padding:.6rem .78rem}.field input:focus,.field select:focus,.json-area:focus,.equation-expression-field textarea:focus{border-color:#f59e0b;box-shadow:0 0 0 3px #f59e0b29;outline:none}.button-row{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.button-row button,.editor-row button,.panel-header button,.equation-list-item,.equation-detail-header button,.file-button{border-radius:12px;cursor:pointer;transition:transform .14s ease,background-color .14s ease,border-color .14s ease}.button-row button{background:var(--color-text);border:1px solid var(--color-text);color:#fff}.button-row .secondary-button{background:#f8fafc;border-color:#bcc6d3;color:#1f2937}.button-row button:disabled{background:#94a3b8;border-color:#94a3b8;cursor:default}.button-row .notebook-run-button{background:linear-gradient(180deg,#f8fafc,var(--color-grid-header-bg));border:1px solid rgba(100,116,139,.28);box-shadow:0 1px 2px #0f172a0f;color:#1e293b;width:auto}.button-row .notebook-run-button:hover:not(:disabled){background:linear-gradient(180deg,#fff,#e5edf7);border-color:#47556957;box-shadow:0 3px 8px #0f172a14;transform:translateY(-1px)}.button-row .notebook-run-button:active:not(:disabled){background:linear-gradient(180deg,var(--color-grid-header-bg),#dbe4ef);box-shadow:inset 0 1px 2px #0f172a14;transform:translateY(0)}.button-row .notebook-run-button:disabled{background:#f1f5f9f2;border-color:#94a3b833;box-shadow:none;color:var(--color-text-subtle)}.editor-grid{display:grid;gap:.75rem}.editor-row{align-items:start;display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr) minmax(140px,180px) minmax(0,1.4fr) auto}.editor-row input,.editor-row select,.option-grid input,.option-grid select{background:#fffdf7;border:1px solid #bcc6d3;border-radius:var(--radius-md);padding:.72rem .85rem}.editor-row button,.panel-header button,.equation-detail-header button,.file-button{background:#f8fafc;border:1px solid #bcc6d3;color:#1f2937;padding:.45rem .72rem}.field-error{color:#b91c1c;font-size:.92rem}.chat-panel,.chat-preview-panel{align-content:start;min-height:100%}.chat-thread{display:grid;gap:.9rem;margin-top:1rem}.chat-message{border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:.9rem 1rem}.chat-message-assistant{background:#ffffffe6}.chat-message-user{background:#0f766e1a}.chat-message-role{color:var(--color-muted-fg);font-size:.78rem;font-weight:700;letter-spacing:.04em;margin-bottom:.35rem;text-transform:uppercase}.chat-message p{margin:0}.assistant-markdown{color:#1f2937;display:grid;gap:.55rem;min-width:0;overflow-wrap:anywhere}.assistant-markdown-inline{display:inline;gap:0}.assistant-markdown>*{margin:0}.assistant-markdown-inline>*{display:inline}.assistant-markdown ul,.assistant-markdown ol{display:grid;gap:.3rem;margin:0;padding-left:1.25rem}.assistant-markdown code{background:#0f172a14;border-radius:5px;font-size:.92em;padding:.08rem .24rem}.assistant-markdown pre{background:var(--color-text-strong);border-radius:var(--radius-sm);color:var(--color-grid-header-bg);margin:0;max-width:100%;overflow-x:auto;padding:.75rem}.assistant-markdown pre code{background:transparent;border-radius:0;color:inherit;padding:0}.assistant-markdown pre:has(>.assistant-equation-code){background:transparent;border-radius:0;color:inherit;margin:.35rem 0;overflow:visible;padding:0}.assistant-markdown .assistant-equation-code{background:transparent;border-radius:0;color:inherit;font-family:inherit;padding:0;white-space:normal}.assistant-variable-code .variable-label-inline{color:#2563eb;font-family:inherit;gap:.2rem}.assistant-markdown .assistant-variable-code{background:transparent;border-radius:0;color:#2563eb;padding:0}.assistant-markdown .assistant-variable-button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;padding:0}.assistant-markdown .assistant-variable-code .variable-label-inline{text-decoration:underline;text-decoration-color:#2563eb47;text-underline-offset:.08em}.assistant-markdown .assistant-variable-button:hover .variable-label-inline{text-decoration-color:#2563eb6b}.assistant-markdown table{border-collapse:collapse;display:block;max-width:100%;overflow-x:auto}.assistant-markdown th,.assistant-markdown td{border:1px solid var(--color-border-subtle);padding:.32rem .45rem;text-align:left;vertical-align:top}.assistant-markdown th{background:#e2e8f08c;color:var(--color-text-strong);font-weight:700}.assistant-markdown a{color:#2563eb;font-weight:650}.chat-composer{display:grid;gap:1rem;margin-top:1rem}.chat-composer textarea{min-height:8rem;resize:vertical}.chat-preview-summary{color:var(--color-text-secondary);display:grid;gap:.4rem;margin:.25rem 0 1rem}.chat-preview-list{display:grid;gap:.7rem;margin:0 0 1rem;padding-left:1.35rem}.chat-preview-meta{margin:0 0 1rem}.chat-preview-meta p{margin:.35rem 0 0}.chat-preview-block{margin:0 0 1rem}.chat-preview-detail-list{display:grid;gap:.55rem;margin:.45rem 0 0;padding-left:1.1rem}.chat-preview-code{font-family:IBM Plex Mono,SFMono-Regular,monospace}.chat-preview-option-grid{display:grid;gap:.4rem;margin-top:.45rem}.chat-preview-textarea{background:#fffdf7;border:1px solid #bcc6d3;border-radius:var(--radius-md);color:inherit;font-family:IBM Plex Mono,SFMono-Regular,monospace;margin-top:.45rem;min-height:16rem;padding:.75rem .85rem;resize:vertical;width:100%}.chat-connection-actions{grid-template-columns:minmax(0,180px)}.equation-workspace{padding:0;overflow:hidden}.equation-workspace>.panel-header{padding:1.1rem 1.1rem 0}.equation-workspace-body{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);min-height:520px}.equation-sidebar{background:linear-gradient(180deg,#14213d0a,#14213d03);border-right:1px solid var(--color-border-faint);display:grid;gap:.9rem;padding:1.1rem}.equation-sidebar-meta{color:var(--color-text-subtle);display:flex;font-size:.9rem;gap:.85rem}.equation-list{display:grid;gap:.5rem;max-height:100%;overflow:auto}.equation-list-item{background:var(--color-surface-soft);border:1px solid rgba(20,33,61,.1);display:grid;gap:.25rem;padding:.68rem .78rem;text-align:left}.equation-list-item.is-selected{background:var(--color-text);border-color:var(--color-text);color:#fff;transform:translate(4px)}.equation-list-item.has-issue{border-color:#dc262673}.equation-list-name{font-weight:700}.equation-list-expression{color:var(--color-text-subtle);font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.87rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.equation-list-item.is-selected .equation-list-expression{color:var(--color-surface-soft)}.equation-detail{display:grid;align-content:start;gap:1rem;padding:1.1rem}.equation-detail-header{align-items:start;display:flex;gap:1rem;justify-content:space-between}.equation-detail-grid{display:grid;gap:1rem}.equation-empty-state{color:var(--color-text-subtle);padding:1rem 0}.equation-grid-shell{--eq-col-expression-width: 320px;--eq-col-variable-width: 140px;border:1px solid rgba(148,163,184,.36);border-radius:12px;overflow:hidden}.grid-editor-embedded,.equation-grid-editor-embedded{display:grid;gap:.7rem}.grid-editor-hint{color:var(--color-text-secondary);font-size:.84rem;line-height:1.35;margin:0}.initial-value-enable-dialog{max-width:34rem}.initial-value-enable-dialog-checklist{display:grid;gap:.55rem;margin:.85rem 0 .65rem}.initial-value-enable-dialog-item{align-items:start;cursor:pointer;display:grid;gap:.55rem;grid-template-columns:auto 1fr}.initial-value-enable-dialog-item input{margin-top:.2rem}.initial-value-enable-dialog-item-copy{display:grid;gap:.15rem}.initial-value-enable-dialog-item-copy strong{font-size:.92rem}.initial-value-enable-dialog-item-copy span{color:var(--color-text-secondary);font-size:.84rem;line-height:1.35}.initial-value-enable-dialog-preview{color:var(--color-text-secondary);font-size:.84rem;line-height:1.35;margin:0}.initial-value-overlap-dialog-list{display:grid;gap:.55rem;list-style:none;margin:.65rem 0 0;max-height:14rem;overflow:auto;padding:0}.initial-value-overlap-dialog-list li{border:1px solid var(--color-border-subtle);border-radius:8px;display:grid;gap:.15rem;padding:.55rem .65rem}.initial-value-overlap-dialog-list li strong{font-size:.92rem}.initial-value-overlap-dialog-list li span{color:var(--color-text-secondary);font-size:.84rem;line-height:1.35}.grid-editor-footer,.equation-grid-footer{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:flex-end;padding-top:.7rem}.grid-editor-embedded .equation-grid-header,.grid-editor-embedded .equation-grid-row,.equation-grid-editor-embedded .equation-grid-header,.equation-grid-editor-embedded .equation-grid-row,.grid-editor-embedded .external-grid-header,.grid-editor-embedded .external-grid-row,.grid-editor-embedded .initial-grid-header,.grid-editor-embedded .initial-grid-row{gap:.45rem;padding:.1rem .35rem}.grid-editor-embedded .equation-grid-header>:not(:first-child),.grid-editor-embedded .equation-grid-row>:not(:first-child),.equation-grid-editor-embedded .equation-grid-header>:not(:first-child),.equation-grid-editor-embedded .equation-grid-row>:not(:first-child),.grid-editor-embedded .external-grid-header>:not(:first-child),.grid-editor-embedded .external-grid-row>:not(:first-child),.grid-editor-embedded .initial-grid-header>:not(:first-child),.grid-editor-embedded .initial-grid-row>:not(:first-child){padding-left:.35rem}.grid-editor-embedded .equation-grid-row input,.grid-editor-embedded .external-grid-row input,.grid-editor-embedded .external-grid-row select,.grid-editor-embedded .initial-grid-row input,.grid-editor-embedded .highlighted-formula-preview,.grid-editor-embedded .highlighted-formula-control,.equation-grid-editor-embedded .equation-grid-row input,.equation-grid-editor-embedded .highlighted-formula-preview,.equation-grid-editor-embedded .highlighted-formula-control{font-size:.86rem;line-height:1.25}.grid-editor-embedded .equation-grid-row input,.grid-editor-embedded .external-grid-row input,.grid-editor-embedded .external-grid-row select,.grid-editor-embedded .initial-grid-row input,.equation-grid-editor-embedded .equation-grid-row input{padding:.04rem .1rem}.grid-editor-embedded .highlighted-formula-preview,.grid-editor-embedded .highlighted-formula-control,.equation-grid-editor-embedded .highlighted-formula-preview,.equation-grid-editor-embedded .highlighted-formula-control{min-height:1.05rem;padding:.02rem .1rem}.grid-editor-embedded .equation-grid-index,.grid-editor-embedded .equation-grid-status,.grid-editor-embedded .external-grid-index,.grid-editor-embedded .external-grid-status,.grid-editor-embedded .initial-grid-index,.grid-editor-embedded .initial-grid-status,.grid-editor-embedded .external-grid-units,.grid-editor-embedded .initial-grid-current,.equation-grid-editor-embedded .equation-grid-index,.equation-grid-editor-embedded .equation-grid-status{font-size:.78rem}.grid-editor-embedded .equation-grid-row button:not(.grid-editor-symbol-button),.grid-editor-embedded .external-grid-row button:not(.grid-editor-symbol-button),.grid-editor-embedded .initial-grid-row button:not(.grid-editor-symbol-button),.equation-grid-editor-embedded .equation-grid-row button:not(.grid-editor-symbol-button){min-width:1.6rem;padding:.1rem .25rem}.grid-editor-row-controls{display:grid;gap:.06rem;grid-template-columns:repeat(4,minmax(0,1fr))}.grid-editor-symbol-button{align-items:center;display:inline-flex;font-size:.62rem;justify-content:center;line-height:1;min-height:.95rem;min-width:.95rem;padding:0}.equation-grid-editor-embedded .equation-grid-header,.equation-grid-editor-embedded .equation-grid-row,.grid-editor-embedded .equation-grid-header,.grid-editor-embedded .equation-grid-row{grid-template-columns:18px var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(68px,78px) minmax(52px,72px) minmax(0,1fr) minmax(34px,42px) minmax(3.4rem,auto)}.equation-grid-editor-embedded .equation-grid-shell,.grid-editor-embedded .equation-grid-shell{--eq-col-expression-width: 280px;--eq-col-variable-width: 160px}.equation-grid-header,.equation-grid-row{align-items:center;display:grid;gap:.32rem;grid-template-columns:18px var(--eq-col-variable-width, 140px) var(--eq-col-expression-width, 320px) minmax(72px,84px) minmax(52px,72px) minmax(0,1fr) minmax(34px,42px) minmax(3.4rem,auto);padding:.12rem .24rem}.equation-grid-header{position:relative}.equation-grid-column-resize{bottom:0;cursor:col-resize;position:absolute;top:0;touch-action:none;width:12px;z-index:2}.equation-grid-column-resize:before{background:#2563eb;border-radius:2px;bottom:4px;box-shadow:0 0 0 1px #2563eb33;content:"";left:50%;position:absolute;top:4px;transform:translate(-50%);width:4px}.equation-grid-column-resize:hover:before,.equation-grid-column-resize:focus-visible:before,.equation-grid-column-resize.is-active:before{background:var(--color-link-active);box-shadow:0 0 0 1px #1d4ed859;width:5px}.equation-grid-column-resize.is-active:before{width:6px}.equation-grid-column-resize:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.equation-grid-is-resizing-columns{-webkit-user-select:none;user-select:none}.equation-grid-is-resizing-columns .equation-grid-row,.equation-grid-is-resizing-columns .notebook-model-view-table-resizable .notebook-model-view-row:not(.notebook-model-view-row-header){pointer-events:none}.equation-grid-header>span,.equation-grid-row>span,.equation-grid-row>label,.equation-grid-row>button{min-height:100%;position:relative}.equation-grid-header>:not(:first-child),.equation-grid-row>:not(:first-child){border-left:1px solid var(--color-border-grid);padding-left:.28rem}.equation-grid-row-group{display:grid}.equation-grid-row{background:var(--color-surface);border-top:1px solid rgba(148,163,184,.22)}.equation-grid-row:nth-child(2n){background:#f8fafcf5}.equation-grid-row.has-issue{background:#fef2f2cc}.equation-grid-row.is-hovered{background:#f1f5f9f5}.equation-grid-row.trace-root{background:#dbeafec7}.equation-grid-row.trace-input{background:#dcfce7b3}.equation-grid-row.trace-output{background:#fef9c3d1}.equation-grid-row.trace-both{background:#ffedd5d1}.equation-grid-row input{background:#fff;border:0;border-radius:0;padding:.12rem .15rem}.equation-grid-description{color:#334155;min-width:0;width:100%}.equation-grid-description:focus{outline:none}.equation-grid-row-group:nth-last-child(-n+5) .equation-grid-unit-cell .equation-badge-popover-panel{bottom:calc(100% + .28rem);top:auto}.equation-grid-shell:has(.equation-grid-unit-cell.is-open){overflow:visible}.equation-grid-unit-cell{display:flex;justify-content:center;min-width:0;position:relative}.equation-grid-unit-cell .equation-badge-button{min-width:0;text-align:center;width:100%}.equation-grid-unit-cell .equation-badge-popover-panel{left:0;right:auto}.equation-grid-role-cell{display:flex;min-width:0;position:relative}.equation-grid-role-select{min-width:0;text-align:center;width:100%}.equation-grid-index{align-self:start;color:#94a3b8;font-size:.58rem;font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:.02em;line-height:1;padding-top:.14rem;text-align:center}.equation-grid-status{color:#0f766e;font-size:.62rem;line-height:1.15;white-space:nowrap}.equation-grid-current,.external-grid-current,.initial-grid-current{color:#334155;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.8rem;line-height:1.3}.equation-grid-status.has-issue{color:#b91c1c}.equation-grid-status.is-warning{color:#b45309}.equation-grid-warning-row{font-size:.78rem;line-height:1.45;padding:.45rem .75rem .5rem 3.7rem}.equation-grid-warning-row.is-warning{background:#fffbebf5;border-top:1px solid rgba(245,158,11,.22);color:#92400e}.equation-grid-warning-row.is-error{background:#fef2f2f5;border-top:1px solid rgba(239,68,68,.18);color:#991b1b}.equation-grid-row button:not(.grid-editor-symbol-button){justify-self:start;min-height:0;min-width:1.4rem;padding:.08rem .18rem;text-align:center}.equation-grid-row .grid-editor-row-controls{justify-self:start}.equation-grid-banner{margin-bottom:.6rem}.external-grid-shell{border:1px solid rgba(148,163,184,.36);border-radius:12px;overflow:hidden}.external-grid-header,.external-grid-row{align-items:center;display:grid;gap:.6rem;grid-template-columns:42px minmax(96px,132px) minmax(130px,220px) minmax(180px,320px) minmax(92px,132px) minmax(92px,118px) minmax(48px,72px) minmax(3.4rem,auto);padding:.18rem .45rem}.external-grid-header>span,.external-grid-row>span,.external-grid-row>input,.external-grid-row>select,.external-grid-row>button,.external-grid-row>.equation-grid-unit-cell{min-height:100%;position:relative}.external-grid-header>:not(:first-child),.external-grid-row>:not(:first-child){border-left:1px solid var(--color-border-grid);padding-left:.45rem}.external-grid-row{background:var(--color-surface);border-top:1px solid rgba(148,163,184,.22)}.external-grid-row:nth-child(2n){background:#f8fafcf5}.external-grid-row.has-issue{background:#fef2f2cc}.external-grid-row input,.external-grid-row select{background:transparent;border:0;border-radius:0;padding:.12rem .15rem}.external-grid-description{color:#334155;min-width:0;width:100%}.external-grid-row input:focus,.external-grid-row select:focus{outline:none}.external-grid-index{color:var(--color-text-subtle);font-size:.85rem;font-variant-numeric:tabular-nums;text-align:center}.external-grid-status{color:#0f766e;font-size:.72rem;line-height:1.15;white-space:nowrap}.external-grid-row:nth-last-child(-n+5) .equation-grid-unit-cell .equation-badge-popover-panel{bottom:calc(100% + .28rem);top:auto}.external-grid-shell:has(.equation-grid-unit-cell.is-open){overflow:visible}.external-grid-status.has-issue{color:#b91c1c}.external-grid-row button:not(.grid-editor-symbol-button){justify-self:start;min-height:0;min-width:1.8rem;padding:.2rem .35rem;text-align:center}.external-grid-row .grid-editor-row-controls{justify-self:start}.external-grid-empty{color:var(--color-text-subtle);padding:.8rem}.initial-grid-shell{border:1px solid rgba(148,163,184,.36);border-radius:12px;overflow:hidden}.initial-grid-header,.initial-grid-row{align-items:center;display:grid;gap:.6rem;grid-template-columns:2rem 48px minmax(120px,180px) minmax(120px,180px) minmax(160px,1fr) minmax(140px,220px) minmax(120px,180px) auto;padding:.3rem .55rem}.initial-grid-enable{display:flex;justify-content:center}.initial-grid-enable-checkbox{margin:0}.initial-grid-row.is-disabled{opacity:.58}.initial-grid-header>span,.initial-grid-row>span,.initial-grid-row>input,.initial-grid-row>button{min-height:100%;position:relative}.initial-grid-header>:not(:first-child),.initial-grid-row>:not(:first-child){border-left:1px solid var(--color-border-grid);padding-left:.45rem}.initial-grid-row{background:var(--color-surface);border-top:1px solid rgba(148,163,184,.22)}.initial-grid-row:nth-child(2n){background:#f8fafcf5}.initial-grid-row.has-issue{background:#fef2f2cc}.initial-grid-row input{background:transparent;border:0;border-radius:0;padding:.2rem .15rem}.initial-grid-row input:focus{outline:none}.initial-grid-index{color:var(--color-text-subtle);font-size:.85rem;font-variant-numeric:tabular-nums;text-align:center}.initial-grid-status{color:#0f766e;font-size:.8rem;line-height:1.3}.initial-grid-status.has-issue{color:#b91c1c}.initial-grid-row .grid-editor-row-controls{justify-self:start}.equation-grid-body>.notebook-model-view-row-comment,.external-grid-body>.notebook-model-view-row-comment,.initial-grid-body>.notebook-model-view-row-comment{grid-column:1 / -1;width:100%}.variable-math-label sup,.variable-math-label sub{font-size:.72em;line-height:0}.formula-token .lag-prime{font-size:.82em;font-weight:900;line-height:0;margin-left:.02em;text-shadow:.4px 0 0 currentColor}.meta-panel{color:var(--color-text-secondary);display:grid;gap:.35rem}.option-grid{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.checkbox-field{align-items:center;display:flex;gap:.5rem}.shock-card{background:linear-gradient(180deg,#fff8dc73,#ffffffb8);border:1px dashed #d1b978;border-radius:18px;padding:.85rem}.json-area{font:.95rem/1.45 IBM Plex Mono,SFMono-Regular,monospace;min-height:180px;resize:vertical;width:100%}.status-hint{color:var(--color-muted-fg)}.success-text{color:#0f766e}.input-error{border-color:#dc2626!important;box-shadow:0 0 0 1px #dc26262e}.highlighted-formula-input{align-items:flex-start;display:flex;flex-direction:column;position:relative}.variable-label-inline{align-items:center;display:inline-flex;flex-wrap:wrap;gap:.35rem}.formula-token.is-document-highlighted{border-radius:3px}.formula-token.is-zero-denominator{background:#fee2e2b8;border-radius:3px;box-shadow:0 0 0 1px #ef444447;color:#991b1b}.formula-token.is-zero-denominator.is-clickable:hover{background:#fecacad1}.unit-badge{color:var(--color-text-subtle);display:inline;font-size:.72rem;font-weight:500;line-height:1.2;white-space:nowrap}.input-unit-badge{position:absolute;right:.32rem;top:50%;transform:translateY(-56%);z-index:1}.input-badge-popover{align-items:center;display:inline-flex}.input-badge-popover.is-open{z-index:4}.equation-badge-button{align-items:center;background:#f1f5f9f0;border:1px solid rgba(148,163,184,.24);border-radius:var(--radius-pill);color:var(--color-text-secondary);cursor:pointer;display:inline-flex;font:inherit;font-size:.68rem;font-weight:700;justify-content:center;letter-spacing:.01em;padding:.18rem .42rem;white-space:nowrap}.equation-badge-button:hover{background:#dbeafed1;border-color:#60a5fa5c;color:var(--color-link-active)}.equation-badge-popover-panel{background:var(--color-surface-elevated);border:1px solid rgba(148,163,184,.26);border-radius:.75rem;box-shadow:var(--shadow-popover);display:grid;gap:.55rem;max-width:min(18rem,calc(100vw - 1rem));min-width:12rem;padding:.7rem;position:absolute;right:0;top:calc(100% + .28rem);z-index:5}.input-unit-badge .equation-badge-popover-panel{left:0;right:auto}.equation-badge-popover-grid{display:grid;gap:.45rem;grid-template-columns:repeat(3,minmax(0,1fr))}.equation-unit-picker-panel{min-width:24rem}.equation-unit-picker-header{display:flex;justify-content:flex-end}.equation-unit-picker-note{margin:0 0 .5rem;color:var(--muted-fg, var(--color-muted-fg));font-size:.75rem;line-height:1.35}.equation-unit-picker-operands{align-items:end;display:grid;gap:.45rem;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.equation-unit-picker-operator{color:var(--color-text-secondary);font-size:.9rem;font-weight:700;line-height:1;padding-bottom:.45rem;text-align:center}.equation-unit-picker-actions{border-top:1px solid rgba(148,163,184,.2);display:flex;flex-wrap:wrap;gap:.35rem;padding-top:.55rem}.equation-unit-picker-action{border-radius:.5rem;cursor:pointer;font:inherit;font-size:.72rem;font-weight:600;padding:.28rem .55rem}.equation-unit-picker-action.secondary-button{background:#f8fafcf5;border:1px solid var(--color-border-subtle);color:#334155}.equation-unit-picker-clear{background:transparent;border:0;color:#b91c1c;margin-left:auto;padding-inline:.2rem}.equation-unit-picker-clear:hover{color:#991b1b}.equation-badge-popover-field{color:var(--color-text-secondary);display:grid;font-size:.68rem;font-weight:700;gap:.2rem}.equation-badge-popover-field>input,.equation-badge-popover-field>select{background:#f8fafcf5;border:1px solid var(--color-border-subtle);border-radius:.5rem;color:var(--color-text-strong);font:inherit;min-width:0;padding:.24rem .38rem}.equation-badge-popover-reset{background:transparent;border:0;color:var(--color-text-secondary);cursor:pointer;font:inherit;font-size:.72rem;justify-self:start;padding:0}.equation-badge-popover-reset:hover{color:#b91c1c}.highlighted-formula-input:has(.input-unit-badge) .highlighted-formula-preview,.highlighted-formula-input:has(.input-unit-badge) .highlighted-formula-control{padding-right:4.8rem}.highlighted-formula-input:has(.input-badge-popover) .highlighted-formula-preview,.highlighted-formula-input:has(.input-badge-popover) .highlighted-formula-control{padding-right:5.8rem}.highlighted-formula-input:focus-within{background:#dbeafe99;box-shadow:inset 0 0 0 1px #2563eb47}.highlighted-formula-preview,.highlighted-formula-control{box-sizing:border-box;border:0;border-radius:0;font:.92rem/1.35 IBM Plex Mono,SFMono-Regular,monospace;font-kerning:none;font-variant-ligatures:none;letter-spacing:0;margin:0;min-height:1.2rem;overflow-wrap:anywhere;padding:.06rem .14rem;-moz-tab-size:2;tab-size:2;width:100%;white-space:break-spaces;word-break:normal}.highlighted-formula-preview{background:transparent;color:var(--color-text-strong);top:0;right:0;bottom:0;left:0;pointer-events:auto;position:absolute}.highlighted-formula-preview.is-placeholder{color:#94a3b8}.highlighted-formula-control{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;caret-color:var(--color-text-strong);color:transparent;overflow:hidden;position:relative;resize:none}.highlighted-formula-control:focus{outline:none}.highlighted-formula-input:focus-within .highlighted-formula-preview{opacity:0}.highlighted-formula-input:focus-within .highlighted-formula-control{color:var(--color-text-strong)}.highlighted-formula-input.input-error .highlighted-formula-preview,.highlighted-formula-input.input-error .highlighted-formula-control{background:#fef2f2e6;box-shadow:inset 0 -1px #dc262680}.formula-uppercase{color:#2563eb}.formula-lowercase{color:#15803d}.formula-parameter{color:#ea580c}.formula-function{color:#111827}.formula-number{color:#7c3aed}.formula-token.is-clickable{cursor:pointer}.formula-token.is-clickable:hover{text-decoration:underline;text-decoration-color:#2563eb73}.variable-catalog-panel{display:grid;gap:.65rem;padding:.7rem;min-height:0}.variable-catalog-view-toggle{display:grid;gap:0;grid-template-columns:1fr 1fr;border:1px solid var(--color-border-accent);border-radius:var(--radius-sm);overflow:hidden}.variable-catalog-view-toggle-button{background:#f8fafc;border:0;border-radius:0;color:#334155;font-size:.82rem;font-weight:700;padding:.45rem .65rem}.variable-catalog-view-toggle-button.is-active{background:#fff7ed;color:#9a3412}.variable-catalog-view-toggle-button+.variable-catalog-view-toggle-button{border-left:1px solid var(--color-border-accent)}.variable-parameters-panel{display:grid;gap:.65rem;min-height:0}.variable-parameters-list{display:grid;gap:.75rem;max-height:min(58vh,640px);overflow:auto;padding-right:.15rem}.variable-parameters-model-group{display:grid;gap:.55rem}.variable-parameters-model-title{font-size:.88rem;margin:0}.parameter-slider-row{border:1px solid rgba(141,91,22,.12);border-radius:12px;display:grid;gap:.35rem;padding:.55rem .65rem}.parameter-slider-row.has-override{border-color:#9a341259;background:#fff7eda6}.parameter-slider-row-header{align-items:center;display:flex;flex-wrap:wrap;gap:.35rem .55rem}.parameter-slider-description{color:var(--color-text-subtle);font-size:.82rem;line-height:1.35;margin:0}.parameter-slider-controls{align-items:center;display:grid;gap:.35rem .55rem;grid-template-columns:minmax(0,1fr) 4.5rem auto}.parameter-slider-input{width:100%}.parameter-slider-numeric-input{font-size:.88rem;padding:.35rem .45rem;width:100%}.parameter-slider-baseline{font-size:.78rem;white-space:nowrap}.variable-parameters-footer{border-top:1px solid rgba(141,91,22,.12);display:grid;gap:.45rem;padding-top:.55rem}.variable-parameters-series-note,.variable-parameters-empty,.variable-parameters-pending{margin:0}.variable-catalog-toolbar{align-items:center;display:grid;gap:.3rem .55rem;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto;grid-template-rows:auto auto}.variable-catalog-toolbar-label{font-size:.82rem;font-weight:700;line-height:1.1}.variable-catalog-toolbar .field{display:block;margin:0}.variable-catalog-toolbar .field input,.variable-catalog-toolbar .field select{padding:.45rem .65rem;width:100%}.variable-catalog-search input{width:100%}.variable-catalog-columns-menu{position:relative;width:100%}.variable-catalog-columns-menu .secondary-button{padding:.45rem .75rem;width:100%}.variable-catalog-columns-popover{background:#fffef8;border:1px solid var(--color-border-accent);border-radius:12px;box-shadow:0 12px 28px var(--color-border);display:grid;gap:.35rem;margin-top:.35rem;padding:.55rem .65rem;position:absolute;right:0;z-index:4}.variable-catalog-column-toggle{align-items:center;display:flex;gap:.45rem;font-size:.88rem}.variable-catalog-table-shell{border:1px solid rgba(141,91,22,.14);border-radius:var(--radius-md);max-height:min(62vh,720px);overflow:auto}.variable-catalog-table{border-collapse:separate;border-spacing:0;min-width:100%;table-layout:fixed;width:max-content}.variable-catalog-table thead th{background:#f8fafc;border-bottom:1px solid rgba(141,91,22,.14);font-size:.76rem;font-weight:700;letter-spacing:.04em;padding:.45rem .55rem;position:sticky;text-align:left;text-transform:uppercase;top:0;vertical-align:bottom;z-index:2}.variable-catalog-header-button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;padding:0;text-transform:inherit}.variable-catalog-header-button:hover{color:var(--color-accent)}.variable-catalog-column-resize{position:absolute;right:0;top:0;height:100%}.variable-catalog-table tbody td{border-bottom:1px solid var(--color-border-grid);font-size:.88rem;overflow:hidden;padding:.42rem .55rem;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.variable-catalog-data-row{cursor:pointer}.variable-catalog-data-row:hover,.variable-catalog-data-row.is-focused{background:#fde0471f}.variable-catalog-data-row.is-selected{background:#fde0473d}.variable-catalog-group-row td{background:#f1f5f9;font-weight:600}.variable-catalog-group-toggle{align-items:center;background:transparent;border:0;cursor:pointer;display:inline-flex;font:inherit;gap:.45rem;padding:.15rem 0;width:100%}.variable-catalog-group-count{color:var(--color-text-subtle);font-size:.78rem;font-weight:500}.variable-catalog-empty{color:var(--color-text-subtle);padding:1rem .75rem;text-align:center}.outline-index{color:#94a3b8;display:inline-block;font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.5;min-width:1.1rem}.numeric-value-negative{color:#b42318}.legend-item-add{color:#059669}.legend-item{align-items:center;color:inherit;display:inline-flex;gap:.35rem;position:relative;transition:opacity .14s ease,transform .14s ease,color .14s ease}.instant-tooltip-bubble{background:#0f172af5;border:1px solid rgba(245,158,11,.35);border-radius:var(--radius-sm);box-shadow:0 10px 28px #0f172a2e;color:#f8fafc;font-size:.78rem;line-height:1.35;padding:.42rem .6rem;pointer-events:none;position:fixed;white-space:normal;width:max-content;z-index:1300}.instant-tooltip-top:after,.instant-tooltip-bottom:after{border-left:6px solid transparent;border-right:6px solid transparent;content:"";left:50%;pointer-events:none;position:absolute;transform:translate(-50%)}.instant-tooltip-top:after{border-top:6px solid rgba(15,23,42,.96);top:100%}.instant-tooltip-bottom:after{border-bottom:6px solid rgba(15,23,42,.96);bottom:100%}.legend-item.is-active{color:var(--color-text-strong);font-weight:700;transform:translateY(-1px)}.legend-item.is-dimmed{opacity:.42}.legend-item.is-hidden{color:var(--color-text-subtle);opacity:.7}.legend-item.is-hidden .legend-swatch path{stroke-width:1.65}.legend-item-reference-trace{color:var(--color-text-muted)}.result-variable-button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:left}.result-variable-button.is-document-highlighted,.formula-token.is-document-highlighted,.assistant-variable-button.is-document-highlighted,.chart-legend-item.is-document-highlighted{background:#fde04747;border-radius:4px;box-shadow:0 0 0 1px #d9770659}.chart-legend-item.is-document-highlighted,.legend-item.is-document-highlighted{box-shadow:0 0 0 1px #d9770659}.result-variable-button:hover .variable-label-inline{text-decoration:underline;text-decoration-color:#2563eb52}.result-chart-heading{align-items:center;display:flex;gap:.35rem;min-width:0}.result-chart-heading h2{min-width:0}.result-chart-heading-actions{display:inline-flex;flex-shrink:0;gap:.15rem}.result-chart-pin-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:8px;color:var(--color-text-subtle);cursor:pointer;display:inline-flex;flex:0 0 auto;flex-shrink:0;height:1.5rem;justify-content:center;min-height:0;min-width:0;padding:0;width:1.5rem}.result-chart-pin-button:hover,.result-chart-pin-button:focus-visible{background:#14213d0f;outline:none;transform:none}.result-chart-pin-button[aria-pressed=false]{color:var(--color-text-subtle)}.result-chart-pin-button[aria-pressed=false]:hover,.result-chart-pin-button[aria-pressed=false]:focus-visible{color:var(--color-text-secondary)}.result-chart-pin-button[aria-pressed=true]{color:#b45309}.result-chart-pin-button[aria-pressed=true]:hover,.result-chart-pin-button[aria-pressed=true]:focus-visible{color:#92400e}.result-chart-pin-button svg,.pin-toggle-icon{display:block;flex-shrink:0;height:.95rem;width:.95rem}.result-chart{display:block;height:auto;margin-top:.35rem;width:100%}.result-panel .panel-header{margin-bottom:.35rem}.chart-legend{display:flex;flex-wrap:wrap;gap:.5rem}.chart-legend-add{align-items:center;display:inline-flex;position:relative}.chart-legend .chart-legend-add-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--radius-pill);color:#059669;cursor:pointer;display:inline-flex;height:1.18rem;justify-content:center;min-height:0;min-width:0;padding:0;transition:color .14s ease,transform .14s ease;width:1.18rem}.chart-legend .chart-legend-add-button:hover:not(:disabled),.chart-legend .chart-legend-add-button:focus-visible{color:#047857;outline:none;transform:translateY(-1px)}.chart-legend .chart-legend-add-button:disabled{cursor:not-allowed;opacity:.45}.chart-legend .chart-legend-add-button svg{display:block;height:100%;width:100%}.chart-legend .chart-legend-add-button circle{fill:currentColor;stroke:color-mix(in srgb,currentColor 55%,var(--color-text-strong) 45%);stroke-width:1.5}.chart-legend .chart-legend-add-button path{fill:none;stroke:#f8fafc;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chart-legend .legend-label-menu{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:left}.chart-legend .legend-label-menu:hover .variable-math-label,.chart-legend .legend-label-menu:focus-visible .variable-math-label{text-decoration:underline;text-decoration-color:#2563eb52}.chart-legend .legend-label-menu:focus-visible{outline:2px solid rgba(245,158,11,.65);outline-offset:2px;border-radius:4px}.chart-legend-add-menu{background:#fff;border:1px solid rgba(148,163,184,.35);border-radius:12px;box-shadow:0 12px 30px #0f172a29;display:grid;gap:.2rem;left:0;margin-top:.45rem;max-height:14rem;min-width:12rem;overflow:auto;padding:.35rem;position:absolute;top:100%;z-index:30}.legend-item-tooltip-anchor{align-items:center;display:inline-flex;gap:.35rem;min-width:0}.chart-legend-add-option{align-items:flex-start;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:8px;color:var(--color-text-strong);cursor:pointer;display:grid;gap:.08rem;justify-items:start;padding:.38rem .48rem;text-align:left}.chart-legend-add-option:hover,.chart-legend-add-option:focus-visible{background:#f8fafc;outline:none}.chart-legend-add-option-name{font-weight:700}.chart-legend-add-option-description{color:var(--color-text-subtle);font-size:.8rem}.chart-empty-variable-picker{display:grid;gap:.55rem;padding:.35rem .15rem .55rem}.chart-empty-variable-picker-hint{color:var(--color-text-subtle);font-size:.88rem;margin:0}.chart-empty-variable-picker-list{background:#fff;border:1px solid rgba(148,163,184,.35);border-radius:12px;display:grid;gap:.2rem;max-height:14rem;overflow:auto;padding:.35rem}.chart-legend-context-menu{background:#fff;border:1px solid rgba(148,163,184,.35);border-radius:var(--radius-sm);box-shadow:0 12px 30px #0f172a29;display:grid;gap:.15rem;left:0;margin-top:.45rem;min-width:10rem;padding:.3rem;position:absolute;top:100%;z-index:35}.chart-legend-add-menu.chart-legend-menu-portal,.chart-legend-context-menu.chart-legend-menu-portal{left:0;margin-top:0;position:fixed;top:0;z-index:1400}.chart-legend-context-menu button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:7px;color:var(--color-text-strong);cursor:pointer;font:inherit;min-height:0;padding:.35rem .45rem;text-align:left}.chart-legend-context-menu button:hover:not(:disabled),.chart-legend-context-menu button:focus-visible{background:#f8fafc;outline:none}.chart-legend-context-menu button:disabled{color:#94a3b8;cursor:not-allowed}.chart-legend .legend-toggle{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--radius-pill);color:inherit;cursor:pointer;display:inline-flex;height:1.18rem;justify-content:center;min-height:0;min-width:0;padding:0;width:1.18rem}.chart-legend .legend-toggle:focus-visible{outline:2px solid rgba(245,158,11,.65);outline-offset:2px}.chart-scale{color:var(--color-text-secondary);display:flex;flex-wrap:wrap;gap:1rem;margin-top:.45rem}.chart-scale-multi{font-size:.92rem}.chart-series,.chart-axis{transition:opacity .14s ease}.chart-time-range-slider-handle-start,.chart-time-range-slider-handle-end{cursor:ew-resize}.chart-time-range-slider-pan{cursor:grab}.chart-time-range-slider-pan:active{cursor:grabbing}.chart-time-range-row{align-items:center;display:flex;gap:.5rem;margin-top:.5rem}.chart-time-range-slider-chart{display:block;flex:1 1 auto;height:auto;min-width:0;width:100%}.chart-time-range-actions{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:.35rem}.chart-time-range-store-button,.chart-time-range-clear-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#14213d0a;border:1px solid rgba(20,33,61,.12);border-radius:6px;color:var(--color-text-secondary);cursor:pointer;font:inherit;font-size:.82rem;line-height:1.2;padding:.2rem .55rem}.chart-time-range-store-button:hover:not(:disabled),.chart-time-range-clear-button:hover,.chart-time-range-store-button:focus-visible,.chart-time-range-clear-button:focus-visible{background:#14213d14;color:var(--color-text);outline:none}.chart-time-range-store-button:disabled{cursor:default;opacity:.45}.chart-scenario-shock-band-label{box-sizing:border-box;font-size:10px;font-weight:700;line-height:1.1;overflow:visible;padding-left:2px;text-align:left;white-space:normal;width:100%}.chart-scenario-shock-variable-button{align-items:baseline;display:inline-flex;text-align:left}.chart-scenario-shock-variable-button:hover .variable-math-label{text-decoration:underline;text-decoration-color:#2563eb52}.scenario-shock-variable-line .variable-math-label{font-weight:700}.variable-inspector-panel{display:grid;gap:.55rem;padding:.7rem}.inspector-parameter-controls{align-items:center;display:grid;gap:.55rem;grid-template-columns:minmax(0,1fr) auto}.inspector-parameter-value{font-variant-numeric:tabular-nums;font-weight:700}.variable-inspector-body{display:grid;gap:.6rem}.variable-inspector-empty{color:var(--color-text-subtle);line-height:1.5}.variable-inspector-hero-block{display:grid;gap:.35rem}.variable-inspector-hero{align-items:start;display:flex;gap:.45rem;justify-content:space-between}.variable-inspector-sparkline-wrap{display:grid;gap:.2rem;min-width:0}.variable-inspector-sparkline{display:block;height:6.2rem;min-width:0;width:100%}.variable-inspector-sparkline-range{color:var(--color-text-subtle);font-size:.72rem;font-variant-numeric:tabular-nums;line-height:1.2}.variable-inspector-sparkline-line{stroke:#111827;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.variable-inspector-sparkline-marker-ring{fill:#fff;stroke:#111827;stroke-width:1.5}.variable-inspector-sparkline-marker{fill:#111827}.variable-inspector-hero-title{display:grid;flex:1;gap:.15rem;min-width:0}.variable-inspector-eyebrow-row{align-items:center;display:flex;min-height:1.45rem;position:relative}.variable-inspector-nav{display:flex;flex-shrink:0;gap:5mm;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.variable-inspector-nav-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#ffffff8c;border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-pill);box-shadow:none;color:var(--color-text-subtle);cursor:pointer;display:inline-flex;font:inherit;height:1.45rem;justify-content:center;min-width:1.45rem;padding:0;transition:background-color .14s ease,border-color .14s ease,color .14s ease;width:1.45rem}.variable-inspector-nav-button:hover:not(:disabled){background:#fffffff2;border-color:#64748b57;color:#334155}.variable-inspector-nav-button:focus-visible{outline:2px solid rgba(245,158,11,.45);outline-offset:1px}.variable-inspector-nav-button:disabled{background:transparent;border-color:#94a3b824;color:#94a3b88c;cursor:default}.variable-inspector-nav-button span{display:block;font-size:1.1rem;font-weight:700;line-height:1;-webkit-text-stroke:.4px currentColor}.variable-inspector-hero h3,.inspector-section h3{margin:0}.inspector-section-heading{align-items:center;display:flex;gap:.35rem;justify-content:space-between}.variable-inspector-badges{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:flex-end}.inspector-badge{background:var(--color-border-faint);border-radius:var(--radius-pill);color:var(--color-text);font-size:.72rem;font-weight:700;padding:.2rem .46rem}.inspector-badge.is-muted{background:var(--color-border-grid);color:var(--color-text-secondary)}.inspector-variable-picker{position:relative}.inspector-variable-picker-trigger{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid transparent;border-radius:var(--radius-md, 8px);color:inherit;cursor:pointer;display:inline-flex;font:inherit;gap:.35rem;margin:-.15rem -.35rem;max-width:100%;padding:.15rem .35rem;text-align:left}.inspector-variable-picker-trigger:hover{background:#94a3b824;border-color:#94a3b847}.inspector-variable-picker-trigger:focus-visible{outline:2px solid rgba(245,158,11,.45);outline-offset:1px}.inspector-variable-picker-placeholder{color:var(--color-text-subtle);font-weight:500}.inspector-variable-picker-caret{color:var(--color-text-subtle);font-size:.7rem;line-height:1}.inspector-variable-picker-menu{background:var(--color-surface, #fff);border:1px solid rgba(148,163,184,.32);border-radius:var(--radius-md, 8px);box-shadow:0 16px 40px #0f172a33;display:flex;flex-direction:column;left:0;margin-top:.3rem;max-width:320px;min-width:220px;position:absolute;top:100%;z-index:50}.inspector-variable-picker-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-bottom:1px solid rgba(148,163,184,.24);border-radius:var(--radius-md, 8px) var(--radius-md, 8px) 0 0;font:inherit;font-size:.82rem;padding:.45rem .6rem}.inspector-variable-picker-search:focus-visible{outline:2px solid rgba(245,158,11,.4);outline-offset:-2px}.inspector-variable-picker-options{display:grid;gap:.1rem;max-height:280px;overflow-y:auto;padding:.3rem}.inspector-variable-picker-option{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid transparent;border-radius:var(--radius-sm, 6px);cursor:pointer;font:inherit;padding:.32rem .45rem;text-align:left;width:100%}.inspector-variable-picker-option:hover{background:#94a3b824}.inspector-variable-picker-option.is-selected{background:#f59e0b29;border-color:#f59e0b57}.inspector-variable-picker-option:focus-visible{outline:2px solid rgba(245,158,11,.45);outline-offset:1px}.inspector-variable-picker-empty{color:var(--color-text-secondary);font-size:.82rem;margin:.4rem}.variable-inspector-usages-button{align-self:flex-end;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid rgba(148,163,184,.32);border-radius:var(--radius-pill);color:var(--color-text-secondary);cursor:pointer;font-size:.72rem;font-weight:700;margin-top:.35rem;padding:.22rem .55rem}.variable-inspector-usages-button:hover{background:#fffffff2;border-color:#64748b66;color:#334155}.variable-inspector-usages-button:focus-visible{outline:2px solid rgba(245,158,11,.45);outline-offset:1px}.notebook-variable-usages-panel{background:var(--color-surface, #fff);border:1px solid rgba(148,163,184,.32);border-radius:var(--radius-lg, 12px);box-shadow:0 18px 48px #0f172a38;display:flex;flex-direction:column;max-height:min(60vh,520px);max-width:92vw;position:fixed;width:340px;z-index:60}.notebook-variable-usages-header{align-items:flex-start;border-bottom:1px solid rgba(148,163,184,.22);cursor:grab;display:flex;gap:.5rem;justify-content:space-between;padding:.7rem .85rem}.notebook-variable-usages-header h3{margin:.15rem 0 0}.notebook-variable-usages-header .panel-subtitle{color:var(--color-text-subtle);font-size:.7rem;font-weight:700;letter-spacing:.04em;margin:0;text-transform:uppercase}.notebook-variable-usages-subtitle{color:var(--color-text-secondary);font-size:.74rem;margin:.2rem 0 0}.notebook-variable-usages-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-text-subtle);cursor:pointer;font-size:1.1rem;line-height:1;padding:.1rem .3rem}.notebook-variable-usages-close:hover{color:#334155}.notebook-variable-usages-body{overflow-y:auto;padding:.5rem}.notebook-variable-usages-list{display:grid;gap:.3rem;list-style:none;margin:0;padding:0}.notebook-variable-usages-link{align-items:baseline;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid transparent;border-radius:var(--radius-md, 8px);cursor:pointer;display:grid;gap:.15rem .5rem;grid-template-columns:auto 1fr auto;padding:.4rem .5rem;text-align:left;width:100%}.notebook-variable-usages-link:hover{background:#94a3b81f;border-color:#94a3b847}.notebook-variable-usages-link:focus-visible{outline:2px solid rgba(245,158,11,.45);outline-offset:1px}.notebook-variable-usages-type{color:var(--color-text-subtle);font-size:.66rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.notebook-variable-usages-title{color:var(--color-text);font-weight:600}.notebook-variable-usages-count{color:var(--color-text-subtle);font-size:.72rem;white-space:nowrap}.notebook-variable-usages-empty{color:var(--color-text-secondary);margin:.4rem}.is-nav-flash{animation:sfcr-nav-flash 1.4s ease-out}@keyframes sfcr-nav-flash{0%{background-color:#f59e0b59}to{background-color:transparent}}.inspector-section{border-top:1px solid rgba(148,163,184,.2);display:grid;gap:.35rem;padding-top:.5rem}.inspector-section p{color:#334155;margin:0}.inspector-facts{display:grid;gap:.35rem;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));margin:0}.inspector-facts dt{color:var(--color-text-subtle);font-size:.71rem;font-weight:700;letter-spacing:.04em;margin-bottom:.08rem;text-transform:uppercase}.inspector-facts dd{color:var(--color-text-strong);font-family:IBM Plex Mono,SFMono-Regular,monospace;margin:0}.inspector-equation{background:#f8fafcf5;border:1px solid rgba(148,163,184,.26);border-radius:12px;color:var(--color-text-strong);display:block;font:.84rem/1.35 IBM Plex Mono,SFMono-Regular,monospace;padding:.45rem .55rem;white-space:break-spaces}.inspector-equation .inspector-equation-lhs{display:inline;vertical-align:baseline}.inspector-equation.is-editable{cursor:pointer}.inspector-equation-editor{display:grid;gap:.35rem}.inspector-equation-editor-lhs{color:var(--color-text-strong);font:.84rem/1.35 IBM Plex Mono,SFMono-Regular,monospace}.inspector-equation-formula-input{width:100%}.inspector-equation-editor-actions{display:flex;gap:.4rem}.inspector-generated-explanation{background:#fff8dc73;border:1px solid rgba(245,158,11,.24);border-radius:12px;cursor:pointer;padding:.42rem .52rem}.inspector-generated-explanation-preview{color:var(--color-text-secondary);font-size:.88rem;line-height:1.45;max-height:2.9em;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 1.305em,rgba(0,0,0,.35) 1.9575em,transparent 2.9em);mask-image:linear-gradient(to bottom,#000 0%,#000 1.305em,rgba(0,0,0,.35) 1.9575em,transparent 2.9em)}.inspector-generated-explanation-more{background:linear-gradient(to right,transparent,rgba(255,248,220,1) 1.2em);bottom:0;color:var(--color-text-subtle);padding-left:2.5em;position:absolute;right:0}.inspector-generated-explanation p{color:var(--color-text-secondary);font-size:.88rem;line-height:1.45;margin:0}.inspector-related-equation-list{display:grid;gap:.35rem}.inspector-related-equation{border:1px solid rgba(148,163,184,.2);border-radius:12px;display:grid;gap:.22rem;padding:.38rem .48rem}.inspector-related-equation.trace-root{background:#dbeafec7}.inspector-related-equation.trace-input{background:#dcfce7b3}.inspector-related-equation.trace-output{background:#fef9c3d1}.inspector-related-equation.trace-both{background:#ffedd5d1}.inspector-related-equation-meta{align-items:center;display:flex;gap:.35rem;justify-content:flex-start}.inspector-related-equation-title{align-items:baseline;display:inline-flex;flex-wrap:wrap;gap:.22rem;text-align:left}.inspector-related-equation-title-name{font-weight:700}.inspector-related-equation-title-description,.inspector-related-equation-title-role{color:var(--color-text-secondary);font-size:.79rem}.inspector-related-equation-title-separator{color:#4755698c}.inspector-chip-group{display:grid;align-content:start;gap:.24rem;min-width:0}.inspector-chip-grid{display:grid;gap:.45rem;grid-template-columns:repeat(2,minmax(0,1fr))}.inspector-chip-label{color:var(--color-text-secondary);font-size:.73rem;font-weight:700}.inspector-chip-list{display:flex;flex-wrap:wrap;gap:.24rem}.inspector-chip{background:#dbeafeb8;border:1px solid rgba(96,165,250,.28);border-radius:var(--radius-pill);color:var(--color-link-active);cursor:pointer;font:inherit;font-size:.75rem;font-weight:700;padding:.18rem .4rem}.inspector-empty-note{color:var(--color-text-subtle);font-size:.8rem}.stability-classification-pill.is-stable{background:#16a34a24;color:#166534}.stability-classification-pill.is-marginal{background:#d9770629;color:#92400e}.stability-classification-pill.is-unstable{background:#dc262624;color:#991b1b}.stability-inspector-heading{align-items:center;display:flex;gap:.5rem;justify-content:space-between}.stability-inspector-heading h3{margin:0}.stability-clear-button{background:transparent;border:none;color:var(--color-text-subtle);cursor:pointer;font-size:.78rem;padding:0;text-decoration:underline}.stability-clear-button:hover{color:var(--color-text-strong)}.stability-inspector-heading-actions{align-items:center;display:flex;flex-shrink:0;gap:.65rem}.stability-raw-data-link{align-items:center;background:transparent;border:none;color:var(--color-text-subtle);cursor:pointer;display:inline-flex;font-size:.78rem;gap:.2rem;line-height:1.2;padding:0;text-decoration:underline;white-space:nowrap}.stability-raw-data-link:hover:not(:disabled){color:var(--color-text-strong)}.stability-raw-data-link:disabled{cursor:not-allowed;opacity:.55;text-decoration:none}.stability-raw-data-link-icon{font-size:.85rem;line-height:1;text-decoration:none}.stability-inspector-actions-primary{align-items:center;display:inline-flex;flex-shrink:0;gap:.55rem}.stability-inspector-actions{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:.5rem .75rem;margin-top:.5rem}.stability-inspector-actions-hint{color:var(--color-text-subtle);flex:1;font-size:.78rem;line-height:1.35;min-width:10rem}.stability-analyze-button{flex-shrink:0}.stability-inspector-section{border-bottom:1px solid rgba(148,163,184,.22);margin-bottom:.75rem;padding-bottom:.75rem}.stability-inspector-model-label{color:var(--color-text-subtle);font-size:.82rem;margin:0 0 .5rem}.stability-inspector-facts{margin-top:0}.stability-classification-pill{border-radius:var(--radius-pill);display:inline-block;font-size:.78rem;font-weight:700;padding:.12rem .45rem}.stability-inspector-warning{color:#92400e;font-size:.82rem;margin:.5rem 0 0}.stability-inspector-subheading{color:#334155;font-size:.8rem;font-weight:700;margin:.75rem 0 .35rem}.stability-participation-list,.stability-eigenvalue-list{display:grid;gap:.3rem;list-style:none;margin:0;padding:0}.stability-participation-list li,.stability-eigenvalue-list li{align-items:baseline;display:flex;font-size:.82rem;gap:.5rem;justify-content:space-between}.stability-participation-variable{color:var(--color-text-strong);font-weight:600}.stability-participation-weight,.stability-eigenvalue-abs{color:var(--color-text-subtle);font-variant-numeric:tabular-nums}.stability-mode-block{border-top:1px solid var(--color-border-grid);margin-top:.65rem;padding-top:.55rem}.stability-mode-block:first-of-type{border-top:none;margin-top:.35rem;padding-top:0}.block-convergence-variable-list{display:flex;flex-wrap:wrap;gap:.25rem .4rem;margin-top:.2rem}.block-convergence-variable-button{font-size:.82rem;font-weight:600;padding:0}.solver-block-dag-panel__body{display:grid;gap:.75rem;max-height:min(70vh,calc(100vh - 8rem));overflow:auto;padding:.75rem 1rem 1rem}.solver-block-dag-legend{color:var(--color-text-secondary);display:grid;font-size:.78rem;gap:.28rem;list-style:none;margin:0;padding:0}.solver-block-dag-legend li{align-items:flex-start;display:flex;gap:.45rem}.solver-block-dag-legend__swatch{border-radius:999px;flex:0 0 .65rem;height:.65rem;margin-top:.28rem;width:.65rem}.solver-block-dag-canvas{border:1px solid var(--color-border-grid);border-radius:var(--radius-sm);min-height:280px;overflow:hidden}.solver-block-dag-node{align-items:center;background:#fff;border:2px solid rgba(148,163,184,.45);border-radius:var(--radius-sm);box-shadow:0 1px 2px #0f172a14;display:flex;gap:.35rem;justify-content:center;min-height:2.75rem;min-width:6.5rem;padding:.35rem .55rem;position:relative}.solver-block-dag-node.is-cyclic{border-style:dashed}.solver-block-dag-node__label{color:var(--color-text-strong);font-size:.82rem;font-weight:650}.solver-block-dag-node__block{border-radius:999px;color:#fff;flex:0 0 auto;font-size:.62rem;font-weight:700;line-height:1;min-width:1rem;padding:.12rem .28rem;text-align:center}.solver-block-dag-edge.is-intra-block{stroke:#64748b}.stability-eigenpair-relative{color:var(--color-text-subtle);font-size:.78rem}.stability-eigenpair-quality.is-reliable{color:#166534;font-weight:600}.stability-eigenpair-quality.is-unreliable{color:#92400e;font-weight:600}.stability-participation-caption{color:var(--color-text-subtle);font-size:.78rem;margin:.35rem 0 .25rem}.stability-inspector-note{color:var(--color-text-subtle);font-size:.78rem;margin:.25rem 0 .5rem}.stability-graph-view-toggle{display:inline-flex;gap:.35rem;margin-bottom:.5rem}.stability-graph-view-button{background:#f8fafc;border:1px solid rgba(148,163,184,.45);border-radius:var(--radius-pill);color:#334155;cursor:pointer;font-size:.76rem;font-weight:600;padding:.18rem .55rem}.stability-graph-view-button.is-active{background:var(--color-grid-header-bg);border-color:#33415559;color:var(--color-text-strong)}.stability-inspector-table{border-collapse:collapse;font-size:.8rem;margin-top:.25rem;width:100%}.stability-inspector-table th,.stability-inspector-table td{border-bottom:1px solid var(--color-border-grid);padding:.28rem .35rem;text-align:left;vertical-align:top}.stability-inspector-table th{color:var(--color-text-subtle);font-size:.74rem;font-weight:700}.stability-inspector-table td{color:var(--color-text-strong);font-variant-numeric:tabular-nums}.stability-inspector-note-row{align-items:baseline;display:flex;flex-wrap:wrap;gap:.5rem .75rem;margin-top:.35rem}.stability-show-all-button{background:none;border:none;color:var(--color-link-active);cursor:pointer;font-size:.78rem;font-weight:600;padding:0;text-decoration:underline}.stability-show-all-button:hover{color:#1e3a8a}.stability-variable-effect-section{margin-top:.65rem}.stability-variable-effect-section:first-of-type{margin-top:.35rem}.stability-variable-effect-caption{color:var(--color-text-secondary);font-size:.78rem;font-weight:700;margin:0 0 .35rem}.stability-inspector-debug-actions{margin:.5rem 0 .65rem}.stability-raw-floating-panel{background:#fff;border:1px solid rgba(148,163,184,.4);border-radius:.65rem;box-shadow:0 12px 40px #0f172a38;display:flex;flex-direction:column;max-height:min(85vh,calc(100vh - 5rem));max-width:min(960px,calc(100vw - 2rem));pointer-events:auto;position:fixed;width:min(960px,calc(100vw - 2rem));z-index:1200}.stability-raw-dialog-header-draggable{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.stability-raw-dialog-header-draggable:active{cursor:grabbing}.stability-raw-dialog-scrubber-slot{font-size:.82rem;line-height:1.35;margin-top:.35rem;min-height:1.35em;padding:0 1rem}.stability-raw-dialog-scrubber-slot p{margin:0}.stability-raw-dialog-scrubber-slot-placeholder{color:transparent;font-weight:600;-webkit-user-select:none;user-select:none;visibility:hidden}.stability-raw-dialog-scrubber-slot .stability-raw-dialog-status,.stability-raw-dialog-scrubber-slot .stability-raw-dialog-warning{margin-top:0;padding:0}.stability-raw-dialog-status{color:var(--color-link-active);font-size:inherit;font-weight:600;margin:0;padding:0 1rem}.stability-raw-dialog-header{align-items:flex-start;border-bottom:1px solid rgba(148,163,184,.2);display:flex;gap:.75rem;justify-content:space-between;padding:1rem 1rem .75rem}.stability-raw-dialog-header h3{font-size:1rem;margin:0}.stability-raw-dialog-subtitle{color:var(--color-text-subtle);font-size:.82rem;margin:.2rem 0 0}.stability-raw-dialog-close{background:transparent;border:none;color:var(--color-text-subtle);cursor:pointer;font-size:1.35rem;line-height:1;padding:0 .25rem}.stability-raw-dialog-close:hover{color:var(--color-text-strong)}.stability-raw-dialog-note,.stability-raw-dialog-warning{font-size:.82rem;margin:0;padding:0 1rem}.stability-raw-dialog-note{color:var(--color-text-subtle)}.stability-raw-dialog-warning{color:#92400e;margin-top:.35rem}.stability-raw-dialog-toolbar{border-bottom:1px solid var(--color-border-grid);display:flex;flex-direction:column;gap:.65rem;padding:.75rem 1rem}.stability-raw-dialog-tabs{display:flex;flex-wrap:wrap;gap:.35rem}.stability-raw-dialog-tab{background:#f8fafc;border:1px solid rgba(148,163,184,.45);border-radius:var(--radius-pill);color:#334155;cursor:pointer;font-size:.76rem;font-weight:600;padding:.2rem .6rem}.stability-raw-dialog-tab.is-active{background:var(--color-grid-header-bg);border-color:#33415559;color:var(--color-text-strong)}.stability-raw-dialog-copy-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}.stability-raw-shock-select{display:flex;flex-wrap:wrap;gap:.35rem;margin:.5rem 0 .65rem}.stability-raw-dialog-tab:disabled{cursor:not-allowed;opacity:.45}.stability-raw-dialog-copy-status{color:#166534;font-size:.78rem;font-weight:600}.stability-raw-dialog-body{flex:1;min-height:0;overflow:auto;padding:.75rem 1rem 1rem}.stability-raw-dialog-footer{border-top:1px solid var(--color-border-grid);display:flex;justify-content:flex-end;padding:.75rem 1rem}.stability-raw-panel-title{align-items:baseline;color:#334155;display:flex;flex-wrap:wrap;font-size:.84rem;font-weight:700;gap:.5rem;margin:0 0 .5rem}.stability-raw-eigenvalue-inline{color:var(--color-text-subtle);font-size:.78rem;font-weight:600}.stability-raw-table-scroll{max-width:100%;overflow:auto}.stability-raw-matrix-table{width:max-content}.stability-raw-matrix-table .stability-raw-corner-cell,.stability-raw-matrix-table .stability-raw-row-header{left:0;position:sticky;z-index:1}.stability-raw-matrix-table .stability-raw-corner-cell,.stability-raw-matrix-table .stability-raw-row-header{background:#fff}.stability-raw-matrix-table .stability-raw-column-header{max-width:8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stability-raw-eigenmodes{display:grid;gap:1rem}.stability-raw-eigenmode-section{border-top:1px solid var(--color-border-grid);padding-top:.75rem}.stability-raw-eigenmode-section:first-child{border-top:none;padding-top:0}.scenario-source-editor{display:grid;gap:.75rem}.scenario-source-editor-invalid,.scenario-source-empty{background:#f8fafceb;border:1px solid rgba(148,163,184,.26);border-radius:8px;color:var(--color-text-subtle);font-size:.84rem;padding:.65rem .75rem}.scenario-source-meta-grid{align-items:end;display:grid;gap:.55rem;grid-template-columns:minmax(6.5rem,.7fr) minmax(9rem,1.35fr) repeat(2,minmax(6rem,.75fr))}.scenario-source-field{display:grid;gap:.22rem;min-width:0}.scenario-source-field>span{color:var(--color-text-subtle);font-size:.7rem;font-weight:700;text-transform:uppercase}.scenario-pill-input{background:#f8fafcf5;border:1px solid var(--color-border-subtle);border-radius:var(--radius-pill);box-sizing:border-box;color:#334155;font:inherit;height:2.05rem;line-height:1.2;min-width:0;padding:0 .72rem;width:100%}.scenario-pill-input:focus{border-color:#3b82f685;box-shadow:0 0 0 3px #3b82f624;outline:none}.scenario-pill-input-mono,.scenario-pill-input-number{font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.82rem}.scenario-source-actions{display:flex;justify-content:flex-start}.scenario-source-exogenize{align-items:center;display:flex;gap:.4rem;min-width:0}.scenario-source-exogenize>input{flex:1 1 auto}.scenario-source-exogenize>.secondary-button{flex:0 0 auto}.scenario-source-exogenize-table{display:flex;flex-direction:column;gap:.4rem;min-width:0;width:100%}.scenario-source-exogenize-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:.2rem}.scenario-source-exogenize-grid{border-collapse:separate;border-spacing:.3rem .25rem}.scenario-source-exogenize-grid th[scope=row]{background:var(--color-surface, #fff);color:var(--color-text-subtle);font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.72rem;font-weight:700;left:0;padding-right:.45rem;position:sticky;text-align:right;white-space:nowrap;z-index:1}.scenario-source-exogenize-grid td{padding:0}.scenario-source-exogenize-cell{text-align:center;width:6rem}.scenario-source-exogenize-add{text-align:left}.scenario-source-exogenize-grid-remove-row th,.scenario-source-exogenize-grid-remove-row td{height:1.1rem;text-align:center}.scenario-source-exogenize-remove{background:transparent;border:none;border-radius:var(--radius-pill);color:var(--color-text-subtle);cursor:pointer;font-size:.9rem;line-height:1;padding:0 .25rem}.scenario-source-exogenize-remove:hover{color:#dc2626}.scenario-source-editor .secondary-button,.scenario-source-remove{align-items:center;box-sizing:border-box;display:inline-flex;height:2.05rem;justify-content:center;line-height:1.1;white-space:nowrap}.scenario-source-editor .secondary-button{border-radius:var(--radius-pill);font-size:.78rem;padding:0 .78rem}.scenario-source-shocks{display:grid;gap:.6rem}.scenario-source-shock{background:#f8fafcd6;border:1px solid rgba(148,163,184,.24);border-radius:8px;display:grid;gap:.5rem;padding:.65rem}.scenario-source-shock-header{align-items:center;display:grid;gap:.55rem;grid-template-columns:minmax(5.75rem,max-content) minmax(9rem,1fr) minmax(5.25rem,max-content)}.scenario-source-shock-header>span{color:#334155;font-size:.84rem;font-weight:700}.scenario-source-range{align-items:center;display:inline-grid;gap:.35rem;grid-template-columns:auto minmax(4.75rem,6rem) auto auto minmax(4.75rem,6rem);justify-content:start;min-width:0}.scenario-source-range>span{color:var(--color-text-subtle);font-size:.78rem;font-weight:700}.scenario-source-variable-table{display:grid;gap:.4rem}.scenario-source-variable-row{align-items:center;display:grid;gap:.45rem;grid-template-columns:minmax(7rem,.9fr) minmax(6.5rem,.58fr) minmax(8rem,1fr) minmax(5.25rem,max-content);min-width:0}.scenario-source-value-input{min-width:7rem}.scenario-source-remove{background:#fef2f2bd;border:1px solid rgba(248,113,113,.2);border-radius:var(--radius-pill);color:var(--color-text-subtle);cursor:pointer;font:inherit;font-size:.78rem;padding:0 .7rem}.scenario-source-remove:hover{background:#fee2e2eb;border-color:#ef44444d;color:#b91c1c}.scenario-source-add-variable{justify-self:start}.flow-graph-shell.sequence-canvas-shell{box-sizing:border-box;max-width:100%;overflow:hidden;padding:.35rem;width:100%}.flow-graph-shell .flow-graph-viewport{height:100%;position:relative;width:100%}.flow-graph-shell .react-flow{background:transparent}.transaction-flow-svg-overlay{pointer-events:none}.transaction-flow-edge__path{pointer-events:stroke}.flow-graph-shell .react-flow__pane,.flow-graph-shell .react-flow__viewport{cursor:grab}.flow-graph-shell .react-flow__pane:active{cursor:grabbing}.flow-graph-shell .react-flow__edge-labels{z-index:6}.flow-graph-shell .react-flow__node.is-reorderable .matrix-multiport{cursor:grab}.flow-graph-shell .react-flow__node.is-reorderable .matrix-multiport__drag-handle{cursor:grab;touch-action:none}.flow-graph-shell .react-flow__node.is-reorderable.dragging .matrix-multiport,.flow-graph-shell .react-flow__node.is-reorderable .matrix-multiport__drag-handle:active,.flow-graph-shell .react-flow__node.is-reorderable.dragging .matrix-multiport__drag-handle{cursor:grabbing}.flow-graph-shell .react-flow__node.is-reorderable .matrix-multiport__drag-handle:hover .matrix-multiport__drag-grip,.flow-graph-shell .react-flow__node.is-reorderable.dragging .matrix-multiport__drag-grip{opacity:1}.sequence-viewer{display:grid;gap:.85rem}.sequence-toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between}.sequence-toolbar-meta,.sequence-toolbar-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.55rem}.sequence-toolbar-checkbox{align-items:center;display:inline-flex;gap:.35rem;font-size:.9rem;-webkit-user-select:none;user-select:none}.sequence-toolbar-checkbox input{accent-color:var(--color-text-strong)}.sequence-toolbar-meta span{background:#ffffffe0;border:1px solid var(--color-border-subtle);border-radius:var(--radius-pill);color:#334155;font-size:.84rem;padding:.3rem .65rem}.sequence-canvas-shell{background:radial-gradient(circle at top left,rgba(253,224,71,.18),transparent 26%),linear-gradient(180deg,var(--color-surface-elevated),rgba(241,245,249,.94));border:1px solid var(--color-border-subtle);border-radius:18px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;padding:.75rem}.sequence-canvas{display:block;height:auto;margin:0 auto;max-width:none}.notebook-shell{grid-template-rows:minmax(0,1fr)}.notebook-oversize-scroll{max-width:100%;overflow:auto;overscroll-behavior:contain}.notebook-header{grid-template-columns:1fr}.notebook-source-button-row{display:flex;flex-wrap:wrap;gap:.45rem;grid-template-columns:none}.notebook-source-textarea{background:transparent;border:1px solid transparent;border-radius:0 14px 14px 0;box-sizing:border-box;color:transparent;caret-color:var(--color-text);letter-spacing:normal;max-height:640px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:.6rem .78rem;position:relative;resize:none;scrollbar-gutter:stable;-moz-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word;z-index:1}.notebook-source-textarea:focus{border-color:transparent;box-shadow:none}.notebook-source-textarea::selection{background:#f59e0b38}.notebook-model-editor-body .equation-grid-shell{overflow-x:auto}.notebook-outline .panel-header,.notebook-sidebar-panel .panel-header{margin-bottom:.25rem}.notebook-outline .panel-subtitle{font-size:.8rem;line-height:1.15}.notebook-rail-header{display:grid;gap:.4rem;min-width:0;width:100%}.notebook-rail-sticky-panel{background:#f8fafcfa;border-bottom:1px solid var(--color-border-grid);display:grid;gap:.55rem;margin-bottom:.1rem;min-width:0;padding-bottom:.6rem;position:sticky;top:0;z-index:12}.notebook-rail-template-picker{display:grid;gap:.28rem;min-width:0}.notebook-rail-template-label{color:var(--color-text-subtle);font-size:.72rem;font-weight:700;line-height:1.1}.notebook-rail-template-picker select{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-sm);box-sizing:border-box;color:#334155;font:inherit;margin:0;min-height:2rem;padding:.3rem .75rem;width:100%}.notebook-rail-template-picker select:hover,.notebook-rail-template-picker select:focus{border-color:#64748b66}.notebook-rail-template-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.35rem}.notebook-rail-template-actions .notebook-run-button{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;line-height:1.1;min-height:1.55rem;text-decoration:none}.notebook-variant-manager-dialog{background:#fff;border:1px solid rgba(148,163,184,.35);border-radius:var(--radius-md);box-shadow:0 18px 48px #0f172a2e;display:grid;gap:.85rem;max-height:min(84vh,720px);max-width:min(92vw,560px);overflow:auto;padding:1rem 1.1rem 1.1rem;width:100%}.notebook-variant-manager-header{align-items:center;display:flex;gap:.75rem;justify-content:space-between}.notebook-variant-manager-header h3{margin:0}.notebook-variant-manager-intro{color:var(--color-text-secondary);font-size:.9rem;line-height:1.45;margin:0}.notebook-variant-manager-section{display:grid;gap:.75rem}.notebook-variant-manager-empty{color:var(--color-text-subtle);margin:0}.notebook-variant-manager-group h4{font-size:.82rem;letter-spacing:.02em;margin:0 0 .35rem;text-transform:uppercase}.notebook-variant-manager-list{display:grid;gap:.35rem;list-style:none;margin:0;padding:0}.notebook-variant-manager-item{align-items:center;border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-sm);display:grid;gap:.2rem .5rem;grid-template-columns:minmax(0,1fr) auto;padding:.45rem .55rem}.notebook-variant-manager-item.is-active{border-color:#3b82f673;background:#eff6ffb3}.notebook-variant-manager-item-title{font-weight:600}.notebook-variant-manager-item-id{color:var(--color-text-subtle);font-size:.75rem;grid-column:1}.notebook-variant-manager-item-actions{display:flex;flex-wrap:wrap;gap:.25rem;grid-column:2;grid-row:1 / span 2}.notebook-variant-manager-form{border-top:1px solid rgba(148,163,184,.2);display:grid;gap:.45rem;padding-top:.65rem}.notebook-variant-manager-form h4{font-size:.9rem;margin:0}.notebook-variant-manager-form-row{align-items:end;display:flex;flex-wrap:wrap;gap:.5rem}.notebook-variant-manager-form-row label{display:grid;font-size:.78rem;gap:.2rem;min-width:8rem}.notebook-variant-manager-form-row input,.notebook-variant-manager-form-row select{font:inherit;min-height:2rem;padding:.25rem .5rem}.notebook-outline-list li+li{border-top:1px solid rgba(148,163,184,.16)}.notebook-outline-list button:hover{background:#e2e8f080}.notebook-cell .hero-stat{background:transparent;border:0;border-right:1px solid rgba(148,163,184,.26);border-radius:0;padding:.8rem .9rem}.notebook-cell .hero-stat:last-child{border-right:0}.notebook-cell .hero-stat strong{font-size:1.25rem}.notebook-cell .result-panel,.notebook-cell .editor-panel,.notebook-cell table{margin-top:0}.notebook-cell .result-panel{padding:.8rem .9rem}.notebook-cell .result-panel h2{font-size:.98rem;margin:0 0 .25rem}.notebook-cell table{background:#ffffffe0}.notebook-cell .result-panel th,.notebook-cell .result-panel td{padding:.36rem .38rem}.notebook-cell .result-panel thead th{font-size:.84rem;line-height:1.15}.notebook-cell .result-panel tbody td{line-height:1.2}.notebook-layout{--panel-left-width: 62%;display:grid;gap:.65rem;grid-template-columns:minmax(0,var(--panel-left-width)) 8px minmax(0,1fr);align-items:stretch;height:100%;min-height:0}.notebook-main-column{display:block;padding-right:.1rem}.notebook-main-column>*+*{margin-top:.15rem}.notebook-top-tray{position:relative}.notebook-top-tray.has-period-scrubber,.notebook-top-tray.has-commands-toggle{position:sticky;top:0;z-index:20}.notebook-commands-toggle-row{display:flex;justify-content:flex-end;padding:.2rem .55rem .15rem}.notebook-app-bar{-webkit-backdrop-filter:none;backdrop-filter:none;background:#ffffffc7;border:1px solid var(--color-border-grid);box-shadow:none;position:static}.notebook-app-bar-main{align-items:center;display:flex;gap:.45rem;justify-content:space-between}.notebook-app-bar-brand{display:grid;gap:.08rem}.notebook-app-bar-meta{align-items:center;display:flex;flex-wrap:wrap;gap:.4rem;min-width:0}.notebook-build-badge{background:#0f766e14;border:1px solid rgba(15,118,110,.18);border-radius:var(--radius-pill);color:#0f766e;display:inline-flex;font-size:.64rem;font-weight:700;line-height:1;padding:.14rem .36rem;white-space:nowrap}.notebook-app-bar-brand strong{font-size:.96rem;font-weight:600}.notebook-app-bar-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.32rem;justify-content:flex-end}.notebook-app-bar-actions button,.notebook-app-bar-actions a{align-items:center;background:#ffffffb8;border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-pill);box-shadow:none;color:#334155;display:inline-flex;font-size:.84rem;justify-content:center;line-height:1;min-height:1.9rem;padding:.22rem .58rem;text-decoration:none;white-space:nowrap;transition:transform .14s ease,border-color .14s ease,background-color .14s ease}.notebook-app-bar-actions button:hover,.notebook-app-bar-actions a:hover{background:var(--color-surface);border-color:#94a3b857;transform:none}.notebook-app-bar-actions .notebook-action-desktop{align-items:center;background:#ffffffb8;display:inline-flex;min-height:1.9rem}.notebook-app-bar-actions .notebook-action-desktop select{background:transparent;border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-pill);box-sizing:border-box;color:#334155;font:inherit;height:1.9rem;line-height:1;margin:0;padding:0 1.9rem 0 .72rem}.notebook-app-bar-actions .notebook-run-button{background:linear-gradient(180deg,#f8fafc,var(--color-grid-header-bg));border:1px solid rgba(100,116,139,.28);box-shadow:0 1px 2px #0f172a0f;color:#1e293b;font-size:.72rem;font-weight:600;line-height:1.1;min-height:1.9rem;padding:.2rem .5rem}.notebook-app-bar-actions .notebook-run-button:hover{background:linear-gradient(180deg,#fff,#e5edf7);border-color:#47556957;box-shadow:0 3px 8px #0f172a14;transform:translateY(-1px)}.notebook-data-panel{gap:.45rem}.notebook-data-panel.is-collapsed{display:none}.notebook-utility-topline{align-items:center;display:grid;gap:.45rem;grid-template-columns:auto minmax(0,1fr)}.notebook-utility-title{color:#334155;font-size:.86rem;font-weight:700;white-space:nowrap}.notebook-utility-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.notebook-utility-actions .mode-switch{margin:0;gap:.4rem}.notebook-utility-actions .mode-switch-link{background:linear-gradient(180deg,var(--color-surface-elevated),rgba(241,245,249,.96));border-color:#94a3b852;box-shadow:0 1px 2px #0f172a0f;font-size:.88rem;padding:.28rem .68rem}.notebook-utility-actions .mode-switch-link.is-active{background:linear-gradient(180deg,var(--color-text),#1f335f);box-shadow:0 8px 18px #14213d2e}.notebook-utility-button{background:linear-gradient(180deg,#fff,#edf2f7);border:1px solid rgba(148,163,184,.32);border-radius:var(--radius-pill);box-shadow:0 1px 2px #0f172a0f;color:var(--color-text);cursor:pointer;font:inherit;font-weight:600;font-size:.88rem;min-height:2rem;padding:.28rem .72rem;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background-color .14s ease}.notebook-utility-button:hover{border-color:#8d5b1647;box-shadow:0 8px 16px #0f172a14;transform:translateY(-1px)}.notebook-utility-button-muted{background:linear-gradient(180deg,#f8fafcfa,#f1f5f9f5);color:var(--color-text-secondary)}.notebook-file-input{cursor:pointer;top:0;right:0;bottom:0;left:0;opacity:0;position:absolute}.notebook-file-input-hidden{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.notebook-file-picker{align-items:center;background:linear-gradient(180deg,var(--color-surface-elevated),rgba(248,250,252,.96));border:1px solid rgba(148,163,184,.32);border-radius:var(--radius-pill);box-shadow:inset 0 1px #ffffffd9;color:var(--color-text-secondary);display:inline-flex;gap:.38rem;min-width:0;padding:.14rem .18rem;position:relative}.notebook-file-input-trigger{min-height:1.82rem;pointer-events:none}.notebook-file-name{color:var(--color-text-subtle);font-size:.82rem;max-width:9.5rem;overflow:hidden;padding-right:.38rem;text-overflow:ellipsis;white-space:nowrap}.notebook-utility-textarea{margin-top:.3rem;min-height:96px}.notebook-import-preview-actions,.notebook-import-draft-actions{display:grid;gap:.4rem;margin-top:.4rem}.notebook-scrubber-slot{min-width:0;position:relative}.notebook-scrubber-slot .period-scrubber{position:static;top:auto}.notebook-scrubber-slot .period-scrubber-bar{padding-right:6.2rem}.notebook-pinned-cell-panel{--notebook-sticky-surface-top: 0px;background:#fff;border:1px solid rgba(148,163,184,.4);border-radius:.65rem;box-shadow:0 12px 40px #0f172a38;display:flex;flex-direction:column;min-height:200px;min-width:320px;pointer-events:auto;position:fixed;z-index:1190}.notebook-pinned-cell-panel-header{align-items:flex-start;border-bottom:1px solid rgba(148,163,184,.2);display:flex;gap:.75rem;justify-content:space-between;padding:.85rem .95rem .75rem}.notebook-pinned-cell-panel-header-draggable{cursor:grab;flex:1;min-width:0;touch-action:none;-webkit-user-select:none;user-select:none}.notebook-pinned-cell-panel-header-draggable:active{cursor:grabbing}.notebook-pinned-cell-panel-header h3{margin:.1rem 0 0}.notebook-pinned-cell-panel-subtitle{color:var(--color-text-subtle);font-size:.82rem;margin:.25rem 0 0}.notebook-pinned-cell-panel-close{background:transparent;border:0;color:var(--color-text-subtle);cursor:pointer;font-size:1.35rem;line-height:1;padding:.15rem .35rem}.notebook-pinned-cell-panel-close:hover{color:var(--color-text-strong)}.notebook-pinned-cell-panel-body{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:.35rem .45rem .55rem}.notebook-pinned-cell-panel-resize-handle{background:transparent;border:0;bottom:0;cursor:nwse-resize;height:18px;padding:0;position:absolute;right:0;touch-action:none;width:18px;z-index:3}.notebook-pinned-cell-panel-resize-handle:before{background:linear-gradient(135deg,transparent 0 45%,rgba(100,116,139,.55) 45% 55%,transparent 55% 100%);border-radius:0 0 .55rem;content:"";top:4px;right:4px;bottom:4px;left:4px;position:absolute}.notebook-pinned-cell-panel-resize-handle:hover:before,.notebook-pinned-cell-panel-resize-handle:focus-visible:before{background:linear-gradient(135deg,transparent 0 45%,rgba(37,99,235,.72) 45% 55%,transparent 55% 100%)}.notebook-pinned-cell-panel-resize-handle:focus-visible{outline:none}.notebook-pinned-cell-panel-body .notebook-cell{border-top:0}.notebook-pinned-cell-panel-body .notebook-cell-toolbar{position:sticky;top:0;z-index:2}.notebook-commands-toggle{background:linear-gradient(180deg,#ffffff,var(--color-grid-header-bg));border:1px solid rgba(100,116,139,.28);border-radius:var(--radius-pill);box-shadow:0 1px 2px #0f172a14;color:#1e293b;cursor:pointer;font:inherit;font-size:.72rem;font-weight:700;line-height:1;min-height:1.75rem;padding:.18rem .55rem;transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}.notebook-scrubber-slot .notebook-commands-toggle{position:absolute;right:.55rem;top:50%;transform:translateY(-50%)}.notebook-commands-toggle:hover,.notebook-commands-toggle:focus-visible,.notebook-commands-toggle[aria-expanded=true]{background:linear-gradient(180deg,#fff,#dbeafe);border-color:#2563eb4d;box-shadow:0 3px 8px #0f172a1a}.notebook-commands-toggle[aria-expanded=true]{background:linear-gradient(180deg,#dbeafe,#bfdbfe);border-color:#2563eb7a;color:var(--color-link-active)}.notebook-commands-panel{background:#fff;border:1px solid rgba(148,163,184,.4);border-radius:.65rem;box-shadow:0 12px 40px #0f172a38;display:flex;flex-direction:column;max-width:min(42rem,calc(100vw - 1.5rem));min-width:280px;pointer-events:auto;position:fixed;z-index:1190}.notebook-commands-panel-header{align-items:flex-start;border-bottom:1px solid rgba(148,163,184,.2);display:flex;gap:.75rem;justify-content:space-between;padding:.85rem .95rem .75rem}.notebook-commands-panel-header-draggable{cursor:grab;flex:1;min-width:0;touch-action:none;-webkit-user-select:none;user-select:none}.notebook-commands-panel-header-draggable:active{cursor:grabbing}.notebook-commands-panel-header h3{margin:.1rem 0 0}.notebook-commands-panel-meta{align-items:center;display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.15rem}.notebook-commands-panel-close{background:transparent;border:0;color:var(--color-text-subtle);cursor:pointer;font-size:1.35rem;line-height:1;padding:.15rem .35rem}.notebook-commands-panel-close:hover{color:var(--color-text-strong)}.notebook-commands-panel-body{padding:.65rem .95rem .85rem}.notebook-commands-panel-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.35rem}.notebook-commands-panel-actions .notebook-run-button{align-items:center;box-sizing:border-box;display:inline-flex;font-size:.78rem;justify-content:center;line-height:1.1;min-height:1.85rem;padding:.2rem .55rem;text-decoration:none}.notebook-outline{align-content:start;order:2;display:grid;gap:.9rem;grid-auto-rows:max-content;position:relative}.notebook-rail{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}.notebook-canvas{order:1}.notebook-outline-list{display:grid;gap:.15rem;list-style:none;margin:0;padding:0 0 0 .7rem;position:relative}.notebook-outline-list li[data-level="1"]{padding-left:.75rem}.notebook-outline-list:before{background:#64748b99;content:"";top:0;right:0;bottom:0;left:0;position:absolute;top:.35rem;width:2px}.notebook-outline-list button{align-items:start;background:transparent;border:0;color:inherit;cursor:pointer;display:grid;gap:.35rem;grid-template-columns:auto 1fr;padding:.18rem .1rem .18rem .35rem;text-align:left;transition:background-color .14s ease,color .14s ease,transform .14s ease;width:100%}.notebook-outline-list li.notebook-outline-item-is-selected button{background:#fff8ebe0;border-radius:var(--radius-sm);color:var(--color-text-strong);font-weight:600}.notebook-outline-list li.notebook-outline-item-is-selected .outline-index{color:var(--color-accent)}.notebook-outline.notebook-outline-has-active-editor .notebook-outline-list li{opacity:.45;transition:opacity .14s ease,transform .14s ease}.notebook-outline.notebook-outline-has-active-editor .notebook-outline-list li.notebook-outline-item-is-active{opacity:1;transform:translate(2px)}.notebook-outline.notebook-outline-has-active-editor .notebook-outline-list li.notebook-outline-item-is-active button{color:var(--color-text-strong);font-weight:600}.notebook-outline.notebook-outline-has-active-editor .notebook-outline-list li.notebook-outline-item-is-active .outline-index{color:#2563eb}.notebook-outline-list button span:last-child{font-size:.92rem;line-height:1.25}.notebook-sidebar-panel{display:grid;gap:.7rem;min-width:0}.notebook-graph-rail-panel .result-chart{margin-top:0}.notebook-graph-rail-panel .result-panel .panel-header{margin-bottom:.45rem}.notebook-graph-rail-panel .result-chart-hover-zone .result-chart{margin-top:0}.notebook-graph-rail-panel .result-panel h2{font-size:.88rem;font-weight:600;line-height:1.25}.notebook-graph-rail-chart-stack{display:grid;gap:1rem}.notebook-graph-rail-chart .result-panel{margin-bottom:0}.notebook-graph-rail-add-chart{display:flex;justify-content:center;padding:.15rem 0 .35rem}.notebook-graph-rail-add-chart-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--radius-pill);color:#059669;cursor:pointer;display:inline-flex;height:1.55rem;justify-content:center;min-height:0;min-width:0;padding:0;transition:color .14s ease,transform .14s ease;width:1.55rem}.notebook-graph-rail-add-chart-button:hover:not(:disabled),.notebook-graph-rail-add-chart-button:focus-visible{color:#047857;outline:none;transform:translateY(-1px)}.notebook-graph-rail-add-chart-button:disabled{cursor:not-allowed;opacity:.45}.notebook-graph-rail-add-chart-button svg{display:block;height:100%;width:100%}.notebook-graph-rail-add-chart-button circle{fill:currentColor;stroke:color-mix(in srgb,currentColor 55%,var(--color-text-strong) 45%);stroke-width:1.5}.notebook-graph-rail-add-chart-button path{fill:none;stroke:#f8fafc;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.notebook-rail-tabs{display:grid;gap:.22rem;grid-template-columns:repeat(auto-fit,minmax(4.2rem,1fr))}.notebook-rail-tab{align-items:center;background:linear-gradient(180deg,var(--color-surface-elevated),rgba(241,245,249,.96));border:1px solid var(--color-border-subtle);border-radius:var(--radius-sm);color:var(--color-text);cursor:pointer;display:inline-flex;font:inherit;font-size:.78rem;font-weight:700;justify-content:center;min-height:1.4rem;padding:.12rem .36rem;text-align:center;width:100%}.notebook-rail-tab:hover{background:linear-gradient(180deg,#fff,#eef4fb);border-color:#64748b57}.notebook-rail-tab.is-active{background:linear-gradient(180deg,var(--color-text),#1f335f);border-color:#14213dcc;color:#fff}.notebook-assistant-panel,.notebook-help-panel{align-content:start;min-width:0}.notebook-help-more-chip{align-self:start;background:#fffffff5;border:1px solid rgba(148,163,184,.34);border-radius:var(--radius-pill);color:var(--color-text);cursor:pointer;flex:0 0 auto;font:inherit;font-size:.76rem;font-weight:700;padding:.22rem .54rem}.notebook-help-more-chip:hover,.notebook-help-more-chip[aria-expanded=true]{background:#dbeafeb8;border-color:#2563eb6b}.notebook-help-tour-row{display:flex;justify-content:flex-start}.notebook-help-topic-nav{display:grid;gap:.35rem}.notebook-help-topic-button{background:#f8fafcf0;border:1px solid var(--color-border-subtle);border-radius:8px;color:var(--color-text);cursor:pointer;display:grid;font:inherit;gap:.12rem;padding:.42rem .52rem;text-align:left}.notebook-help-topic-button:hover{background:#fff;border-color:#64748b61}.notebook-help-topic-button.is-active{background:#dbeafeb8;border-color:#2563eb6b}.notebook-help-topic-button span{font-size:.86rem;font-weight:700}.notebook-help-topic-button small{color:var(--color-text-subtle);font-size:.74rem;line-height:1.25}.notebook-assistant-mode-switch{background:var(--color-grid-header-bg);border:1px solid rgba(148,163,184,.65);border-radius:12px;display:grid;gap:.2rem;grid-template-columns:repeat(2,minmax(0,1fr));padding:.2rem}.notebook-assistant-mode-switch button{background:transparent;border:1px solid transparent;border-radius:9px;color:#334155;cursor:pointer;font:inherit;font-weight:700;min-height:2.35rem;padding:.45rem .75rem}.notebook-assistant-mode-switch button.is-active{background:var(--color-text);border-color:#14213dcc;color:#fff}.notebook-assistant-question-header{align-items:center;display:flex;gap:.75rem;justify-content:space-between}.notebook-assistant-mode-switch-compact{flex:0 0 auto;min-width:8.5rem}.notebook-assistant-mode-switch-compact button{border-radius:8px;font-size:.82rem;min-height:1.85rem;padding:.25rem .55rem}.notebook-assistant-patch-panel{border-top:1px solid rgba(148,163,184,.34);display:grid;gap:.45rem;padding-top:.7rem}.notebook-assistant-patch-panel summary{color:var(--color-text-secondary);cursor:pointer;font-size:.86rem;font-weight:700}.notebook-assistant-patch-panel[open] summary{margin-bottom:.25rem}.notebook-assistant-patch-preview{display:grid;gap:.35rem}.notebook-assistant-debug-panel{border-top:1px solid rgba(148,163,184,.34);display:grid;gap:.5rem;padding-top:.7rem}.notebook-assistant-debug-panel summary{color:var(--color-text-secondary);cursor:pointer;font-size:.86rem;font-weight:700}.notebook-assistant-debug-panel[open] summary{margin-bottom:.35rem}.notebook-assistant-debug-actions{display:grid;gap:.45rem}.notebook-assistant-debug-actions .button-row button{font-size:.78rem;padding:.34rem .5rem}.notebook-assistant-debug-list{display:grid;gap:.45rem;list-style:none;margin:0;max-height:24rem;overflow:auto;padding:0}.notebook-assistant-debug-event{background:#f8fafcdb;border:1px solid rgba(148,163,184,.38);border-radius:8px;display:grid;gap:.32rem;min-width:0;padding:.5rem}.notebook-assistant-debug-event-header{align-items:center;display:flex;gap:.4rem;justify-content:space-between;min-width:0}.notebook-assistant-debug-event-time,.notebook-assistant-debug-event-type{color:var(--color-text-subtle);font-size:.72rem;font-weight:700}.notebook-assistant-debug-event-type{font-family:IBM Plex Mono,SFMono-Regular,monospace;overflow-wrap:anywhere;text-align:right}.notebook-assistant-debug-event-label{color:var(--color-text);font-size:.82rem;font-weight:700;line-height:1.35}.notebook-assistant-debug-event pre{background:var(--color-text-strong);border-radius:6px;color:#dbeafe;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.72rem;line-height:1.45;margin:0;max-height:16rem;overflow:auto;padding:.55rem;white-space:pre-wrap;word-break:break-word}.notebook-assistant-inline-patch{background:#f8fafceb;border:1px solid rgba(148,163,184,.55);border-radius:8px;display:grid;gap:.5rem;margin-top:.65rem;padding:.65rem}.notebook-assistant-inline-patch-summary{color:#334155;display:grid;gap:.2rem;font-size:.88rem}.notebook-assistant-inline-patch-actions{gap:.4rem}.notebook-assistant-inline-patch-actions button{font-size:.82rem;padding:.38rem .55rem}.notebook-assistant-inline-patch-editor{display:grid;gap:.45rem}.notebook-assistant-inline-patch-json{font-family:IBM Plex Mono,SFMono-Regular,monospace;min-height:8rem}.notebook-assistant-thread{overflow:visible;padding-right:0}.notebook-canvas{background:linear-gradient(180deg,#fffffff2,#f9fafbf2);border:1px solid rgba(148,163,184,.42);border-radius:18px;box-shadow:0 18px 46px #14213d12;overflow:hidden}.notebook-canvas.notebook-has-active-editor .notebook-cell{opacity:.5;transition:opacity .14s ease,background-color .14s ease,box-shadow .14s ease,transform .14s ease}.notebook-canvas.notebook-has-active-editor .notebook-cell.notebook-cell-is-active-editor{background:var(--color-surface);box-shadow:inset 0 0 0 1px #2563eb29;opacity:1;position:relative;transform:translateY(-1px);z-index:1}.notebook-canvas.notebook-has-active-editor .notebook-cell:not(.notebook-cell-is-active-editor){filter:saturate(.72)}.notebook-cell{background:transparent;border-top:3px double rgba(148,163,184,.34);transition:background-color .14s ease,box-shadow .14s ease,transform .14s ease,filter .14s ease,opacity .14s ease;display:grid;gap:0;grid-template-columns:1fr;padding:0}.notebook-cell.notebook-cell-is-selected{background:#fffbeb99;box-shadow:inset 4px 0 #8d5b1680,inset 0 0 0 1px #8d5b161f;position:relative}.notebook-cell.notebook-cell-is-selected .notebook-cell-content{background:#fffbebad;box-shadow:inset 4px 0 #8d5b1661}.notebook-cell:first-child{border-top:0}.notebook-cell-content{display:grid;gap:.38rem;min-width:0;overflow-x:auto;padding:.4rem .45rem .45rem}.notebook-cell-content:has(.notebook-matrix),.notebook-cell-content:has(.notebook-model-view){overflow-y:visible}.notebook-chart-grid{--chart-grid-max-columns: 3;--chart-grid-min: 280px;--chart-grid-gap: .65rem;display:grid;gap:var(--chart-grid-gap);align-items:start;width:100%;min-width:0;grid-template-columns:repeat(auto-fit,minmax(max(var(--chart-grid-min),calc((100% - (var(--chart-grid-max-columns) - 1) * var(--chart-grid-gap)) / var(--chart-grid-max-columns))),1fr))}.notebook-chart-grid-item{display:grid;gap:.25rem;margin:0;min-width:0}.notebook-chart-grid-caption{color:var(--color-text-secondary);font-size:.82rem;font-weight:600}.notebook-cell-viewport-placeholder{align-content:center;background:linear-gradient(180deg,#f1f5f9eb,#f8fafcf5);border:1px dashed rgba(148,163,184,.55);border-radius:12px;color:var(--color-text-secondary);display:grid;gap:.35rem;padding:1rem 1.1rem}.notebook-cell-viewport-placeholder strong{color:#334155;font-size:.9rem}.notebook-cell-viewport-placeholder span{font-size:.82rem}.notebook-cell-deferred-body{display:grid;min-width:0}.notebook-cell-toolbar{align-items:start;display:flex;gap:.45rem;justify-content:space-between;min-height:1.3rem}.notebook-cell-heading{display:grid;gap:.14rem;min-width:0}.notebook-cell-heading h2{font-size:1rem;font-weight:700;line-height:1.3;margin:0}.notebook-cell-context-menu{background:var(--color-surface-elevated);border:1px solid rgba(148,163,184,.35);border-radius:8px;box-shadow:0 18px 42px #0f172a2e;display:grid;gap:.12rem;left:0;min-width:11rem;padding:.28rem;position:fixed;top:0;z-index:80}.notebook-cell-context-menu-separator{background:#94a3b852;height:1px;margin:.18rem .1rem}.notebook-cell-context-menu-submenu-wrap{position:relative}.notebook-cell-context-menu-submenu-wrap>button{align-items:center;display:flex;justify-content:space-between;width:100%}.notebook-cell-context-submenu{background:var(--color-surface-elevated);border:1px solid rgba(148,163,184,.35);border-radius:8px;box-shadow:0 18px 42px #0f172a2e;display:grid;gap:.12rem;left:calc(100% + .35rem);min-width:10rem;padding:.28rem;position:absolute;top:0}.notebook-cell-context-menu button{background:transparent;border:0;border-radius:6px;color:var(--color-text-strong);cursor:pointer;font:inherit;padding:.42rem .55rem;text-align:left}.notebook-cell-context-menu button:hover:not(:disabled),.notebook-cell-context-menu button:focus-visible{background:#0f172a12;outline:none}.notebook-cell-context-menu button:disabled{color:#64748ba6;cursor:not-allowed}.notebook-cell-context-menu button.is-danger{color:#b91c1c}.notebook-cell-context-menu button.is-danger:hover,.notebook-cell-context-menu button.is-danger:focus-visible{background:#dc26261a}.notebook-cell-delete-dialog-backdrop{align-items:center;background:#0f172a5c;display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;padding:1rem;position:fixed;z-index:120}.notebook-cell-delete-dialog{background:#fff;border:1px solid rgba(148,163,184,.35);border-radius:8px;box-shadow:0 24px 60px #0f172a3d;color:var(--color-text-strong);max-width:min(24rem,100%);padding:1rem}.notebook-cell-delete-dialog h3{font-size:1rem;margin:0 0 .45rem}.notebook-cell-delete-dialog p{color:var(--color-text-secondary);margin:0}.notebook-cell-delete-dialog-actions{display:flex;gap:.55rem;justify-content:flex-end;margin-top:1rem}.notebook-cell-delete-dialog-actions button.is-danger{background:#b91c1c;border:1px solid #991b1b;border-radius:6px;color:#fff;cursor:pointer;font:inherit;padding:.45rem .75rem}.notebook-cell-delete-dialog-actions button.is-danger:hover,.notebook-cell-delete-dialog-actions button.is-danger:focus-visible{background:#991b1b;outline:none}.notebook-cell-type-rule{align-items:center;display:inline-flex;gap:.28rem;min-width:auto;width:fit-content}.notebook-cell-type-rule:before{border-top:1px solid var(--color-border-subtle);content:"";flex:0 0 .7rem}.notebook-cell-type-tag{background:#f8fafce6;border:1px solid rgba(148,163,184,.2);border-radius:var(--radius-pill);color:var(--color-text-subtle);display:inline-flex;font-size:.68rem;font-weight:600;letter-spacing:.04em;line-height:1;padding:.12rem .34rem;text-transform:uppercase}.notebook-run-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.45rem}.notebook-source-toggle{align-self:start;background:#f8fafce6;border:1px solid rgba(148,163,184,.2);border-radius:var(--radius-pill);color:var(--color-text-secondary);font-size:.72rem;font-weight:500;line-height:1.1;padding:.18rem .46rem;white-space:nowrap}.notebook-source-toggle.is-active{background:linear-gradient(180deg,#dbeafefa,#bfdbfeeb);border-color:#3b82f657;box-shadow:0 1px 2px #2563eb1f;color:var(--color-link-active)}.notebook-reference-trace-toggle.is-active{background:linear-gradient(180deg,#ecfdf5fa,#d1fae5eb);border-color:#05966957;box-shadow:0 1px 2px #0596691f;color:#047857}.notebook-chart-compare-toggle.is-active{background:linear-gradient(180deg,#eff6fffa,#dbeafeeb);border-color:#2563eb57;box-shadow:0 1px 2px #2563eb1f;color:#1d4ed8}.notebook-run-button{background:linear-gradient(180deg,#f8fafc,var(--color-grid-header-bg));border:1px solid rgba(100,116,139,.28);border-radius:var(--radius-pill);box-shadow:0 1px 2px #0f172a0f;color:#1e293b;cursor:pointer;font-size:.72rem;font-weight:600;line-height:1.1;padding:.2rem .5rem;transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease}.notebook-run-button:hover:not(:disabled){background:linear-gradient(180deg,#fff,#e5edf7);border-color:#47556957;box-shadow:0 3px 8px #0f172a14;transform:translateY(-1px)}.notebook-run-button:focus-visible{outline:2px solid rgba(59,130,246,.35);outline-offset:2px}.notebook-run-button:active:not(:disabled){background:linear-gradient(180deg,var(--color-grid-header-bg),#dbe4ef);box-shadow:inset 0 1px 2px #0f172a14;transform:translateY(0)}.notebook-run-button:disabled{background:#f1f5f9f2;border-color:#94a3b833;box-shadow:none;color:var(--color-text-subtle);cursor:wait}.notebook-tour-launcher{font-weight:600}.notebook-tour-menu{display:grid;gap:.75rem;max-height:min(80vh,42rem);max-width:min(28rem,100%);overflow:hidden}.notebook-tour-menu-actions{display:flex;justify-content:flex-start}.notebook-tour-menu-steps{display:grid;gap:.35rem;list-style:none;margin:0;max-height:min(52vh,28rem);overflow:auto;padding:0}.notebook-tour-menu-step-button{align-items:center;background:#f8fafceb;border:1px solid rgba(148,163,184,.28);border-radius:6px;color:inherit;cursor:pointer;display:flex;font:inherit;gap:.55rem;padding:.45rem .55rem;text-align:left;width:100%}.notebook-tour-menu-step-button:hover,.notebook-tour-menu-step-button:focus-visible{background:#fff;border-color:#47556957;outline:none}.notebook-tour-menu-step-index{color:var(--color-text-subtle);flex:0 0 auto;font-size:.78rem;font-weight:700;min-width:1.4rem}.notebook-tour-menu-step-title{flex:1 1 auto;font-size:.88rem}.notebook-markdown-tour-button{background:linear-gradient(180deg,#0f766e,#0d9488);border:1px solid rgba(15,118,110,.45);border-radius:999px;box-shadow:0 8px 18px #0f766e33;color:#fff;cursor:pointer;font:inherit;font-size:.92rem;font-weight:700;letter-spacing:.01em;line-height:1.2;padding:.2rem 1.3rem;transition:transform .14s ease,box-shadow .14s ease,background-color .14s ease;white-space:nowrap}.notebook-markdown-tour-button:hover,.notebook-markdown-tour-button:focus-visible{background:linear-gradient(180deg,#0d9488,#14b8a6);box-shadow:0 10px 22px #0f766e42;outline:2px solid rgba(45,212,191,.45);outline-offset:2px;transform:translateY(-1px)}.notebook-markdown-tour-button:active{box-shadow:0 5px 12px #0f766e2e;transform:translateY(0)}.notebook-markdown{color:#334155;font-size:.98rem;line-height:1.65;margin:0;white-space:pre-wrap}.notebook-model-stack{display:grid;gap:.65rem}.notebook-model-summary{align-items:center;background:#f8fafce6;border:1px solid rgba(148,163,184,.32);border-radius:var(--radius-md);display:flex;flex-wrap:wrap;gap:.4rem .5rem;padding:.5rem .7rem}.notebook-model-chip{align-items:baseline;background:#ffffffdb;border:1px solid rgba(148,163,184,.2);border-radius:var(--radius-pill);color:var(--color-text-secondary);display:inline-flex;font-size:.78rem;gap:.28rem;line-height:1.2;padding:.22rem .52rem;white-space:nowrap}.notebook-model-chip strong{color:var(--color-text-strong);font-size:.8rem}.notebook-model-chip-warning{border-color:#d9770659;color:#92400e}.notebook-matrix-initial-override-warning{background:#fef3c7eb;border:1px solid rgba(217,119,6,.35);border-radius:var(--radius-md);color:#92400e;font-size:.82rem;line-height:1.35;margin:0 0 .55rem;padding:.45rem .65rem}.notebook-matrix-initial-row .matrix-entry-resolved,.notebook-matrix-initial-row .matrix-entry-value{color:var(--color-text-secondary);font-style:italic}.notebook-equation-row-editor{display:grid;gap:.35rem;max-width:100%;min-width:0}.notebook-equation-row-name-input,.notebook-equation-row-expression-input{box-sizing:border-box;max-width:100%;min-width:0;width:100%}.notebook-equation-row-editor-actions{display:flex;gap:.4rem}.notebook-confirm-dialog-summary{color:var(--color-text-subtle);font-size:.88rem}.notebook-rename-impact-list{list-style:none;margin:.45rem 0 0;max-height:12rem;overflow-y:auto;padding:0}.notebook-rename-impact-item{align-items:baseline;border-top:1px solid rgba(148,163,184,.18);display:grid;font-size:.88rem;gap:.45rem;grid-template-columns:auto minmax(0,1fr) auto;padding:.35rem 0}.notebook-rename-impact-type{background:#f8fafce6;border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-pill);color:var(--color-text-subtle);font-size:.72rem;letter-spacing:.02em;padding:.08rem .45rem;text-transform:lowercase;white-space:nowrap}.notebook-rename-impact-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notebook-rename-impact-count{color:var(--color-text-subtle);font-size:.82rem;white-space:nowrap}.notebook-confirm-dialog-actions{justify-content:flex-end}.notebook-run-summary p{margin-top:0}.notebook-run-meta{display:flex;flex-wrap:wrap;gap:.35rem .45rem;margin-bottom:.55rem}.notebook-run-meta-chip{align-items:baseline;background:#f8fafce6;border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-pill);color:var(--color-text-subtle);display:inline-flex;font-size:.75rem;gap:.28rem;line-height:1.2;padding:.18rem .48rem}.notebook-run-meta-chip strong{color:#334155;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.74rem}.notebook-run-meta-chip-button{cursor:pointer;font:inherit}.notebook-run-meta-chip-button:hover,.notebook-run-meta-chip-button:focus-visible{border-color:#1d4ed873;box-shadow:0 0 0 2px #1d4ed81f;outline:none}.notebook-inline-list{color:var(--color-text-secondary);display:grid;gap:.35rem;margin:0;padding-left:1.1rem}.notebook-run-scenarios{display:grid;gap:.55rem;list-style:none;margin:.7rem 0 0;padding-left:0}.notebook-run-shock{background:#f8fafcd6;border:1px solid rgba(148,163,184,.24);border-radius:12px;padding:.55rem .7rem}.notebook-run-shock-line{align-items:baseline;color:var(--color-text-secondary);display:flex;flex-wrap:wrap;font-size:.84rem;gap:0;line-height:1.35}.notebook-run-shock-period-label{color:#334155;font-weight:700;white-space:nowrap}.notebook-run-shock-variable{display:inline}.notebook-run-shock-variable-button{align-items:baseline;display:inline-flex;text-align:left}.notebook-run-shock-variable .variable-math-label,.scenario-shock-variable-line .variable-math-label{font-weight:600}.notebook-run-warnings{background:#fffbebeb;border:1px solid rgba(245,158,11,.28);border-radius:12px;color:#92400e;display:grid;gap:.35rem;margin-top:.7rem;padding:.55rem .7rem}.notebook-run-warning-heading{font-size:.82rem;font-weight:700}.notebook-run-warning-list{display:grid;gap:.2rem;margin:0;padding-left:1rem}.notebook-run-warning-item{line-height:1.35}.notebook-source-panel{display:grid;gap:.6rem}.notebook-editor-actions{align-items:stretch;display:flex;flex-wrap:nowrap;gap:.25rem;justify-content:stretch;overflow-x:auto;padding-bottom:.1rem}.notebook-editor-actions>*{flex:0 0 auto}.notebook-source-format-toggle{min-height:1.82rem;padding-inline:.62rem}.notebook-save-dialog-toggle{align-items:center;color:var(--color-text-subtle);display:inline-flex;font-size:.78rem;gap:.28rem;min-height:1.82rem;padding-inline:.35rem;white-space:nowrap}.notebook-save-dialog-toggle input{margin:0}.notebook-editor-textarea{min-height:36vh;resize:vertical}.notebook-code-editor-shell{display:grid;gap:.45rem;position:relative}.notebook-code-editor-toolbar{display:flex;gap:.45rem;align-items:stretch;justify-content:space-between;flex-wrap:wrap}.notebook-code-editor-status-line{display:grid;gap:.45rem;grid-template-columns:repeat(3,max-content);justify-content:end;flex:0 1 auto}.notebook-code-editor-status-badge{background:#fff;border:1px solid rgba(148,163,184,.3);border-radius:8px;display:grid;gap:.15rem;padding:.45rem .55rem;white-space:nowrap}.notebook-code-editor-status-badge span{color:var(--color-text-subtle);font-size:.7rem;font-weight:700;text-transform:uppercase}.notebook-code-editor-status-badge strong{color:#334155;font-size:.82rem;line-height:1.2;overflow-wrap:anywhere}.notebook-code-editor-status-badge.is-valid{border-color:#16a34a57}.notebook-code-editor-status-badge.is-valid strong{color:#15803d}.notebook-code-editor-status-badge.is-warning{border-color:#d9770657}.notebook-code-editor-status-badge.is-warning strong{color:#b45309}.notebook-code-editor-status-badge.is-invalid{border-color:#dc262657}.notebook-code-editor-status-badge.is-invalid strong{color:#b91c1c}.notebook-code-editor{border:1px solid rgba(148,163,184,.32);border-radius:8px;overflow:hidden}.notebook-code-editor .cm-editor{background:#fffdf7;color:#334155;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.85rem;min-height:36vh}.notebook-code-editor .cm-focused{outline:2px solid rgba(59,130,246,.28);outline-offset:-2px}.notebook-code-editor .cm-scroller{max-height:58vh;overflow-x:auto}.notebook-code-editor .cm-gutters{background:#f1f5f9eb;border-right-color:#94a3b83d;color:#94a3b8}.notebook-code-editor .cm-activeLine,.notebook-code-editor .cm-activeLineGutter{background:#e2e8f06b}.notebook-code-editor .notebook-source-selected-cell-line{background:#fff8ebd1}.notebook-code-editor .notebook-source-selected-cell-line .cm-gutterElement{color:var(--color-accent)}.notebook-code-editor .notebook-source-selected-cell-range{background:#fffbebeb;border-radius:3px}.notebook-code-editor .cm-tooltip{border-color:#94a3b857;border-radius:8px;box-shadow:0 14px 28px #0f172a24;overflow:hidden}.notebook-source-text-mirror{border:0;height:1px;inset:auto auto 0 0;opacity:0;pointer-events:none;position:absolute;resize:none;width:1px}.notebook-source-validation-panel{background:#f8fafcdb;border:1px solid rgba(148,163,184,.24);border-radius:8px;display:grid;gap:.6rem;padding:.7rem}.notebook-source-validation-grid{display:grid;gap:.45rem;grid-template-columns:repeat(3,minmax(0,1fr))}.notebook-source-validation-step{background:#fff;border:1px solid rgba(148,163,184,.3);border-radius:8px;display:grid;gap:.15rem;min-width:0;padding:.45rem .55rem}.notebook-source-validation-step span{color:var(--color-text-subtle);font-size:.7rem;font-weight:700;text-transform:uppercase}.notebook-source-validation-step strong{color:#334155;font-size:.82rem;line-height:1.2;overflow-wrap:anywhere}.notebook-source-validation-step.is-valid{border-color:#16a34a57}.notebook-source-validation-step.is-valid strong{color:#15803d}.notebook-source-validation-step.is-warning{border-color:#d9770657}.notebook-source-validation-step.is-warning strong{color:#b45309}.notebook-source-validation-step.is-invalid{border-color:#dc262657}.notebook-source-validation-step.is-invalid strong{color:#b91c1c}.notebook-source-validation-list{color:#7f1d1d;display:grid;font-size:.84rem;gap:.3rem;line-height:1.35;margin:0;padding-left:1rem}.notebook-source-editor{display:grid;gap:.85rem;margin-bottom:.35rem}.notebook-source-more-section{display:grid;gap:.4rem}.notebook-source-more-label{font-weight:700}.notebook-source-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.notebook-source-menu{position:relative}.notebook-source-menu summary{list-style:none}.notebook-source-menu summary::-webkit-details-marker{display:none}.notebook-source-menu-panel{background:var(--color-surface-elevated);border:1px solid rgba(148,163,184,.24);border-radius:12px;box-shadow:0 16px 28px #0f172a1a;display:grid;gap:.55rem;left:0;margin-top:.4rem;min-width:220px;padding:.7rem;position:absolute;top:100%;z-index:8}.notebook-source-helper{min-height:1.9rem;padding:.28rem .7rem;width:100%}.notebook-source-help{background:#f8fafce6;border:1px solid rgba(148,163,184,.24);border-radius:12px;padding:.4rem .75rem .7rem}.notebook-source-help summary{cursor:pointer;font-weight:700;list-style:none;padding:.2rem 0}.notebook-source-help summary::-webkit-details-marker{display:none}.notebook-source-help-code{color:#334155;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.85rem;line-height:1.55;margin:.55rem 0 0;overflow-x:auto;white-space:pre-wrap}.notebook-source-layout{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;border:0;margin:0;min-width:0;padding:0}.notebook-source-layout-option{align-items:center;background:#f8fafcf2;border:1px solid var(--color-border-subtle);border-radius:var(--radius-pill);cursor:pointer;display:inline-flex;gap:.38rem;min-height:1.9rem;padding:.18rem .72rem}.notebook-source-layout-option input{margin:0}.notebook-source-help-inline{flex:1 1 260px;min-width:220px}.notebook-source-help-inline[open]{width:100%}.notebook-source-codeframe{display:grid;grid-template-columns:auto minmax(0,1fr);position:relative}.notebook-source-gutter{background:#f1f5f9eb;border:1px solid rgba(148,163,184,.26);border-right:0;border-radius:var(--radius-md) 0 0 14px;color:#94a3b8;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.72rem;line-height:1.3775rem;margin:0;max-height:640px;min-width:1.6rem;overflow:hidden;padding:.6rem .22rem .6rem .28rem;text-align:right;-webkit-user-select:none;user-select:none;white-space:pre}.notebook-source-gutter code{display:block}.notebook-source-editor-pane{position:relative}.notebook-source-highlight,.notebook-source-textarea{font:.95rem/1.45 IBM Plex Mono,SFMono-Regular,monospace}.notebook-source-highlight{background:#fffdf7;border:1px solid transparent;border-radius:0 14px 14px 0;box-sizing:border-box;color:#334155;top:0;right:0;bottom:0;left:0;letter-spacing:normal;margin:0;overflow-x:hidden;overflow-y:auto;padding:.6rem .78rem;pointer-events:none;position:absolute;scrollbar-gutter:stable;-moz-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word}.notebook-source-highlight code{font:inherit;letter-spacing:inherit;-moz-tab-size:inherit;tab-size:inherit;white-space:inherit;word-break:inherit}.notebook-source-highlight .token-key{color:#0f766e}.notebook-source-highlight .token-string{color:#9a3412}.notebook-source-highlight .token-number{color:var(--color-link-active)}.notebook-source-highlight .token-boolean,.notebook-source-highlight .token-null{color:#7c3aed}.notebook-source-highlight .token-punctuation{color:var(--color-text-subtle)}.notebook-source-highlight .token-heading{color:#0f766e}.notebook-source-highlight .token-markdown{color:#9a3412}.notebook-source-validation{border:1px solid rgba(185,28,28,.18);border-radius:var(--radius-sm);color:#991b1b;font-size:.9rem;padding:.55rem .7rem;background:#fef2f2e6}.notebook-source-validation.is-valid{background:#f0fdf4e6;border-color:#16a34a2e;color:#166534}.notebook-source-validation-footer{align-items:center;display:flex;flex-wrap:wrap;gap:.65rem;justify-content:space-between}.notebook-source-validation-footer .notebook-source-validation{flex:1 1 16rem;margin:0}.notebook-source-exit-hint{background:#f8fafce0;border:1px dashed rgba(148,163,184,.34);border-radius:var(--radius-sm);color:var(--color-text-secondary);font-size:.78rem;line-height:1.35;padding:.38rem .55rem}.notebook-source-exit-hint strong{color:#1e293b}.notebook-model-editor{background:#f8fafce0;border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);padding:.25rem .65rem .75rem}.notebook-model-editor summary{cursor:pointer;font-weight:700;list-style:none;padding:.75rem 0}.notebook-model-editor summary::-webkit-details-marker{display:none}.notebook-model-editor-body{display:grid;gap:.85rem}.notebook-floating-header,.notebook-matrix-floating-column-header{pointer-events:none;position:fixed;z-index:15}.notebook-floating-header-scroll,.notebook-matrix-floating-column-header-scroll{background:#fffffff5;border:1px solid var(--color-border-subtle);border-radius:0 0 10px 10px;border-top:0;box-shadow:var(--shadow-floating);overflow:hidden;pointer-events:auto}.notebook-floating-header .notebook-matrix-table,.notebook-matrix-floating-column-header .notebook-matrix-table{border:0;border-radius:0;margin-inline:0;margin-top:0;max-width:none}.notebook-matrix-floating-column-header-scroll{width:100%}.notebook-floating-header .notebook-matrix-table thead tr>th:first-child,.notebook-matrix-floating-column-header .notebook-matrix-table thead tr>th:first-child{background:var(--color-grid-header-bg);box-shadow:2px 0 4px #0f172a0f;left:0;position:sticky;z-index:1}.notebook-floating-header thead th,.notebook-matrix-floating-column-header thead th{background:var(--color-grid-header-bg)}.notebook-godley{display:grid;gap:.85rem}.notebook-godley-grid{display:grid;gap:.85rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.notebook-godley-card{background:linear-gradient(180deg,var(--color-surface-elevated),rgba(248,250,252,.94));border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);display:grid;gap:.75rem;padding:.85rem}.notebook-godley-card-header{align-items:center;display:flex;gap:.6rem;justify-content:space-between}.notebook-godley-card-header h3{font-size:1rem;margin:0}.notebook-godley-kind{background:#e2e8f0e6;border-radius:var(--radius-pill);color:var(--color-text-secondary);font-size:.75rem;padding:.2rem .55rem}.notebook-godley-table-wrap{overflow-x:auto}.notebook-godley-table{border:1px solid rgba(148,163,184,.22);border-radius:var(--radius-sm);min-width:100%;overflow:hidden}.notebook-godley-table th,.notebook-godley-table td{border-bottom:1px solid rgba(148,163,184,.16);font-size:.88rem;padding:.45rem .5rem;vertical-align:top}.notebook-godley-table thead th{background:var(--color-grid-header-bg);color:#334155}.notebook-godley-band-row th{background:#f1f5f9f0;color:var(--color-text-secondary);font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}.notebook-godley-total-row{background:#f8fafceb;font-weight:600}.notebook-godley-role{border-radius:var(--radius-pill);font-size:.72rem;padding:.1rem .4rem}.notebook-godley-role-asset{background:#dcfce7e6;color:#166534}.notebook-godley-role-liability{background:#fee2e2e6;color:#991b1b}.notebook-godley-role-equity,.notebook-godley-role-netWorth{background:#dbeafeeb;color:var(--color-link-active)}.notebook-cell-run .notebook-cell-content,.notebook-cell-chart .notebook-cell-content,.notebook-cell-table .notebook-cell-content,.notebook-cell-godley .notebook-cell-content{background:#ffffffc2}.notebook-cell-run.notebook-cell-is-selected .notebook-cell-content,.notebook-cell-chart.notebook-cell-is-selected .notebook-cell-content,.notebook-cell-table.notebook-cell-is-selected .notebook-cell-content,.notebook-cell-godley.notebook-cell-is-selected .notebook-cell-content{background:#fff8ebd1}.notebook-cell-linked-collapsed .notebook-cell-toolbar{display:none}.notebook-cell-linked-collapsed .notebook-cell-content{padding-top:.35rem}.notebook-cell-note-footer{color:var(--color-text-subtle);font-size:.9rem;font-weight:400;line-height:1.25;min-width:0;padding:0 .45rem .45rem}.notebook-cell-note-markdown{min-width:0;overflow-wrap:anywhere}.notebook-cell-note-markdown>*{margin:0}.notebook-cell-more{padding:0 .45rem .45rem}.notebook-cell-more-panel{margin-top:.5rem;padding:.6rem .85rem;border-left:3px solid var(--color-border, #d4d4d8);background:var(--color-surface-subtle, rgba(127, 127, 127, .08));border-radius:0 6px 6px 0;min-width:0;overflow-wrap:anywhere}.notebook-cell-more-panel img{max-width:100%;height:auto}.notebook-cell-more-row{display:flex;justify-content:flex-end;margin-top:.4rem}.notebook-cell-more-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;padding:0;font:inherit;font-size:.85rem;font-weight:500;color:var(--color-accent, #2563eb);cursor:pointer}.notebook-cell-more-toggle:before{content:"["}.notebook-cell-more-toggle:after{content:"]"}.notebook-cell-more-toggle:hover{text-decoration:underline}.notebook-cell-more-toggle:focus-visible{outline:2px solid var(--color-accent, #2563eb);outline-offset:2px;border-radius:3px}.notebook-cell-description-block{color:var(--color-text-secondary);min-width:0}.notebook-cell-description-markdown{min-width:0;overflow-wrap:anywhere}.notebook-cell-description-markdown>*{margin:0}.notebook-cell-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.24rem .45rem;justify-content:flex-end;justify-self:end;margin-left:auto;min-width:0}.notebook-cell-header-leading{align-items:center;display:inline-flex;flex:0 0 auto;gap:.45rem}.notebook-cell-help{display:inline-flex;flex:0 0 auto;position:relative}.notebook-cell-help summary{align-items:center;display:inline-flex;list-style:none}.notebook-cell-help summary::-webkit-details-marker{display:none}.notebook-cell-help-panel{background:var(--color-surface-elevated);border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);box-shadow:0 12px 28px #0f172a1f;color:#334155;margin-top:.4rem;max-height:min(34rem,72vh);max-width:min(32rem,80vw);min-width:16rem;overflow:auto;padding:.75rem .85rem;position:absolute;right:0;text-align:left;top:100%;z-index:12}.notebook-cell-help-panel p{margin:0}.notebook-cell-help-panel p+p{margin-top:.45rem}.notebook-cell-help-panel .assistant-markdown{font-size:.9rem;line-height:1.48}.notebook-help-dialog-backdrop{align-items:center;background:#0f172a6b;display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;padding:1.25rem;position:fixed;z-index:60}.notebook-help-dialog{background:#fff;border:1px solid var(--color-border-subtle);border-radius:18px;box-shadow:0 20px 60px #0f172a38;color:#334155;max-height:min(80vh,52rem);max-width:min(52rem,92vw);overflow:hidden;text-align:left;width:100%}.notebook-help-dialog-header{align-items:flex-start;border-bottom:1px solid rgba(148,163,184,.2);display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.1rem .9rem}.notebook-help-dialog-header h3{margin:.1rem 0 0}.notebook-help-dialog-body{max-height:calc(min(80vh,52rem) - 5rem);overflow:auto;padding:1rem 1.1rem 1.2rem}.notebook-help-doc{display:grid;gap:1rem}.notebook-help-doc section{display:grid;gap:.45rem}.notebook-help-doc h4{margin:0}.notebook-help-list{display:grid;gap:.35rem;margin:0;padding-left:1.2rem}.notebook-help-code{background:#f8fafcf2;border:1px solid rgba(148,163,184,.24);border-radius:12px;font-family:IBM Plex Mono,SFMono-Regular,Consolas,monospace;font-size:.9rem;line-height:1.55;margin:0;overflow:auto;padding:.8rem .9rem;white-space:pre-wrap}.sankey-cell-view,.publication-sankey{display:grid;gap:.75rem}.sankey-cell-caption{color:var(--text-secondary, #64748b);font-size:.92rem;margin:0}.sankey-diagram-canvas{display:block;max-width:100%}.sankey-diagram-empty,.sankey-diagram-errors{color:var(--text-secondary, #64748b);font-size:.92rem}.matrix-entry-source.is-document-highlighted{background:#fde04738;border-radius:4px;box-shadow:0 0 0 1px #d9770666}.notebook-matrix-slice-label-button{cursor:pointer;font:inherit;padding:0;text-align:inherit}.notebook-matrix-slice-label-button:not(.result-variable-button){background:transparent;border:0;color:inherit}.notebook-matrix-unit-meta-button{flex:0 0 auto;white-space:nowrap}.matrix-unit-meta-dialog{max-width:min(64rem,calc(100vw - 2rem));width:min(64rem,calc(100vw - 2rem))}.matrix-unit-meta-dialog-explainer{margin:0 0 .75rem}.matrix-unit-meta-dialog-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.matrix-unit-meta-dialog-empty{color:var(--color-text-subtle);margin:0 0 .75rem}.matrix-unit-meta-dialog-list{border:1px solid rgba(15,23,42,.08);border-radius:var(--radius-sm);display:flex;flex-direction:column;gap:0;margin-bottom:.85rem;max-height:min(20rem,50vh);overflow:auto}.matrix-unit-meta-dialog-list-header,.matrix-unit-meta-dialog-row{align-items:start;column-gap:.75rem;display:grid;grid-template-columns:auto minmax(10rem,14rem) minmax(6rem,8.5rem) minmax(6rem,8.5rem) minmax(16rem,2.5fr);padding:.45rem .65rem}.matrix-unit-meta-dialog-list-header{background:#f8fafcf2;border-bottom:1px solid rgba(15,23,42,.08);color:var(--color-text-subtle);font-size:.78rem;font-weight:600;position:sticky;top:0;z-index:1}.matrix-unit-meta-dialog-row{border-bottom:1px solid rgba(15,23,42,.05);cursor:pointer;font-size:.86rem}.matrix-unit-meta-dialog-row:last-child{border-bottom:none}.matrix-unit-meta-dialog-row:hover{background:#f8fafcb3}.matrix-unit-meta-dialog-variable{font-family:var(--font-mono);font-weight:600;min-width:0;overflow-wrap:anywhere;padding-right:.25rem}.matrix-equation-proposal-dialog .matrix-unit-meta-dialog-list-header,.matrix-equation-proposal-dialog .matrix-unit-meta-dialog-row{grid-template-columns:auto minmax(7rem,10rem) minmax(14rem,1.5fr) minmax(14rem,1.5fr) minmax(12rem,1fr)}.matrix-equation-proposal-action{color:var(--color-text-subtle);display:block;font-family:var(--font-sans, var(--font-sans));font-size:.75rem;font-weight:500;margin-top:.15rem}.matrix-equation-proposal-expression{font-family:var(--font-mono);font-size:.84rem;line-height:1.35;min-width:0;overflow-wrap:anywhere}.matrix-equation-proposal-input{background:#fff;border:1px solid rgba(15,23,42,.14);border-radius:8px;box-sizing:border-box;font-family:var(--font-mono);font-size:.84rem;line-height:1.35;min-height:2.6rem;min-width:0;padding:.35rem .45rem;resize:vertical;width:100%}.matrix-equation-proposal-input:focus{border-color:#2563eb8c;outline:2px solid rgba(37,99,235,.18);outline-offset:1px}.matrix-unit-meta-dialog-sources{color:var(--color-text-subtle);font-size:.8rem;line-height:1.35;min-width:0;overflow-wrap:anywhere}.mirrored-equation-unit-summary-dialog .matrix-unit-meta-dialog-list-header,.mirrored-equation-unit-summary-dialog .matrix-unit-meta-dialog-row{cursor:default;grid-template-columns:minmax(7rem,10rem) minmax(6rem,8.5rem) minmax(6rem,8.5rem) minmax(16rem,2.5fr)}.mirrored-equation-unit-summary-dialog .matrix-unit-meta-dialog-row:hover{background:transparent}.variable-unit-status-dialog.is-editable .matrix-unit-meta-dialog-list-header,.variable-unit-status-dialog.is-editable .matrix-unit-meta-dialog-row{grid-template-columns:minmax(6rem,8rem) minmax(4.5rem,5.5rem) minmax(4.5rem,6rem) minmax(4.5rem,6rem) minmax(4.5rem,5.5rem) minmax(10rem,1.5fr) minmax(7rem,8rem)}.variable-unit-status-dialog:not(.is-editable) .matrix-unit-meta-dialog-list-header,.variable-unit-status-dialog:not(.is-editable) .matrix-unit-meta-dialog-row{grid-template-columns:minmax(6rem,8rem) minmax(4.5rem,5.5rem) minmax(4.5rem,6rem) minmax(4.5rem,6rem) minmax(4.5rem,5.5rem) minmax(12rem,2fr)}.variable-unit-status-entry{display:contents}.variable-unit-status-editor{background:#f8fafcf5;border-bottom:1px solid rgba(148,163,184,.22);grid-column:1 / -1;padding:.65rem .75rem .75rem}.variable-unit-status-picker{max-width:none}.variable-unit-status-variable-button{background:none;border:none;color:inherit;cursor:pointer;font:inherit;font-weight:700;padding:0;text-align:left}.variable-unit-status-variable-button.is-static{cursor:default}.variable-unit-status-variable-button:not(.is-static):hover{color:var(--color-link-active);text-decoration:underline}.variable-unit-status-actions{display:inline-flex;flex-wrap:wrap;gap:.35rem}.variable-unit-status-actions .secondary-button{font-size:.78rem;padding:.2rem .45rem}.variable-unit-status-row.is-selectable{cursor:default}.variable-unit-status-row.is-selectable:hover{background:transparent}.variable-unit-status-filter{align-items:center;color:var(--color-text-secondary);display:inline-flex;font-size:.85rem;gap:.4rem}.variable-unit-status-badge{font-size:.78rem;font-weight:700;line-height:1.2}.variable-unit-status-badge.is-ok{color:#0f766e}.variable-unit-status-badge.is-untagged{color:#64748b}.variable-unit-status-badge.is-warning{color:#b45309}.variable-unit-status-badge.is-error{color:#b91c1c}.notebook-matrix-editor{display:grid;gap:.9rem}.notebook-matrix-editor-note{color:var(--color-text-secondary);font-size:.9rem;margin:0}.notebook-matrix-editor-fields{display:grid;gap:.75rem}.notebook-matrix-editor-metadata-lines{gap:.35rem}.notebook-matrix-editor-metadata-line{align-items:center;display:grid;gap:.25rem;grid-template-columns:9.5rem minmax(0,1fr)}.notebook-matrix-editor-metadata-line span{color:var(--color-text-secondary);font-size:.85rem;font-weight:700}.notebook-matrix-editor-metadata-line input{background:transparent;border:1px solid var(--color-border-grid);border-radius:8px;box-shadow:none;box-sizing:border-box;color:inherit;outline:none;padding:.18rem .28rem;transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease;width:100%}.notebook-matrix-editor-metadata-line .notebook-matrix-editor-field{justify-self:start;max-width:100%;width:auto}.notebook-matrix-editor-metadata-line input:hover{background:#ffffff57;border-color:var(--color-border-subtle)}.notebook-matrix-editor-metadata-line input:focus{background:#ffffff7a;border-color:#f59e0b85;box-shadow:0 0 0 2px #f59e0b1f}.notebook-matrix-editor-section{background:#f8fafce0;border:1px solid rgba(148,163,184,.22);border-radius:16px;display:grid;gap:.55rem;padding:.6rem}.notebook-matrix-editor-section-header{align-items:center;display:flex;flex-wrap:wrap;gap:.35rem}.notebook-matrix-editor-section-header strong{font-size:.95rem}.notebook-matrix-editor-section-header span{color:var(--color-text-subtle);flex:1 1 180px;font-size:.8rem}.notebook-matrix-table-shell{overflow-x:auto}.notebook-matrix-editor-table{border-collapse:separate;border-spacing:0;margin-inline:auto;max-width:100%;width:max-content}.notebook-matrix-editor-table th,.notebook-matrix-editor-table td{border-bottom:1px solid var(--color-border-grid);padding:.12rem .28rem;vertical-align:top}.notebook-matrix-editor-table thead th{background:#e2e8f0e0;color:#334155;font-size:.78rem;text-align:left}.notebook-matrix-editor-table thead tr:nth-child(-n+2) th{background:transparent;color:inherit}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-dag-row th,.notebook-matrix-editor-table thead tr.notebook-matrix-editor-columns-row th{background:#f1f5f9f5;color:var(--color-text-secondary)}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-badge-row th.notebook-matrix-editor-sidehead{background:#fef3c7eb;color:#92400e}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-badge-row th.notebook-matrix-editor-badge-cell:not(.notebook-godley-role){background:#f8fafceb;color:var(--color-text-subtle)}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-badge-row th.notebook-matrix-editor-badge-cell.notebook-godley-role{border-radius:0;font-size:inherit;padding:.12rem .28rem}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-badge-row th.notebook-matrix-editor-badge-cell.notebook-godley-role-asset{background:#dcfce7e6;color:#166534}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-badge-row th.notebook-matrix-editor-badge-cell.notebook-godley-role-liability{background:#fee2e2e6;color:#991b1b}.notebook-matrix-editor-table thead tr.notebook-matrix-editor-badge-row th.notebook-matrix-editor-badge-cell.notebook-godley-role-equity{background:#dbeafeeb;color:var(--color-link-active)}.notebook-matrix-editor-badge-row .notebook-matrix-editor-badge-select{background:transparent;color:inherit}.notebook-matrix-editor-table tbody td:first-child{background:#dcfce7eb;color:#166534;width:max-content}.notebook-matrix-editor-table tbody td:nth-child(2){width:max-content}.notebook-matrix-editor-table input{background:transparent;border:1px solid transparent;border-radius:8px;box-shadow:none;box-sizing:border-box;color:inherit;outline:none;padding:.18rem .28rem;transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease;width:100%}.notebook-matrix-editor-field{field-sizing:content;font-family:inherit;max-width:100%;width:auto}.notebook-matrix-editor-table .notebook-matrix-editor-field{display:inline-block;vertical-align:top}.notebook-matrix-editor-badge-select{background:transparent;border:1px solid transparent;border-radius:8px;box-sizing:border-box;color:inherit;font:inherit;max-width:100%;outline:none;padding:.18rem .28rem;transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease;width:auto}.notebook-matrix-editor-badge-select:hover:not(:disabled){background:#ffffff57;border-color:var(--color-border-subtle)}.notebook-matrix-editor-badge-select:focus{background:#ffffff7a;border-color:#f59e0b85;box-shadow:0 0 0 2px #f59e0b1f}.notebook-matrix-editor-badge-select:disabled{cursor:default;opacity:.55}.notebook-matrix-editor-table input:hover{background:#ffffff57;border-color:var(--color-border-subtle)}.notebook-matrix-editor-table input:focus{background:#ffffff7a;border-color:#f59e0b85;box-shadow:0 0 0 2px #f59e0b1f}.notebook-matrix-editor-sidehead{white-space:nowrap;width:max-content}.notebook-matrix-editor-topcell{min-width:8.5rem}.notebook-matrix-editor-table .notebook-matrix-editor-sum-column{min-width:3rem;padding-left:.16rem;padding-right:.16rem;white-space:nowrap}.notebook-matrix-editor-table .notebook-matrix-editor-sum-column .notebook-matrix-editor-field{padding-left:.16rem;padding-right:.16rem;text-align:left}.notebook-matrix-editor-controlcell{padding-block:.2rem}.notebook-matrix-editor-table thead tr:last-child th:nth-child(1),.notebook-matrix-editor-table thead tr:last-child th:nth-child(2){width:max-content}.notebook-matrix-editor-action-head{min-width:3.4rem}.notebook-matrix-editor-table tbody tr:last-child td,.notebook-matrix-editor-table tbody tr:last-child th{border-bottom:0}.notebook-matrix{display:grid;gap:.75rem}.notebook-matrix-tree-controls{display:flex;flex-wrap:wrap;gap:.5rem}.notebook-matrix-tree-toggle{align-items:center;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-flex;font:inherit;gap:.25rem;padding:0}.notebook-matrix-tree-toggle:hover{color:var(--color-link-active)}.notebook-matrix-tree-toggle-icon{display:inline-block;font-size:.75rem;line-height:1;width:.75rem}.notebook-matrix-table thead th .notebook-matrix-tree-toggle{font-weight:600}.notebook-matrix-table thead th .result-variable-button{font-weight:500}.notebook-matrix-tree-collapsed-stub-header{background:#f1f5f9f2;vertical-align:middle}.notebook-matrix-tree-collapsed-stub-toggle{flex-direction:column;gap:.15rem;margin:0 auto;max-width:100%;text-align:center;white-space:normal}.notebook-matrix-tree-collapsed-stub-toggle .notebook-matrix-tree-toggle-icon{margin:0 auto}.notebook-matrix-tree-collapsed-stub{background:#f1f5f9a6;color:#94a3b8;text-align:center;vertical-align:middle}.notebook-matrix-tree-leaf-header{align-items:center;display:inline-flex;gap:.35rem;justify-content:center}.notebook-matrix-tree-leaf-header.result-variable-button{display:inline-flex}.notebook-matrix-tree-leaf-label{white-space:nowrap}.notebook-matrix-tree-leaf-header-stacked{flex-direction:column;gap:.15rem}.notebook-matrix-tree-leaf-label-stack{display:flex;flex-direction:column;align-items:center;gap:.1rem;line-height:1.15}.notebook-matrix-tree-leaf-variable{color:var(--color-text-subtle);font-size:.75rem;font-weight:500}.notebook-matrix-tree-leaf-label-button,.notebook-matrix-tree-leaf-label-button .notebook-matrix-tree-leaf-label{font-weight:500}.notebook-matrix-tree-leaf-header-hidden{justify-content:center}.notebook-matrix-tree-hidden-leaf-header{background:#f1f5f9f2;padding-left:.3rem;padding-right:.3rem;vertical-align:middle}.notebook-matrix-tree-hidden-leaf-stub{background:#f1f5f9a6;color:#94a3b8;padding-left:.3rem;padding-right:.3rem;text-align:center;vertical-align:middle}button.notebook-matrix-tree-badge-toggle{border:0;cursor:pointer;font:inherit;line-height:1;padding:0}button.notebook-matrix-tree-badge-toggle:hover{filter:brightness(.95)}.notebook-matrix-wrap{overflow-x:auto}.notebook-matrix-table tbody th[scope=row]{background:#f8fafc;box-shadow:2px 0 4px #0f172a0f;left:0;position:sticky;z-index:2}.notebook-matrix-table thead tr:first-child>th:first-child{background:var(--color-grid-header-bg);box-shadow:2px 0 4px #0f172a0f;left:0;position:sticky;z-index:13}.notebook-matrix-thead-sticky th{background:var(--color-grid-header-bg);box-shadow:0 1px #94a3b83d;position:sticky;top:var(--notebook-sticky-surface-top, 0px);z-index:12}.notebook-matrix-table{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-collapse:separate;border-spacing:0;border-radius:var(--radius-sm);margin-inline:auto;margin-top:0;max-width:100%;table-layout:auto;width:max-content}.notebook-matrix-value-col{min-width:9rem;width:9rem}.notebook-matrix-value-col-sum{min-width:4rem;width:4rem}.notebook-matrix-table col.notebook-matrix-hidden-leaf-col{width:2.125rem}.notebook-matrix-table col.notebook-matrix-collapsed-stub-col{width:2.75rem}.notebook-matrix-table th.notebook-matrix-tree-hidden-leaf-header,.notebook-matrix-table td.notebook-matrix-tree-hidden-leaf-stub{box-sizing:border-box;max-width:2.125rem;padding-left:.25rem;padding-right:.25rem;width:2.125rem}.notebook-matrix-table th,.notebook-matrix-table td{border-bottom:1px solid rgba(148,163,184,.2);font-size:.92rem;padding:.5rem .55rem;white-space:nowrap}.notebook-matrix-table thead th{background:var(--color-grid-header-bg);color:#334155}.notebook-matrix-table tbody th{background:#f8fafcd9;font-weight:600;width:max-content}.notebook-matrix-table thead tr:first-child>th:first-child{width:max-content}.notebook-matrix-table tbody tr.notebook-matrix-flow-start-row th,.notebook-matrix-table tbody tr.notebook-matrix-flow-start-row td,.notebook-matrix-table tbody tr.notebook-matrix-sum-row th,.notebook-matrix-table tbody tr.notebook-matrix-sum-row td{border-top:2px solid rgba(51,65,85,.55)}.notebook-matrix-table tbody td{text-align:right}.notebook-matrix-table tbody td.notebook-matrix-tree-collapsed-stub,.notebook-matrix-table tbody td.notebook-matrix-tree-hidden-leaf-stub{text-align:center}.notebook-matrix-table tbody td.notebook-matrix-cell-editable{cursor:text}.notebook-matrix-table .notebook-matrix-sum-column{max-width:4rem;min-width:4rem;padding-left:.2rem;padding-right:.2rem;width:4rem}.notebook-matrix-table thead th.notebook-matrix-cell-asset,.notebook-matrix-table td.notebook-matrix-cell-asset:not(.matrix-balance-error){background:#dcfce759}.notebook-matrix-table thead th.notebook-matrix-cell-liability,.notebook-matrix-table td.notebook-matrix-cell-liability:not(.matrix-balance-error){background:#fee2e259}.notebook-matrix-table thead th.notebook-matrix-cell-equity,.notebook-matrix-table td.notebook-matrix-cell-equity:not(.matrix-balance-error){background:#dbeafe59}.notebook-matrix-table tr.notebook-matrix-slice-highlight-row>th,.notebook-matrix-table tr.notebook-matrix-slice-highlight-row>td{box-shadow:inset 0 0 0 2px #2563eb9e}.notebook-matrix-table td.notebook-matrix-slice-highlight-column,.notebook-matrix-table th.notebook-matrix-slice-highlight-header{box-shadow:inset 0 0 0 2px #2563eb9e}.notebook-matrix-table tr.notebook-matrix-slice-highlight-row>td.notebook-matrix-slice-highlight-column{box-shadow:inset 0 0 0 2px #2563ebb8,0 0 10px #3b82f62e}.notebook-matrix-table .matrix-entry-source.is-document-highlighted{background:#fde0473d;border-radius:4px;box-shadow:inset 0 0 0 2px #d97706e0,0 0 0 3px #fbbf246b}.notebook-matrix-table-account-columns th.notebook-matrix-sector-start,.notebook-matrix-table-account-columns td.notebook-matrix-sector-start{border-left:3px double rgba(71,85,105,.42)}.notebook-matrix-table-account-columns th.notebook-matrix-intra-sector-divider,.notebook-matrix-table-account-columns td.notebook-matrix-intra-sector-divider{border-right:1.5px solid rgba(100,116,139,.55)}.notebook-matrix-table-account-columns th.notebook-matrix-sum-column,.notebook-matrix-table-account-columns td.notebook-matrix-sum-column{border-left:2px solid rgba(51,65,85,.55)}.notebook-matrix-table-account-columns thead th{text-align:center;vertical-align:middle}.notebook-matrix-table-account-columns thead tr th:first-child{text-align:left}.notebook-matrix-table-account-columns thead th .notebook-matrix-tree-toggle,.notebook-matrix-table-account-columns thead th .notebook-matrix-tree-leaf-header{justify-content:center;width:100%}.matrix-flow-column{align-items:center;border:2px solid rgba(15,23,42,.2);border-radius:12px;display:flex;flex-direction:column;height:54px;justify-content:center;padding:.35rem .5rem;position:relative;text-align:center;width:144px}.matrix-flow-column__label{font-size:.72rem;font-weight:600;line-height:1.2;white-space:pre-line}.matrix-flow-column__lifeline{border-left:2px dashed #cbd5e1;bottom:-520px;left:50%;position:absolute;top:calc(100% + 8px);transform:translate(-50%);width:0}.matrix-column--green{background:#dcfce7;border-color:#16a34a}.matrix-column--sky{background:#e0f2fe;border-color:#0284c7}.matrix-column--blue{background:#dbeafe;border-color:#2563eb}.matrix-column--amber{background:#fef3c7;border-color:#d97706}.matrix-column--orange{background:#ffedd5;border-color:#ea580c}.matrix-column--slate{background:#f1f5f9;border-color:var(--color-text-subtle)}.matrix-flow-row-lane{border-top:1px solid var(--color-grid-header-bg);box-sizing:border-box;pointer-events:none}.matrix-flow-row-lane__meta{align-items:baseline;display:flex;gap:.45rem;max-width:280px;padding:.35rem .65rem}.matrix-flow-row-lane__index{color:var(--color-text-subtle);flex:0 0 auto;font-size:.68rem;font-weight:700}.matrix-flow-row-lane__label{color:var(--color-text-strong);font-size:.72rem;font-weight:600;line-height:1.25}.matrix-flow-edge-label{background:#fff;border:1px solid #cbd5e1;border-radius:8px;font-size:.68rem;line-height:1.25;max-width:164px;padding:.2rem .45rem;pointer-events:none;text-align:center}.matrix-flow-edge-label__title{color:var(--color-text-strong);font-weight:600}.matrix-flow-edge-label__expr{color:var(--color-text-secondary);font-size:.64rem}.matrix-flow-note{background:#fff7ed;border:1px solid #fdba74;border-radius:var(--radius-sm);color:#9a3412;font-size:.72rem;max-width:320px;padding:.45rem .6rem}.matrix-multiport{background:#ffffffe6;border:2px solid rgba(15,23,42,.22);border-radius:var(--radius-md);box-shadow:0 12px 24px #0f172a14;box-sizing:border-box;height:100%;overflow:visible;position:relative;width:200px}.matrix-multiport__header{align-items:center;border-bottom:1px solid rgba(15,23,42,.1);border-radius:11px 11px 0 0;display:grid;gap:.15rem;grid-template-columns:1rem 1fr;justify-items:center;padding:.42rem .38rem .38rem .32rem;position:relative;text-align:center}.matrix-multiport__drag-grip{align-self:center;background:repeating-linear-gradient(to bottom,rgba(15,23,42,.42) 0,rgba(15,23,42,.42) 2px,transparent 2px,transparent 5px);border-radius:2px;grid-column:1;grid-row:1 / span 2;height:1.1rem;justify-self:center;opacity:.72;width:.45rem}.matrix-multiport__header .matrix-multiport__icon{grid-column:2;grid-row:1}.matrix-multiport__header .matrix-multiport__title{grid-column:2;grid-row:2}.matrix-multiport__icon{align-items:center;background:#ffffffc2;border:1px solid rgba(15,23,42,.12);border-radius:var(--radius-pill);display:flex;font-size:.7rem;font-weight:800;height:1.75rem;justify-content:center;letter-spacing:.03em;width:1.75rem}.matrix-multiport__title{color:var(--color-text-strong);font-size:.82rem;font-weight:750;line-height:1.2;overflow-wrap:anywhere}.matrix-multiport__ports{bottom:var(--multiport-stocks-height, 0px);left:0;position:absolute;right:0;top:0}.matrix-multiport__stocks{border-top:1px solid rgba(15,23,42,.1);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;gap:.08rem;height:var(--multiport-stocks-height, auto);left:0;padding:.28rem .38rem .32rem;position:absolute;right:0}.matrix-multiport__stock{align-items:baseline;color:#334155;display:flex;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.72rem;gap:.18rem;line-height:1.2;min-width:0}.matrix-multiport__stock-role{flex:0 0 auto;font-size:.66rem;padding:.04rem .24rem}.matrix-multiport__stock-name{color:var(--color-text-strong);flex:1 1 auto;font-weight:650;min-width:0;overflow-wrap:anywhere}.matrix-multiport__stock-separator{flex:0 0 auto}.matrix-multiport__stock-value{flex:0 0 auto;font-variant-numeric:tabular-nums;white-space:nowrap}.matrix-multiport__port{box-sizing:border-box;left:0;position:absolute}.matrix-multiport__port-card{background:#ffffffe0;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 6px 14px #0f172a0f;box-sizing:border-box;color:#334155;display:grid;gap:.04rem;line-height:1.18;margin:0 .75rem;min-height:34px;padding:.24rem .38rem;pointer-events:auto;width:calc(100% - 1.5rem)}.matrix-multiport__port-formula{display:inline;font-size:.74rem;line-height:1.22}.matrix-multiport__port-formula .formula-token,.matrix-multiport__port-formula .formula-token.is-clickable{cursor:pointer;pointer-events:auto}.matrix-multiport__port.is-source .matrix-multiport__port-card{border-color:#fecaca}.matrix-multiport__port.is-target .matrix-multiport__port-card{border-color:#bbf7d0}.matrix-multiport__port.is-highlighted .matrix-multiport__port-card{border-color:var(--color-text-strong);box-shadow:0 0 0 2px #0f172a1f}.matrix-multiport__port-label{color:var(--color-text-strong);font-size:.74rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matrix-multiport__port-entry{font-size:.74rem;line-height:1.22;overflow-wrap:anywhere}.matrix-multiport__port.is-source .matrix-multiport__port-entry{color:#b91c1c}.matrix-multiport__port.is-target .matrix-multiport__port-entry{color:#15803d}.matrix-multiport__port .matrix-multiport__handle{background:var(--color-text-strong);border:2px solid #fff;box-shadow:0 0 0 1px #0f172a38;height:12px;pointer-events:none;top:50%;width:12px}.matrix-multiport__port .matrix-multiport__handle[data-handlepos=left]{left:0;transform:translate(-50%,-50%)}.matrix-multiport__port .matrix-multiport__handle[data-handlepos=right]{right:0;transform:translate(50%,-50%)}.matrix-multiport-note{background:#fff7ed;border:1px solid #fdba74;border-radius:8px;color:#9a3412;font-size:.78rem;line-height:1.28;max-width:300px;padding:.32rem .48rem}.matrix-multiport--green{background:#f0fdf4;border-color:#16a34a}.matrix-multiport--green .matrix-multiport__header{background:#dcfce7}.matrix-multiport--sky{background:#f0f9ff;border-color:#0284c7}.matrix-multiport--sky .matrix-multiport__header{background:#e0f2fe}.matrix-multiport--amber{background:#fffbeb;border-color:#ca8a04}.matrix-multiport--amber .matrix-multiport__header{background:#fef3c7}.matrix-multiport--purple{background:#faf5ff;border-color:#9333ea}.matrix-multiport--purple .matrix-multiport__header{background:#f3e8ff}.matrix-multiport--orange{background:#fff7ed;border-color:#ea580c}.matrix-multiport--orange .matrix-multiport__header{background:#ffedd5}.matrix-multiport--slate{background:#f8fafc;border-color:var(--color-text-subtle)}.matrix-multiport--slate .matrix-multiport__header{background:#f1f5f9}.matrix-entry-inline{align-items:baseline;display:flex;gap:.35rem;white-space:nowrap;width:100%}.matrix-entry-source{color:var(--color-text-strong);font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.86rem;text-align:left}.matrix-entry-source.is-editable{cursor:text}.matrix-entry-source.is-editable.result-variable-button{cursor:pointer}.matrix-entry-editor{display:grid;gap:.35rem;min-width:min(18rem,100%)}.matrix-entry-formula-input{width:100%}.matrix-entry-editor-actions{display:flex;gap:.4rem}.matrix-entry-validation{font-size:.78rem;padding:.4rem .55rem}.matrix-entry-current{color:var(--color-text-secondary);flex-shrink:0;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.76rem;margin-left:auto;text-align:right}.matrix-entry-current.is-editable{cursor:text}.matrix-balance-error{background:#fef3c7eb;color:#92400e;outline:1px solid rgba(217,119,6,.45)}.notebook-model-view{background:#f8fafcb8;border:1px solid rgba(148,163,184,.26);border-radius:var(--radius-md);overflow:hidden}.notebook-model-view-header{align-items:baseline;border-bottom:1px solid rgba(148,163,184,.2);display:flex;gap:.65rem;justify-content:space-between;padding:.55rem .75rem}.notebook-model-view-header h3{font-size:.9rem;margin:0}.notebook-model-view-table{display:grid;min-width:0;width:100%}.notebook-model-view-table-resizable{--eq-col-expression-width: 280px;--eq-col-role-width: 4.25rem;--eq-col-variable-width: 160px;--eq-col-column-toggle-width: max-content;--eq-col-initial-width: minmax(72px, 96px);--eq-col-current-width: minmax(132px, 168px);--eq-col-gain-width: minmax(88px, 112px)}.notebook-model-view-table-resizable.layout-equation-view.initial-column-collapsed{--eq-col-initial-width: var(--eq-col-column-toggle-width)}.notebook-model-view-table-resizable.layout-equation-view.current-column-collapsed{--eq-col-current-width: var(--eq-col-column-toggle-width)}.notebook-model-view-table-resizable.layout-equation-view.gain-column-collapsed{--eq-col-gain-width: var(--eq-col-column-toggle-width)}.notebook-model-view-table-resizable.layout-equation-view.role-column-collapsed{--eq-col-role-width: var(--eq-col-column-toggle-width)}.notebook-model-view-table-resizable.layout-equation-view.initial-column-collapsed .notebook-model-view-initial-header,.notebook-model-view-table-resizable.layout-equation-view.current-column-collapsed .notebook-model-view-current-header,.notebook-model-view-table-resizable.layout-equation-view.gain-column-collapsed .notebook-model-view-gain-header,.notebook-model-view-table-resizable.layout-equation-view.role-column-collapsed .notebook-model-view-role-header{gap:0;justify-self:start;padding-left:.12rem;width:max-content}.notebook-model-view-table-resizable.layout-equation-view.initial-column-collapsed .notebook-model-view-initial-header .notebook-model-view-column-toggle,.notebook-model-view-table-resizable.layout-equation-view.current-column-collapsed .notebook-model-view-current-header .notebook-model-view-column-toggle,.notebook-model-view-table-resizable.layout-equation-view.gain-column-collapsed .notebook-model-view-gain-header .notebook-model-view-column-toggle,.notebook-model-view-table-resizable.layout-equation-view.role-column-collapsed .notebook-model-view-role-header .notebook-model-view-column-toggle{min-height:1rem;min-width:0}.notebook-model-view-table-resizable.layout-equation-view.initial-column-collapsed .notebook-model-view-initial-header .notebook-model-view-column-toggle-icon,.notebook-model-view-table-resizable.layout-equation-view.current-column-collapsed .notebook-model-view-current-header .notebook-model-view-column-toggle-icon,.notebook-model-view-table-resizable.layout-equation-view.gain-column-collapsed .notebook-model-view-gain-header .notebook-model-view-column-toggle-icon,.notebook-model-view-table-resizable.layout-equation-view.role-column-collapsed .notebook-model-view-role-header .notebook-model-view-column-toggle-icon{font-size:.95rem;width:.75rem}.notebook-model-view-table-resizable.layout-equation-view.initial-column-collapsed .notebook-model-view-initial,.notebook-model-view-table-resizable.layout-equation-view.initial-column-collapsed .notebook-model-view-initial-expanded-only,.notebook-model-view-table-resizable.layout-equation-view.current-column-collapsed .notebook-model-view-current,.notebook-model-view-table-resizable.layout-equation-view.current-column-collapsed .notebook-model-view-current-expanded-only,.notebook-model-view-table-resizable.layout-equation-view.gain-column-collapsed .notebook-model-view-gain,.notebook-model-view-table-resizable.layout-equation-view.gain-column-collapsed .notebook-model-view-gain-expanded-only,.notebook-model-view-table-resizable.layout-equation-view.role-column-collapsed .notebook-model-view-kind,.notebook-model-view-table-resizable.layout-equation-view.role-column-collapsed .notebook-model-view-role-expanded-only{display:none}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-name{grid-column:1}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-expression{grid-column:2}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-description{grid-column:3}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-initial{grid-column:4}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-current{grid-column:5}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-gain{grid-column:6}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row:not(.notebook-model-view-row-header)>.notebook-model-view-kind{grid-column:7}.notebook-model-view-initial-header,.notebook-model-view-current-header,.notebook-model-view-gain-header,.notebook-model-view-role-header{align-items:center;display:inline-flex;gap:.25rem;justify-content:flex-start;min-width:0}.notebook-model-view-column-header-label{min-width:0}.notebook-model-view-column-toggle{align-items:center;background:transparent;border:0;color:var(--color-text-subtle);cursor:pointer;display:inline-flex;font:inherit;gap:.25rem;line-height:1;padding:0}.notebook-model-view-column-toggle.is-static{cursor:default}.notebook-model-view-column-toggle:hover,.notebook-model-view-column-toggle:focus-visible{color:var(--color-link-active)}.notebook-model-view-column-toggle-icon{display:inline-block;flex:0 0 auto;font-size:1.1rem;font-weight:700;line-height:1;width:1rem}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row{column-gap:.35rem;grid-template-columns:var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(0,1fr) var(--eq-col-initial-width) var(--eq-col-current-width) var(--eq-col-gain-width) var(--eq-col-role-width, 4.25rem);padding:.38rem .35rem .38rem .75rem}.notebook-model-view-table-resizable.layout-external-view .notebook-model-view-row{grid-template-columns:var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(0,1fr) minmax(72px,96px) minmax(92px,120px) minmax(72px,110px);padding:.38rem .35rem .38rem .75rem}.notebook-model-view-table-resizable.layout-initial-view .notebook-model-view-row{grid-template-columns:2rem var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(0,1fr) minmax(92px,120px) minmax(72px,110px);padding:.38rem .35rem .38rem .75rem}.notebook-model-view-table-resizable .notebook-model-view-row-header{position:relative}.notebook-model-view-table .notebook-model-view-row>[role=cell],.notebook-model-view-table .notebook-model-view-row>[role=columnheader]{min-height:100%;position:relative}.notebook-model-view-table .notebook-model-view-row>[role=cell]:not(:first-child),.notebook-model-view-table .notebook-model-view-row>[role=columnheader]:not(:first-child){border-left:1px solid var(--color-border-grid);padding-left:.28rem}.notebook-model-view-row{align-items:start;display:grid;gap:.6rem;grid-template-columns:minmax(110px,160px) minmax(0,1fr) minmax(0,1fr) minmax(72px,96px) minmax(92px,120px) minmax(96px,128px);padding:.38rem .75rem}.notebook-model-view-table:not(.notebook-model-view-table-resizable) .notebook-model-view-row-external{grid-template-columns:minmax(110px,160px) minmax(0,1fr) minmax(0,1fr) minmax(72px,96px) minmax(92px,120px) minmax(72px,110px)}.notebook-model-view-table:not(.notebook-model-view-table-resizable) .notebook-model-view-row-initial{grid-template-columns:2rem minmax(110px,160px) minmax(0,1fr) minmax(92px,120px) minmax(72px,110px)}.notebook-model-view-row-solver{grid-template-columns:minmax(130px,180px) minmax(0,1fr) minmax(90px,120px)}.notebook-model-view-row+.notebook-model-view-row{border-top:1px solid rgba(148,163,184,.16)}.notebook-model-view-row-comment{background:#e2e8f059;cursor:default;padding-block:.55rem;width:100%}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row-section:not(.notebook-model-view-row-comment-grid){border-top:2px solid rgba(100,116,139,.38)}.notebook-model-view-row-implicit-section{cursor:default}.notebook-model-view-implicit-section-heading{align-items:baseline;display:flex;flex-wrap:wrap;gap:.5rem}.notebook-model-view-implicit-section-run{color:var(--color-text-subtle);font-size:.82rem;font-weight:500}.notebook-model-view-row-implicit{background:#f8fafcd9;cursor:default}.notebook-model-view-row-implicit .notebook-model-view-name,.notebook-model-view-row-implicit .notebook-model-view-expression,.notebook-model-view-row-implicit .notebook-model-view-description,.notebook-model-view-row-implicit .notebook-model-view-kind{cursor:default}.notebook-model-view-row-implicit .result-variable-button{cursor:pointer}.notebook-model-view-row-comment .notebook-model-view-row-comment-text{grid-column:1 / -1}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-row.notebook-model-view-row-comment{grid-template-columns:var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(0,1fr) var(--eq-col-initial-width) var(--eq-col-current-width) var(--eq-col-gain-width) var(--eq-col-role-width, 4.25rem)}.notebook-model-view-table-resizable.layout-external-view .notebook-model-view-row.notebook-model-view-row-comment{grid-template-columns:var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(0,1fr) minmax(92px,120px) minmax(72px,110px)}.notebook-model-view-table-resizable.layout-initial-view .notebook-model-view-row.notebook-model-view-row-comment{grid-template-columns:2rem var(--eq-col-variable-width, 160px) var(--eq-col-expression-width, 280px) minmax(0,1fr) minmax(92px,120px) minmax(72px,110px)}.notebook-model-view-enable{display:flex;justify-content:center}.notebook-model-view-row-initial.is-disabled{opacity:.58}.notebook-model-view-row-editor-cell-with-enable{grid-column:2 / -1}.notebook-model-view-row-comment-text{color:#334155;font-size:.92rem;font-weight:600;line-height:1.35;width:100%}.row-comment-markdown{display:inline;width:100%}.row-comment-markdown p{display:inline;margin:0}.row-comment-markdown .row-comment-code,.row-comment-markdown code{font-family:var(--font-mono);font-size:.88em;font-weight:500}.section-comment-read-view{display:flex;flex-direction:column;gap:.2rem;width:100%}.notebook-model-view-row-comment-grid{align-items:flex-start;display:flex;gap:.45rem}.notebook-model-view-row-comment-grid-body{display:flex;flex:1;flex-direction:column;gap:.25rem;min-width:0;width:100%}.notebook-model-view-row-comment-grid .grid-editor-row-controls{flex:0 0 auto;margin-inline-end:.95rem;margin-top:.1rem}.section-boundary-signature{color:#475569;display:block;font-family:var(--font-mono);font-size:.82rem;font-weight:500;line-height:1.4}.section-boundary-signature.is-collapsible{align-items:center;cursor:pointer;display:flex;gap:.4rem}.section-boundary-signature.is-collapsible:hover{color:var(--color-link-active)}.section-boundary-toggle-icon{color:#334155;display:inline-block;flex:0 0 auto;font-size:1.2rem;font-weight:700;line-height:1;width:1.1rem}.section-boundary-signature.is-collapsible:hover .section-boundary-toggle-icon{color:var(--color-link-active)}.section-boundary-signature-body{min-width:0}.section-boundary-signature-separator{color:#475569;font-family:var(--font-mono);font-weight:500}.section-boundary-variable-button{font-family:var(--font-mono);font-size:inherit;vertical-align:baseline}.section-boundary-variable-label{display:inline}.notebook-model-view-row-comment:not(.notebook-model-view-row-comment-editing):not(.notebook-model-view-row-comment-grid){cursor:text}.notebook-model-view-row-comment-editing .notebook-model-view-row-comment-editor-cell{grid-column:1 / -1;display:flex;flex-direction:column;gap:.45rem;width:100%}.notebook-model-view-row-comment-input{font:inherit;width:100%}.notebook-model-view-row-comment-grid .notebook-model-view-row-comment-editor{align-items:center;display:grid;gap:.55rem;grid-column:1 / -1;grid-template-columns:auto minmax(0,1fr);width:100%}.notebook-model-view-row-comment-editor-label{color:var(--color-text-subtle);font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.notebook-model-view-row-comment-actions{display:flex;gap:.45rem}.notebook-model-view-row-header{background:#e2e8f08c;color:var(--color-text-subtle);font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.notebook-model-view-row:not(.notebook-model-view-row-header){cursor:pointer}.notebook-model-view-row.is-hovered{background:#f1f5f9f5}.notebook-model-view-row.trace-root{background:#dbeafec7}.notebook-model-view-row.trace-input{background:#dcfce7b3}.notebook-model-view-row.trace-output{background:#fef9c3d1}.notebook-model-view-row.trace-both{background:#ffedd5d1}.notebook-model-view-row.has-issue{background:#fef2f2b8}.notebook-model-view-name,.notebook-model-view-expression,.notebook-model-view-description,.notebook-model-view-initial,.notebook-model-view-current,.notebook-model-view-gain{font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.82rem;line-height:1.35}.notebook-model-view-name{color:var(--color-text-strong)}.notebook-model-view-expression{color:#334155;overflow-wrap:anywhere}.notebook-model-view-description{color:var(--color-text-secondary);overflow-wrap:anywhere}.notebook-model-view-initial{color:var(--color-text-secondary);text-align:right;white-space:nowrap}.notebook-model-view-initial.is-placeholder{color:var(--color-text-subtle)}.notebook-model-view-initial.is-editing{display:grid;gap:.2rem}.notebook-model-view-initial-input{font:inherit;text-align:right;width:100%}.notebook-model-view-current{color:var(--color-text-secondary);text-align:right;white-space:nowrap}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value-tooltip-anchor,.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .variable-label-inline{display:block;width:100%}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value{align-items:baseline;column-gap:0;display:grid;grid-template-columns:2ch minmax(0,1fr) auto 2.25ch minmax(3.75rem,4.75rem);width:100%}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value-leading{text-align:right}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value-integer{font-variant-numeric:tabular-nums;min-width:0;overflow:hidden;text-align:right;text-overflow:ellipsis}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value-separator{text-align:center}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value-fraction{font-variant-numeric:tabular-nums;text-align:left}.notebook-model-view-table-resizable.layout-equation-view .notebook-model-view-current .notebook-current-value-unit{color:var(--color-text-subtle);padding-left:.35rem;text-align:left}.notebook-model-view-gain{color:var(--color-text-secondary);text-align:right;white-space:nowrap}.notebook-model-view-name.is-editable,.notebook-model-view-expression.is-editable,.notebook-model-view-initial.is-editable{cursor:text}.notebook-model-view-row-editing{cursor:default}.notebook-model-view-row-editor-cell{display:grid;gap:.35rem;grid-column:1 / -1;max-width:100%;min-width:0;width:100%}.notebook-model-view-kind{color:var(--color-text-subtle);font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.78rem;line-height:1.35;text-align:right;white-space:nowrap}.notebook-model-view-table-resizable .notebook-model-view-role,.notebook-model-view-table-resizable .notebook-model-view-row>.notebook-model-view-kind{justify-self:end;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}.notebook-linked-editor-cell{display:grid;gap:.3rem}.notebook-linked-editor-topline{align-items:start;display:grid;gap:.3rem;grid-template-columns:minmax(0,1fr) auto;min-width:0;width:100%}.notebook-linked-editor-topline.is-compact{align-items:start;gap:.75rem}.notebook-linked-editor-meta{display:grid;gap:.24rem;min-width:0}.notebook-linked-editor-topline.is-compact .notebook-linked-editor-meta{gap:.35rem}.notebook-linked-editor-titleline{align-items:start;display:grid;gap:.45rem;grid-template-columns:auto minmax(0,1fr);min-width:0}.notebook-linked-editor-titlecontent{display:grid;gap:.28rem;min-width:0}.notebook-linked-editor-titlerow{align-items:center;display:flex;flex-wrap:wrap;gap:.45rem;justify-content:space-between;min-width:0;width:100%}.notebook-linked-editor-titlerow-trailing{flex:0 0 auto;margin-left:auto}.notebook-linked-editor-titleline h2{font-size:1rem;font-weight:700;line-height:1.2;margin:0}.notebook-linked-editor-topline.is-compact .notebook-model-summary{background:transparent;border:0;border-radius:0;padding:0}.notebook-linked-editor-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.24rem;justify-content:flex-end;text-align:right;width:fit-content}.validation-list{margin:.5rem 0 0;padding-left:1.25rem}.error-text{color:#b91c1c;white-space:pre-wrap}.warning-text{color:#b45309;white-space:pre-wrap}.equation-expression-field textarea{min-height:220px;resize:vertical}.equation-role-popover-panel{left:0;right:auto}.equation-role-popover-options{display:grid;gap:.28rem}.equation-role-option{background:#f8fafcf0;border:1px solid var(--color-border-grid);border-radius:.55rem;color:#334155;cursor:pointer;font:inherit;font-size:.76rem;font-weight:600;padding:.34rem .5rem;text-align:left}.equation-role-option.is-active{background:#dbeafed1;border-color:#60a5fa66;color:var(--color-link-active)}.equation-unit-popover-columns{display:grid;gap:.55rem;grid-template-columns:repeat(3,minmax(0,1fr))}.equation-unit-popover-column{display:grid;gap:.28rem}.equation-unit-popover-column-label{color:var(--color-text-secondary);font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.equation-unit-popover-options{display:grid;gap:.28rem}.equation-unit-option{background:#f8fafcf0;border:1px solid var(--color-border-grid);border-radius:.55rem;color:#334155;cursor:pointer;font:inherit;font-size:.76rem;font-weight:600;padding:.34rem .5rem;text-align:left}.equation-unit-option.is-active{background:#dbeafed1;border-color:#60a5fa66;color:var(--color-link-active)}.trace-token-root{font-weight:700;text-decoration:underline;text-decoration-color:#2563eb73}.trace-token-input{font-weight:700}.trace-token-output{font-weight:700;text-decoration:underline;text-decoration-color:#ca8a0473}.trace-token-both{font-weight:700;text-decoration:underline;text-decoration-color:#ea580c73}.toast-stack{display:grid;gap:.6rem;max-width:min(28rem,calc(100vw - 2.5rem));pointer-events:none;position:fixed;right:1.25rem;top:1.25rem;width:auto;justify-items:end;z-index:50}.toast-notification{align-items:center;background:#fffffff5;border:1px solid rgba(20,33,61,.14);border-radius:16px;box-shadow:0 18px 40px #14213d29;color:var(--color-text);display:inline-flex;gap:.9rem;justify-content:space-between;max-width:100%;padding:.8rem .95rem;pointer-events:auto}.toast-notification.is-success{background:#f0fdf4fa;border-color:#22c55e3d}.toast-notification.is-error{background:#fef2f2fa;border-color:#ef44443d}.toast-notification-message{min-width:0}.toast-notification-close{flex:none}.run-status{background:#f8fafce6;border:1px solid rgba(148,163,184,.2);border-radius:var(--radius-pill);color:var(--color-text-secondary);font-size:.68rem;font-weight:600;line-height:1;padding:.18rem .42rem;text-transform:capitalize}.run-status-idle{background:#f8fafce6}.run-status-running{background:#fef3c7cc;border-color:#f59e0b2e;color:#92400e}.run-status-success{background:#d1fae5cc;border-color:#22c55e2e;color:#166534}.run-status-error{background:#fee2e2d9;border-color:#ef44442e;color:#991b1b}button.matrix-multiport__stock-name{background:none;border:0;cursor:pointer;font:inherit;padding:0;text-align:left}button.matrix-multiport__stock-name:hover{text-decoration:underline}.multiport-flow-animation-shell{width:100%}.multiport-flow-animation-shell .flow-graph-shell.sequence-canvas-shell{padding:.15rem}.multiport-flow-edge path{stroke:#2563eb}.multiport-flow-edge--financial path{stroke:#7e22ce}.multiport-flow-edge--capital path{stroke:#b45309}.multiport-flow-edge.is-highlighted path{stroke:var(--color-text-strong)}.dependency-flow-measure{width:100%}.dependency-flow-node{border:2px solid var(--color-text-subtle);border-radius:var(--radius-md);box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:relative}.dependency-flow-node.is-dimmed{opacity:.26}.dependency-flow-node.is-hovered{border-width:2.8px}.dependency-flow-node__badge{border:1px solid transparent;border-radius:7px;color:#fff;font-size:.52rem;font-weight:700;line-height:1;padding:.12rem .28rem;position:absolute;right:6px;top:6px}.dependency-flow-node__label{font-size:.78rem;font-weight:650;text-align:center}.dependency-flow-background{display:block;pointer-events:none}.dependency-sequence-summary{display:grid;gap:.85rem}.dependency-sequence-summary__notice{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:12px;color:var(--color-text-secondary);font-size:.86rem;line-height:1.45;margin:0;padding:.65rem .8rem}.dependency-sequence-summary__layers{display:grid;gap:.75rem;max-height:28rem;overflow:auto}.dependency-sequence-summary__layer{background:#ffffffe6;border:1px solid rgba(148,163,184,.22);border-radius:12px;padding:.55rem .65rem .65rem}.dependency-sequence-summary__layer-title{color:#334155;font-size:.82rem;font-weight:650;margin:0 0 .45rem}.dependency-sequence-summary__variable-list{display:grid;gap:.35rem;list-style:none;margin:0;padding:0}.dependency-sequence-summary__inspect-button{align-items:baseline;background:#f8fafc;border:1px solid var(--color-border-subtle);border-radius:var(--radius-sm);cursor:pointer;display:flex;flex-wrap:wrap;gap:.35rem .55rem;justify-content:space-between;padding:.35rem .55rem;text-align:left;width:100%}.dependency-sequence-summary__inspect-button:hover{background:#eef2ff;border-color:#6366f159}.dependency-sequence-summary__meta{color:var(--color-text-subtle);font-size:.74rem}.cld-sequence-view{display:grid;gap:.85rem}.cld-sequence-view__status{color:var(--color-text-subtle);font-size:.74rem;font-style:italic}.cld-sequence-view__truncated-note{background:#fef3c7a6;border:1px solid rgba(217,119,6,.35);border-radius:var(--radius-sm);color:#92400e;font-size:.82rem;line-height:1.45;margin:0;padding:.55rem .7rem}.cld-sequence-view__show-more{margin-bottom:.65rem}.cld-sequence-view__canvas{border:1px solid var(--color-border-subtle);border-radius:12px;min-height:22rem;overflow:hidden}.cld-sequence-view__empty{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:12px;color:var(--color-text-secondary);font-size:.86rem;line-height:1.45;margin:0;padding:.65rem .8rem}.cld-sequence-view__loops{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:12px;padding:.65rem .8rem}.cld-sequence-view__loops-title{color:#334155;font-size:.86rem;font-weight:650;margin:0 0 .5rem}.cld-sequence-view__loop-list{display:grid;gap:.35rem;list-style:none;margin:0 0 .65rem;padding:0}.cld-sequence-view__loop-list li{align-items:center;display:flex;gap:.45rem}.cld-sequence-view__loop-tag{border-radius:var(--radius-pill);font-size:.72rem;font-weight:700;line-height:1;min-width:1.4rem;padding:.2rem .45rem;text-align:center}.cld-sequence-view__loop-tag.is-r{background:#15803d24;color:#15803d}.cld-sequence-view__loop-tag.is-b{background:#b91c1c1f;color:#b91c1c}.cld-sequence-view__loop-summary{background:#f8fafc;border-radius:8px;color:#334155;font-family:var(--font-mono);font-size:.78rem;line-height:1.45;margin:0;overflow:auto;padding:.55rem .65rem;white-space:pre-wrap}.cld-variable-node{align-items:center;background:#fff;border:1px solid rgba(148,163,184,.45);border-radius:var(--radius-sm);box-shadow:0 1px 2px #0f172a14;display:flex;justify-content:center;min-height:2.5rem;min-width:5.5rem;padding:.35rem .55rem}.cld-variable-node__label{color:var(--color-text-strong);font-size:.82rem;font-weight:650}.legend-label{font:inherit}.legend-swatch{display:inline-block;flex:0 0 1.18rem;height:1.18rem;min-width:1.18rem;width:1.18rem}.legend-swatch svg{display:block;height:100%;width:100%}.legend-swatch circle{fill:currentColor;stroke:color-mix(in srgb,currentColor 55%,var(--color-text-strong) 45%);stroke-width:1.5}.legend-swatch path{fill:none;stroke:#f8fafc;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.legend-swatch-0{color:#111827}.legend-swatch-1{color:#ec4899}.legend-swatch-2{color:#ea580c}.legend-swatch-3{color:#6366f1}.legend-swatch-4{color:#059669}.legend-swatch-5{color:#0284c7}table{border-collapse:collapse;margin-top:.75rem;width:100%}th,td{border-bottom:1px solid #e5e7eb;padding:.6rem .4rem;text-align:left}thead th{font-size:.92rem}@media(max-width:900px){.inspector-chip-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.flow-graph-shell .react-flow__edge.animated path{animation:none}}@media(hover:hover){.button-row button:hover,.editor-row button:hover,.panel-header button:hover,.equation-detail-header button:hover,.file-button:hover,.equation-list-item:hover{border-color:#f59e0b;transform:translateY(-1px)}.notebook-cell:hover:not(.notebook-cell-is-active-editor){background:#fffbeb94;box-shadow:inset 4px 0 #8d5b1647,inset 0 0 0 1px #8d5b161f}.notebook-cell:hover:not(.notebook-cell-is-active-editor) .notebook-cell-content{background:#fffbeb9e}.notebook-cell-model:hover:not(.notebook-cell-is-active-editor) .notebook-cell-content{background:linear-gradient(180deg,#fffbebf0,#fff8ebe6)}.notebook-cell-run:hover:not(.notebook-cell-is-active-editor) .notebook-cell-content,.notebook-cell-chart:hover:not(.notebook-cell-is-active-editor) .notebook-cell-content,.notebook-cell-table:hover:not(.notebook-cell-is-active-editor) .notebook-cell-content{background:#fff8ebc2}.notebook-outline-list li:not(.notebook-outline-item-is-selected) button:hover{background:#ffffffa6;border-radius:var(--radius-sm)}}@media(max-width:1100px){body{overflow:auto}.app-shell{height:auto;min-height:100dvh;overflow:visible}.workspace-layout,.app-header,.notebook-layout{grid-template-columns:1fr}.panel-splitter{display:none}.workspace-sidebar{max-height:none;overflow:visible;position:static}.workspace-main{max-height:none;overflow:visible}.notebook-outline{max-height:none;overflow:visible;position:static}.notebook-main-column{max-height:none;overflow:visible}}@media(max-width:700px){.app-shell{padding:.2rem .4rem}.notebook-main-column{padding-right:0}.notebook-cell-content{padding-left:.35rem;padding-right:.35rem}.equation-workspace-body{grid-template-columns:1fr}.equation-sidebar{border-bottom:1px solid var(--color-border-faint);border-right:0}.editor-row,.equation-grid-header,.equation-grid-row,.external-grid-header,.external-grid-row,.app-header-stats{grid-template-columns:1fr}.notebook-app-bar-main{align-items:start;flex-direction:column}.notebook-app-bar-actions{justify-content:space-between;width:100%}.notebook-action-desktop{display:none}.notebook-scrubber-slot .period-scrubber{padding-top:2.35rem}.notebook-scrubber-slot .period-scrubber-bar{grid-template-columns:1fr;padding-right:0}.notebook-scrubber-slot .notebook-commands-toggle{right:.7rem;top:.55rem;transform:none}.notebook-utility-topline{grid-template-columns:1fr}.notebook-utility-actions{justify-content:flex-start}.notebook-cell-toolbar{align-items:stretch;flex-direction:column}.notebook-model-view{overflow-x:auto}.notebook-model-view-row{min-width:34rem}.notebook-model-view-row-external,.notebook-model-view-row-initial,.notebook-model-view-row-solver{min-width:30rem}.notebook-matrix-wrap,.notebook-godley-table-wrap,.sequence-canvas-shell{max-width:100%}.notebook-matrix-value-col{min-width:7.5rem;width:7.5rem}.notebook-godley-table{min-width:40rem}.sequence-toolbar{align-items:stretch;flex-direction:column}.sequence-toolbar-meta,.sequence-toolbar-actions{justify-content:flex-start}.notebook-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scenario-source-meta-grid,.scenario-source-shock-header,.scenario-source-variable-row{grid-template-columns:1fr}.scenario-source-range{grid-template-columns:auto minmax(0,1fr) auto auto minmax(0,1fr)}}
