:root{--header-height:64px;--session-bar-height:44px;--toolbar-height:40px;--button-size:32px;--chat-panel-width:400px;--prose-margin-mobile:16px;--prose-margin-desktop:48px;--floating-buttons-offset:24px;--prose-margin-left:48px;--z-header:50;--z-session-bar:45;--z-editor-toolbar:40;--z-chat-panel:30;--z-mobile-chat:10001;--z-popover:10050}#documind-header{height:var(--header-height)!important;max-height:var(--header-height)!important;z-index:var(--z-header)!important;-webkit-backdrop-filter:blur(8px)!important;color:#111827!important;box-sizing:border-box!important;background:#f0f4f9f2!important;border-bottom:none!important;margin:0!important;padding:0!important;position:fixed!important;top:0!important;left:0!important;right:0!important}.session-bar-fixed{height:auto!important;z-index:var(--z-session-bar)!important;color:#111827!important;background:#f0f4f9!important;border-bottom:1px solid #dbe3ef!important;position:sticky!important;top:0!important;left:0!important;right:0!important}.documind-root{color:#111827!important;background:#f0f4f9!important;flex-direction:column!important;flex:auto!important;min-height:0!important;padding-top:0!important;display:flex!important;position:relative!important;overflow:hidden!important}.documind-root>*{min-height:0}.editor-main-container,.editor-content-container{color:#111827!important;background:#f0f4f9!important}.z-\[var\(--z-sticky\)\]{z-index:var(--z-editor-toolbar)!important;background:#f0f4f9!important;align-items:center!important;min-height:56px!important;display:flex!important}.dark .editor-main-container,.dark .editor-content-container,.dark .z-\[var\(--z-sticky\)\]{background:hsl(var(--background))!important;color:hsl(var(--foreground))!important}.dark #documind-header{background:hsl(var(--background) / .95)!important;color:hsl(var(--foreground))!important}.dark .session-bar-fixed,.dark .documind-root{background:hsl(var(--background))!important;color:hsl(var(--foreground))!important;border-color:hsl(var(--border))!important}.toolbar-pill{color:#374151;background:#fff;border-radius:32px;gap:4px;width:100%;height:44px;min-height:44px;max-height:44px;margin-top:1px;padding:4px 10px;display:flex;box-shadow:0 1px 2px #3c40434d,0 1px 3px 1px #3c404326;border:none!important;align-items:center!important;overflow:hidden!important}.dark .toolbar-pill{color:hsl(var(--card-foreground));background:hsl(var(--card))!important;border:1px solid hsl(var(--border))!important}.ProseMirror{caret-color:hsl(var(--foreground))!important}.toolbar-pill>*{box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;align-items:center!important;height:100%!important;display:flex!important}.toolbar-pill .editor-toolbar-container,.toolbar-pill .legal-toolbar{height:100%!important;min-height:0!important;color:inherit!important;background:0 0!important;align-items:center!important;display:flex!important}.toolbar-pill .toolbar-scroll{height:100%!important;min-height:0!important;max-height:100%!important;color:inherit!important;scrollbar-width:thin!important;scrollbar-color:#94a3b88c transparent!important;background:0 0!important;border:0!important;align-items:center!important;display:flex!important;overflow:auto hidden!important}.toolbar-pill .toolbar-scroll::-webkit-scrollbar{height:3px!important}.toolbar-pill .toolbar-scroll::-webkit-scrollbar-track{background:0 0!important;margin-inline:16px!important}.toolbar-pill .toolbar-scroll::-webkit-scrollbar-thumb{background:#94a3b880 padding-box padding-box!important;border:0!important;border-radius:999px!important;min-width:32px!important}.toolbar-pill .toolbar-scroll::-webkit-scrollbar-thumb:hover{background:#94a3b8bf!important}.toolbar-pill .toolbar-scroll>div{align-items:center!important;height:100%!important;min-height:0!important;margin:0!important;padding:0 4px!important;display:flex!important}.toolbar-pill .toolbar-scroll>div>*{align-self:center!important}.toolbar-pill .legal-toolbar{border-bottom:0!important;padding:0!important;overflow-y:hidden!important}.toolbar-pill .legal-toolbar>*{flex-shrink:0}.toolbar-pill button{color:#374151!important;box-shadow:none!important;vertical-align:middle!important;background:#fff!important;border:none!important;border-radius:32px!important;outline:none!important;justify-content:center!important;align-items:center!important;height:32px!important;min-height:32px!important;margin-top:0!important;margin-bottom:0!important;padding:0 12px!important;line-height:32px!important;display:inline-flex!important;transform:none!important}.toolbar-pill .toolbar-scroll button,.toolbar-pill .toolbar-scroll select{align-self:center!important}.toolbar-pill button svg,.toolbar-pill button span{display:block}.toolbar-pill button:hover{color:#111827!important;background:#eef2f6!important}.dark .toolbar-pill button{background:hsl(var(--muted))!important;color:hsl(var(--foreground))!important}.dark .toolbar-pill .toolbar-scroll{color:hsl(var(--card-foreground))!important;scrollbar-color:#cbd5e173 transparent!important;background:0 0!important}.dark .toolbar-pill .toolbar-scroll::-webkit-scrollbar-thumb{background:#cbd5e16b!important}.dark .toolbar-pill .toolbar-scroll::-webkit-scrollbar-thumb:hover{background:#cbd5e1ad!important}.dark .a4-page{background:hsl(var(--card))!important;color:hsl(var(--card-foreground))!important}.dark .a4-page .ProseMirror,.dark .a4-page .ProseMirror *{color:inherit}.dark #floating-composer-target .documind-chat-shell,.dark #floating-composer-target form{box-shadow:none!important;background:0 0!important;border-color:#0000!important}.dark .toolbar-pill button:hover{background:hsl(var(--accent))!important;color:hsl(var(--accent-foreground))!important}.toolbar-pill .review-toolbar-capsule{color:#ffffffd1!important;background:linear-gradient(#121214fa,#08080afa)!important;border:1px solid #ffffff1f!important;border-radius:999px!important;gap:6px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 8px!important;box-shadow:0 14px 36px #00000057,inset 0 1px #ffffff0f!important}.toolbar-pill .review-toolbar-capsule button{height:32px!important;min-height:32px!important;color:inherit!important;box-shadow:none!important;background:0 0!important;border:1px solid #0000!important;border-radius:999px!important;padding:0 12px!important;line-height:1!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-reject-current]{color:#fca5a5!important;background:#7f1d1d57!important;border-color:#f871717a!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-accept-current]{color:#86efac!important;background:#14532d57!important;border-color:#4ade807a!important}.toolbar-pill .review-toolbar-capsule button.review-toolbar-icon-button{border-radius:999px!important;width:32px!important;min-width:32px!important;max-width:32px!important;padding:0!important}.toolbar-pill .review-toolbar-capsule button.review-toolbar-icon-button svg{stroke:currentColor!important;flex-shrink:0!important;width:16px!important;height:16px!important;display:block!important}.toolbar-pill .review-toolbar-capsule button.review-toolbar-icon-button .sr-only{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border-width:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-previous-change],.toolbar-pill .review-toolbar-capsule [data-testid=review-next-change]{color:#ffffffc2!important;background:#ffffff0e!important;width:32px!important;padding:0!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-overflow-menu]{color:#ffffffc2!important;background:#ffffff0e!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-reject-current],.toolbar-pill .review-toolbar-capsule [data-testid=review-reject-all]{color:#fecaca!important;background:#7f1d1d57!important;border-color:#f871717a!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-accept-current],.toolbar-pill .review-toolbar-capsule [data-testid=review-accept-all]{color:#86efac!important;background:#14532d57!important;border-color:#4ade807a!important}.toolbar-pill .review-toolbar-capsule [data-testid=review-toggle-compare],.toolbar-pill .review-toolbar-capsule [data-testid=review-close-compare]{color:#ffffffb8!important;background:#ffffff0a!important}.contract-editor-wrapper{min-height:0;margin-right:var(--chat-panel-width);flex-direction:column;flex:1;display:flex;position:relative}.editor-content{flex:1!important;min-height:0!important;padding-top:0!important;overflow:hidden!important}@media (min-width:769px){.ai-editor-toolbar-fixed{top:calc(var(--header-height) + var(--session-bar-height))!important;left:0!important;right:var(--chat-panel-width)!important;height:var(--toolbar-height)!important;z-index:var(--z-editor-toolbar)!important;background:hsl(var(--background))!important;color:hsl(var(--foreground))!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-sizing:border-box!important;border:none!important;align-items:center!important;padding:4px 12px!important;display:flex!important;position:fixed!important}}.ai-chat-panel{flex-direction:column;display:flex;right:0!important;top:calc(var(--header-height) + var(--session-bar-height))!important;width:var(--chat-panel-width)!important;z-index:var(--z-chat-panel)!important;border-left:1px solid hsl(var(--border))!important;background:hsl(var(--card))!important;color:hsl(var(--card-foreground))!important;position:fixed!important;bottom:0!important;overflow-y:auto!important}@media (max-width:768px){.ai-chat-panel{width:100vw!important;z-index:var(--z-mobile-chat)!important;transition:transform .3s ease-out!important;top:0!important;transform:translate(100%)!important}.ai-chat-panel.open{transform:translate(0)!important}}[role=menu],[role=listbox],.radix-dropdown-menu-content{z-index:var(--z-popover)!important}@media (max-width:640px){:root{--prose-margin-left:16px}.documind-root{padding-top:56px!important}#documind-header{height:56px!important}.floating-buttons-container{z-index:1000!important;flex-direction:column!important;gap:12px!important;position:fixed!important;bottom:20px!important;right:20px!important}.floating-buttons-container button{width:56px!important;height:56px!important}.ai-editor-toolbar-fixed{display:none!important}.contract-editor-wrapper{margin-right:0!important}}@media (min-width:641px) and (max-width:1023px){:root{--prose-margin-left:24px}.floating-buttons-container{top:calc(var(--header-height) + 12px)!important;left:var(--prose-margin-left)!important;z-index:100!important;flex-direction:row!important;gap:8px!important;position:fixed!important}.ai-chat-panel{width:320px!important}.contract-editor-wrapper{margin-right:320px!important}}@media (min-width:1024px){:root{--prose-margin-left:48px}.floating-buttons-container{bottom:1rem!important;left:var(--prose-margin-left)!important;flex-direction:row!important;gap:12px!important;position:fixed!important;top:auto!important}.ai-chat-panel{width:400px!important}.contract-editor-wrapper{margin-right:400px!important}}.ai-insertion{color:inherit;background-color:#22c55e2e;border-radius:2px;padding:0 1px}.ai-deletion{color:#b91c1c;background-color:#ef44441a;border-radius:2px;padding:0 1px;-webkit-text-decoration:line-through #ef4444;text-decoration:line-through #ef4444;text-decoration-thickness:2px}.ai-filled{color:inherit;background-color:#3b82f626;border-bottom:2px solid #3b82f680;border-radius:2px;padding:0 2px;transition:background-color .15s}.ai-filled:hover{background-color:#3b82f64d}.ai-molded{color:inherit;background-color:#a855f71f;border-bottom:2px solid #a855f766;border-radius:2px;padding:0 2px;transition:background-color .15s}.ai-molded:hover{background-color:#a855f740}.ai-editor-toolbar-fixed button,.toolbar-scroll button{color:hsl(var(--foreground))!important}.ai-editor-toolbar-fixed button svg,.toolbar-scroll button svg{stroke:hsl(var(--muted-foreground))!important}.ai-editor-toolbar-fixed button[title=Export\ Document] svg,.toolbar-scroll button[title=Export\ Document] svg{stroke:none!important;fill:hsl(var(--muted-foreground))!important}.ai-editor-toolbar-fixed button:hover,.toolbar-scroll button:hover{background-color:hsl(var(--accent))!important;color:hsl(var(--accent-foreground))!important}::-webkit-scrollbar{width:8px!important;height:8px!important}::-webkit-scrollbar-track{background:0 0!important}::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box content-box!important;border:2px solid #0000!important;border-radius:4px!important}::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box content-box!important}.contract-editor-wrapper{scrollbar-width:thin!important;scrollbar-color:#cbd5e1 transparent!important}
