.toolbar{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 16px;background:var(--bg-secondary);border-bottom:1px solid var(--border-default);gap:12px;flex-shrink:0}.toolbar-left,.toolbar-center,.toolbar-right{display:flex;align-items:center;gap:8px}.toolbar-left{flex:1}.toolbar-right{flex:1;justify-content:flex-end}.toolbar-logo{display:flex;align-items:center;gap:4px;font-weight:700;-webkit-user-select:none;user-select:none}.toolbar-logo-icon{background:linear-gradient(135deg,var(--accent-blue),var(--accent-purple));-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:16px;font-weight:900;letter-spacing:-.5px;font-family:var(--font-mono)}.toolbar-logo-text{color:var(--text-secondary);font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase}.toolbar-divider{width:1px;height:20px;background:var(--border-default);margin:0 4px}.toolbar-project-btn{display:flex;align-items:center;gap:6px;padding:5px 10px;background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-default);border-radius:var(--radius-md);font-size:12px;font-weight:500}.toolbar-project-btn:hover{background:var(--bg-hover);border-color:var(--border-accent)}.toolbar-compile-btn{display:flex;align-items:center;gap:6px;padding:6px 16px;background:linear-gradient(135deg,#238636,#2ea043);color:#fff;border-radius:var(--radius-md);font-weight:600;font-size:12px;letter-spacing:.3px}.toolbar-compile-btn:hover:not(:disabled){background:linear-gradient(135deg,#2ea043,#3fb950);box-shadow:0 0 12px #2ea0434d}.toolbar-compile-btn:disabled{opacity:.7;cursor:not-allowed}.toolbar-compile-btn.compiling{background:linear-gradient(135deg,#1a6b2b,#238636)}.compile-spinner{width:12px;height:12px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}.toolbar-shortcut{font-size:10px;color:var(--text-tertiary);background:var(--bg-tertiary);padding:2px 6px;border-radius:var(--radius-sm);border:1px solid var(--border-muted)}.toolbar-status{display:flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:var(--radius-md);animation:fadeIn .3s ease}.toolbar-status.success{color:var(--accent-green);background:#3fb9501a}.toolbar-status.error{color:var(--accent-red);background:#f851491a}.status-dot{width:6px;height:6px;border-radius:50%}.toolbar-status.success .status-dot{background:var(--accent-green);box-shadow:0 0 6px var(--accent-green)}.toolbar-status.error .status-dot{background:var(--accent-red);box-shadow:0 0 6px var(--accent-red)}.file-browser{display:flex;flex-direction:column;width:220px;min-width:180px;background:var(--bg-secondary);border-right:1px solid var(--border-default);flex-shrink:0}.file-browser-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border-muted)}.file-browser-title{font-size:11px;font-weight:600;letter-spacing:1px;color:var(--text-secondary)}.file-browser-add{display:flex;align-items:center;justify-content:center;width:22px;height:22px;background:transparent;color:var(--text-secondary);border-radius:var(--radius-sm)}.file-browser-add:hover{background:var(--bg-hover);color:var(--text-primary)}.new-file-input{padding:4px 8px;border-bottom:1px solid var(--border-muted)}.new-file-input input{width:100%;padding:4px 8px;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-accent);border-radius:var(--radius-sm);font-size:12px;font-family:var(--font-mono)}.file-list{flex:1;overflow-y:auto;padding:4px 0}.file-item{display:flex;align-items:center;gap:6px;padding:5px 12px;cursor:pointer;color:var(--text-secondary);transition:all .1s ease;position:relative}.file-item:hover{background:var(--bg-hover);color:var(--text-primary)}.file-item.active{background:var(--bg-active);color:var(--text-primary)}.file-item.active:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--accent-blue)}.file-icon{width:14px;height:14px;flex-shrink:0;border-radius:2px}.file-icon.file-lib{background:var(--accent-blue);opacity:.7}.file-icon.file-type{background:var(--accent-orange);opacity:.7}.file-icon.file-code{background:var(--accent-purple);opacity:.7}.file-name{font-size:12px;font-family:var(--font-mono);display:flex;align-items:center;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unsaved-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-orange);flex-shrink:0}.file-remove{display:none;align-items:center;justify-content:center;background:transparent;color:var(--text-tertiary);margin-left:auto;padding:2px;border-radius:var(--radius-sm)}.file-item:hover .file-remove{display:flex}.file-remove:hover{color:var(--accent-red);background:#f851491a}.file-browser-footer{padding:8px 12px;border-top:1px solid var(--border-muted)}.file-browser-project-info{display:flex;align-items:center;gap:8px}.project-file-count{font-size:11px;color:var(--text-tertiary)}.editor-container{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.editor-tabs{display:flex;align-items:center;gap:0;height:36px;background:var(--bg-secondary);border-bottom:1px solid var(--border-default);overflow-x:auto;flex-shrink:0}.editor-tabs::-webkit-scrollbar{height:0}.editor-tab{display:flex;align-items:center;gap:6px;padding:0 14px;height:100%;background:transparent;color:var(--text-secondary);border:none;border-right:1px solid var(--border-muted);font-size:12px;font-family:var(--font-mono);white-space:nowrap;position:relative}.editor-tab:hover{color:var(--text-primary);background:var(--bg-hover)}.editor-tab.active{color:var(--text-primary);background:var(--bg-primary)}.editor-tab.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent-blue)}.editor-tab-name{overflow:hidden;text-overflow:ellipsis}.editor-tab-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-orange);flex-shrink:0}.editor-body{flex:1;min-height:0;overflow:hidden}.editor-empty{flex:1;display:flex;align-items:center;justify-content:center;background:var(--bg-primary)}.editor-empty-content{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-tertiary)}.editor-empty-icon{font-size:32px;font-family:var(--font-mono);opacity:.3}.bottom-panel{display:flex;flex-direction:column;height:250px;min-height:100px;border-top:1px solid var(--border-default);background:var(--bg-secondary);flex-shrink:0}.bottom-panel-tabs{display:flex;align-items:center;height:32px;background:var(--bg-tertiary);border-bottom:1px solid var(--border-muted);flex-shrink:0}.bottom-tab{display:flex;align-items:center;gap:6px;padding:0 14px;height:100%;background:transparent;color:var(--text-secondary);font-size:11px;font-weight:500;letter-spacing:.3px;border:none;position:relative}.bottom-tab:hover,.bottom-tab.active{color:var(--text-primary)}.bottom-tab.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent-blue)}.tab-badge{font-size:10px;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;background:var(--accent-blue);color:#fff;border-radius:8px;padding:0 4px;font-weight:600}.bottom-panel-content{flex:1;overflow-y:auto;min-height:0}.output-content{padding:12px 16px;font-family:var(--font-mono);font-size:12px;line-height:1.6}.output-placeholder{color:var(--text-tertiary);font-family:var(--font-sans)}.output-placeholder kbd{display:inline-block;padding:1px 6px;background:var(--bg-primary);border:1px solid var(--border-default);border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:11px;color:var(--text-secondary)}.output-loading{display:flex;align-items:center;gap:8px;color:var(--text-secondary)}.output-spinner{width:14px;height:14px;border:2px solid var(--border-default);border-top-color:var(--accent-blue);border-radius:50%;animation:spin .6s linear infinite}.output-success{display:flex;align-items:center;gap:8px;color:var(--accent-green);font-weight:600;margin-bottom:12px}.output-error{display:flex;align-items:center;gap:8px;color:var(--accent-red);font-weight:600;margin-bottom:8px}.output-error-text{color:var(--text-secondary);white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.6;padding:8px 12px;background:#f851490d;border-left:3px solid var(--accent-red);border-radius:0 var(--radius-sm) var(--radius-sm) 0}.output-details{display:flex;flex-direction:column;gap:6px}.output-detail{display:flex;gap:8px}.detail-label{color:var(--text-tertiary);min-width:120px}.detail-value{color:var(--text-primary);font-weight:500}.output-methods{margin-top:8px;padding-top:8px;border-top:1px solid var(--border-muted)}.output-method{padding:2px 0 2px 16px}.method-name{color:var(--accent-purple);font-weight:500}.method-params{color:var(--text-secondary)}.tx-list{display:flex;flex-direction:column;gap:4px;padding:8px}.tx-item{padding:8px 12px;background:var(--bg-primary);border-radius:var(--radius-md);border:1px solid var(--border-muted)}.tx-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.tx-status{font-size:10px;font-weight:700;padding:1px 6px;border-radius:var(--radius-sm);letter-spacing:.5px}.tx-status.success{background:#3fb95026;color:var(--accent-green)}.tx-status.failed{background:#f8514926;color:var(--accent-red)}.tx-id{color:var(--text-tertiary);font-size:11px}.tx-method{color:var(--text-primary);font-weight:500}.tx-details{display:flex;flex-direction:column;gap:2px;font-size:11px;color:var(--text-secondary);padding-left:4px}.tx-failure{color:var(--accent-red)}.project-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .15s ease}.project-modal{width:560px;max-width:90vw;max-height:80vh;background:var(--bg-secondary);border:1px solid var(--border-default);border-radius:var(--radius-xl);display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:slideUp .2s ease}.project-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border-muted)}.project-modal-header h2{font-size:16px;font-weight:600;color:var(--text-primary)}.project-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:transparent;color:var(--text-secondary);border-radius:var(--radius-md)}.project-close:hover{background:var(--bg-hover);color:var(--text-primary)}.project-search{display:flex;align-items:center;gap:8px;padding:8px 20px;border-bottom:1px solid var(--border-muted)}.search-icon{color:var(--text-tertiary);flex-shrink:0}.project-search input{flex:1;padding:6px 0;background:transparent;border:none;color:var(--text-primary);font-size:13px;outline:none}.project-search input::placeholder{color:var(--text-tertiary)}.project-list{flex:1;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:4px}.project-card{padding:12px 14px;border-radius:var(--radius-md);cursor:pointer;border:1px solid transparent;transition:all .15s ease}.project-card:hover{background:var(--bg-hover);border-color:var(--border-default)}.project-card.active{background:#58a6ff14;border-color:var(--accent-blue)}.project-card-header{display:flex;align-items:flex-start;gap:10px}.project-card-icon{color:var(--accent-blue);margin-top:2px;flex-shrink:0}.project-card-info{flex:1;min-width:0}.project-card-name{display:block;font-weight:600;font-size:13px;color:var(--text-primary);margin-bottom:2px}.project-card-desc{display:block;font-size:12px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-active-badge{font-size:10px;font-weight:600;padding:2px 8px;background:#58a6ff26;color:var(--accent-blue);border-radius:10px;flex-shrink:0;letter-spacing:.3px}.project-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding-left:28px}.project-card-meta{font-size:11px;color:var(--text-tertiary)}.project-card-actions{display:flex;gap:4px;opacity:0;transition:opacity .1s ease}.project-card:hover .project-card-actions{opacity:1}.project-action-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:transparent;color:var(--text-tertiary);border-radius:var(--radius-sm)}.project-action-btn:hover{background:var(--bg-active);color:var(--text-primary)}.project-action-btn.danger:hover{color:var(--accent-red);background:#f851491a}.project-new-btn{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px 12px 12px;padding:8px 16px;background:var(--bg-tertiary);color:var(--text-secondary);border:1px dashed var(--border-default);border-radius:var(--radius-md);font-size:12px;font-weight:500}.project-new-btn:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--accent-blue)}.project-new-form{display:flex;flex-direction:column;gap:8px;padding:12px 16px 16px;border-top:1px solid var(--border-muted)}.project-new-input{padding:8px 12px;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-default);border-radius:var(--radius-md);font-size:13px}.project-new-input:focus{border-color:var(--accent-blue);outline:none}.project-new-input::placeholder{color:var(--text-tertiary)}.project-new-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.project-cancel-btn{padding:6px 14px;background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border-default);border-radius:var(--radius-md);font-size:12px;font-weight:500}.project-cancel-btn:hover{color:var(--text-primary);border-color:var(--text-secondary)}.project-create-btn{padding:6px 14px;background:linear-gradient(135deg,#238636,#2ea043);color:#fff;border-radius:var(--radius-md);font-size:12px;font-weight:600}.project-create-btn:hover:not(:disabled){background:linear-gradient(135deg,#2ea043,#3fb950)}.project-create-btn:disabled{opacity:.5;cursor:not-allowed}.app{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;background:var(--bg-primary)}.app-body{display:flex;flex:1;overflow:hidden;min-height:0}.app-main{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}:root{--bg-primary: #0d1117;--bg-secondary: #161b22;--bg-tertiary: #1c2128;--bg-elevated: #21262d;--bg-hover: #292e36;--bg-active: #2d333b;--border-default: #30363d;--border-muted: #21262d;--border-accent: #58a6ff;--text-primary: #e6edf3;--text-secondary: #8b949e;--text-tertiary: #6e7681;--text-link: #58a6ff;--accent-blue: #58a6ff;--accent-green: #3fb950;--accent-red: #f85149;--accent-orange: #d29922;--accent-purple: #bc8cff;--accent-cyan: #39d2c0;--syntax-keyword: #ff7b72;--syntax-string: #a5d6ff;--syntax-comment: #6e7681;--syntax-number: #79c0ff;--syntax-type: #ffa657;--syntax-function: #d2a8ff;--syntax-attribute: #7ee787;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--radius-xl: 12px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 12px rgba(0, 0, 0, .4);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .5);--font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", Consolas, monospace;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;width:100%;overflow:hidden;background:var(--bg-primary);color:var(--text-primary);font-family:var(--font-sans);font-size:13px;line-height:1.5}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--bg-active);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}::selection{background:#58a6ff4d}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent-blue);outline-offset:1px}button{font-family:var(--font-sans);cursor:pointer;border:none;font-size:12px;transition:all .15s ease}input,select{font-family:var(--font-sans);font-size:12px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes spin{to{transform:rotate(360deg)}}
