:root{--uopx-crimson: #cc0000;--uopx-crimson-dark: #a80000;--uopx-navy: #1a2744;--uopx-navy-mid: #2c3e6e;--uopx-gray-900: #1c1c1c;--uopx-gray-700: #3d3d3d;--uopx-gray-500: #6b6b6b;--uopx-gray-300: #c8c8c8;--uopx-gray-100: #f4f4f4;--uopx-white: #ffffff;--bg: var(--uopx-white);--sidebar-bg: var(--uopx-gray-100);--sidebar-border: #e0e0e0;--surface: var(--uopx-white);--border: #dde1e7;--text: var(--uopx-gray-900);--text-dim: var(--uopx-gray-500);--text-muted: #7a8694;--accent: var(--uopx-crimson);--accent-dark: var(--uopx-crimson-dark);--user-bg: var(--uopx-navy);--user-text: var(--uopx-white);--asst-text: var(--uopx-gray-900);--asst-bg: var(--uopx-gray-100);--composer-bg: var(--uopx-white);--send-bg: var(--uopx-crimson);--send-fg: var(--uopx-white);--online: #1a7a3c;--offline: #cc0000;font-family:Roboto,Segoe UI,system-ui,sans-serif;font-size:15px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);-webkit-font-smoothing:antialiased}#root{min-height:100vh}.app-shell{display:flex;height:100vh;overflow:hidden}.sidebar{width:268px;flex-shrink:0;background:var(--sidebar-bg);border-right:1px solid var(--sidebar-border);display:flex;flex-direction:column;overflow:hidden}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:16px 16px 14px;border-bottom:1px solid var(--sidebar-border);flex-shrink:0}.sidebar-brand-icon{width:32px;height:32px;border-radius:6px;background:var(--uopx-crimson);flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--uopx-white);font-size:.78rem;font-weight:700;letter-spacing:.02em}.sidebar-brand-name{font-size:.9rem;font-weight:600;color:var(--uopx-navy);line-height:1.2}.sidebar-brand-sub{font-size:.72rem;color:var(--text-dim);margin-top:1px}.new-thread-btn{display:flex;align-items:center;gap:8px;margin:12px 12px 8px;padding:9px 14px;border:1px solid var(--sidebar-border);border-radius:8px;background:var(--uopx-white);color:var(--uopx-navy);font-size:.875rem;font-weight:500;font-family:inherit;cursor:pointer;text-align:left;transition:border-color .15s,background .15s;flex-shrink:0}.new-thread-btn:hover{border-color:var(--uopx-crimson);background:#fff5f5}.new-thread-btn-plus{font-size:1.1rem;line-height:1;color:var(--uopx-crimson)}.session-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;padding:0 8px 12px}.session-list-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);padding:10px 6px 4px;flex-shrink:0}.session-item{border:none;border-radius:7px;background:transparent;color:var(--text-dim);text-align:left;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:2px;width:100%;transition:background .1s,color .1s;flex-shrink:0;font-family:inherit}.session-item:hover{background:#ebebeb;color:var(--text)}.session-item.is-active{background:#ffe5e5;color:var(--uopx-navy)}.session-item-title{font-size:.84rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-item-meta{font-size:.69rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.session-item-preview{font-size:.76rem;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-item-thread{font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.main-area{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.topbar{display:flex;align-items:center;justify-content:flex-end;padding:0 20px;height:54px;gap:16px;border-bottom:1px solid var(--border);flex-shrink:0;background:var(--uopx-white)}.status-strip{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow:hidden}.status-chip{display:flex;align-items:center;gap:5px;font-size:.8125rem;color:var(--uopx-gray-700);white-space:nowrap;background:var(--uopx-gray-100);border:1px solid var(--border);border-radius:20px;padding:3px 10px}.status-chip-dot{width:7px;height:7px;border-radius:50%;background:var(--text-muted);flex-shrink:0}.status-chip-dot.online{background:var(--online)}.status-chip-dot.offline{background:var(--offline)}.status-chip-val{font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;color:var(--uopx-gray-700);overflow:hidden;text-overflow:ellipsis;max-width:120px}.chat-root{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.thread-viewport{flex:1;overflow-y:auto;padding:20px 24px 16px;display:flex;flex-direction:column;gap:14px}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 24px 24px;gap:8px}.empty-state h2{margin:0;font-size:1.5rem;font-weight:700;color:var(--uopx-navy);font-family:"IBM Plex Serif",Georgia,serif;letter-spacing:-.01em}.empty-state p{margin:0;font-size:.9375rem;color:var(--text-dim)}.message{width:100%;display:flex}.message-bubble{max-width:min(72ch,84%);border-radius:14px;padding:10px 14px;line-height:1.55;font-size:.9375rem}.message-bubble-user{margin-left:auto;background:var(--user-bg);color:var(--user-text);border-radius:16px 16px 4px}.message-bubble-assistant{margin-right:auto;background:var(--asst-bg);color:var(--asst-text);border:1px solid var(--border);border-radius:4px 16px 16px}.message-bubble-system{margin:0 auto;background:#fff8e7;color:#7a4c00;border:1px solid #ffe1a0;font-size:.85rem;border-radius:8px}.message-text{margin:0;white-space:pre-wrap}.message-link{text-decoration:underline;text-underline-offset:2px;font-weight:500;word-break:break-all}.message-bubble-user .message-link{color:#afd4ff}.message-bubble-assistant .message-link{color:var(--uopx-crimson)}.message-bubble-system .message-link{color:#7a4c00}.message-link:hover{opacity:.8}.composer-wrapper{padding:8px 20px 16px;flex-shrink:0;background:var(--bg)}.composer{border:1px solid var(--border);border-radius:12px;background:var(--composer-bg);display:flex;flex-direction:column;box-shadow:0 1px 4px #0000000f;transition:border-color .15s,box-shadow .15s}.composer:focus-within{border-color:var(--uopx-crimson);box-shadow:0 0 0 3px #cc00001a}.composer-input{width:100%;border:none;background:transparent;color:var(--text);padding:14px 16px 6px;font-size:.95rem;font-family:inherit;resize:none;min-height:54px;max-height:200px;outline:none;line-height:1.55}.composer-input::placeholder{color:var(--text-muted)}.composer-footer{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 10px;gap:8px}.speed-toggle{display:flex;gap:4px}.speed-option{border:1px solid var(--border);border-radius:20px;background:transparent;color:var(--text-dim);cursor:pointer;font-size:.78rem;font-weight:500;font-family:inherit;padding:4px 12px;transition:background .12s,color .12s,border-color .12s;display:flex;align-items:center;gap:4px}.speed-option:hover{border-color:var(--uopx-gray-300);color:var(--text)}.speed-option.is-active{background:var(--uopx-navy);border-color:var(--uopx-navy);color:var(--uopx-white)}.speed-option-title{line-height:1}.speed-option-detail{display:none}.model-picker{border:1px solid var(--border);border-radius:20px;background:transparent;color:var(--text-dim);font-size:.78rem;font-weight:500;font-family:inherit;padding:4px 28px 4px 12px;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;transition:border-color .12s,color .12s;margin-left:auto}.model-picker:hover{border-color:var(--uopx-gray-300);color:var(--text)}.model-picker:focus{outline:none;border-color:var(--uopx-crimson);box-shadow:0 0 0 3px #cc00001a}.composer-send{border:none;border-radius:8px;width:36px;height:36px;background:var(--send-bg);color:var(--send-fg);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;font-family:inherit;transition:background .15s,opacity .15s;flex-shrink:0}.composer-send:hover:not(:disabled){background:var(--uopx-crimson-dark)}.composer-send:disabled{opacity:.35;cursor:not-allowed}.status-panel{flex-shrink:0;border-top:1px solid var(--border);background:var(--uopx-gray-100)}.status-panel-toggle{display:flex;align-items:center;width:100%;padding:5px 16px;border:none;background:transparent;color:var(--text-muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;cursor:pointer;gap:6px;text-align:left;font-family:inherit}.status-panel-toggle:hover{color:var(--text-dim)}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;padding:8px 16px 12px}.status-grid>div{display:flex;flex-direction:column;gap:2px}.status-span-full{grid-column:1 / -1}.status-label{font-size:.67rem;text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted)}.status-value{font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:.77rem;color:var(--uopx-gray-700);word-break:break-all}.status-value.online{color:var(--online);font-weight:600}.status-value.offline{color:var(--offline);font-weight:600}.status-stage-flow{word-break:break-word}@media(max-width:700px){.app-shell{flex-direction:column}.sidebar{width:100%;height:auto;flex-direction:column;border-right:none;border-bottom:1px solid var(--sidebar-border)}.session-list{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:0 8px 8px}.session-item{min-width:160px;max-width:220px}.topbar{height:auto;padding:10px 16px}.thread-viewport{padding:16px 16px 12px}.composer-wrapper{padding:8px 14px 14px}}
