:root{--safe-area-top:env(safe-area-inset-top,0px);--safe-area-bottom:env(safe-area-inset-bottom,0px);--safe-area-left:env(safe-area-inset-left,0px);--safe-area-right:env(safe-area-inset-right,0px);--vh:1vh}body.pwa-fullscreen{position:fixed;top:0;left:0;width:100%;height:100vh;height:100dvh;overflow:hidden;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y}body,html{overflow-x:hidden;max-width:100vw}*{box-sizing:border-box}html.capacitor-native,html.capacitor-native body{background:#000000!important;background-image:none!important;--color-bg-primary:#000000;--color-bg-secondary:#000000;--color-bg-header:#000000;--color-bg-block:#111111;--chat-gradient-block:#111111;--surface-background:#000000}html.capacitor-native.chat-page{--capacitor-safe-top:env(safe-area-inset-top,0px);--capacitor-safe-bottom:env(safe-area-inset-bottom,0px)}html.capacitor-native.chat-page,html.capacitor-native.chat-page body{position:fixed!important;inset:0;width:100%;height:100%;overflow:hidden!important;overscroll-behavior:none}html.platform-android.capacitor-native.chat-page,html.platform-android.capacitor-native.chat-page body{position:static!important;inset:auto}html.capacitor-native.chat-page .chatgpt-container{padding-top:calc(56px + var(--capacitor-safe-top))!important;padding-left:0!important;padding-right:0!important;bottom:0!important}html.platform-ios.capacitor-native.chat-page .chatgpt-container{bottom:var(--keyboard-height,0)!important;transition:bottom .3s cubic-bezier(.4,0,.2,1)!important;will-change:bottom}html.capacitor-native.chat-page .chatgpt-header{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:calc(56px + var(--capacitor-safe-top))!important;padding:var(--capacitor-safe-top) calc(var(--chat-space-md) + var(--chat-safe-right)) 0 calc(var(--chat-space-md) + var(--chat-safe-left))!important;z-index:1001!important;box-sizing:border-box!important;background:#000000!important}html.capacitor-native.chat-page .chatgpt-content{padding-top:0!important}html.capacitor-native.chat-page,html.capacitor-native.chat-page body{background:#000000!important;background-image:none!important}html.capacitor-native.chat-page .chatgpt-chat-footer,html.capacitor-native.chat-page .chatgpt-container,html.capacitor-native.chat-page .chatgpt-content,html.capacitor-native.chat-page .chatgpt-main,html.capacitor-native.chat-page .chatgpt-main-chat,html.capacitor-native.chat-page .chatgpt-messages-container,html.capacitor-native.chat-page .chatgpt-messages-container:before{background:#000000!important}html.capacitor-native.chat-page .chatgpt-container{--chat-input-fade-bg:#000000}html.capacitor-native.chat-page .chatgpt-chat-bottom,html.capacitor-native.chat-page .chatgpt-container .chatgpt-content .chatgpt-main .chatgpt-main-chat .chatgpt-chat-bottom .chatgpt-input-container,html.capacitor-native.chat-page .chatgpt-input-container{background:transparent!important;background-color:transparent!important}html.capacitor-native.chat-page .chatgpt-input-container:before{display:block!important}html.capacitor-native.chat-page .sidebar-ultra-clean{top:calc(56px + var(--capacitor-safe-top))!important;height:calc(100dvh - 56px - var(--capacitor-safe-top) - var(--capacitor-safe-bottom))!important;border-left:none!important;background:#000000!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.capacitor-native .pwa-status-bar-overlay{position:fixed!important;top:0!important;left:0!important;right:0!important;height:env(safe-area-inset-top,0)!important;min-height:env(safe-area-inset-top,0)!important;background:#000000!important;z-index:99999!important;pointer-events:none!important}html.capacitor-native .editor-content-wrapper,html.capacitor-native .editor-header,html.capacitor-native .editor-layout,html.capacitor-native .noteLayout,html.capacitor-native .noteLayout-content,html.capacitor-native .noteLayout-title{background:#000000!important;background-color:#000000!important}html.capacitor-native .editor-header{padding-top:env(safe-area-inset-top,0)!important;min-height:calc(var(--editor-header-height, 44px) + env(safe-area-inset-top, 0px))!important;box-sizing:border-box!important}html.capacitor-native .editor-header__row{height:var(--editor-header-height,44px)!important;min-height:var(--editor-header-height,44px)!important}html.capacitor-native .editor-sidebar-hover-zone{height:calc(100dvh - var(--editor-header-height, 44px) - env(safe-area-inset-top, 0px))!important}html.capacitor-native .editor-sidebar,html.capacitor-native .editor-sidebar-hover-zone{top:calc(var(--editor-header-height, 44px) + env(safe-area-inset-top, 0px))!important}html.capacitor-native .html-fullscreen-header{padding-top:env(safe-area-inset-top,0)!important;height:calc(48px + env(safe-area-inset-top, 0px))!important;min-height:calc(48px + env(safe-area-inset-top, 0px))!important;box-sizing:border-box!important}html.capacitor-native .html-fullscreen-view,html.capacitor-native .image-modal,html.capacitor-native .image-source-modal,html.capacitor-native .image-source-modal-overlay,html.capacitor-native .settings-modal{background:#000000!important}html.capacitor-native .image-modal{padding-top:calc(60px + env(safe-area-inset-top, 0px))!important}html.capacitor-native .settings-modal,html.capacitor-native .settings-modal-header{padding-top:env(safe-area-inset-top,0)!important}html.capacitor-native .image-source-modal{background:#111111!important}@media (max-width:1024px){html.chat-page:not(.capacitor-native) .chatgpt-container{padding-top:env(safe-area-inset-top,0)!important;padding-left:0!important;padding-right:0!important}html.chat-page:not(.capacitor-native):before{content:"";position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0);min-height:env(safe-area-inset-top,0);background:#000000;z-index:99999;pointer-events:none}html.chat-page:not(.capacitor-native) .chatgpt-header{position:relative!important;top:auto!important;width:100%!important;z-index:1001!important;box-sizing:border-box!important;background:#000000!important}html.chat-page:not(.capacitor-native) .chatgpt-content{padding-top:0!important}}@media (display-mode:standalone){body,html{background:#000000!important;background-image:none!important}body:after{content:"";position:fixed;bottom:0;left:0;right:0;height:calc(env(safe-area-inset-bottom, 0px) + 4px);background:#000000!important;z-index:9998;pointer-events:none}.chatgpt-container{--chat-input-fade-bg:#000000;padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0);box-sizing:border-box;padding-top:0}.chatgpt-chat-bottom,.chatgpt-chat-footer,.chatgpt-container,.chatgpt-content,.chatgpt-header,.chatgpt-main,.chatgpt-main-chat{background:#000000!important}.editor-content-wrapper,.editor-header,.editor-layout,.noteLayout,.noteLayout-content,.noteLayout-title{background:#000000!important;background-color:#000000!important}.editor-header{min-height:calc(var(--editor-header-height, 44px) + env(safe-area-inset-top, 0px))!important}.editor-header,.html-fullscreen-header{padding-top:env(safe-area-inset-top,0)!important;box-sizing:border-box!important}.html-fullscreen-header{height:calc(48px + env(safe-area-inset-top, 0px))!important;min-height:calc(48px + env(safe-area-inset-top, 0px))!important}html.chat-page:not(.capacitor-native):before{content:"";position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0);min-height:env(safe-area-inset-top,0);background:#000000;z-index:99999;pointer-events:none}html.chat-page:not(.capacitor-native) .chatgpt-container{padding-top:env(safe-area-inset-top,0)!important;padding-left:0!important;padding-right:0!important}html.chat-page:not(.capacitor-native) .chatgpt-header{position:relative!important;top:auto!important;width:100%!important;z-index:1001!important;box-sizing:border-box!important;background:#000000!important}html.chat-page:not(.capacitor-native) .chatgpt-content{padding-top:0!important}.chatgpt-input-container{border:none!important;box-shadow:none!important}.chatgpt-container .chatgpt-content .chatgpt-main .chatgpt-main-chat .chatgpt-chat-bottom .chatgpt-input-container,.chatgpt-input-container{background:transparent!important;background-color:transparent!important}.chatgpt-input-container:before{display:none!important}.chatgpt-input-area{background:linear-gradient(rgba(255,255,255,.04),rgba(255,255,255,.04)),var(--chat-bg-primary,#0e1012)!important;border:var(--chat-input-border)!important;border-radius:16px;box-shadow:none;transition:background .2s ease,border-color .2s ease}.chatgpt-input-area:focus-within{background:linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,.05)),var(--chat-bg-primary,#0e1012)!important;border-color:rgba(255,255,255,.1)!important}.chatgpt-container:before{display:none!important}}.chat-messages-area{height:calc(100dvh - var(--header-height, 60px) - var(--input-height, 80px));overflow-y:auto;-webkit-overflow-scrolling:touch;padding-right:max(12px,var(--safe-area-right))}.chat-messages-area,.chat-sidebar{padding-left:max(12px,var(--safe-area-left))}.chat-sidebar{padding-top:max(12px,var(--safe-area-top));padding-bottom:max(12px,var(--safe-area-bottom))}.modal-fullscreen{padding-top:var(--safe-area-top);padding-bottom:var(--safe-area-bottom)}.modal-close-btn{top:max(12px,calc(12px + var(--safe-area-top)));right:max(12px,calc(12px + var(--safe-area-right)))}*{-webkit-tap-highlight-color:transparent}.scrollable{-webkit-overflow-scrolling:touch;overflow-y:auto}a,button,input,select,textarea{touch-action:manipulation}@media (max-width:375px){.chat-header{padding-top:max(8px,var(--safe-area-top))}.chat-input-container{padding-bottom:max(8px,var(--safe-area-bottom))}}@media (min-width:768px){body.pwa-fullscreen{position:relative;height:auto}}@media (display-mode:standalone){body{background:#000000!important;background-image:none!important;overscroll-behavior-y:contain}.pwa-status-bar-overlay{position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0);min-height:env(safe-area-inset-top,0);background:#000000!important;z-index:99999;pointer-events:none}}html.capacitor-native .mobile-top-bar{min-height:calc(56px + env(safe-area-inset-top, 0px))!important;height:calc(56px + env(safe-area-inset-top, 0px))!important;box-sizing:border-box!important}html.capacitor-native .page-mobile-sidebar-header{padding-top:env(safe-area-inset-top,0)!important;min-height:calc(52px + env(safe-area-inset-top, 0px))!important}html.capacitor-native .page-sidebar-fixed.page-sidebar-drawer{top:calc(56px + env(safe-area-inset-top, 0px))!important;height:calc(100dvh - 56px - env(safe-area-inset-top, 0px))!important;z-index:40!important}html.capacitor-native.chat-page .scrivia-file-picker-overlay{padding-top:calc(56px + var(--capacitor-safe-top, env(safe-area-inset-top, 0px)))!important;padding-bottom:var(--capacitor-safe-bottom,env(safe-area-inset-bottom,0))!important;padding-left:env(safe-area-inset-left,0)!important;padding-right:env(safe-area-inset-right,0)!important;align-items:flex-start!important;justify-content:center!important}html.capacitor-native.chat-page .scrivia-file-picker{margin-top:12px!important;max-height:calc(100dvh - 56px - var(--capacitor-safe-top, env(safe-area-inset-top, 0px)) - var(--capacitor-safe-bottom, env(safe-area-inset-bottom, 0px)) - 24px)!important}html.capacitor-native .page-content-area{padding-bottom:env(safe-area-inset-bottom,0)!important}html.capacitor-native .page-mobile-sidebar-header{padding-left:max(16px,env(safe-area-inset-left,16px))!important;padding-right:max(16px,env(safe-area-inset-right,16px))!important}@media (hover:none) and (pointer:coarse){body:has(.chatgpt-container){background:#000000!important;background-image:none!important}body:has(.chatgpt-container) .chatgpt-chat-footer,body:has(.chatgpt-container) .chatgpt-container,body:has(.chatgpt-container) .chatgpt-content,body:has(.chatgpt-container) .chatgpt-header,body:has(.chatgpt-container) .chatgpt-main,body:has(.chatgpt-container) .chatgpt-main-chat,body:has(.chatgpt-container) .chatgpt-messages-container{background:#000000!important}body:has(.chatgpt-container) .chatgpt-container{--chat-input-fade-bg:#000000}body:has(.chatgpt-container) .chatgpt-chat-bottom{background:transparent!important}body:has(.chatgpt-container) .chatgpt-container .chatgpt-content .chatgpt-main .chatgpt-main-chat .chatgpt-chat-bottom .chatgpt-input-container,body:has(.chatgpt-container) .chatgpt-input-container{background:transparent!important;background-color:transparent!important}}@media (max-width:768px){html.chat-page:not(.capacitor-native),html.chat-page:not(.capacitor-native) body{background:#000000!important;background-image:none!important}html.chat-page:not(.capacitor-native) .chatgpt-chat-footer,html.chat-page:not(.capacitor-native) .chatgpt-container,html.chat-page:not(.capacitor-native) .chatgpt-content,html.chat-page:not(.capacitor-native) .chatgpt-main,html.chat-page:not(.capacitor-native) .chatgpt-main-chat,html.chat-page:not(.capacitor-native) .chatgpt-messages-container,html.chat-page:not(.capacitor-native) .chatgpt-messages-container:before{background:#000000!important}html.chat-page:not(.capacitor-native) .chatgpt-container{--chat-input-fade-bg:#000000}html.chat-page:not(.capacitor-native) .chatgpt-chat-bottom{background:transparent!important}html.chat-page:not(.capacitor-native) .chatgpt-container .chatgpt-content .chatgpt-main .chatgpt-main-chat .chatgpt-chat-bottom .chatgpt-input-container,html.chat-page:not(.capacitor-native) .chatgpt-input-container{background:transparent!important;background-color:transparent!important}}@media (orientation:landscape){.chat-header,.chat-input-container{padding-top:max(8px,var(--safe-area-top));padding-bottom:max(8px,var(--safe-area-bottom))}.chat-messages-area{padding-left:max(16px,var(--safe-area-left));padding-right:max(16px,var(--safe-area-right))}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.chatgpt-container .chatgpt-content .chatgpt-main .chatgpt-main-chat .chatgpt-chat-bottom .chatgpt-input-container{background:transparent!important;background-color:transparent!important}.chatgpt-container,.chatgpt-content{overflow-x:hidden;max-width:100vw}@media (max-width:1023px){body:has(.chatgpt-container){background-image:none!important}.chatgpt-container{background-image:none!important}}@media (max-width:375px){.chat-markdown{font-size:var(--chat-font-size-base);font-weight:var(--chat-weight-normal);line-height:var(--chat-line-height-normal)}.chat-markdown h1{font-size:1.75rem!important}.chat-markdown h2{font-size:1.35rem!important}.chat-markdown h3{font-size:1.15rem!important}.chat-input-textarea{font-size:var(--chat-font-size-base);min-height:40px;padding:10px 12px}.chat-stop-btn{padding:6px 10px;font-size:12px}.chat-send-btn{width:40px;height:40px;padding:8px}.chat-message{padding:10px 12px;margin-bottom:12px}.tool-call-item{padding:8px 10px;font-size:13px}.chat-markdown pre{font-size:var(--chat-text-sm,.875rem);padding:10px;overflow-x:auto}}@media (min-width:769px) and (max-width:1024px){.chat-messages-container{max-width:680px;margin:0 auto}.chat-header,.chat-input-container{padding:12px 20px}.chat-sidebar{width:320px}}@media (hover:none) and (pointer:coarse){.chat-button,.clickable,.reasoning-toggle,.tool-call-toggle,button{min-height:44px;min-width:44px}.chat-input-textarea{-webkit-tap-highlight-color:transparent}a{padding:4px 0}.chat-messages-area::-webkit-scrollbar{display:none}select{-moz-appearance:auto;appearance:auto;-webkit-appearance:auto}}@supports (-webkit-touch-callout:none){html:not(.capacitor-native) body:has(.chatgpt-container){position:fixed;width:100%}.chat-messages-area{padding-bottom:calc(var(--input-height, 80px) + 20px)}}@media (max-width:768px) and (orientation:landscape){.chat-header{padding:6px 12px}.chat-header-title{font-size:14px}.chat-input-textarea{min-height:36px;padding:8px 12px}.chat-messages-container{padding:0 20px}.modal-overlay .modal-content{width:100%;height:100vh}}@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){.chatgpt-messages-container{max-width:900px;margin:0 auto}.chatgpt-header{height:48px}.chatgpt-header,.chatgpt-input-area{padding:8px 20px}.chatgpt-input-textarea{min-height:40px;max-height:120px}.chatgpt-message-bubble-user{max-width:60%}.chatgpt-message-bubble-assistant{max-width:85%}.chat-sidebar{width:280px}.chatgpt-container{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}}@media (prefers-contrast:high){.chat-markdown{color:var(--chat-text-primary);font-weight:var(--chat-weight-medium)}.chat-message{border:2px solid var(--color-border)}}@media (max-width:768px){.chat-messages-area{-webkit-overflow-scrolling:touch}.chat-message{animation:none}.chat-message-content{will-change:auto}}@media (max-width:768px) and (prefers-color-scheme:dark){.chat-markdown{color:var(--chat-text-primary)}.chat-markdown code{background:rgba(255,255,255,.1)}}@supports (padding:max(0px)){@media (max-width:768px){.chat-header{padding-top:max(12px,env(safe-area-inset-top))}.chat-input-container{padding-bottom:max(12px,env(safe-area-inset-bottom))}}}@media (prefers-reduced-motion:reduce){.chat-sidebar{transition:none}.chat-message{animation:none}*{scroll-behavior:auto!important}}@media (max-width:768px){html body .chatgpt-container .chatgpt-content .chatgpt-main .chatgpt-main-chat .chatgpt-chat-bottom .chatgpt-input-container{background:transparent!important;background-color:transparent!important}}