:root{font-family:Inter,system-ui,sans-serif;color:#e7ecf2;background:#0f1217;--frame-stack-gap: .45rem;--frame-action-gap: .35rem}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button{border:1px solid #3f4652;background:#1c212b;color:#e7ecf2;border-radius:10px;padding:.45rem .75rem;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45;color:#7f8da1;border-color:#313845;background:#171b22}.icon-button{min-width:2.6rem;padding:.45rem .6rem;line-height:1;font-weight:700;font-size:1rem}.icon-rotate-90{display:inline-block;transform:rotate(90deg)}input{background:#10141a;color:#e7ecf2;border:1px solid #3f4652;border-radius:8px;padding:.3rem .5rem}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#10141a;color:#e7ecf2;border:1px solid #3f4652;border-radius:8px;padding:.3rem 1.9rem .3rem .55rem;background-image:linear-gradient(45deg,transparent 50%,#9fb0c4 50%),linear-gradient(135deg,#9fb0c4 50%,transparent 50%);background-position:calc(100% - .95rem) calc(50% - .1rem),calc(100% - .65rem) calc(50% - .1rem);background-size:.35rem .35rem,.35rem .35rem;background-repeat:no-repeat}.app-shell{height:100%;display:flex;flex-direction:column;gap:0;padding:1.2rem;overflow:hidden}.app-header{position:relative;display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.app-header h1{margin:0;white-space:nowrap;flex:0 0 auto}header p{margin:0 0 1rem;color:#9fb0c4}.toolbar{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;margin-bottom:0}.toolbar-restore-group{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.terminal-attention-pulse{border-color:#91d649b8;background:#3d5b2757;color:#e6ffd0;box-shadow:0 0 #9de65a73;animation:terminal-waiting-pulse 1.35s ease-out infinite}.panel-speed-control{display:flex;align-items:center;gap:.5rem;padding:.35rem .6rem;border:1px solid #3f4652;border-radius:10px;background:#1c212b;flex:1 1 auto;min-width:0}.panel-speed-control span{display:inline-block;font-size:.9rem;color:#c9d4e3;white-space:nowrap;font-variant-numeric:tabular-nums;flex-shrink:0}.panel-speed-control input{accent-color:#6ca0ff;flex:1 1 0;min-width:2rem;width:0;padding:0;border:0;background:transparent}.resize-handle{flex:0 0 1rem;align-self:stretch;cursor:col-resize;-webkit-user-select:none;user-select:none}.panel-wrapper{display:flex;flex-direction:column;gap:.4rem;min-height:0;min-width:0}.workspace-shell{flex:1 1 auto;min-height:0}.workspace-shell,.panel{background:#161b22;border:1px solid #2c3440;border-radius:18px}.panel{padding:1rem}.scroll-area-shell{position:relative;min-height:0;min-width:0;overflow:hidden}.scroll-area-viewport{width:100%;height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.scroll-area-viewport::-webkit-scrollbar{width:0;height:0;display:none}.scroll-area-content{min-height:100%;min-width:0}.scroll-area-scrollbar{position:absolute;top:10px;right:4px;bottom:10px;width:10px;border-radius:999px;background:#171c24;box-shadow:inset 0 0 0 1px #5d6e891f;-webkit-user-select:none;user-select:none}.scroll-area-scrollbar-hidden{opacity:0;pointer-events:none}.scroll-area-thumb{width:100%;border-radius:999px;background:linear-gradient(180deg,#445166,#58667d);box-shadow:inset 0 0 0 1px #dae7ff14;transition:background .12s ease;cursor:pointer}.scroll-area-thumb:hover{background:linear-gradient(180deg,#52607a,#66758d)}.scroll-area-horizontal-scrollbar{position:absolute;left:12px;right:12px;bottom:5px;height:10px;border-radius:999px;background:#171c24;box-shadow:inset 0 0 0 1px #5d6e891f;-webkit-user-select:none;user-select:none}.scroll-area-thumb-horizontal{width:auto;height:100%}.workspace{position:relative;min-height:0;min-width:0;padding:1rem 1rem 1.55rem;overscroll-behavior:contain}.workspace-scroll-content{width:max-content;min-width:100%}.sidebar-shell{flex:1 1 auto;min-height:0;min-width:0}.sidebar{min-height:0;min-width:0;overscroll-behavior:contain}.sidebar>.scroll-area-content{display:flex;flex-direction:column;gap:1rem;min-height:0;min-width:0}.terminal-screen-shell{position:relative;flex:1 1 auto;min-height:0}.terminal-screen{flex:1 1 auto;min-height:260px;max-height:460px;overflow:auto;overscroll-behavior:contain;padding:1rem;display:flex;flex-direction:column;gap:.55rem;background:radial-gradient(circle at top left,rgba(82,132,201,.1),transparent 34%),linear-gradient(180deg,#0b1016f5,#080c11fa)}.terminal-screen-shell .scroll-area-scrollbar{top:8px;right:3px;bottom:8px}.workspace-shell .scroll-area-scrollbar,.sidebar-shell .scroll-area-scrollbar,.workspace-shell .scroll-area-horizontal-scrollbar{background:#171c24;border-radius:999px}.panel-item{display:flex;flex-direction:column;flex:0 0 auto}.panel-item-fullscreen{position:fixed;top:.8rem;right:.8rem;bottom:.8rem;left:.8rem;z-index:1000;min-height:0;min-width:0}.panel-item-fullscreen .terminal-panel{height:100%;min-height:0}.panel-item-fullscreen .terminal-screen,.terminal-panel-fullscreen .terminal-screen{min-height:0;max-height:none}.panel-item-dragging{opacity:.45}.program-root{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem;position:relative}.detached-frame{position:absolute;z-index:2}.frame{display:inline-flex;flex-direction:column;align-items:flex-start;width:auto;min-width:0;max-width:100%;border:1px solid #424e60;border-radius:16px;padding:.65rem;background:#1b212b;box-shadow:inset 0 0 0 1px #ffffff05}.frame-transparent{background:transparent;box-shadow:none}.frame-transparent.frame-incandescent,.frame-transparent.frame-error{background:transparent}.frame-literal,.frame-binary{min-width:0;padding:.3rem .45rem;border-radius:12px}.frame-call{gap:.45rem}.frame-variable{min-width:0;padding:.3rem .45rem;border-radius:12px}.frame-dragging{opacity:.45}.frame-selected{outline:2px solid #6ca0ff}.frame-current{border-color:#58b1ff;box-shadow:0 0 0 2px #58b1ff33}.frame-incandescent{background:linear-gradient(180deg,#1d2430,#2a3038)}.frame-error{border-color:#b84d5b;background:linear-gradient(180deg,#26161a,#301d22)}.frame-comment,.frame-comment.frame-incandescent,.frame-comment.frame-error{border-color:#6f7782;background:#9199a424;box-shadow:inset 0 0 0 1px #e1e6ec0a}.frame-comment-collapsed{background:#9199a41a}.frame-comment-hover-expanded{background:#9199a42b}.frame-header{display:flex;align-self:stretch;align-items:center;gap:.45rem;flex-wrap:wrap;margin-bottom:.5rem}.frame-drag-handle{cursor:grab;-webkit-user-select:none;user-select:none}.frame-drag-handle *,.frame-drag-surface,.frame-drag-surface *{-webkit-user-select:none;user-select:none}.frame-drag-surface *{pointer-events:none}.condition-slot{display:inline-flex;align-items:stretch;min-height:2.5rem;border-radius:16px}.condition-slot-passive>.frame,.expression-slot-passive>.frame{pointer-events:none}.condition-slot-drag-active{box-shadow:inset 0 0 0 1px #58b1ff40}.expression-slot{display:inline-flex;align-items:stretch;border-radius:10px;gap:.22rem}.expression-slot-passive{-webkit-user-select:none;user-select:none}.expression-slot-drag-active{box-shadow:inset 0 0 0 1px #58b1ff40}.frame-compact-body{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;width:fit-content;max-width:100%;min-width:0}.literal-frame-body,.frame-literal .frame-body,.frame-binary .frame-body{gap:0}.frame-call .library-call-body{align-self:stretch;margin-top:.2rem}.library-call-expansions{display:flex;flex-direction:column;gap:var(--frame-stack-gap);margin-top:.45rem;width:fit-content;max-width:100%}.library-call-expansion{width:fit-content;max-width:100%}.frame-variable .frame-body{gap:0}.variable-frame-inline{margin-bottom:0;gap:.45rem}.variable-frame-label{cursor:grab}.frame-literal .inline-input,.frame-variable .inline-input{padding:.1rem .25rem}.frame-binary .inline-input,.frame-binary .inline-select{padding-top:.1rem;padding-bottom:.1rem}.frame-kind{font-weight:700;text-transform:capitalize}.badge,.drop{display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;border-radius:999px;padding:.2rem .5rem}.badge{background:#2a3340;color:#d4ddff}.drop{background:#0d5fff;color:#fff}.badge-usage{font-variant-numeric:tabular-nums}.frame-body{display:flex;flex-direction:column;gap:.55rem}.group-frame-body{gap:.4rem}.group-title-row{display:flex;align-items:center;margin-top:-.15rem}.group-collapsed-header{margin-bottom:0}.group-collapsed-title{color:#eef4ff;font-size:1.05rem;font-weight:700;line-height:1.2}.group-title-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;min-width:8ch;margin:0;padding:0;border:none!important;border-radius:0;background:transparent!important;color:#eef4ff;font-size:1.05rem;font-weight:700;font-style:normal;line-height:1.2;letter-spacing:.01em;text-transform:none;box-shadow:none!important}.group-title-input::placeholder{color:#b4c2d6;opacity:1;font-style:normal}.group-title-input:focus{outline:none;border:none!important;box-shadow:none!important}.inline-layout{display:flex;flex-direction:row;align-items:center;gap:.5rem;flex-wrap:wrap}.branch{display:flex;flex-direction:column;align-self:stretch;width:fit-content;max-width:100%;padding-left:.75rem;border-left:2px solid #3e4754}.if-branches{display:flex;align-items:stretch;gap:.85rem;flex-wrap:wrap;width:fit-content;max-width:100%}.switch-branches{display:flex;align-items:flex-start;gap:.85rem;flex-wrap:wrap;width:fit-content;max-width:100%}.if-branches>.branch{flex:0 1 auto}.switch-branches>.branch{flex:0 1 auto}.branch-plain{padding-left:0;border-left:0}.branch-title{color:#98aac2;font-size:.85rem;margin-bottom:.3rem}.new-struct-definition{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;max-width:100%}.new-struct-field{gap:.25rem}.inline-input{width:auto;min-width:2ch;max-width:100%;flex:0 0 auto}.output-message-editor{display:flex;flex-direction:column;gap:.55rem;width:100%;max-width:100%;min-width:0}.output-frame-preview{width:fit-content;max-width:min(34rem,calc(100vw - 4rem))}.output-frame-preview .frame-body{min-width:0}.output-frame-preview .output-message-editor{width:fit-content}.output-frame-preview .output-preview{width:fit-content;max-width:min(32rem,calc(100vw - 6rem))}.output-preview{display:flex;align-items:baseline;flex-wrap:wrap;gap:0;max-width:100%;max-height:6.75em;overflow-x:hidden;overflow-y:auto;scrollbar-color:#58667d #171c24;scrollbar-width:thin;font-size:1rem;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.output-preview::-webkit-scrollbar{width:12px}.output-message-textarea::-webkit-scrollbar{width:8px}.output-preview::-webkit-scrollbar-track{border-radius:999px;background:#171c24}.output-message-textarea::-webkit-scrollbar-track{border-radius:999px;background:#171c24}.output-preview::-webkit-scrollbar-thumb{border:2px solid #171c24;border-radius:999px;background:linear-gradient(180deg,#445166,#58667d)}.output-message-textarea::-webkit-scrollbar-thumb{border:2px solid #171c24;border-radius:999px;background:linear-gradient(180deg,#445166,#58667d)}.output-preview-text{color:#eef4ff;white-space:inherit;overflow-wrap:anywhere;word-break:break-word}.output-preview-variable{color:#7cc4ff;font-weight:700;white-space:inherit;overflow-wrap:anywhere;word-break:break-word}.output-preview-line-break{flex-basis:100%;height:0}.output-preview-error{color:#ff6b6b;text-decoration:underline wavy #ff6b6b;font-weight:700}.output-segment-error{border-color:#e05c5c!important;outline:1px solid #e05c5c}.output-message-list{display:flex;flex-direction:column;gap:.45rem;width:100%}.output-message-row{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.output-message-row select{min-width:6.8rem}.output-message-input{min-width:14ch;flex:1 1 14rem}.output-message-textarea{background:#10141a;border:1px solid #3f4652;border-radius:8px;color:#e7ecf2;max-height:calc(6.75em + .7rem);line-height:1.35;overflow-x:hidden;overflow-y:auto;padding:.3rem .5rem;resize:none;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.output-line-mode-button{width:2.1rem;height:2.1rem;flex:0 0 2.1rem;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:6px;border:1px solid #344156;background:#172030;color:#dbe8f8;font-family:Fira Code,JetBrains Mono,monospace;font-size:1rem;font-weight:800;line-height:1}.output-line-mode-button:hover{border-color:#557197;background:#202b3d}.output-line-mode-inline{color:#8fd6ff}.output-message-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.output-message-help{color:#9fb0c4;font-size:.88rem;line-height:1.35}.comment-frame-header{margin-bottom:0}.comment-title{color:#eef4ff;font-weight:700;line-height:1.25}.comment-title-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:1 1 12rem;min-width:8ch;padding:.12rem 0;border:0;border-radius:0;background:transparent;color:#eef4ff;font-weight:700;outline:none}.comment-title-input:focus{box-shadow:none}.comment-frame-body{width:min(28rem,100%);margin-top:.45rem}.comment-content,.comment-content-editor{width:100%;max-width:100%;color:#d3dae3;font-size:.9rem;line-height:1.45;white-space:pre-wrap}.comment-content{overflow-wrap:anywhere}.comment-content-editor{min-height:5.6rem;padding:.5rem .6rem;border:1px solid rgba(142,151,163,.42);border-radius:6px;background:#0c101647;resize:vertical;outline:none}.comment-content-editor:focus{border-color:#9ca5b0}.comment-collapse-button{color:#d8dee7}.panel-header{display:flex;flex-direction:column;align-items:stretch;gap:.5rem;margin-bottom:.75rem}.panel h3,.panel h4{margin-top:0}.panel-header h3{margin:0}.panel-header-title{display:inline-flex;align-items:baseline;gap:.55rem;flex-wrap:wrap}.panel-header-meta{color:#9fb0c4;font-size:.92rem;text-transform:lowercase;font-variant-numeric:tabular-nums}.execution-panel-controls{display:flex;flex-direction:column;align-items:stretch;gap:.45rem;min-width:min(100%,16rem)}.execution-button-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;min-width:0}.execution-button-row button{flex:0 0 auto}.execution-speed-control{width:100%}.timeline-item{display:flex;justify-content:space-between;gap:.5rem;padding:.4rem 0;border-bottom:1px solid #232b36}.mem-type-badge{display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:.08rem .34rem;border:1px solid rgba(126,184,247,.22);border-radius:4px;background:#7eb8f714;color:#8fbff3;font-family:Fira Code,JetBrains Mono,monospace;font-size:.7rem;font-weight:700;line-height:1.35;white-space:nowrap}.memory-file-content,.file-content-preview,.file-content-editor{width:100%;max-width:100%;border:1px solid #2c3748;border-radius:6px;background:#101722;color:#dce9f8;font-family:Fira Code,JetBrains Mono,monospace;font-size:.86rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}.memory-file-content,.file-content-preview{min-height:2.4rem;margin:0;padding:.55rem .65rem}.file-content-with-cursor{position:relative}.file-cursor-marker{display:inline-block;width:2px;height:1.2em;margin:-.1em 1px 0;vertical-align:text-bottom;border-radius:999px;background:#8fd6ff;box-shadow:0 0 0 2px #8fd6ff2e}.file-empty-text{color:#7f8da1}.memory-file-position{color:#9fb0c4;font-size:.82rem;font-family:Fira Code,JetBrains Mono,monospace;white-space:nowrap}.file-content-preview{max-height:6.2rem;overflow:hidden}.file-frame-body{display:flex;flex-direction:column;gap:.55rem}.file-content-editor{width:auto;max-width:none;min-height:7rem;resize:vertical;padding:.65rem .75rem;outline:none;overflow:auto;white-space:pre;word-break:normal}.file-content-editor:focus{border-color:#6ca0ff}.file-name-input{min-width:10ch}.struct-node-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.65rem}.struct-node-card{display:flex;flex-direction:column;gap:.5rem;min-width:0;border:1px solid #334154;border-radius:8px;background:#111922;overflow:hidden}.struct-node-header{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;padding:.55rem .65rem;background:#172231;border-bottom:1px solid #2b3748;font-family:Fira Code,JetBrains Mono,monospace;font-size:.85rem}.struct-node-header span{color:#9fb0c4;font-family:Fira Code,JetBrains Mono,monospace;font-size:.76rem;white-space:nowrap}.struct-node-incoming{display:flex;flex-wrap:wrap;gap:.3rem;padding:0 .65rem}.struct-node-incoming span{max-width:100%;padding:.15rem .35rem;border:1px solid #35455b;border-radius:999px;color:#c7d8ef;background:#182130;font-family:Fira Code,JetBrains Mono,monospace;font-size:.72rem;overflow-wrap:anywhere}.struct-field-list{display:flex;flex-direction:column;padding:0 .65rem .65rem}.struct-field-row{display:grid;grid-template-columns:minmax(4rem,.55fr) minmax(0,1.45fr);gap:.55rem;align-items:center;min-width:0;padding:.32rem 0;border-bottom:1px solid #232d3a}.struct-field-row:last-child{border-bottom:0}.struct-field-name,.struct-field-value,.struct-field-pointer{min-width:0;font-family:Fira Code,JetBrains Mono,monospace;font-size:.82rem;overflow-wrap:anywhere}.struct-field-name{color:#aebed2}.struct-field-value{color:#e7ecf2;display:inline-flex;align-items:baseline;gap:.35rem;flex-wrap:wrap}.struct-field-pointer{color:#8dc2ff;font-weight:700;display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.struct-field-arrow{min-width:2rem;height:0;border-top:1px solid #8dc2ff;position:relative}.struct-field-arrow:after{content:"";position:absolute;right:-1px;top:-4px;width:7px;height:7px;border-right:1px solid #8dc2ff;border-top:1px solid #8dc2ff;transform:rotate(45deg)}.panel-section-title{margin-top:0;margin-bottom:.45rem}.timeline-item{display:block}.terminal-panel{gap:0;display:flex;flex-direction:column;min-height:360px;padding:0;overflow:hidden;background:linear-gradient(180deg,#0f141b,#0a0f14);box-shadow:inset 0 1px #ffffff08,0 18px 48px #00000059}.terminal-window-header{display:flex;align-items:center;justify-content:space-between;gap:.9rem;padding:.8rem 1rem;border-bottom:1px solid #232b36;background:linear-gradient(180deg,#18212b,#121921)}.terminal-window-titlebar,.terminal-window-actions{display:inline-flex;align-items:center;gap:.75rem;flex-wrap:wrap}.terminal-window-title{color:#e6edf6;font-weight:700;letter-spacing:.02em}.terminal-window-title-button{display:inline-flex;align-items:center;gap:.35rem;border:0;border-radius:0;background:transparent;padding:0;cursor:pointer}.terminal-window-title-button:hover{color:#fff}.terminal-waiting-indicator{display:inline-flex;align-items:center;gap:.45rem;padding:.22rem .55rem;border-radius:999px;color:#d8f7a5;background:#70a83524;border:1px solid rgba(145,214,73,.28);font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.terminal-waiting-dot{width:.5rem;height:.5rem;border-radius:999px;background:#9de65a;box-shadow:0 0 #9de65a73;animation:terminal-waiting-pulse 1.35s ease-out infinite}.terminal-window-status{color:#9fb0c4;font-size:.86rem;font-family:Fira Code,JetBrains Mono,monospace}.terminal-icon-button{width:2.35rem;height:2.35rem;min-width:2.35rem;display:inline-flex;align-items:center;justify-content:center;padding:0}.terminal-action-icon{width:1.28rem;height:1.28rem;display:block;fill:currentColor}.terminal-empty{color:#76879b;font-family:Fira Code,JetBrains Mono,monospace;line-height:1.6}.terminal-row{display:flex;align-items:flex-start;gap:.75rem;font-family:Fira Code,JetBrains Mono,monospace;line-height:1.55}.terminal-row-prefix{flex:0 0 1ch;color:#6f8197;-webkit-user-select:none;user-select:none}.terminal-row-text{flex:1 1 auto;min-width:0;white-space:pre-wrap;word-break:break-word}.terminal-row-input .terminal-row-text{color:#c6e58e}.terminal-row-output .terminal-row-text{color:#e4eefc}.terminal-command-line{display:flex;align-items:center;gap:.8rem;padding:.9rem 1rem;border-top:1px solid #232b36;background:linear-gradient(180deg,#10161d,#0d1218);cursor:text}.terminal-command-line-waiting{border-top-color:#91d6494d;background:linear-gradient(180deg,#1c2a12b8,#101612f5);box-shadow:inset 0 1px #9de65a14}.terminal-command-prompt{color:#98e56c;font-family:Fira Code,JetBrains Mono,monospace;font-weight:700}.terminal-command-input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;color:#edf4ff;font:inherit;font-family:Fira Code,JetBrains Mono,monospace;padding:0}.terminal-command-input::placeholder{color:#667a92}.terminal-command-hint{color:#6f8197;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.terminal-send-button{flex:0 0 auto;border-color:#4b78bd;background:#1d3150;color:#dce9ff;font-size:.78rem;font-weight:800;letter-spacing:.08em;padding:.42rem .7rem;cursor:pointer}.terminal-send-button:disabled{cursor:text}@keyframes terminal-waiting-pulse{0%{transform:scale(1);box-shadow:0 0 #9de65a73}70%{transform:scale(1.05);box-shadow:0 0 0 10px #9de65a00}to{transform:scale(1);box-shadow:0 0 #9de65a00}}.diagnostics{margin-top:.6rem;color:#ff9aa5;font-size:.92rem}.empty{color:#8191a6;font-style:italic}.inspector-json{white-space:pre-wrap;word-break:break-word;font-size:.85rem;background:#10141a;padding:.75rem;border-radius:12px;border:1px solid #2a3340}.runtime-readout{margin-top:.5rem;color:#9fb0c4;font-size:.9rem}@media(max-width:980px){.if-branches,.switch-branches{flex-direction:column}}.inline-select{width:auto;min-width:66px;margin:0 .4rem;flex:0 0 auto}.expression-editor{display:inline-flex;align-items:center;gap:.35rem;flex-wrap:wrap;width:fit-content;max-width:100%}.expr-source-editor{display:inline-flex;align-items:center;gap:.45rem;flex-wrap:wrap;max-width:min(100%,52rem)}.expr-source-input{width:min(52rem,max(18rem,100%));min-width:min(18rem,100%);flex:1 1 18rem;font-family:Fira Code,JetBrains Mono,monospace}.expr-source-input-error{border-color:#ff5870b8;box-shadow:0 0 0 2px #ff587024}.expr-source-error{color:#ffb3bd;font-size:.86rem;line-height:1.3}.return-value-editor{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;max-width:100%}.return-value-input{min-width:5ch;font-family:Fira Code,JetBrains Mono,monospace}.for-control-row{align-items:flex-start}.for-clause-editor{max-width:min(100%,18rem)}.for-clause-input{width:min(18rem,max(8rem,100%));min-width:min(8rem,100%);flex-basis:8rem}.assign-target-editor{max-width:min(100%,18rem)}.assign-target-input{width:min(18rem,max(6rem,100%));min-width:min(6rem,100%);flex-basis:6rem}.frame{position:relative;overflow:visible}.collapsed-summary{color:#eef4ff;font-style:normal;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.25rem}.action-row,.group-add-row{display:flex;gap:.5rem;flex-wrap:wrap}.group-children{display:flex;flex-direction:column;gap:var(--frame-action-gap);width:fit-content;max-width:100%}.statement-list{display:flex;flex-direction:column;gap:var(--frame-stack-gap);width:fit-content;max-width:100%}.statement-list-drag-active{padding-bottom:.8rem}.statement-item{display:flex;flex-direction:column;width:fit-content;max-width:100%}.drop-indicator{height:12px;margin:.2rem 0;border-radius:999px;background:#58b1ff29;border:1px dashed rgba(88,177,255,.62);box-shadow:inset 0 0 0 1px #58b1ff1f}.badge-error{background:#ff58702e;color:#ffb3bd;border-color:#ff58703d}.danger-button{border-color:#ff58703d}.header-edge-button{margin-left:auto}.header-icon-button{min-width:2.2rem;padding:.35rem .55rem;line-height:1}.add-frame-button{min-width:2.2rem;padding:.35rem .7rem;line-height:1}.add-frame-popover{position:relative;display:inline-flex;align-items:center}.popover-card{position:absolute;top:0;left:calc(100% + .5rem);width:min(420px,calc(100vw - 3rem));max-height:min(720px,calc(100vh - 2rem));overflow:auto;background:#161b22;border:1px solid #394251;border-radius:18px;padding:1rem;box-shadow:0 22px 60px #00000073;z-index:1000;scrollbar-color:#58667d #171c24;scrollbar-width:thin}.popover-card::-webkit-scrollbar{width:10px}.popover-card::-webkit-scrollbar-track{border-radius:999px;background:#171c24;box-shadow:inset 0 0 0 1px #5d6e891f}.popover-card::-webkit-scrollbar-thumb{border:2px solid #171c24;border-radius:999px;background:linear-gradient(180deg,#445166,#58667d)}.popover-card::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#52607a,#66758d)}.modal-title{font-weight:700;margin-bottom:.75rem}.modal-options{display:flex;flex-direction:column;gap:.85rem}.modal-option-section{display:flex;flex-direction:column;gap:.45rem}.modal-option-section-title{color:#8fa2bb;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.modal-option-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.modal-option-button{width:100%}.condition-file-button{height:2rem;display:inline-flex;align-items:center;justify-content:center;padding:0 .65rem;border-radius:6px;border:1px solid #334259;background:#182231;color:#9fd1ff;font-size:.78rem;font-weight:800;line-height:1;text-transform:uppercase}.condition-file-button:hover{border-color:#5d7ca8;background:#223049}.condition-source-editor{display:inline-flex;align-items:center;gap:.45rem;flex-wrap:wrap}.condition-file-popover{display:flex;flex-direction:column;gap:.65rem;width:min(300px,calc(100vw - 3rem))}.condition-file-select{width:100%}.condition-file-options{grid-template-columns:1fr}.file-condition-name{color:#8fd6ff;font-weight:800}.branch-title-row{display:flex;align-items:center;justify-content:space-between}.content-area{display:flex;flex:1 1 auto;gap:0;min-height:0}.library-shell{flex:1 1 auto;min-height:0;background:transparent;border:0;border-radius:0}.library-scroll{min-height:0;min-width:0}.library-scroll>.scroll-area-content{padding:0;display:flex;flex-direction:column;gap:.85rem}.library-panel{background:transparent;border:none;padding:0;display:flex;flex-direction:column;gap:1rem}.library-current-section{display:flex;flex-direction:column;gap:.7rem;padding:1rem;background:#161b22;border:1px solid #2c3440;border-radius:18px}.library-name-row{display:flex;align-items:center}.library-name-input{flex:1 1 auto;min-width:0;width:100%;border:1px solid transparent;background:transparent;box-shadow:none;padding:.05rem .45rem;font-size:1.18rem;font-weight:700;color:#e6edf7;margin-left:-.45rem}.library-name-input:hover,.library-name-input:focus{border-color:#2d3a50;background:#111823}.library-current-actions{display:flex;flex-wrap:wrap;gap:.45rem}.library-params-section{display:flex;flex-direction:column;gap:.35rem}.library-params-list{display:flex;flex-direction:column;gap:.3rem}.library-param-row{display:flex;align-items:center;gap:.3rem}.library-param-input{flex:1 1 auto;min-width:5rem}.library-param-dummy-input{flex:1 1 auto;min-width:0;font-family:Fira Code,JetBrains Mono,monospace}.library-add-param-button{align-self:flex-start;width:auto}.library-projects-section{display:flex;flex-direction:column;gap:.65rem;min-height:0;padding:1rem;background:#161b22;border:1px solid #2c3440;border-radius:18px}.library-save-row{display:flex;flex-wrap:wrap;gap:.45rem}.library-import-hint{font-size:.85rem;color:#9fb2d6;margin-top:.25rem}.library-save-button,.library-current-actions button{flex:0 0 auto;min-width:7.4rem;width:7.4rem}.library-save-button{position:relative;transition:transform .16s ease,background-color .16s ease,color .16s ease}.library-save-button-saved{background-color:#3b8f5f;color:#f7fbf3;transform:scale(1.03)}.library-save-button-saved:after{content:"✔";position:absolute;right:-1.1rem;top:50%;transform:translateY(-50%);font-size:.9rem;opacity:1}.library-import-input{display:none}.drop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0009;color:#fff;font-weight:600;z-index:40;border-radius:8px}.library-list{display:flex;flex-direction:column;gap:.15rem;min-height:0}.library-entry{display:flex;align-items:center;gap:.5rem;padding:.45rem .6rem;border-radius:10px;cursor:pointer;-webkit-user-select:none;user-select:none;border-left:3px solid transparent;transition:background 80ms}.library-entry:hover{background:#202838}.library-entry-active{background:#1a2840;border-left-color:#6ca0ff}.library-entry-name{flex:1 1 auto;font-size:.9rem;color:#d4dce8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.library-entry-active .library-entry-name{color:#dce9ff;font-weight:600}.library-drag-icon{flex:0 0 auto;cursor:grab;color:#4a5870;font-size:1.1rem;line-height:1;padding:.1rem .15rem;border-radius:4px;transition:color 80ms}.library-entry:hover .library-drag-icon{color:#8aa0be}.library-drag-icon:active{cursor:grabbing}@media(max-width:980px){.content-area{flex-direction:column}.panel-wrapper{flex-basis:auto!important;max-height:220px}}.context-menu{position:fixed;z-index:1000;list-style:none;margin:0;padding:.3rem 0;background:#1a2030;border:1px solid #2a3448;border-radius:8px;box-shadow:0 4px 16px #00000080;min-width:130px}.context-menu li{padding:.45rem 1rem;font-size:.88rem;color:#c8d4e8;cursor:pointer;-webkit-user-select:none;user-select:none}.context-menu li:hover{background:#2a3850}.context-menu-danger{color:#e06c75!important}.context-menu-danger:hover{background:#3a2030!important}.library-rename-input{flex:1 1 auto;min-width:0;font-size:.9rem;background:#0d1520;border:1px solid #6ca0ff;border-radius:4px;color:#dce9ff;padding:.1rem .3rem}.array-icon-wrapper{position:relative;display:inline-flex;align-items:center}.array-icon-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:2px 4px;border-radius:3px;color:#8ab4d8;line-height:1}.array-icon-button:hover{background:#8ab4d826;color:#b8d4ee}.array-memory-popup{position:absolute;top:calc(100% + 4px);left:0;z-index:100;background:#1e2535;border:1px solid #3a4a6a;border-radius:6px;padding:.6rem;min-width:6rem;max-width:28rem;max-height:20rem;overflow:auto;box-shadow:0 4px 16px #00000080}.array-memory-1d{display:flex;flex-wrap:wrap;gap:4px}.array-memory-2d{display:grid;gap:4px}.array-memory-cell{display:flex;flex-direction:column;align-items:center;background:#263044;border-radius:3px;padding:3px 6px;min-width:2rem;font-size:.8rem;font-family:monospace}.array-memory-cell-index{font-size:.65rem;color:#6a7f9a;line-height:1;margin-bottom:2px}.array-memory-cell-value{color:#c8dff5}.array-memory-empty{color:#6a7f9a;font-style:italic;font-size:.85rem}.workspace-section{display:flex;flex-direction:column;gap:.4rem;min-height:0;min-width:0}.workspace-section-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0;flex-wrap:wrap}.workspace-section-actions{display:inline-flex;align-items:center;justify-content:flex-start;gap:.4rem;min-width:0;flex-wrap:wrap}.workspace-section-action-button{height:2rem;min-width:4.4rem;padding:0 .65rem;border-radius:8px;font-size:.82rem;line-height:1}.code-workspace-shell{display:flex;flex-direction:column;overflow:hidden}.code-tool-strip{flex:0 0 auto;display:flex;align-items:center;min-height:2.65rem;padding:.35rem .75rem;border-bottom:1px solid #2c3440;background:#141a23}.code-tool-strip .workspace-section-actions{padding:0}.execution-step-placeholder{opacity:.6;cursor:default}.mem-empty-state{min-height:8rem;display:flex;align-items:center;justify-content:center}.code-workspace-scroll-shell{flex:1 1 auto;min-height:0;min-width:0}.tools-section-header{position:relative;display:block;height:.9rem;min-width:0;overflow:visible}.tools-panel-toggles{display:inline-flex;position:absolute;left:4.8rem;right:0;top:50%;transform:translateY(-50%);align-items:center;gap:.35rem;min-width:0;flex-wrap:nowrap;overflow:visible;z-index:2}.tools-panel-toggle{flex:0 0 auto;border-color:#2d3748;background:#111721;color:#65758c;opacity:.86}.tools-panel-toggle-active{border-color:#6ca0ff;background:#22324c;color:#dce9ff;opacity:1}.tools-panel-toggle.terminal-attention-pulse{border-color:#91d649b8;background:#3d5b2757;color:#e6ffd0;opacity:1}.workspace-section-fullscreen{position:fixed;top:.8rem;right:.8rem;bottom:.8rem;left:.8rem;z-index:1000;width:auto;height:auto;padding:.75rem;border:1px solid #2c3440;border-radius:18px;background:#0f1217;box-shadow:0 24px 80px #00000094}.workspace-section-label{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:#4a5a70;padding-left:.75rem;flex-shrink:0}.workspace-section-title-button{width:fit-content;display:inline-flex;align-items:center;gap:.35rem;border:0;border-radius:0;background:transparent;padding-top:0;padding-right:0;padding-bottom:0;cursor:pointer;text-align:left}.workspace-section-title-button:hover{color:#9fb0c4}.fullscreen-back-icon{width:.95rem;height:.95rem;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.workspace-memory-frames{position:relative;display:flex;flex-direction:column;gap:.55rem;align-items:flex-start}.mem-frame-item{position:relative;z-index:1;max-width:100%;transform-origin:center center;will-change:transform,opacity}.mem-frame-item[draggable=true] .mem-frame{cursor:grab}.mem-frame-item-dragging{opacity:.45}.mem-frame-item-dragging .mem-frame{cursor:grabbing}.mem-frame-item-moving{z-index:3}.mem-frame-item-exiting{pointer-events:none;z-index:0;animation:mem-frame-exit .46s cubic-bezier(.4,0,.7,.2) both}.mem-drop-indicator{height:3px;border-radius:999px;background:#6ca0ff8c;margin-bottom:.2rem;max-width:100%;min-width:2rem}.mem-frame{background:#1a2030;border:1px solid #2a3548;border-radius:10px;padding:.6rem .8rem;max-width:100%;overflow:hidden}.mem-field-flash{outline:1px solid transparent;animation:mem-field-flash .9s ease-out both}.mem-frame-error{border-color:#b84d5b;background:linear-gradient(180deg,#26161a,#301d22)}.mem-frame-var{display:flex;flex-direction:row;align-items:center;gap:.4rem;flex-wrap:wrap}.mem-call-scope-item{width:min(100%,34rem)}.mem-call-scope-frame{display:flex;flex-direction:column;gap:.55rem;width:100%;max-width:100%;padding:.65rem;border:1px solid rgba(142,151,163,.18);border-radius:10px;background:#8e97a314;box-shadow:inset 0 0 0 1px #e1e6ec06}.mem-call-scope-header{display:flex;align-items:center;gap:.38rem;flex-wrap:wrap}.mem-call-scope-name{color:#f4f7fb}.mem-call-scope-iteration{color:#8b98aa}.mem-call-scope-body{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.mem-call-scope-body .mem-frame{border-color:#8e97a338;background:#8e97a312}.mem-frame-struct{display:flex;flex-direction:column;gap:.32rem;min-width:min(13.5rem,100%);padding:.45rem .62rem;border-radius:8px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.mem-frame-struct-header{display:flex;align-items:baseline;gap:.32rem;flex-wrap:wrap}.mem-struct-diagram{position:relative;display:grid;gap:.62rem 4.75rem;align-items:start;justify-items:start;max-width:100%;padding:.15rem 0 .35rem}.mem-frame-struct-item{position:relative;z-index:1}.mem-frame-struct-item.is-struct-active .mem-frame-struct{border-color:#8dc2fff2;background:#1d2638;box-shadow:0 0 0 1px #8dc2ff38,0 0 18px #5a96eb38}.mem-frame-struct-item.is-struct-connected .mem-frame-struct{border-color:#8dc2ff80;box-shadow:0 0 0 1px #8dc2ff1a}.mem-global-pointer-group{display:flex;flex-direction:column;gap:.34rem;align-items:flex-start;position:relative;z-index:1}.mem-frame-global-pointer{display:inline-flex;align-items:center;gap:.32rem;padding:.42rem .58rem;border-radius:8px;white-space:nowrap;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.mem-global-pointer-source{display:inline-flex;align-items:center;justify-content:center;color:#8dc2ff;line-height:1}.mem-pointer-icon{width:.88rem;height:.88rem;display:block;fill:currentColor}.mem-global-pointer-item.is-struct-active .mem-frame-global-pointer{border-color:#8dc2fff2;background:#1d2638;box-shadow:0 0 0 1px #8dc2ff38,0 0 18px #5a96eb38}.mem-global-pointer-item.is-struct-connected .mem-frame-global-pointer{border-color:#8dc2ff80;box-shadow:0 0 0 1px #8dc2ff1a}.mem-struct-arrow-layer{position:absolute;inset:0 auto auto 0;pointer-events:none;overflow:visible;z-index:0}.mem-struct-arrow-path{fill:none;stroke:#8dc2ff;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;opacity:.38;marker-end:url(#mem-struct-arrow-head);transition:opacity .15s ease,stroke-width .15s ease,filter .15s ease}.mem-struct-arrow-path.is-active{opacity:1;stroke-width:2.4;filter:drop-shadow(0 0 6px rgba(141,194,255,.45))}.mem-struct-arrow-layer marker path{fill:#8dc2ff;stroke:none}.mem-struct-fields{display:flex;flex-direction:column;gap:.14rem;min-width:0}.mem-struct-field-row{display:grid;grid-template-columns:minmax(3.35rem,auto) auto minmax(0,1fr);gap:.32rem;align-items:center;min-width:0;font-family:monospace;font-size:.78rem}.mem-struct-field-name{color:#7f8fa3;font-weight:700}.mem-struct-field-value{color:#b8c8da;overflow-wrap:anywhere}.mem-struct-pointer{display:inline-flex;align-items:center;justify-content:flex-start;gap:.34rem;min-width:0;color:#8dc2ff;font-weight:700;white-space:nowrap}.mem-frame-array{display:flex;flex-direction:column;gap:.4rem}.mem-frame-array-header{display:flex;align-items:baseline;gap:.3rem;flex-wrap:wrap}.array-axis-controls{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap}.array-axis-label{font-size:.68rem;color:#4a5868;margin-right:.1rem}.array-dim-control{display:inline-flex;flex-direction:column;align-items:center;gap:1px}.array-dim-badge{font-family:monospace;font-size:.7rem;font-weight:700;padding:.1rem .25rem;border-radius:4px;border:1px solid transparent;line-height:1.4;width:2.1rem;min-width:1.4rem;text-align:center;cursor:pointer}.array-dim-badge:focus{outline:1px solid rgba(255,255,255,.18);outline-offset:1px;cursor:text}.array-dim-x{background:#6ca0ff24;border-color:#6ca0ff52;color:#80b0ff}.array-dim-x:hover{background:#6ca0ff38}.array-dim-y{background:#50c88c24;border-color:#50c88c52;color:#6dd8a0}.array-dim-y:hover{background:#50c88c38}.array-dim-fixed{background:#ffffff0a;border-color:#ffffff17;color:#6a7a90}.array-dim-fixed:hover{background:#ffffff14}.array-dim-t{background:#ffb43c14;border-color:#ffb43c47;color:#c89a4a}.array-dim-t:hover{background:#ffb43c24}.array-dim-step{font-size:.45rem;padding:.27rem 0;border-radius:3px;border:1px solid #22303e;background:#131c28;color:#4a5a6e;cursor:pointer;line-height:1;width:80%;min-width:1.12rem;text-align:center}.array-dim-step:disabled{opacity:.22;cursor:not-allowed}.array-dim-step:not(:disabled):hover{background:#1c2a38;color:#7a8ea8}.array-grid-text{display:grid;gap:3px;width:fit-content}.array-grid-cell{background:#18243a;border:1px solid #243248;border-radius:4px;padding:.12rem .32rem;font-family:monospace;font-size:.76rem;color:#9ab8d4;text-align:center;white-space:nowrap}.mem-frame-header{display:flex;align-items:center;gap:.35rem}.mem-frame-name{font-weight:700;color:#7eb8f7;font-family:monospace;font-size:.9rem}.mem-frame-name.mem-call-scope-name{color:#f4f7fb}.mem-frame-sep{color:#5d6e82}.mem-frame-value{font-family:monospace;color:#b8c8da;font-size:.85rem;word-break:break-all}.mem-empty-state{color:#3e4e62;font-size:.82rem;text-align:center;margin-top:2rem}.mem-empty{color:#4a5a6e;font-style:italic;font-size:.8rem}@keyframes mem-frame-exit{0%{opacity:1;transform:scale(1);filter:brightness(1)}35%{opacity:.72;transform:translateY(-3px) scale(.92);filter:brightness(1.18)}to{opacity:0;transform:translateY(8px) scale(.48);filter:brightness(.7)}}@keyframes mem-field-flash{0%{outline-color:#8dc2fff2;box-shadow:0 0 0 2px #8acdff61,0 0 24px #6ca0ffad;filter:brightness(1.65)}45%{outline-color:#8dc2ff6b;box-shadow:0 0 0 1px #8acdff33,0 0 12px #6ca0ff57;filter:brightness(1.18)}to{outline-color:transparent;box-shadow:none;filter:brightness(1)}}@media(prefers-reduced-motion:reduce){.mem-frame-item-exiting,.mem-field-flash{animation-duration:1ms}}.restore-section-btn{font-size:.78rem;padding:.3rem .6rem;border-color:#3a4a60;color:#7a9abf;background:#151c28}.budget-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:10000}.budget-dialog{background:#161b22;border:1px solid #394251;border-radius:18px;padding:1.5rem 1.75rem;width:min(420px,calc(100vw - 3rem));box-shadow:0 28px 70px #0000008c}.budget-dialog-title{font-weight:700;font-size:1.05rem;margin-bottom:.65rem;color:#e2c97e}.budget-dialog-body{font-size:.9rem;color:#a0b4cc;margin:0 0 1.25rem;line-height:1.5}.budget-dialog-actions{display:flex;gap:.65rem;justify-content:flex-end}.budget-btn{padding:.45rem 1.1rem;border-radius:8px;font-size:.88rem;font-weight:600;cursor:pointer;border:1px solid transparent}.budget-btn-continue{background:#1a3a5c;border-color:#2a5a8c;color:#7ac5ff}.budget-btn-continue:hover{background:#1e4570}.budget-btn-stop{background:#3a1a1a;border-color:#6a2a2a;color:#f88}.budget-btn-stop:hover{background:#4a2020}
