:root{--bg: #05060a;--bg-elevated: #0c0f16;--bg-card: #111623;--border-subtle: #22283a;--accent: #5b8cff;--accent-soft: rgba(91, 140, 255, .16);--accent-strong: #7f5bff;--text-main: #f7f7ff;--text-muted: #b2b7ce;--text-soft: #8086a3;--danger: #ff4d6a;--warn: #ffb347}.app-root{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at top left,#191f33 0,#05060a 55%);color:var(--text-main);font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 2.5rem;border-bottom:1px solid var(--border-subtle);background:linear-gradient(90deg,#0c0f16fa,#0c0f16d6);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:20}.app-header-left{display:flex;align-items:center;gap:.85rem}.app-logo-circle{width:32px;height:32px;border-radius:999px;display:flex;align-items:center;justify-content:center;border:1px solid var(--accent);background:radial-gradient(circle at top,#1f2a40,#0c0f16);font-weight:600;font-size:.85rem;letter-spacing:.06em}.app-title-block{display:flex;flex-direction:column;gap:.1rem}.app-title{font-size:1.05rem;font-weight:600}.app-subtitle{font-size:.8rem;color:var(--text-soft)}.app-header-right{display:flex;align-items:center;gap:.5rem}.app-env-pill{border-radius:999px;padding:.26rem .7rem;border:1px solid rgba(255,255,255,.12);background:#080b12e6;font-size:.75rem;color:var(--text-soft);text-transform:uppercase;letter-spacing:.06em}.app-header-link{border:none;background:transparent;color:var(--text-soft);font-size:.8rem;padding:.3rem .65rem;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease}.app-header-link:hover{background:#ffffff0a;color:var(--text-main)}.app-header-login{border-radius:999px;padding:.4rem .9rem;border:1px solid var(--accent);background:linear-gradient(135deg,#5b8cff24,#7f5bff14);color:var(--text-main);font-size:.8rem;cursor:pointer;transition:background .15s ease,transform .1s ease,box-shadow .1s ease}.app-header-login:hover{transform:translateY(-.5px);box-shadow:0 0 0 1px #5b8cff80}.app-main{flex:1;display:flex;padding:1.75rem 2.5rem;gap:1.75rem;align-items:stretch}.app-side-nav{width:260px;flex-shrink:0;display:flex;align-items:stretch}.nav-card{border-radius:1.2rem;background:radial-gradient(circle at top left,#181e30 0,#0c0f16 55%);border:1px solid var(--border-subtle);padding:1.1rem 1rem;display:flex;flex-direction:column;gap:1rem;width:100%;height:100%}.nav-card-header{display:flex;flex-direction:column;gap:.2rem}.nav-title{font-size:.95rem;font-weight:600}.nav-subtitle{font-size:.78rem;color:var(--text-soft)}.nav-section{border-top:1px solid rgba(255,255,255,.02);padding-top:.75rem;display:flex;flex-direction:column;gap:.4rem}.nav-section-label{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-soft)}.nav-item{all:unset;border-radius:.7rem;padding:.45rem .6rem;font-size:.8rem;color:var(--text-main);border:1px solid transparent;background:#ffffff05;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .08s ease}.nav-item:hover{background:#ffffff0a;border-color:#ffffff0f}.nav-item-active{border-color:var(--accent);background:var(--accent-soft)}.nav-item-disabled{opacity:.6;cursor:default}.nav-footer{border-top:1px solid rgba(255,255,255,.04);padding-top:.65rem;margin-top:auto}.nav-footer-title{font-size:.78rem;font-weight:500;margin-bottom:.3rem}.nav-footer-line{font-size:.76rem;color:var(--text-soft);display:flex;align-items:center;gap:.35rem;margin-bottom:.1rem}.status-dot{width:7px;height:7px;border-radius:999px}.status-ok{background:#44d28f}.status-warn{background:var(--warn)}.app-demo-area{flex:1;display:flex;align-items:stretch}.demo-card{border-radius:1.3rem;background:linear-gradient(145deg,#111623,#080b12);border:1px solid var(--border-subtle);padding:1.1rem 1.2rem 1.2rem;display:flex;flex-direction:column;gap:.9rem;width:100%;min-height:80vh}.demo-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.demo-title{font-size:1.05rem;font-weight:600}.demo-subtitle{font-size:.8rem;color:var(--text-soft)}.demo-header-actions{display:flex;align-items:center;gap:.4rem}.demo-secondary-btn{border-radius:999px;padding:.3rem .7rem;border:1px solid rgba(255,255,255,.12);background:transparent;color:var(--text-soft);font-size:.78rem;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.demo-secondary-btn:hover{background:#ffffff0a;color:var(--text-main)}.demo-modes{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.demo-modes-label{font-size:.78rem;color:var(--text-soft);margin-right:.25rem}.demo-mode-btn{border-radius:999px;padding:.25rem .7rem;border:1px solid rgba(255,255,255,.18);background:#ffffff05;color:var(--text-soft);font-size:.75rem;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.demo-mode-btn-active{border-color:var(--accent);background:var(--accent-soft);color:var(--text-main)}.demo-note-row{display:flex;flex-direction:column;gap:.25rem}.demo-note-label{font-size:.78rem;color:var(--text-soft)}.demo-note-input{border-radius:.8rem;border:1px solid var(--border-subtle);background:#06090ee6;color:var(--text-main);padding:.45rem .7rem;font-size:.8rem;resize:vertical;min-height:2.5rem}.demo-layout{margin-top:.1rem;flex:1;display:flex;gap:1.1rem;align-items:stretch}.demo-chat-panel{flex:3;display:flex;flex-direction:column;min-width:0}.demo-process-panel{flex:2;display:flex;min-width:200px}.process-card{border-radius:1rem;background:radial-gradient(circle at top,#171b2a 0,#090c15 60%);border:1px solid var(--border-subtle);padding:.7rem .8rem .8rem;display:flex;flex-direction:column;gap:.4rem;width:100%}.process-title{font-size:.9rem;font-weight:500}.process-steps{list-style:decimal;padding-left:1.3rem;margin:.15rem 0 .35rem}.process-steps li{font-size:.78rem;color:var(--text-soft);margin-bottom:.15rem}.process-footnote{font-size:.74rem;color:var(--text-soft)}.demo-messages{flex:1;border-radius:.9rem;border:1px solid var(--border-subtle);background:#07090fe6;padding:.7rem .75rem;overflow-y:auto;display:flex;flex-direction:column;gap:.55rem}.demo-empty{border-radius:.7rem;padding:.6rem .7rem;border:1px dashed rgba(255,255,255,.16);background:#ffffff05}.demo-empty-title{font-size:.85rem;font-weight:500;margin-bottom:.2rem}.demo-empty-text{font-size:.78rem;color:var(--text-soft);margin-bottom:.15rem}.demo-empty-list{margin:.1rem 0 0;padding-left:1.1rem}.demo-empty-list li{font-size:.76rem;color:var(--text-soft);margin-bottom:.15rem}.demo-empty code{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.message{border-radius:.75rem;padding:.55rem .6rem;font-size:.82rem}.message-user{background:#ffffff0a;align-self:flex-end;max-width:82%}.message-assistant{background:#1d284cd9;border:1px solid rgba(91,140,255,.3);max-width:92%}.message-header{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.2rem;color:var(--text-soft)}.message-body{white-space:pre-wrap}.message-details{margin-top:.3rem;font-size:.77rem;color:var(--text-soft)}.message-details summary{cursor:pointer;outline:none}.message-sources{margin-top:.35rem;font-size:.76rem}.message-sources-title{font-weight:500;margin-bottom:.1rem}.message-sources ul{margin:0;padding-left:1rem}.message-sources a{color:var(--accent);text-decoration:none;font-size:.76rem}.message-sources a:hover{text-decoration:underline}.demo-input-row{margin-top:.65rem;display:flex;flex-direction:column;gap:.35rem}.demo-input{border-radius:.8rem;border:1px solid var(--border-subtle);background:#06090ef2;color:var(--text-main);padding:.55rem .7rem;font-size:.85rem;resize:vertical;min-height:3.2rem}.demo-input-actions{display:flex;align-items:center;justify-content:space-between}.demo-error{font-size:.75rem;color:var(--danger);max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.demo-send-btn{border-radius:999px;padding:.4rem 1.1rem;border:none;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#fff;font-size:.85rem;font-weight:500;cursor:pointer;transition:transform .08s ease,box-shadow .08s ease,opacity .08s ease}.demo-send-btn:disabled{opacity:.45;cursor:default}.demo-send-btn:not(:disabled):hover{transform:translateY(-.5px);box-shadow:0 0 0 1px #5b8cff80}.app-info-sections{padding:0 2.5rem 2.5rem;border-top:1px solid rgba(255,255,255,.04);margin-top:.25rem}.info-grid{margin-top:1.2rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}.info-card{border-radius:1.1rem;background:radial-gradient(circle at top,#171b2a 0,#080b12 60%);border:1px solid rgba(255,255,255,.06);padding:.9rem 1rem 1rem}.info-title{font-size:.98rem;font-weight:600;margin-bottom:.3rem}.info-text{font-size:.8rem;color:var(--text-soft);margin-bottom:.45rem}.info-list{margin:0;padding-left:1.1rem}.info-list li{font-size:.8rem;color:var(--text-soft);margin-bottom:.2rem}@media (max-width: 1024px){.app-main{flex-direction:column}.app-side-nav{width:100%}.demo-layout{flex-direction:column}.demo-process-panel{min-width:0}.info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 768px){.app-info-sections{padding:0 1.2rem 1.8rem}.info-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width: 640px){.app-header{flex-direction:column;align-items:flex-start;gap:.6rem}.app-main{padding:1.2rem 1.1rem 1.4rem}}
