:root { color-scheme: light; --bg: #f5f7fb; --bg-strong: #edf2f7; --panel: #ffffff; --panel-soft: #f9fbff; --panel-muted: #eef4ff; --text: #1f2a37; --muted: #7b8794; --line: #e5eaf1; --line-strong: #d7e0ea; --accent: #3a72d8; --accent-dark: #2f5fbb; --sidebar: #f7faff; --sidebar-strong: #eef4fb; --danger-bg: #fff1f2; --danger-text: #be123c; --shadow: 0 12px 32px rgba(31, 42, 55, 0.08); } * { box-sizing: border-box; } body { min-height: 100vh; margin: 0; background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%); color: var(--text); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; } .login-page, .shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; } .login-card, .panel { width: min(100%, 420px); padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); } .eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0; } h1 { margin: 0; font-size: 28px; line-height: 1.25; } .muted { margin: 10px 0 24px; color: var(--muted); line-height: 1.7; } .alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; background: var(--danger-bg); color: var(--danger-text); font-size: 14px; } form { display: grid; gap: 12px; } label { color: #344054; font-size: 14px; font-weight: 600; } input[type="text"], input[type="password"] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; } input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14); outline: none; } .button { height: 44px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--accent); color: #ffffff; cursor: pointer; font: inherit; font-weight: 700; } .button:hover { background: var(--accent-dark); } .app-body { overflow: hidden; } .app-shell { display: grid; grid-template-rows: 60px minmax(0, 1fr); height: 100vh; min-height: 0; background: var(--bg); } .workspace { display: grid; grid-template-columns: 296px minmax(0, 1fr) 340px; min-height: 0; height: 100%; overflow: hidden; } .sidebar { display: flex; flex-direction: column; gap: 24px; padding: 18px; min-height: 0; overflow: hidden; background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-strong) 100%); border-right: 1px solid var(--line); transition: width 180ms ease, padding 180ms ease, transform 180ms ease; } .sidebar-top { display: grid; gap: 14px; } .sidebar-header { display: flex; align-items: center; gap: 12px; } .brand { display: flex; align-items: center; gap: 12px; color: var(--text); } .brand-copy { display: grid; gap: 2px; } .brand-mark, .avatar, .message-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e4edff; color: var(--accent); font-size: 14px; font-weight: 700; } .brand-text { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; } .brand-subtitle { color: var(--muted); font-size: 12px; } .icon-button { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; cursor: pointer; } .icon-button span { width: 16px; height: 2px; margin-left: 11px; border-radius: 999px; background: #6b7785; } .new-chat, .ghost-button, .send-button, .tool-chip { border: 0; border-radius: 12px; font: inherit; cursor: pointer; } .new-chat { height: 44px; width: 100%; background: var(--accent); color: #ffffff; font-weight: 700; } .search-form input { width: 100%; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; color: var(--text); font: inherit; } .sidebar-label { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; } .sidebar-group { display: flex; min-height: 0; flex: 1; flex-direction: column; } .history-list { display: grid; align-content: start; gap: 8px; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #c4cfdd transparent; } .history-list::-webkit-scrollbar { width: 8px; } .history-list::-webkit-scrollbar-track { background: transparent; } .history-list::-webkit-scrollbar-thumb { border-radius: 999px; background: #c4cfdd; } .history-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 8px; padding: 10px 8px 10px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: rgba(255, 255, 255, 0.82); } .history-item.active, .history-item:hover { border-color: #cfdcf6; background: #edf4ff; } .history-link { display: grid; min-width: 0; gap: 4px; color: inherit; text-decoration: none; } .history-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; } .history-meta { color: var(--muted); font-size: 12px; } .history-item .history-delete { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #93a0af; cursor: pointer; font: inherit; font-size: 18px; line-height: 1; opacity: 0; transition: opacity 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease; } .history-item:hover .history-delete, .history-item.active .history-delete, .history-item .history-delete:focus-visible { opacity: 1; } .history-item .history-delete:hover { border-color: #fecdd3; background: var(--danger-bg); color: var(--danger-text); } .history-empty { padding: 16px 14px; border: 1px dashed var(--line-strong); border-radius: 14px; background: #ffffff; } .history-empty p, .history-empty span { margin: 0; } .history-empty span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; } .user-card, .user-menu-trigger, .user-copy { display: grid; gap: 2px; } .user-copy strong { font-size: 14px; } .user-copy span { color: var(--muted); font-size: 12px; } .chat-shell { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; padding: 0; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; min-height: 60px; position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: #ffffff; } .topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; } .mobile-toggle { display: none; } .tabbar { display: inline-flex; align-items: center; gap: 0; height: 60px; } .tab { display: inline-flex; align-items: center; height: 60px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; border-bottom: 2px solid transparent; text-decoration: none; } .tab.active { color: var(--accent); border-bottom-color: var(--accent); } .avatar.large { width: 40px; height: 40px; } .user-menu { position: relative; } .user-menu-trigger { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border: 1px solid transparent; border-radius: 12px; background: #ffffff; color: var(--text); cursor: pointer; font: inherit; } .user-menu-trigger:hover, .user-menu.open .user-menu-trigger { border-color: var(--line); background: #f9fbff; } .caret { width: 8px; height: 8px; margin-left: 4px; border-right: 1.5px solid #7b8794; border-bottom: 1.5px solid #7b8794; transform: rotate(45deg); } .user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 184px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease; } .user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); } .user-dropdown-section { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); } .user-dropdown-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; } .user-dropdown-name { display: block; font-size: 14px; } .user-dropdown-link { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; font: inherit; } .user-dropdown-link:hover { background: #f5f8fc; } .user-dropdown-form { gap: 0; } .danger-link { color: #c2410c; } .chat-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; height: 100%; background: #ffffff; overflow: hidden; } .chat-scroll-wrap { position: relative; min-height: 0; height: 100%; } .chat-scroll { height: 100%; min-height: 0; padding: 32px 104px 24px min(6vw, 64px); overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #c4cfdd #f4f7fb; } .chat-scroll::-webkit-scrollbar { width: 12px; } .chat-scroll::-webkit-scrollbar-track { background: #f4f7fb; } .chat-scroll::-webkit-scrollbar-thumb { border: 3px solid #f4f7fb; border-radius: 999px; background: #c4cfdd; } .chat-scroll::-webkit-scrollbar-thumb:hover { background: #a9b8ca; } .hidden { display: none; } .conversation-header, .empty-state { max-width: 920px; margin: 0 auto 28px; } .conversation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .conversation-header h1, .empty-state h1 { font-size: 32px; } .conversation-meta { padding-top: 10px; color: var(--muted); font-size: 13px; } .message { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; max-width: 860px; margin: 0 auto 18px; } .message.user { grid-template-columns: minmax(0, 1fr) 44px; } .message.user .message-bubble { order: -1; background: #ffffff; } .message-bubble { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbff; line-height: 1.7; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .message-bubble p, .message-content p { margin: 0; line-height: 1.8; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .message-content { display: grid; gap: 14px; line-height: 1.8; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .message-content a { color: var(--accent); font-weight: 700; text-decoration: none; } .message-content a:hover { text-decoration: underline; } .message-bubble.streaming { position: relative; } .message-bubble.streaming::after { content: ""; display: inline-block; width: 8px; height: 18px; margin-left: 6px; border-radius: 999px; background: var(--accent); vertical-align: middle; animation: pulse-caret 0.9s ease-in-out infinite; } .message, .conversation-header { scroll-margin-top: 20px; } .user-mark { background: #dbe7ff; } .node-rail { position: absolute; top: 28px; right: 28px; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 28px; pointer-events: none; } .node-rail-line { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, #eef3fa 0%, #d6dfeb 100%); border-radius: 999px; } .node-anchor { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; text-decoration: none; pointer-events: auto; } .node-dot { width: 12px; height: 12px; border: 2px solid #d8e0eb; border-radius: 999px; background: #f5f8fc; transition: transform 140ms ease, background 140ms ease, border-color 140ms ease; } .node-anchor:hover .node-dot { transform: scale(1.08); border-color: #9eb5df; } .node-anchor.active .node-dot { border-color: var(--accent); background: var(--accent); } .node-anchor.latest .node-dot { background: #7f8da3; border-color: #7f8da3; } .composer-wrap { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: #ffffff; } .composer { max-width: 860px; margin: 0 auto; padding: 14px; border: 1px solid var(--line); border-radius: 24px; background: #ffffff; box-shadow: 0 8px 24px rgba(31, 42, 55, 0.06); } .composer textarea { width: 100%; min-height: 36px; max-height: 180px; resize: vertical; border: 0; background: transparent; color: var(--text); font: inherit; line-height: 1.7; outline: none; } .composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; } .composer-tools { display: flex; flex-wrap: wrap; gap: 10px; } .tool-chip { height: 34px; padding: 0 14px; background: var(--panel-muted); color: var(--accent); } .passive-chip { display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 600; } .send-button { height: 40px; min-width: 88px; padding: 0 18px; background: var(--accent); color: #ffffff; font-weight: 700; } .send-button:disabled { background: #a8bee8; cursor: wait; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .workspace[data-sidebar-state="collapsed"] { grid-template-columns: 88px minmax(0, 1fr) 340px; } .workspace[data-sidebar-state="collapsed"] .brand-text, .workspace[data-sidebar-state="collapsed"] .brand-subtitle, .workspace[data-sidebar-state="collapsed"] .new-chat, .workspace[data-sidebar-state="collapsed"] .search-form, .workspace[data-sidebar-state="collapsed"] .sidebar-label, .workspace[data-sidebar-state="collapsed"] .history-title, .workspace[data-sidebar-state="collapsed"] .history-meta, .workspace[data-sidebar-state="collapsed"] .history-delete { display: none; } .workspace[data-sidebar-state="collapsed"] .history-item { grid-template-columns: minmax(0, 1fr); place-items: center; padding: 12px; } .workspace[data-sidebar-state="collapsed"] .sidebar { padding-left: 12px; padding-right: 12px; } .workspace[data-sidebar-state="collapsed"] .sidebar-header { justify-content: center; } .workspace[data-sidebar-state="collapsed"] .brand { display: none; } .summary-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 14px; min-width: 0; max-height: 100%; padding: 16px; overflow: auto; border-left: 1px solid var(--line); background: #ffffff; } .summary-section { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); } .summary-heading, .summary-subheading, .workflow-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .summary-heading h2, .summary-subheading h3 { margin: 0; font-size: 16px; } .summary-heading span { color: var(--muted); font-size: 12px; } .upload-dropzone { display: grid; place-items: center; gap: 6px; min-height: 112px; padding: 18px; border: 1px dashed var(--accent); border-radius: 8px; background: #f5f9ff; color: var(--text); cursor: pointer; text-align: center; } .upload-dropzone.dragging { border-color: var(--accent-dark); background: #eaf2ff; } .upload-dropzone span, .upload-status, .attachment-item span, .workflow-card em, .workflow-card small, .workflow-error, .workflow-notification { color: var(--muted); font-size: 12px; } .attachment-manager-link { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); text-decoration: none; font-weight: 700; } .attachment-manager-link:hover { border-color: var(--accent); background: #eaf2ff; } .upload-status { margin: 0; line-height: 1.5; } .attachment-list, .workflow-card-list { display: grid; gap: 10px; } .attachment-item, .workflow-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; } .attachment-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .attachment-item strong, .workflow-card strong { display: block; overflow-wrap: anywhere; font-size: 13px; } .attachment-item em, .workflow-status { padding: 3px 8px; border-radius: 999px; background: #eaf2ff; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 700; } .workflow-card ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .workflow-batch-carousel { gap: 10px; } .workflow-batch-carousel .workflow-card { display: none; } .workflow-batch-carousel .workflow-card.active { display: grid; } .workflow-batch-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; } .workflow-batch-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff; color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; } .workflow-batch-btn:hover { border-color: var(--accent); color: var(--accent); } .workflow-batch-dots { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-width: 0; } .workflow-batch-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; } .workflow-batch-dot.active { width: 18px; background: var(--accent); } .node-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; } .node-status div { display: grid; min-width: 0; gap: 2px; } .node-status span, .node-status small, .workflow-error, .workflow-notification { overflow-wrap: anywhere; word-break: break-word; } .workflow-error, .workflow-notification { margin: 0; padding: 8px 10px; border-radius: 6px; line-height: 1.5; } .workflow-error { background: #fff1f0; color: #b42318; } .workflow-notification { background: #f5fbf7; color: #166534; } .workflow-notification[data-notification-status="failed"] { background: #fff1f0; color: #b42318; } .status-running, .status-retrying { color: var(--accent); } .status-success { color: #047857; } .status-failed { color: var(--danger-text); } .panel-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; } .message-bubble table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; table-layout: fixed; } .message-bubble th, .message-bubble td { padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; } .message-bubble pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; } .message-bubble code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; } @media (max-width: 980px) { .app-body { overflow: auto; } .app-shell { grid-template-rows: 60px auto; height: auto; min-height: 100vh; } .workspace { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; overflow: visible; } .sidebar { position: fixed; inset: 60px auto 0 0; width: 280px; z-index: 20; box-shadow: var(--shadow); transform: translateX(-100%); } .workspace[data-sidebar-state="open"] .sidebar { transform: translateX(0); } .chat-shell { padding: 10px; } .mobile-toggle { display: inline-flex; } .topbar, .chat-scroll, .composer-wrap { padding-left: 16px; padding-right: 16px; } .topbar { align-items: center; flex-direction: row; min-height: 60px; padding-top: 0; padding-bottom: 0; } .topbar-left { flex: 1 1 auto; overflow: hidden; } .topbar-right { flex: 0 0 auto; width: auto; justify-content: flex-end; } .conversation-header { flex-direction: column; } .chat-stage { min-height: calc(100vh - 60px); height: auto; } .summary-panel { max-height: none; border-left: 0; border-top: 1px solid var(--line); } .chat-scroll { padding-right: 72px; } .node-rail { right: 14px; } } .attachment-manager-page { display: grid; align-content: start; gap: 12px; min-height: 0; height: calc(100vh - 60px); overflow-y: auto; padding: 16px 24px 20px; background: var(--bg); } .attachment-manager-hero, .attachment-manager-panel, .attachment-manager-content { width: min(1440px, 100%); margin: 0 auto; } .attachment-manager-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; } .attachment-manager-hero h1 { margin: 2px 0; font-size: 22px; } .attachment-manager-hero p { margin: 0; color: var(--muted); font-size: 13px; } .attachment-manager-toolbar { min-height: 66px; } .attachment-manager-selectbar { display: grid; grid-template-columns: auto minmax(420px, 680px) auto; align-items: center; gap: 10px; min-width: min(900px, 60vw); } .attachment-manager-selectbar label { color: var(--muted); font-size: 13px; font-weight: 700; } .return-chat-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); text-decoration: none; font-weight: 700; } .attachment-manager-panel { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; } .attachment-manager-panel label { color: var(--muted); font-size: 13px; font-weight: 700; } .attachment-manager-panel select, .attachment-search { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--text); font: inherit; } .attachment-manager-panel select, .attachment-manager-select-control { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--text); font: inherit; } .attachment-manager-select-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 114, 216, 0.14); outline: none; } .attachment-manager-content { display: grid; gap: 12px; } .attachment-manager-split { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; } .attachment-search { width: 220px; padding: 0 10px; } .manager-upload-dropzone { min-height: 132px; padding: 14px; } .upload-manager-panel .summary-subheading span { color: var(--muted); font-size: 12px; } .attachment-table-wrap { overflow-x: auto; } .attachment-table { width: 100%; border-collapse: collapse; font-size: 13px; } .attachment-table th, .attachment-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; } .attachment-table th { color: var(--muted); font-size: 12px; font-weight: 700; } .attachment-name { max-width: 360px; overflow-wrap: anywhere; font-weight: 700; } .attachment-actions { display: flex; flex-wrap: wrap; gap: 6px; } .attachment-actions a, .attachment-actions button { min-height: 28px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #ffffff; color: var(--accent); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; } .attachment-actions a:hover, .attachment-actions button:hover { border-color: var(--accent); background: #eaf2ff; } .dashboard-page { display: grid; align-content: start; gap: 12px; height: calc(100vh - 60px); overflow-y: auto; padding: 16px 24px 20px; background: var(--bg); } .dashboard-hero, .metric-grid, .dashboard-split, .dashboard-panel { width: min(1440px, 100%); margin: 0 auto; } .dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; } .dashboard-hero h1 { margin: 2px 0; font-size: 22px; } .dashboard-hero p { margin: 0; color: var(--muted); font-size: 13px; } .dashboard-primary-action { background: #ffffff; } .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .metric-card { display: grid; gap: 8px; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; } .metric-card span, .metric-card em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; } .metric-card strong { color: var(--text); font-size: 30px; line-height: 1; } .dashboard-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .dashboard-stat-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; } .dashboard-stat-list div { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; } .dashboard-stat-list dt { color: var(--muted); font-size: 12px; font-weight: 700; } .dashboard-stat-list dd { margin: 0; color: var(--text); font-size: 22px; font-weight: 800; } .recent-activity-table td { height: 44px; } .table-empty, .attachment-manager-empty { color: var(--muted); text-align: center; } .attachment-manager-empty { min-height: 150px; place-content: center; } .attachment-manager-empty h2 { margin: 0; font-size: 18px; } .attachment-manager-empty p { margin: 0; } .knowledge-page { display: grid; align-content: start; gap: 12px; height: calc(100vh - 60px); min-height: 0; overflow-y: auto; padding: 16px 24px 20px; background: var(--bg); } .knowledge-hero, .knowledge-status-panel, .knowledge-grid, .knowledge-content, .knowledge-workbench, .knowledge-summary-row, .knowledge-main-grid, .knowledge-secondary-grid, .knowledge-panel { width: min(1440px, 100%); margin: 0 auto; } .knowledge-hero-actions { display: flex; align-items: center; gap: 10px; } .knowledge-hero h1 { margin: 2px 0; font-size: 22px; } .knowledge-hero p { margin: 0; color: var(--muted); font-size: 13px; } .knowledge-status { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; } .knowledge-status.status-ready { background: #ecfdf3; color: #047857; } .knowledge-status.status-thin { background: #fff7ed; color: #c2410c; } .knowledge-status.status-missing { background: #fff1f2; color: var(--danger-text); } .knowledge-summary-row { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; } .knowledge-summary-item { display: grid; gap: 4px; min-height: 68px; padding: 12px 14px; border-right: 1px solid var(--line); background: #ffffff; } .knowledge-summary-item:last-child { border-right: 0; } .knowledge-summary-item span { color: var(--muted); font-size: 12px; font-weight: 700; } .knowledge-summary-item strong { font-size: 22px; line-height: 1.1; } .knowledge-summary-item small { color: var(--muted); font-size: 12px; } .knowledge-status-message { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 8px; background: #f8fbff; color: #344054; font-size: 13px; line-height: 1.6; } .knowledge-grid, .knowledge-main-grid, .knowledge-secondary-grid { display: grid; gap: 12px; } .knowledge-content { display: grid; gap: 12px; } .knowledge-workbench { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); align-items: start; } .knowledge-main-grid { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; } .knowledge-secondary-grid { grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr); align-items: start; } .knowledge-left-stack, .knowledge-right-stack, .knowledge-left-rail, .knowledge-right-display { display: grid; gap: 12px; min-width: 0; } .knowledge-panel { display: grid; gap: 10px; } .knowledge-panel h2 { margin: 0; font-size: 16px; } .knowledge-system-panel { display: grid; gap: 12px; } .knowledge-system-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .knowledge-system-header h2 { margin: 0 0 4px; font-size: 16px; } .knowledge-system-header p { margin: 0; color: #344054; font-size: 13px; line-height: 1.6; } .knowledge-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .knowledge-document-form { display: grid; gap: 10px; } .knowledge-document-form label { display: grid; gap: 6px; } .knowledge-document-form label span { color: #344054; font-size: 13px; font-weight: 700; } .knowledge-document-form input[type="text"], .knowledge-document-form input[type="file"], .knowledge-document-form textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--text); font: inherit; } .knowledge-upload-dropzone { min-height: 156px; cursor: pointer; } .knowledge-upload-dropzone strong { color: var(--text); font-size: 16px; } .knowledge-document-form textarea { resize: vertical; line-height: 1.6; } .knowledge-document-form input:focus, .knowledge-document-form textarea:focus, .knowledge-search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 114, 216, 0.14); outline: none; } .knowledge-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; } .knowledge-checkbox input { width: 16px; height: 16px; } .knowledge-form-actions, .knowledge-toolbar-actions, .knowledge-inline-actions { display: flex; align-items: center; gap: 8px; } .knowledge-inline-actions { justify-content: space-between; } .knowledge-inline-actions .knowledge-checkbox { min-height: 34px; } .knowledge-form-actions button, .knowledge-toolbar-actions button, .knowledge-inline-actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; } .knowledge-form-actions button[type="submit"], .knowledge-inline-actions button { border: 0; background: var(--accent); color: #ffffff; } .knowledge-toolbar-actions button:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.68; } .knowledge-definition-list { display: grid; gap: 8px; margin: 0; } .knowledge-definition-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .knowledge-definition-list dt { color: var(--muted); font-size: 12px; font-weight: 700; } .knowledge-definition-list dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 13px; } .knowledge-command-box { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; } .knowledge-command-box strong { font-size: 13px; } .knowledge-command-box code { display: block; overflow-wrap: anywhere; color: #1f2a37; font-size: 12px; line-height: 1.5; } .knowledge-severity-list { display: flex; flex-wrap: wrap; gap: 8px; } .knowledge-severity-list span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eaf2ff; color: var(--accent); font-size: 12px; font-weight: 700; } .knowledge-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .knowledge-search-form input { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; } .knowledge-search-form button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent); color: #ffffff; cursor: pointer; font: inherit; font-weight: 700; } .knowledge-search-results { display: grid; gap: 10px; } .knowledge-panel-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; } .knowledge-compact-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 8px; } .knowledge-compact-stats div { display: grid; gap: 4px; padding: 10px; border-right: 1px solid var(--line); } .knowledge-compact-stats div:last-child { border-right: 0; } .knowledge-compact-stats dt { color: var(--muted); font-size: 12px; font-weight: 700; } .knowledge-compact-stats dd { margin: 0; color: var(--text); font-size: 18px; font-weight: 800; line-height: 1; } .knowledge-result { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); } .knowledge-result header { display: flex; justify-content: space-between; gap: 12px; } .knowledge-result header strong { font-size: 13px; } .knowledge-result header span, .knowledge-result em { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; } .knowledge-result p, .knowledge-search-error { margin: 0; color: #344054; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; } .knowledge-search-error { padding: 10px 12px; border-radius: 8px; background: #fff1f2; color: var(--danger-text); } .knowledge-source-table th:first-child, .knowledge-source-table td:first-child, .knowledge-document-table th:first-child, .knowledge-document-table td:first-child, .knowledge-source-table th:nth-child(3), .knowledge-source-table td:nth-child(3), .knowledge-source-table th:nth-child(4), .knowledge-source-table td:nth-child(4), .knowledge-source-table th:nth-child(5), .knowledge-source-table td:nth-child(5), .knowledge-document-table th:nth-child(4), .knowledge-document-table td:nth-child(4), .knowledge-document-table th:nth-child(5), .knowledge-document-table td:nth-child(5), .knowledge-document-table th:nth-child(6), .knowledge-document-table td:nth-child(6) { white-space: nowrap; } .knowledge-page .summary-subheading h3 { color: var(--text); font-size: 16px; line-height: 1.3; } .knowledge-page input[type="text"], .knowledge-page input[type="search"], .knowledge-page textarea { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--text); font: inherit; font-size: 14px; outline: none; } .knowledge-page textarea { min-height: 44px; padding-top: 9px; padding-bottom: 9px; resize: vertical; line-height: 1.5; } .knowledge-page input[type="text"]:focus, .knowledge-page input[type="search"]:focus, .knowledge-page textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 114, 216, 0.14); } .knowledge-page button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; } .knowledge-page button[type="submit"], .knowledge-inline-actions button { border-color: var(--accent); background: var(--accent); color: #ffffff; } .knowledge-page button:hover:not(:disabled) { border-color: var(--accent); background: #eaf2ff; } .knowledge-page button[type="submit"]:hover:not(:disabled), .knowledge-inline-actions button:hover:not(:disabled) { background: var(--accent-dark); color: #ffffff; } .knowledge-page button:disabled { border-color: var(--line); background: #f3f6fb; color: var(--muted); cursor: not-allowed; opacity: 1; } .knowledge-page .panel-empty { margin: 0; padding: 18px 16px; border: 1px dashed var(--line); border-radius: 8px; background: #fbfdff; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; } .knowledge-upload-panel .summary-subheading span { color: var(--muted); font-size: 12px; white-space: nowrap; } .knowledge-upload-dropzone { background: #f7faff; text-align: center; } .knowledge-upload-dropzone:hover { border-color: var(--accent); background: #eef5ff; } .knowledge-parse-panel .knowledge-status { min-height: 28px; border-radius: 8px; font-size: 12px; } .knowledge-document-list-panel, .knowledge-source-panel { min-height: 152px; } .knowledge-right-display .attachment-table th, .knowledge-right-display .attachment-table td { padding-top: 11px; padding-bottom: 11px; } .knowledge-document-list-panel .summary-subheading h3, .knowledge-source-panel .summary-subheading h3 { max-width: none; white-space: nowrap; } .knowledge-document-table th:nth-child(5), .knowledge-document-table td:nth-child(5) { white-space: nowrap; } @media (max-width: 640px) { .tabbar { overflow-x: auto; max-width: 100%; } .user-card { min-width: 0; } .user-menu-trigger { min-width: 0; } .user-copy strong, .user-copy span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .message, .message.user { grid-template-columns: 1fr; } .message-avatar { display: none; } .composer-actions { align-items: stretch; flex-direction: column; } .composer-tools { width: 100%; } .send-button { width: 100%; } .chat-shell { padding: 0; } .chat-stage { min-height: calc(100vh - 60px); height: auto; } .chat-scroll { padding-right: 44px; } .node-rail { right: 8px; gap: 10px; width: 20px; } .node-dot { width: 10px; height: 10px; } .attachment-manager-page { height: auto; min-height: calc(100vh - 60px); padding: 12px; } .attachment-manager-hero { align-items: stretch; flex-direction: column; } .attachment-manager-selectbar { grid-template-columns: 1fr; min-width: 0; } .attachment-manager-split { grid-template-columns: 1fr; } .knowledge-workbench { grid-template-columns: 1fr; } .attachment-search { width: 100%; } .knowledge-page { height: auto; min-height: calc(100vh - 60px); padding: 12px; } .knowledge-hero { align-items: stretch; flex-direction: column; } .knowledge-status-panel, .knowledge-summary-row, .knowledge-grid, .knowledge-main-grid, .knowledge-secondary-grid, .knowledge-system-grid, .knowledge-search-form { grid-template-columns: 1fr; } .knowledge-summary-item { border-right: 0; border-bottom: 1px solid var(--line); } .knowledge-summary-item:last-child { border-bottom: 0; } .knowledge-hero-actions { align-items: stretch; flex-direction: column; } .knowledge-toolbar-actions, .knowledge-form-actions, .knowledge-inline-actions { align-items: stretch; flex-direction: column; } .knowledge-toolbar-actions .attachment-search, .knowledge-toolbar-actions button, .knowledge-form-actions button, .knowledge-inline-actions button { width: 100%; } .knowledge-compact-stats { grid-template-columns: 1fr; } .knowledge-compact-stats div { border-right: 0; border-bottom: 1px solid var(--line); } .knowledge-compact-stats div:last-child { border-bottom: 0; } .knowledge-definition-list div { grid-template-columns: 1fr; gap: 4px; } .dashboard-page { height: auto; min-height: calc(100vh - 60px); padding: 12px; } .dashboard-hero { align-items: stretch; flex-direction: column; } .metric-grid, .dashboard-split, .dashboard-stat-list { grid-template-columns: 1fr; } } @keyframes pulse-caret { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }