/** * Hermes Hub — Global Layout & Native Chat Styles */ * { box-sizing: border-box; margin: 0; padding: 0; } body, html { height: 100%; width: 100%; font-family: var(--hub-font-sans); background-color: var(--hub-bg-canvas); color: var(--hub-text-primary); overflow: hidden; -webkit-font-smoothing: antialiased; } /* Shell Layout */ .hub-shell { display: flex; height: 100vh; width: 100vw; overflow: hidden; } /* Primary Sidebar */ .hub-sidebar { width: var(--hub-sidebar-width); background-color: var(--hub-bg-sidebar); border-right: 1px solid var(--hub-border-subtle); display: flex; flex-direction: column; flex-shrink: 0; z-index: 20; transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; } .hub-brand { height: var(--hub-header-height); padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hub-border-subtle); gap: 0.5rem; } .hub-brand-left { display: flex; align-items: center; gap: 0.625rem; overflow: hidden; white-space: nowrap; } .hub-logo-icon { width: 28px; height: 28px; border-radius: var(--hub-radius-sm); background: linear-gradient(135deg, var(--hub-accent-current), #1e293b); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #ffffff; box-shadow: 0 2px 8px var(--hub-accent-glow-current); flex-shrink: 0; } .hub-brand-text { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; color: var(--hub-text-primary); } .hub-brand-badge { font-size: 0.65rem; padding: 2px 6px; background-color: var(--hub-bg-active); color: var(--hub-text-secondary); border-radius: var(--hub-radius-full); font-weight: 500; } .hub-collapse-btn { background: transparent; border: 1px solid transparent; color: var(--hub-text-muted); width: 28px; height: 28px; border-radius: var(--hub-radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; } .hub-collapse-btn:hover { background-color: var(--hub-bg-card-hover); color: var(--hub-text-primary); border-color: var(--hub-border-subtle); } .hub-collapse-icon { transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1); } .hub-nav-section { padding: 1.25rem 1rem 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hub-text-muted); font-weight: 600; } .hub-universes-list { list-style: none; padding: 0 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; overflow-y: auto; } .hub-universe-btn { width: 100%; background: transparent; border: 1px solid transparent; padding: 0.5rem 0.625rem; border-radius: var(--hub-radius-md); display: flex; align-items: center; gap: 0.75rem; cursor: pointer; text-align: left; transition: all 0.15s ease; position: relative; } .hub-universe-btn:hover { background-color: var(--hub-bg-card-hover); } .hub-universe-btn.active { background-color: var(--hub-bg-card); border-color: var(--hub-border-medium); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); } .hub-universe-btn.active::before { content: ''; position: absolute; left: -0.5rem; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background-color: var(--item-accent); border-radius: 0 4px 4px 0; box-shadow: 0 0 8px var(--item-accent); } .hub-universe-avatar { width: 32px; height: 32px; border-radius: var(--hub-radius-md); background-color: var(--hub-bg-active); color: var(--hub-text-primary); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hub-border-subtle); flex-shrink: 0; transition: transform 0.15s ease, border-color 0.15s ease; } .hub-universe-btn.active .hub-universe-avatar { border-color: var(--item-accent); box-shadow: 0 0 8px var(--item-accent); } .hub-universe-info { flex: 1; min-width: 0; } .hub-universe-name { font-size: 0.85rem; font-weight: 600; color: var(--hub-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hub-universe-tagline { font-size: 0.7rem; color: var(--hub-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hub-status-dot { width: 8px; height: 8px; border-radius: var(--hub-radius-full); background-color: var(--hub-status-degraded); flex-shrink: 0; } .hub-status-dot.online { background-color: var(--hub-status-online); box-shadow: 0 0 6px var(--hub-status-online); } .hub-status-dot.offline { background-color: var(--hub-status-offline); } .hub-sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--hub-border-subtle); display: flex; flex-direction: column; gap: 0.35rem; } .hub-tool-btn { background: transparent; border: 1px solid transparent; padding: 0.5rem 0.625rem; border-radius: var(--hub-radius-sm); color: var(--hub-text-secondary); font-size: 0.75rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; transition: all 0.15s ease; width: 100%; text-align: left; } .hub-tool-btn:hover { background-color: var(--hub-bg-card-hover); color: var(--hub-text-primary); } /* Sidebar Collapsed State */ .hub-sidebar.collapsed { width: var(--hub-sidebar-collapsed-width); } .hub-sidebar.collapsed .hub-brand { padding: 0; justify-content: center; } .hub-sidebar.collapsed .hub-brand-text, .hub-sidebar.collapsed .hub-brand-badge, .hub-sidebar.collapsed .hub-nav-section, .hub-sidebar.collapsed .hub-universe-info, .hub-sidebar.collapsed .hub-tool-btn span:last-child { display: none !important; } .hub-sidebar.collapsed .hub-collapse-icon { transform: rotate(180deg); } .hub-sidebar.collapsed .hub-universe-btn { padding: 0.5rem; justify-content: center; } .hub-sidebar.collapsed .hub-universe-btn::before { left: -0.5rem; } .hub-sidebar.collapsed .hub-status-dot { position: absolute; top: 6px; right: 6px; } .hub-sidebar.collapsed .hub-tool-btn { justify-content: center; padding: 0.5rem; } /* Main Content Area */ .hub-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background-color: var(--hub-bg-canvas); height: 100%; } .hub-topbar { height: var(--hub-header-height); padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hub-border-subtle); background-color: var(--hub-bg-sidebar); flex-shrink: 0; gap: 1rem; } .hub-topbar-left { display: flex; align-items: center; gap: 0.75rem; } .hub-active-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; } .hub-scope-pill { font-size: 0.65rem; padding: 2px 8px; background-color: var(--hub-bg-active); color: var(--hub-text-secondary); border-radius: var(--hub-radius-full); font-family: var(--hub-font-mono); border: 1px solid var(--hub-border-subtle); } .hub-topbar-right { display: flex; align-items: center; gap: 1rem; } .hub-mode-toggle { display: inline-flex; align-items: center; background-color: var(--hub-bg-active); border: 1px solid var(--hub-border-subtle); border-radius: var(--hub-radius-md); padding: 3px; gap: 2px; } .hub-mode-tab { background: transparent; border: none; color: var(--hub-text-muted); font-size: 0.75rem; font-weight: 500; padding: 4px 10px; border-radius: var(--hub-radius-sm); display: flex; align-items: center; gap: 0.35rem; cursor: pointer; transition: all 0.15s ease; } .hub-mode-tab:hover { color: var(--hub-text-primary); } .hub-mode-tab.active { background-color: var(--hub-bg-card); color: var(--hub-text-primary); box-shadow: 0 1px 4px rgba(0,0,0,0.3); } .hub-mode-divider { width: 1px; height: 12px; background-color: var(--hub-border-medium); } /* Canvas Area */ .hub-canvas { flex: 1; display: flex; position: relative; overflow: hidden; height: calc(100vh - var(--hub-header-height)); } /* ========================================================================== Native Hub Chat Two-Column Layout ========================================================================== */ .hub-native-chat-layout { display: flex; width: 100%; height: 100%; overflow: hidden; } /* Sub-sidebar Conversations Pane */ .hub-conv-sidebar { width: var(--hub-conv-sidebar-width); background-color: var(--hub-bg-sidebar); border-right: 1px solid var(--hub-border-subtle); display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, border-color 0.2s ease; } .hub-conv-sidebar.collapsed { width: 0 !important; min-width: 0 !important; border-right: none; opacity: 0; pointer-events: none; } .hub-conv-header { padding: 0.75rem; border-bottom: 1px solid var(--hub-border-subtle); display: flex; align-items: center; gap: 0.5rem; } .hub-conv-header .hub-btn-new-chat { flex: 1; } .hub-collapse-conv-btn, .hub-expand-conv-btn { background: transparent; border: 1px solid var(--hub-border-subtle); border-radius: var(--hub-radius-sm); color: var(--hub-text-muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.15s ease; } .hub-collapse-conv-btn:hover, .hub-expand-conv-btn:hover { color: var(--hub-text-primary); background: var(--hub-bg-card-hover); border-color: var(--hub-border-medium); } .hub-chat-header-info { display: flex; align-items: center; gap: 0.5rem; } .hub-btn-new-chat { width: 100%; background: linear-gradient(135deg, var(--hub-bg-card), var(--hub-bg-card-hover)); border: 1px solid var(--hub-border-medium); color: var(--hub-text-primary); font-size: 0.825rem; font-weight: 600; padding: 0.6rem 0.75rem; border-radius: var(--hub-radius-md); display: flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; transition: all 0.15s ease; } .hub-btn-new-chat:hover { border-color: var(--hub-accent-current); box-shadow: 0 2px 10px var(--hub-accent-glow-current); background: var(--hub-bg-card-hover); } .hub-conv-search-wrap { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--hub-border-subtle); } .hub-conv-search-input { width: 100%; background-color: var(--hub-bg-canvas); border: 1px solid var(--hub-border-subtle); border-radius: var(--hub-radius-sm); padding: 0.4rem 0.6rem; color: var(--hub-text-primary); font-size: 0.75rem; outline: none; } .hub-conv-search-input:focus { border-color: var(--hub-accent-current); } .hub-conv-list { flex: 1; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; } .hub-conv-group-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hub-text-muted); font-weight: 600; padding: 0.5rem 0.5rem 0.25rem; } .hub-conv-item { padding: 0.55rem 0.65rem; border-radius: var(--hub-radius-md); background: transparent; border: 1px solid transparent; cursor: pointer; display: flex; flex-direction: column; gap: 0.2rem; position: relative; transition: all 0.15s ease; } .hub-conv-item:hover { background-color: var(--hub-bg-card-hover); } .hub-conv-item.active { background-color: var(--hub-bg-card); border-color: var(--hub-border-medium); } .hub-conv-item-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; } .hub-conv-title { font-size: 0.8rem; font-weight: 500; color: var(--hub-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .hub-conv-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.65rem; color: var(--hub-text-muted); } .hub-conv-actions { display: none; align-items: center; gap: 0.25rem; } .hub-conv-item:hover .hub-conv-actions, .hub-conv-item.active .hub-conv-actions { display: flex; } .hub-conv-action-btn { background: transparent; border: none; color: var(--hub-text-muted); cursor: pointer; padding: 2px; font-size: 0.75rem; border-radius: 4px; transition: color 0.1s ease; } .hub-conv-action-btn:hover { color: var(--hub-text-primary); } /* Right Main Chat Pane */ .hub-chat-pane { flex: 1; display: flex; flex-direction: column; background-color: var(--hub-bg-canvas); height: 100%; overflow: hidden; position: relative; } .hub-chat-header { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--hub-border-subtle); background-color: var(--hub-bg-sidebar); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .hub-chat-header-title { font-size: 0.9rem; font-weight: 600; color: var(--hub-text-primary); } .hub-chat-header-status { font-size: 0.7rem; color: var(--hub-text-muted); margin-left: 0.5rem; } .hub-chat-header-actions { display: flex; align-items: center; gap: 0.5rem; } .hub-btn-icon { background: var(--hub-bg-card); border: 1px solid var(--hub-border-subtle); color: var(--hub-text-secondary); width: 28px; height: 28px; border-radius: var(--hub-radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; transition: all 0.15s ease; } .hub-btn-icon:hover { background-color: var(--hub-bg-card-hover); color: var(--hub-text-primary); border-color: var(--hub-border-medium); } .hub-btn-danger:hover { color: #ef4444; border-color: #ef4444; } /* Messages Scroll View */ .hub-messages-container { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; scroll-behavior: smooth; } .hub-empty-state { margin: auto; text-align: center; max-width: 360px; color: var(--hub-text-muted); } .hub-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; } .hub-empty-state h3 { color: var(--hub-text-primary); font-size: 1.1rem; margin-bottom: 0.5rem; } .hub-empty-state p { font-size: 0.85rem; line-height: 1.5; } /* Message Rows */ .hub-msg { display: flex; gap: 0.75rem; max-width: 820px; width: 100%; margin: 0 auto; } .hub-msg-user { flex-direction: row-reverse; } .hub-msg-avatar { width: 32px; height: 32px; border-radius: var(--hub-radius-md); background-color: var(--hub-bg-card); border: 1px solid var(--hub-border-medium); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; } .hub-msg-user .hub-msg-avatar { background-color: var(--hub-accent-current); color: #ffffff; border: none; } .hub-msg-bubble { padding: 0.85rem 1.1rem; border-radius: var(--hub-radius-lg); font-size: 0.875rem; line-height: 1.6; max-width: calc(100% - 48px); word-break: break-word; } .hub-msg-user .hub-msg-bubble { background: linear-gradient(135deg, var(--hub-accent-current), #1d4ed8); color: #ffffff; border-bottom-right-radius: 4px; } .hub-msg-assistant .hub-msg-bubble { background-color: var(--hub-bg-card); border: 1px solid var(--hub-border-subtle); color: var(--hub-text-primary); border-bottom-left-radius: 4px; width: 100%; } .hub-msg-content pre { background-color: var(--hub-bg-canvas); border: 1px solid var(--hub-border-subtle); border-radius: var(--hub-radius-sm); padding: 0.75rem; margin: 0.5rem 0; overflow-x: auto; font-family: var(--hub-font-mono); font-size: 0.8rem; } .hub-msg-content code { font-family: var(--hub-font-mono); background-color: rgba(255,255,255,0.06); padding: 2px 4px; border-radius: 4px; font-size: 0.825rem; } .hub-msg-content p { margin-bottom: 0.5rem; } .hub-msg-content p:last-child { margin-bottom: 0; } .hub-msg-reasoning { background-color: rgba(255, 255, 255, 0.03); border-left: 2px solid var(--hub-accent-current); padding: 0.5rem 0.75rem; margin-bottom: 0.6rem; border-radius: 0 var(--hub-radius-sm) var(--hub-radius-sm) 0; font-size: 0.8rem; color: var(--hub-text-secondary); } .hub-msg-reasoning summary { cursor: pointer; font-weight: 500; color: var(--hub-text-muted); } .hub-streaming-cursor { display: inline-block; width: 6px; height: 14px; background-color: var(--hub-accent-current); margin-left: 4px; vertical-align: middle; animation: hubBlink 0.8s infinite; } @keyframes hubBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* Chat Input Bar */ .hub-chat-input-wrapper { padding: 0.75rem 1.25rem 1rem; background-color: var(--hub-bg-sidebar); border-top: 1px solid var(--hub-border-subtle); flex-shrink: 0; } .hub-chat-form { max-width: 820px; margin: 0 auto; display: flex; align-items: flex-end; gap: 0.5rem; background-color: var(--hub-bg-card); border: 1px solid var(--hub-border-medium); border-radius: var(--hub-radius-lg); padding: 0.5rem 0.75rem; box-shadow: 0 4px 16px rgba(0,0,0,0.3); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .hub-chat-form:focus-within { border-color: var(--hub-accent-current); box-shadow: 0 0 0 2px var(--hub-accent-glow-current); } .hub-chat-textarea { flex: 1; background: transparent; border: none; outline: none; color: var(--hub-text-primary); font-size: 0.875rem; font-family: inherit; resize: none; max-height: 160px; min-height: 24px; line-height: 1.5; padding: 2px 0; } .hub-btn-send { background-color: var(--hub-accent-current); border: none; color: #ffffff; width: 32px; height: 32px; border-radius: var(--hub-radius-md); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: opacity 0.15s ease, transform 0.15s ease; } .hub-btn-send:hover { opacity: 0.9; transform: scale(1.04); } .hub-btn-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; } .hub-btn-stop { background-color: #ef4444; border: none; color: #ffffff; width: 32px; height: 32px; border-radius: var(--hub-radius-md); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; } .hub-stop-square { width: 10px; height: 10px; background-color: #ffffff; border-radius: 2px; } .hub-chat-input-hint { text-align: center; font-size: 0.65rem; color: var(--hub-text-muted); margin-top: 0.4rem; } /* Embedded Iframe Wrapper */ .hub-iframe-wrapper { width: 100%; height: 100%; position: relative; } .hub-workspace-iframe { width: 100%; height: 100%; border: none; background-color: var(--hub-bg-canvas); } .hub-loader-overlay { position: absolute; inset: 0; background-color: var(--hub-bg-canvas); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; z-index: 10; transition: opacity 0.2s ease; } .hub-loader-overlay.hidden { opacity: 0; pointer-events: none; } .hub-spinner { width: 24px; height: 24px; border: 2px solid var(--hub-border-medium); border-top-color: var(--hub-accent-current); border-radius: var(--hub-radius-full); animation: hubSpin 0.6s linear infinite; } @keyframes hubSpin { to { transform: rotate(360deg); } } /* Modals */ .hub-modal-backdrop { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; } .hub-modal-backdrop.active { display: flex; } .hub-modal { background-color: var(--hub-bg-card); border: 1px solid var(--hub-border-medium); border-radius: var(--hub-radius-lg); width: 90%; max-width: 520px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); overflow: hidden; } .hub-modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--hub-border-subtle); display: flex; align-items: center; justify-content: space-between; } .hub-modal-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; max-height: 70vh; overflow-y: auto; } .hub-modal-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--hub-border-subtle); display: flex; justify-content: flex-end; gap: 0.5rem; background-color: var(--hub-bg-sidebar); } .hub-form-group { display: flex; flex-direction: column; gap: 0.35rem; } .hub-form-label { font-size: 0.75rem; font-weight: 500; color: var(--hub-text-secondary); } .hub-input, .hub-textarea { background-color: var(--hub-bg-canvas); border: 1px solid var(--hub-border-subtle); border-radius: var(--hub-radius-sm); padding: 0.5rem 0.75rem; color: var(--hub-text-primary); font-family: inherit; font-size: 0.825rem; outline: none; transition: border-color 0.15s ease; } .hub-input:focus, .hub-textarea:focus { border-color: var(--hub-accent-current); } .hub-btn { padding: 0.45rem 0.9rem; border-radius: var(--hub-radius-sm); font-size: 0.8rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; } .hub-btn-primary { background-color: var(--hub-accent-current); color: #ffffff; } .hub-btn-primary:hover { opacity: 0.9; } .hub-btn-secondary { background-color: var(--hub-bg-card-hover); color: var(--hub-text-secondary); border-color: var(--hub-border-subtle); } .hub-btn-secondary:hover { color: var(--hub-text-primary); border-color: var(--hub-border-medium); }