@tailwind base;@tailwind components;@tailwind utilities;html,body,#root{height:100%;margin:0;padding:0}:root{color-scheme:light;--app-canvas: #f4f7fb;--app-surface: #ffffff;--app-surface-subtle: #f8fafc;--app-surface-muted: #f1f5f9;--app-border: #e2e8f0;--app-border-strong: #cbd5e1;--app-text: #1e293b;--app-text-muted: #64748b;--app-accent: #2563eb;--app-accent-soft: #eff6ff;--app-danger: #dc2626;--app-radius-sm: 6px;--app-radius: 10px;--app-radius-lg: 14px;--app-shadow-flyout: 0 16px 40px rgba(15, 23, 42, .14), 0 2px 8px rgba(15, 23, 42, .06)}body{color:var(--app-text);background:var(--app-canvas);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid rgba(37,99,235,.7);outline-offset:2px}.desktop-titlebar{-webkit-app-region:drag}.desktop-titlebar button,.desktop-titlebar input,.desktop-titlebar label,.desktop-titlebar [role=button]{-webkit-app-region:no-drag}.app-shell{background:var(--app-canvas);color:var(--app-text)}.app-commandbar{background:rgba(248,250,252,.96);border-bottom:1px solid var(--app-border);box-shadow:0 1px 2px #0f172a08}.app-segmented-nav{background:var(--app-surface-muted);border:1px solid rgba(203,213,225,.65);border-radius:var(--app-radius)}.app-nav-item{min-height:34px;border-radius:7px;color:#475569}.app-nav-item:hover{background:rgba(255,255,255,.72);color:var(--app-text)}.app-nav-item-active{background:var(--app-surface);color:var(--app-accent);box-shadow:0 1px 3px #0f172a1a}.app-icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:var(--app-text-muted);transition:background-color .14s ease,color .14s ease}.app-icon-button:hover{color:var(--app-text);background:var(--app-surface-muted)}.app-panel{background:var(--app-surface);border-color:var(--app-border)}.app-field{border:1px solid var(--app-border-strong);border-radius:8px;background:var(--app-surface);transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease}.app-field:hover{border-color:#94a3b8}.app-field:focus{border-color:var(--app-accent);box-shadow:0 0 0 3px #2563eb1f;outline:none}.app-primary-button{border-radius:8px;background:var(--app-accent);color:#fff;box-shadow:0 1px 2px #1e40af38}.app-primary-button:hover{background:#1d4ed8}.app-flyout{background:var(--app-surface);border:1px solid var(--app-border);border-radius:var(--app-radius);box-shadow:var(--app-shadow-flyout)}.custom-scrollbar{scrollbar-color:#cbd5e1 transparent;scrollbar-width:thin}.custom-scrollbar::-webkit-scrollbar{width:8px;height:8px}.custom-scrollbar::-webkit-scrollbar-thumb{background:#cbd5e1;border:2px solid transparent;border-radius:999px;background-clip:padding-box}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.tiptap-editor{min-height:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}.tiptap-editor a,.tiptap-editor p,.tiptap-editor li,.knowledge-content-flow{overflow-wrap:anywhere;word-break:break-word}.tiptap-editor p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.tiptap-editor table{border-collapse:collapse;table-layout:fixed;width:max-content;min-width:100%;margin:0}.tiptap-editor .tableWrapper{width:100%;margin:10px 0;overflow-x:auto;border:1px solid #e2e8f0;border-radius:8px;background:#ffffff;scrollbar-color:#cbd5e1 transparent;scrollbar-width:thin}.tiptap-editor .tableWrapper::-webkit-scrollbar{height:9px}.tiptap-editor .tableWrapper::-webkit-scrollbar-thumb{background:#cbd5e1;border:2px solid transparent;border-radius:999px;background-clip:padding-box}.tiptap-editor table td,.tiptap-editor table th{border:1px solid #dbe3ee;padding:8px 10px;min-width:120px;vertical-align:top;position:relative;overflow-wrap:anywhere}.tiptap-editor table th{background:#f3f4f6;font-weight:600}.tiptap-editor table .selectedCell:after{z-index:2;position:absolute;content:"";left:0;right:0;top:0;bottom:0;background:rgba(59,130,246,.15);pointer-events:none}.tiptap-editor .column-resize-handle{position:absolute;z-index:20;top:0;right:-2px;bottom:-2px;width:4px;background:#3b82f6;box-shadow:0 0 0 1px #ffffffb8;pointer-events:none}.tiptap-editor.resize-cursor,.tiptap-editor.resize-cursor *{cursor:col-resize!important}.tiptap-editor img{max-width:100%;height:auto;border-radius:6px;margin:4px 0;cursor:pointer;transition:width .16s ease,outline-color .16s ease}.tiptap-editor img.ProseMirror-selectednode{outline:2px solid #3b82f6;outline-offset:2px}.tiptap-editor a{color:#2563eb;text-decoration:underline;cursor:pointer}.tiptap-editor hr{border:none;border-top:1px solid #e5e7eb;margin:12px 0}.tiptap-editor blockquote{border-left:3px solid #d1d5db;padding-left:12px;margin:8px 0;color:#6b7280}.tiptap-editor pre{background:#f3f4f6;border-radius:6px;padding:12px;font-family:monospace;font-size:13px;overflow-x:auto}
