.demo-root{background:var(--bg-base);color:var(--text-primary);font-family:var(--font-dm-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;flex-direction:column;display:flex;position:fixed;inset:0;overflow:hidden}.demo-nav{border-bottom:1px solid var(--border);background:var(--topbar-bg);flex-shrink:0;justify-content:space-between;align-items:center;gap:24px;height:56px;padding:0 18px;display:flex}.demo-nav-left{align-items:center;gap:26px;min-width:0;display:flex}.demo-wordmark{font-family:var(--font-bricolage), sans-serif;letter-spacing:-.025em;color:var(--accent);flex-shrink:0;font-size:22px;font-weight:500;text-decoration:none}.demo-nav-links{align-items:center;gap:2px;list-style:none;display:flex}.demo-nav-links a{color:var(--text-secondary);white-space:nowrap;border-radius:7px;padding:6px 10px;font-size:14px;text-decoration:none;transition:color .15s,background .15s}.demo-nav-links a:hover{color:var(--text-primary)}.demo-nav-links a.demo-nav-active{color:var(--accent-text);background:var(--accent-bg);font-weight:600}.demo-banner{text-align:center;color:var(--text-secondary);background:var(--bg-subtle);border-bottom:1px solid var(--border);flex-shrink:0;padding:7px 16px;font-size:12.5px;line-height:1.4}.demo-banner-muted{color:var(--text-muted)}.demo-main{flex:1;min-height:0;display:flex}.demo-chat{border-right:1px solid var(--border);background:var(--bg-base);flex-direction:column;flex-shrink:0;width:380px;min-height:0;display:flex}.demo-tree{flex:1;min-width:0;position:relative}.demo-chat-scroll{flex-direction:column;flex:1;gap:12px;padding:18px 16px 8px;display:flex;overflow-y:auto}.demo-msg{display:flex}.demo-msg-user{justify-content:flex-end}.demo-msg-assistant{justify-content:flex-start}.demo-bubble{word-break:break-word;border-radius:14px;max-width:86%;padding:9px 13px;font-size:13px;line-height:1.55}.demo-bubble-user{background:var(--user-bubble-bg);border:1px solid var(--user-bubble-border);color:var(--text-primary);border-bottom-right-radius:4px}.demo-bubble-assistant{background:var(--ai-card-bg);border:1px solid var(--ai-card-border);color:var(--text-primary);border-bottom-left-radius:4px}.demo-md-p{margin:0;font-size:13px;line-height:1.55}.demo-md-p+.demo-md-p{margin-top:6px}.demo-md-ul{flex-direction:column;gap:3px;margin:4px 0 0;padding:0;list-style:none;display:flex}.demo-md-ul li{padding-left:16px;font-size:13px;line-height:1.5;position:relative}.demo-md-ul li:before{content:"";background:var(--accent);border-radius:50%;width:4px;height:4px;position:absolute;top:8px;left:4px}.demo-md-p:first-child,.demo-md-ul:first-child{margin-top:0}.demo-typing{gap:4px;padding:2px 0;display:inline-flex}.demo-typing i{background:var(--text-muted);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite demoBlink}.demo-typing i:nth-child(2){animation-delay:.18s}.demo-typing i:nth-child(3){animation-delay:.36s}@keyframes demoBlink{0%,80%,to{opacity:.25}40%{opacity:1}}.demo-hint{color:var(--text-muted);margin:6px 2px 2px;font-size:11.5px;font-style:italic;line-height:1.45}.demo-composer{border-top:1px solid var(--border);background:var(--bg-base);flex-shrink:0;padding:12px}.demo-error{color:var(--color-error);background:var(--color-error-bg);border:1px solid var(--color-error-border);border-radius:8px;margin-bottom:8px;padding:6px 10px;font-size:12px}.demo-form{background:var(--input-bg);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:13px;align-items:center;gap:10px;padding:8px 8px 8px 12px;transition:border-color .15s;display:flex}.demo-form:focus-within{border-color:var(--accent)}.demo-attach{cursor:pointer;color:var(--text-muted);background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:color .15s;display:flex}.demo-attach:hover{color:var(--accent)}.demo-attach:disabled{opacity:.4;cursor:not-allowed}.demo-textarea{resize:none;min-width:0;color:var(--text-primary);background:0 0;border:none;outline:none;flex:1;max-height:120px;font-family:inherit;font-size:13px;line-height:1.5;overflow-y:auto}.demo-textarea::placeholder{color:var(--text-muted)}.demo-send-btn{background:var(--accent);cursor:pointer;border:none;border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;transition:background .15s;display:flex}.demo-send-btn:hover:not(:disabled){background:var(--accent-hover)}.demo-send-btn:disabled{background:var(--bg-muted);cursor:not-allowed}.demo-meta{justify-content:space-between;align-items:center;margin-top:7px;padding:0 4px;display:flex}.demo-counter{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:11px}.demo-counter-max{color:var(--color-error)}.demo-remaining{color:var(--text-muted);font-size:11px}.demo-composer-locked{text-align:center;justify-content:center;width:100%;padding:11px 12px;line-height:1.35}.demo-btn{cursor:pointer;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;font-family:inherit;font-weight:600;text-decoration:none;transition:background .12s,opacity .12s,transform 60ms;display:inline-flex}.demo-btn:active{transform:translateY(.5px)}.demo-btn-primary{background:var(--accent);color:#fff}.demo-btn-primary:hover{background:var(--accent-hover)}.demo-btn-primary:disabled{opacity:.45;cursor:not-allowed}.demo-btn-sm{padding:7px 14px;font-size:13px}.demo-send{padding:7px 16px;font-size:13px}.demo-btn-lg{padding:11px 22px;font-size:15px}.demo-wall-overlay{z-index:100;background:var(--modal-overlay);justify-content:center;align-items:center;padding:20px;animation:.18s both demoFadeIn;display:flex;position:fixed;inset:0}.demo-wall{background:var(--modal-bg);border:1px solid var(--border);width:100%;max-width:400px;box-shadow:var(--shadow-lg);border-radius:16px;padding:28px 26px 24px;animation:.22s cubic-bezier(.18,.89,.32,1.1) both demoPopIn;position:relative}.demo-wall-close{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:7px;font-size:14px;position:absolute;top:14px;right:14px}.demo-wall-close:hover{background:var(--bg-muted);color:var(--text-primary)}.demo-wall-title{font-family:var(--font-bricolage), sans-serif;letter-spacing:-.02em;margin:0 0 8px;font-size:22px;font-weight:600;line-height:1.2}.demo-wall-sub{color:var(--text-secondary);margin:0 0 18px;font-size:13.5px;line-height:1.5}.demo-wall-list{flex-direction:column;gap:10px;margin:0 0 20px;padding:0;list-style:none;display:flex}.demo-wall-list li{color:var(--text-primary);align-items:center;gap:10px;font-size:13.5px;display:flex}.demo-wall-check{width:20px;height:20px;color:var(--accent-text);background:var(--accent-bg);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:inline-flex}.demo-wall-cta{width:100%}.demo-wall-later{width:100%;color:var(--text-muted);cursor:pointer;background:0 0;border:none;margin-top:12px;font-family:inherit;font-size:13px;display:block}.demo-wall-later:hover{color:var(--text-secondary)}@keyframes demoFadeIn{0%{opacity:0}to{opacity:1}}@keyframes demoPopIn{0%{opacity:0;transform:scale(.96)translateY(8px)}to{opacity:1;transform:scale(1)translateY(0)}}.demo-nav-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.demo-theme-btn{border:1px solid var(--border);cursor:pointer;width:34px;height:34px;color:var(--text-secondary);background:0 0;border-radius:8px;justify-content:center;align-items:center;transition:color .15s,border-color .15s;display:flex}.demo-theme-btn:hover{color:var(--text-primary);border-color:var(--border-strong)}.demo-nav-ghost{color:var(--text-secondary);white-space:nowrap;border-radius:9px;padding:7px 12px;font-size:13px;font-weight:600;text-decoration:none;transition:color .15s}.demo-nav-ghost:hover{color:var(--text-primary)}.demo-video-btn{border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:9px;align-items:center;gap:6px;padding:7px 12px;font-family:inherit;font-size:13px;font-weight:600;transition:border-color .12s,color .12s,background .12s;display:inline-flex}.demo-video-btn:hover{border-color:var(--border-strong);color:var(--text-primary);background:var(--bg-subtle)}.demo-video-modal{z-index:1000;-webkit-backdrop-filter:blur(10px);background:#06050cd1;justify-content:center;align-items:center;padding:5vmin;animation:.2s both demoFadeIn;display:flex;position:fixed;inset:0}.demo-video-frame{aspect-ratio:16/9;background:#000;border:1px solid #ffffff24;border-radius:16px;width:min(1100px,92vw);position:relative;overflow:hidden;box-shadow:0 40px 120px #000000b3}.demo-video-frame iframe{border:0;width:100%;height:100%;position:absolute;inset:0}.demo-video-close{cursor:pointer;color:#fffc;font-family:var(--font-mono,monospace);letter-spacing:.04em;background:0 0;border:none;align-items:center;gap:7px;font-size:13px;display:inline-flex;position:absolute;top:-44px;right:0}.demo-video-close:hover{color:#fff}@media (max-width:860px){.demo-main{flex-direction:column}.demo-tree{border-bottom:1px solid var(--border);flex:none;order:-1;height:42vh}.demo-chat{border-right:none;flex:1;width:100%}}@media (max-width:820px){.demo-nav-links,.demo-nav-ghost{display:none}}@media (max-width:560px){.demo-video-btn-label{display:none}}
