*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;background:#f7f8fa;color:#1a1a1a;font-size:14px}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.topbar{justify-content:space-between;padding:0 20px;height:56px;background:#fff;border-bottom:1px solid #e5e7eb;flex-shrink:0}.brand,.topbar{display:flex;align-items:center}.brand{gap:8px}.brand-link{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none}.brand .logo{font-size:22px}.brand .title{font-size:17px;font-weight:700}.top-actions{display:flex;align-items:center;gap:10px}.mode-switch{display:flex;background:#f0f1f3;border-radius:8px;padding:3px}.mode-switch button{border:none;background:transparent;padding:6px 12px;border-radius:6px;font-size:13px;color:#666}.mode-switch button.active{background:#fff;color:#4f46e5;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}.usage-badge{font-size:12px;color:#4f46e5;background:#eef2ff;padding:4px 10px;border-radius:12px;font-weight:600}.usage-badge.exhausted{color:#dc2626;background:#fef2f2}.btn{padding:7px 14px;border-radius:7px;font-size:13px;border:1px solid transparent}.btn.primary{background:#4f46e5;color:#fff}.btn.primary:disabled{background:#c7d2fe;cursor:not-allowed}.btn.ghost{background:transparent;color:#555;border-color:#e5e7eb}.btn.ghost:hover{background:#f5f5f5}.btn.sm{padding:4px 10px;font-size:12px}.export-wrap{position:relative}.export-wrap .caret{font-size:10px;margin-left:2px;opacity:.6}.export-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:50;min-width:220px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.14);padding:6px;overflow:hidden}.export-item{display:flex;align-items:center;gap:10px;width:100%;border:none;background:transparent;padding:9px 10px;border-radius:7px;text-align:left;cursor:pointer}.export-item:hover{background:#f5f5f7}.export-item .export-icon{font-size:18px;line-height:1;flex-shrink:0}.export-item .export-text{display:flex;flex-direction:column;gap:2px}.export-item .export-title{font-size:13px;color:#1a1a1a;font-weight:500}.export-item .export-desc{font-size:11px;color:#999}.btn.rec-stop{background:#dc2626;color:#fff;border-color:#dc2626;display:flex;align-items:center;gap:7px;font-weight:600}.btn.rec-stop:hover{background:#b91c1c}.rec-dot{width:9px;height:9px;border-radius:50%;background:#fff;animation:rec-pulse 1.1s ease-in-out infinite}@keyframes rec-pulse{0%,to{opacity:1}50%{opacity:.3}}.layout{flex:1 1}.layout,.pane{display:flex;overflow:hidden}.pane{flex-direction:column;height:100%}.chat-pane{width:44%;min-width:360px;border-right:1px solid #e5e7eb;background:#fff;transition:width .28s ease}.canvas-pane{flex:1 1;background:#fafbfc;transition:flex .28s ease}.messages{flex:1 1;overflow-y:auto;padding:20px}.welcome{text-align:center;padding:40px 20px;color:#888}.welcome h2{color:#333;margin-bottom:8px}.welcome .examples{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:20px}.chip{padding:8px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;font-size:13px;color:#555;transition:all .15s}.chip:hover{border-color:#4f46e5;color:#4f46e5}.msg{margin-bottom:16px;padding:12px 16px;border-radius:12px;width:-moz-fit-content;width:fit-content;max-width:92%;line-height:1.7}.msg.user{background:#eef2ff;margin-left:auto}.msg.assistant{background:#f7f8fa}.msg.system{background:#fefce8;font-size:12px;color:#888}.msg-content p{margin:0 0 8px}.msg-content p:last-child{margin-bottom:0}.msg-content ol,.msg-content ul{margin:4px 0 8px;padding-left:22px}.msg-content strong{color:#111}.msg-content code{background:#eee;padding:1px 5px;border-radius:4px;font-size:.9em}.msg-content{overflow-wrap:anywhere}.msg-content code,.msg-content pre{word-break:break-all;white-space:pre-wrap}.msg-image{display:block;max-width:240px;max-height:240px;border-radius:8px;border:1px solid rgba(0,0,0,.08);object-fit:contain;cursor:zoom-in}.msg.msg-image-only{width:-moz-fit-content;width:fit-content;max-width:92%}.lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;cursor:zoom-out}.lightbox img{max-width:92vw;max-height:92vh;object-fit:contain;border-radius:6px}.ocr-block{margin-bottom:6px;min-width:0;max-width:100%}.ocr-toggle{background:none;border:none;padding:2px 0;font-size:12px;color:#4f46e5;cursor:pointer}.ocr-toggle:hover{text-decoration:underline}.ocr-text{margin-top:6px;padding:8px 10px;background:rgba(255,255,255,.7);border-radius:8px;border:1px solid rgba(0,0,0,.06);font-size:13px;max-height:320px;overflow-y:auto}.thinking-block{margin-bottom:6px;min-width:0;max-width:100%}.thinking-text{margin:6px 0 0;padding:8px 10px;background:#f5f5f7;border-radius:8px;font-size:12px;color:#6b7280;white-space:pre-wrap;word-break:break-word;max-height:180px;overflow-y:auto;font-family:inherit}.process-label{font-size:12px;color:#9ca3af;margin:6px 0 0}.assistant-progress{display:flex;flex-direction:column;gap:6px}.assistant-progress .phase-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#9ca3af}.assistant-progress .phase-item.active{color:#4f46e5}.assistant-progress .phase-item.done{color:#6b7280}.assistant-progress .phase-check{color:#10b981;font-weight:600}.thinking{display:flex;align-items:center;gap:8px;color:#8a8f98;font-size:14px;padding:2px}.thinking-dots{display:inline-flex;gap:4px}.thinking-dots i{width:6px;height:6px;border-radius:50%;background:#4f46e5;animation:thinking-bounce 1.2s ease-in-out infinite both}.thinking-dots i:first-child{animation-delay:0s}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes thinking-bounce{0%,80%,to{transform:scale(.5);opacity:.4}40%{transform:scale(1);opacity:1}}.composer{border-top:1px solid #e5e7eb;padding:12px 16px 10px;flex-shrink:0;background:#fff}.input-box{border:1px solid #e5e7eb;border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s;overflow:hidden}.input-box:focus-within{border-color:#a5b4fc;box-shadow:0 0 0 4px rgba(79,70,229,.1)}.media-row{display:flex;align-items:center;gap:10px;padding:10px 12px 0}.media-row .img-preview-wrap{position:relative;display:inline-block;line-height:0}.media-row .img-preview{max-height:56px;border-radius:8px;border:1px solid #eee}.media-row .img-preview-remove{position:absolute;top:-6px;right:-6px;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:rgba(15,23,42,.72);color:#fff;font-size:11px;line-height:18px;text-align:center;cursor:pointer}.media-row .img-preview-remove:hover{background:rgba(15,23,42,.92)}.ocr-status{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#8a8f98}.spinner{width:13px;height:13px;border:2px solid #e0e3e9;border-top-color:#4f46e5;border-radius:50%;animation:composer-spin .7s linear infinite}@keyframes composer-spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.input-box textarea{display:block;width:100%;border:none;outline:none;resize:none;background:transparent;padding:12px 14px 4px;font-size:14px;line-height:1.55;font-family:inherit;min-height:24px;max-height:160px;color:#1a1a1a}.toolbar{display:flex;align-items:center;gap:4px;padding:4px 8px 8px 10px}.toolbar-spacer{flex:1 1}.think-select{height:34px;padding:0 6px;margin-left:2px;border:none;border-radius:9px;background:transparent;color:#6b7280;font-size:12px;cursor:pointer;outline:none;transition:background .15s,color .15s}.think-select:hover{background:#f3f4f6;color:#4f46e5}.think-select:focus-visible{background:#f3f4f6;color:#4f46e5}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:none;border-radius:9px;background:transparent;color:#6b7280;transition:background .15s,color .15s}.icon-btn:hover:not(:disabled){background:#f3f4f6;color:#4f46e5}.icon-btn:disabled{opacity:.5;cursor:not-allowed}.send-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:none;border-radius:10px;background:#4f46e5;color:#fff;transition:background .15s,transform .1s,box-shadow .15s}.send-btn:hover:not(:disabled){background:#4338ca;box-shadow:0 2px 8px rgba(79,70,229,.3)}.send-btn:active:not(:disabled){transform:scale(.94)}.send-btn:disabled{background:#c7d2fe;cursor:not-allowed}.send-btn.stop{background:#fff;color:#dc2626;border:1px solid #fecaca;box-shadow:none}.send-btn.stop:hover{background:#fef2f2;border-color:#fca5a5}.error-banner{background:#fef2f2;color:#dc2626;padding:8px 12px;border-radius:8px;margin-bottom:8px;font-size:13px}.status{font-size:12px;color:#9aa0a6;margin-top:8px;text-align:center}.img-preview{max-height:56px;border-radius:8px}.canvas-wrap{flex:1 1;position:relative;overflow:hidden;min-height:300px}#ggb-container{width:100%;height:100%}#ggb-container .applet_scaler{transform:none!important}#ggb-share-container{width:100%;height:100%}#ggb-share-container .applet_scaler{transform:none!important}.canvas-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#888;background:#fafbfc;font-size:14px}.trace-panel{border-top:1px solid #e5e7eb;background:#fff}.trace-panel summary{padding:10px 16px;cursor:pointer;font-size:13px;font-weight:600}.count{background:#eee;border-radius:10px;padding:1px 8px;font-size:11px;margin-left:4px}.trace-list{max-height:30vh;overflow-y:auto;padding:0 16px 12px;font-size:12px}.trace-empty{color:#aaa;padding:8px 0}.trace-item{background:#f9fafb;border-radius:6px;padding:8px 10px;margin-bottom:6px;border-left:3px solid #10b981}.trace-item.fail{border-left-color:#ef4444}.trace-head{font-weight:600}.trace-name{color:#4f46e5}.trace-args,.trace-result{margin:4px 0 0;padding:6px 8px;background:#fff;border-radius:4px;white-space:pre-wrap;word-break:break-all;max-height:120px;overflow-y:auto;font-family:SF Mono,Menlo,monospace;font-size:11px;color:#555}.exec-block{margin-top:8px}.exec-line{padding:4px 8px;border-radius:4px;margin-bottom:3px;font-size:11px}.exec-line.ok{background:#f0fdf4}.exec-line.fail{background:#fef2f2}.exec-line code{font-family:SF Mono,Menlo,monospace;color:#333}.exec-meta{display:block;color:#666;margin-top:2px}.katex{font-size:1.05em}.msg-content .katex-display{margin:8px 0;overflow-x:auto;overflow-y:hidden}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#9ca3af}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-18px) rotate(8deg)}}@keyframes floatSlow{0%,to{transform:translateY(0)}50%{transform:translateY(22px)}}.landing{position:relative;min-height:100vh;overflow:hidden;background:linear-gradient(135deg,#f0f4ff,#fef6f0)}.landing .blob{border-radius:50%;filter:blur(64px);opacity:.55}.landing .blob,.landing .shape{position:absolute;pointer-events:none;z-index:0}.landing .shape{opacity:.7}.landing-nav{display:flex;align-items:center;justify-content:space-between;padding:18px 32px}.landing-hero,.landing-nav{position:relative;z-index:2}.landing-hero{text-align:center;padding:56px 24px 72px;max-width:820px;margin:0 auto}.landing-title{font-size:48px;font-weight:800;letter-spacing:-1px;margin:14px 0;line-height:1.2;background:linear-gradient(135deg,#4f46e5,#ec4899);-webkit-background-clip:text;background-clip:text;color:transparent}.landing-sub{font-size:18px;color:#555;line-height:1.7;margin-bottom:32px}.landing-cta{display:inline-flex;gap:12px;flex-wrap:wrap;justify-content:center}.landing .btn.lg{padding:14px 30px;font-size:16px;border-radius:10px}.landing .btn.primary.lg{box-shadow:0 8px 24px rgba(79,70,229,.3)}.demo-modal{position:relative;max-width:1024px;width:96%;background:#fff;border-radius:20px;padding:32px 28px 28px;box-shadow:0 20px 60px rgba(0,0,0,.2);text-align:center;animation:fadeInUp .35s ease both}.demo-modal .xhs-modal-close{z-index:3}.demo-stage{position:relative;width:100%;aspect-ratio:16/9;background:#f5f5f7;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.demo-media{width:100%;height:100%;object-fit:contain;display:block}.demo-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:42px;border:1px solid rgba(0,0,0,.08);border-radius:50%;background:rgba(255,255,255,.88);font-size:24px;color:#555;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s;line-height:1}.demo-arrow:hover{background:#fff}.demo-arrow-left{left:12px}.demo-arrow-right{right:12px}.demo-title{margin:18px 0 6px;font-size:22px;font-weight:700;color:#1a1a1a}.demo-desc{margin:0 0 16px;font-size:15px;color:#777}.demo-dots{display:flex;gap:8px;justify-content:center}.demo-dot{width:8px;height:8px;border-radius:50%;border:none;background:#e5e7eb;cursor:pointer;padding:0;transition:background .2s}.demo-dot.active{background:#4f46e5;width:20px;border-radius:4px}.landing-features{position:relative;z-index:2;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));grid-gap:20px;gap:20px;max-width:1000px;margin:0 auto;padding:0 24px 72px}.feature-card{background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.8);border-radius:16px;padding:26px 22px;box-shadow:0 4px 20px rgba(0,0,0,.05);transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-6px);box-shadow:0 12px 32px rgba(79,70,229,.12)}.feature-card .ico{font-size:30px}.feature-card h3{margin:12px 0 8px;font-size:17px}.feature-card p{margin:0;color:#666;font-size:14px;line-height:1.6}.landing-footer{position:relative;z-index:2;text-align:center;color:#999;font-size:13px;padding:24px}.xhs-btn{background:linear-gradient(135deg,#fe2c55,#ff6b81)!important;color:#fff!important;font-weight:700!important;font-size:14px!important;padding:8px 18px!important;border-radius:10px!important;box-shadow:0 4px 14px rgba(254,44,85,.35);transition:transform .15s,box-shadow .15s;animation:xhsPulse 2.4s ease-in-out infinite}.xhs-btn:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 6px 20px rgba(254,44,85,.45)}@keyframes xhsPulse{0%,to{box-shadow:0 4px 14px rgba(254,44,85,.35)}50%{box-shadow:0 4px 22px rgba(254,44,85,.55)}}.modal-mask{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.4);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center}.xhs-modal{position:relative;max-width:420px;width:90%;background:#fff;border-radius:20px;padding:36px 30px 28px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.18);animation:fadeInUp .35s ease both}.xhs-modal-close{position:absolute;top:14px;right:16px;background:none;border:none;font-size:20px;color:#bbb;cursor:pointer;padding:4px}.xhs-modal-close:hover{color:#666}.xhs-modal-icon{font-size:48px;margin-bottom:14px}.xhs-modal-title{font-size:19px;font-weight:800;color:#222;margin:0 0 12px}.xhs-modal-desc{font-size:14px;color:#666;line-height:1.7;margin:0 0 22px}.xhs-modal-desc strong{color:#fe2c55}.xhs-modal-account{display:flex;flex-direction:column;gap:10px;background:#fafafa;border-radius:14px;padding:18px 20px;margin-bottom:22px}.xhs-modal-field{display:flex;align-items:center;justify-content:space-between}.xhs-modal-label{font-size:13px;color:#999}.xhs-modal-value{font-size:16px;font-weight:700;color:#fe2c55}.xhs-modal-value.mono{font-family:SF Mono,Fira Code,monospace;letter-spacing:.5px}.xhs-modal-btn{padding:10px 48px!important;font-size:15px!important;border-radius:10px!important}.fade-up{animation:fadeInUp .7s ease both}.fade-up.d1{animation-delay:.1s}.fade-up.d2{animation-delay:.2s}.fade-up.d3{animation-delay:.3s}@media (max-width:600px){.landing-title{font-size:34px}.landing-hero{padding:32px 18px 48px}}.sidebar-overlay{position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:40}.session-sidebar{position:fixed;top:0;left:0;bottom:0;width:260px;background:#fff;border-right:1px solid #e5e7eb;z-index:41;display:flex;flex-direction:column;box-shadow:2px 0 12px rgba(0,0,0,.08)}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-weight:700;border-bottom:1px solid #f0f0f0}.sidebar-list{flex:1 1;overflow-y:auto;padding:8px}.sidebar-empty{color:#aaa;padding:16px;text-align:center;font-size:13px}.sidebar-item{display:flex;align-items:center;gap:6px;width:100%;text-align:left;padding:8px 8px 8px 10px;border:none;background:transparent;border-radius:8px;margin-bottom:4px;cursor:pointer;position:relative}.sidebar-item:hover{background:#f5f5f5}.sidebar-item.active{background:#eef2ff}.sidebar-item-body{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px}.sidebar-pin{flex-shrink:0;padding:2px;border:none;background:transparent;cursor:pointer;font-size:13px;opacity:.5;line-height:1;border-radius:4px}.sidebar-pin:hover{opacity:1;background:#f0f0f0}.sidebar-title{font-size:14px;color:#1a1a1a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-title-input{font-size:14px;padding:2px 4px;border:1px solid #4f46e5;border-radius:4px;outline:none;width:100%;box-sizing:border-box}.sidebar-time{font-size:11px;color:#999}.sidebar-menu-btn{flex-shrink:0;width:24px;height:24px;border:none;background:transparent;cursor:pointer;font-size:16px;color:#999;border-radius:4px;line-height:1;display:none;align-items:center;justify-content:center}.sidebar-item:hover .sidebar-menu-btn{display:flex}.sidebar-menu-btn:hover{background:#e5e7eb;color:#333}.sidebar-dropdown{position:absolute;right:8px;top:36px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.12);z-index:50;min-width:120px;padding:4px}.sidebar-dropdown button{display:block;width:100%;text-align:left;padding:8px 12px;border:none;background:transparent;cursor:pointer;font-size:13px;border-radius:4px}.sidebar-dropdown button:hover{background:#f5f5f5}.sidebar-dropdown button.danger{color:#dc2626}.sidebar-dropdown button.danger:hover{background:#fef2f2}.modal-confirm{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:12px;padding:24px;box-shadow:0 8px 32px rgba(0,0,0,.2);z-index:100;max-width:340px}.modal-confirm p{margin:0 0 16px;font-size:14px;color:#333;line-height:1.6}.modal-actions{display:flex;gap:8px;justify-content:flex-end}.btn.danger{background:#dc2626;color:#fff}.btn.danger:hover{background:#b91c1c}.tour-root{position:fixed;inset:0;z-index:100;pointer-events:none}.tour-mask{position:fixed;background:rgba(15,23,42,.55);pointer-events:auto}.tour-mask-full{inset:0;width:100%;height:100%}.tour-highlight{position:fixed;border-radius:6px;box-shadow:0 0 0 2px #4f46e5,0 0 0 6px rgba(79,70,229,.18);pointer-events:none}.tour-bubble{background:#fff;border-radius:12px;padding:16px 18px 14px;box-shadow:0 10px 32px rgba(0,0,0,.18);max-width:360px;animation:tour-pop .18s ease both;pointer-events:auto}.tour-bubble.center{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:380px;max-width:calc(100vw - 32px)}@keyframes tour-pop{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tour-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.tour-counter{font-size:11px;color:#9aa0a6;font-weight:600}.tour-close{border:none;background:transparent;color:#9aa0a6;font-size:15px;padding:2px 6px;border-radius:6px}.tour-close:hover{background:#f3f4f6;color:#555}.tour-title{margin:0 0 6px;font-size:15px;font-weight:700;color:#1a1a1a}.tour-body{margin:0;font-size:13px;line-height:1.65;color:#555}.tour-cta{margin:8px 0 0;font-size:12px;color:#4f46e5;background:#eef2ff;padding:7px 10px;border-radius:8px;line-height:1.5}.tour-actions{align-items:center;justify-content:space-between;margin-top:14px}.tour-actions,.tour-actions-right{display:flex;gap:8px}.tour-skip{color:#9aa0a6}.tour-dots{display:flex;gap:5px;margin-top:12px;justify-content:center}.tour-dot{width:6px;height:6px;border-radius:50%;background:#e5e7eb}.tour-dot.active{background:#4f46e5;width:16px;border-radius:3px}.tutorial-wrap{position:relative}.tutorial-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:50;min-width:180px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.14);padding:6px;overflow:hidden}.tutorial-menu .export-item{padding:8px 10px}.feedback-modal{max-width:420px;padding:24px}.feedback-modal h3{margin:0 0 4px;font-size:17px}.feedback-textarea{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;font-size:14px;font-family:inherit;line-height:1.6;resize:vertical;min-height:80px;outline:none;transition:border-color .15s}.feedback-textarea:focus{border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.command-panel{display:flex;flex-direction:column;height:100%;overflow:hidden}.command-panel-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #e5e7eb;flex-shrink:0;gap:8px}.command-panel-actions{display:flex;align-items:center;gap:6px}.command-panel-body{flex:1 1;overflow:hidden;padding:14px;display:flex;flex-direction:column;gap:14px;min-height:0}.command-history-section{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.command-history-label{font-size:12px;color:#888;padding:8px 12px 4px;font-weight:600}.command-history-empty{padding:16px;text-align:center;color:#aaa;font-size:13px}.command-history-list{max-height:220px;overflow-y:auto;padding:4px 8px 8px}.command-history-item{display:flex;align-items:baseline;gap:8px;width:100%;text-align:left;padding:7px 10px;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:13px;line-height:1.5;font-family:SF Mono,Menlo,monospace}.command-history-item:hover{background:#f3f4f6}.command-history-item.active{background:#eef2ff}.command-history-item code{color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:1;font-family:SF Mono,Menlo,monospace;font-size:12px}.command-history-labels{font-size:11px;color:#10b981;white-space:nowrap;flex-shrink:0;font-family:-apple-system,BlinkMacSystemFont,sans-serif}.command-input-section{flex:1 1;display:flex;flex-direction:column;min-height:0}.command-input-label{font-size:12px;color:#888;font-weight:600;margin-bottom:6px}.command-input-box{flex:1 1;display:flex;flex-direction:column;border:1px solid #e5e7eb;border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s;overflow:hidden;min-height:0}.command-input-box:focus-within{border-color:#a5b4fc;box-shadow:0 0 0 4px rgba(79,70,229,.1)}.command-editor-wrap{flex:1 1;min-height:0;overflow-y:auto}.command-editor-inner{display:flex;min-height:100%}.command-line-gutter{flex-shrink:0;width:38px;padding-top:12px;background:#f9fafb;border-right:1px solid #eee;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:SF Mono,Menlo,monospace;font-size:13px;line-height:1.7;color:#c0c4cc}.command-line-gutter span{display:block;padding-right:10px}.command-textarea{display:block;flex:1 1;border:none;outline:none;resize:none;overflow-x:auto;overflow-y:hidden;background:transparent;white-space:pre;padding:12px 14px 4px;font-size:13px;line-height:1.7;font-family:SF Mono,Menlo,monospace;color:#1a1a1a}.command-toolbar{display:flex;align-items:center;gap:4px;padding:4px 8px 8px 10px}.command-status{font-size:12px;color:#9aa0a6;margin-top:6px}.command-results.fail-only{border:1px solid #fecaca;border-radius:10px;overflow:hidden;background:#fef2f2;flex-shrink:0}.command-results-label{font-size:12px;color:#dc2626;padding:8px 12px 4px;font-weight:600}.command-results-list{max-height:200px;overflow-y:auto;padding:4px 8px 8px}.command-result-item{padding:6px 10px;border-radius:5px;margin-bottom:3px;font-size:12px;line-height:1.6}.command-result-item.fail{background:#fff;border:1px solid #fecaca}.command-fail-cmd{display:block;color:#333;font-size:12px;font-family:SF Mono,Menlo,monospace;word-break:break-all}.command-fail-error{display:block;color:#dc2626;font-size:11px;margin-top:2px;font-family:-apple-system,BlinkMacSystemFont,sans-serif}.topbar-icon-btn{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;padding:0!important;font-size:16px!important;line-height:1}.btn.ghost.active{background:#eef2ff;color:#4f46e5;border-color:#c7d2fe}