*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;height:100%;font-family:Segoe UI,Arial,sans-serif;color:#202c38;background:#eef0f2;font-size:14px}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:inherit;padding:9px 11px;border-radius:5px;cursor:pointer;white-space:nowrap}button:hover{background:#e5e9ed}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #2756b0;outline-offset:2px}input,select,textarea{border:1px solid #c6cdd5;background:#fff;border-radius:4px;padding:8px 10px;color:#202c38;min-width:0}input[type=color]{width:30px;height:31px;padding:3px}label{display:flex;flex-direction:column;gap:7px;font-weight:500}.primary{background:#244d79;color:#fff}.primary:hover{background:#1a3b61}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:600}h2{font-size:22px;font-weight:600}h3{font-size:16px;font-weight:600}.muted,small{color:#657080}.app-name{font-size:25px;font-weight:600;letter-spacing:-.8px;padding:0}.loading{padding:42px;color:#626d77}.full-screen{display:flex;align-items:center;justify-content:center;height:100vh}.workspace-shell{display:flex;height:100dvh;overflow:hidden}.library-sidebar{display:none;width:236px;flex-shrink:0;background:#e7ebef;padding:22px 17px 14px;flex-direction:column}.library-open .library-sidebar{display:flex}.library-title{display:flex;align-items:center;justify-content:space-between;padding:0 9px}.mobile-close{display:none}.workspace-name{font-size:12px;color:#64717f;padding:11px 9px 20px}.workspace-choice{margin:15px 0}.library-actions{display:flex;flex-direction:column;align-items:stretch;margin:0 0 26px;gap:3px}.library-actions button{justify-content:flex-start;text-align:left}.library-search{position:relative;display:flex;flex-direction:row;align-items:center;gap:7px;background:#f8f9fb;padding:0 9px;margin-bottom:10px;border-radius:4px}.library-search input{width:100%;border:0;background:transparent;padding:9px 0;font-weight:400}.library-sidebar>select{font-size:12px;background:transparent;border:0;color:#63707d;padding:6px;margin-bottom:10px}.file-list{overflow:auto;flex:1;display:flex;flex-direction:column;gap:4px}.file-list button{justify-content:flex-start;text-align:left;padding:10px 9px;min-height:40px;flex-shrink:0}.file-list button span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-list button svg{flex-shrink:0;color:#647484}.file-list button.selected{background:#d1deeb;color:#173b62}.empty-library{font-size:12px;line-height:1.5;color:#6c7683;padding:9px}.library-footer{padding-top:16px}.library-footer>button{justify-content:flex-start;width:100%}.account-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:8px}.account-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.workspace-topbar{height:48px;min-height:48px;display:flex;align-items:center;gap:12px;padding:4px 16px;background:#f8f9fa;color:#596774;font-size:12px}.team-button{margin-left:auto}.active-file{display:flex;flex-direction:column;flex:1;min-height:0}.file-header{min-height:67px;padding:10px 26px;display:flex;align-items:center;gap:10px;background:#fff}.file-type-icon{color:#718398}.filename-group{display:flex;flex-direction:column;gap:4px;min-width:0}.filename{padding:0;font-size:17px;font-weight:600;border-radius:0;max-width:min(60vw,650px);overflow:hidden;text-overflow:ellipsis;justify-content:flex-start}.filename:hover{background:transparent;color:#244d79}.filename:disabled{opacity:1}.filename-group input{font-size:17px;padding:3px 6px}.sync-state{font-size:11px;color:#667686;display:flex;align-items:center;gap:4px;min-height:15px}.sync-state.failure{color:#ab3333}.back-button{margin-left:-10px}.editor-layout{display:flex;flex-direction:column;flex:1;min-height:0}.editor-toolbar{display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:9px 20px;background:#fff;flex-shrink:0}.editor-toolbar button{padding:8px;min-height:33px;font-size:12px}.editor-toolbar .active{background:#dce7f2;color:#194e81}.editor-toolbar select{font-size:12px;padding:6px;max-width:125px}.editor-toolbar .small-select{width:56px}.canvas-workarea{background:#e9edf0;flex:1;min-height:0;overflow:auto;padding:30px;position:relative}.document-workarea{display:block}.paper-zoom{margin:0 auto;position:relative;padding-bottom:40px}.document-paper{background:#fff;box-shadow:0 3px 20px #26374516;color:#111}.document-paper .tiptap{outline:none;min-height:900px;font-family:Calibri,Arial,sans-serif;font-size:12pt;line-height:1.5;overflow-wrap:break-word;white-space:pre-wrap}.document-paper.landscape .tiptap{min-height:560px}.tiptap p{margin:0 0 .7em}.tiptap h1{font-size:28pt;margin:1em 0 .6em;font-weight:700}.tiptap h2{font-size:20pt;margin:1em 0 .6em}.tiptap h3{font-size:16pt;margin:1em 0 .6em}.tiptap img{max-width:100%;height:auto;display:block;margin:18px 0}.tiptap table{width:100%;border-collapse:collapse;table-layout:fixed;margin:18px 0}.tiptap td,.tiptap th{border:1px solid #aeb5bf;padding:8px;min-width:30px;vertical-align:top;position:relative}.tiptap th{background:#f2f4f6}.tiptap .selectedCell:after{content:"";position:absolute;inset:0;background:#7aa7e433;pointer-events:none}.tiptap .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background:#396caa;pointer-events:none}.tiptap .is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#9b9fa7;pointer-events:none;height:0}.tiptap a{color:#2051a1}.tiptap .ProseMirror-selectednode{outline:2px solid #356fa7}.page-break{break-after:page;margin:30px 0;font-size:10px;color:#7b8590;text-align:center;user-select:none}.context-tools{display:flex;gap:8px;align-items:center;padding:6px 22px;background:#f6f8fa;flex-wrap:wrap}.context-tools button{font-size:12px;padding:7px}.context-tools input{font-size:12px;padding:6px}.editor-status{min-height:34px;background:#f8f9fb;display:flex;align-items:center;justify-content:space-between;padding:3px 22px;font-size:11px;color:#617080;gap:10px}.editor-status>div{display:flex;align-items:center;gap:8px}.editor-status select{font-size:11px;background:transparent;border:0;padding:4px}.import-notice,.connection-notice{font-size:12px;background:#fff2d4;color:#705418;padding:9px 24px;line-height:1.5}.import-notice{display:flex;align-items:center;justify-content:space-between;gap:20px}.import-notice button{font-size:11px;padding:3px}.library-home{padding:56px max(28px,8vw);overflow:auto;flex:1;background:#f7f8fa}.library-home h1{margin:0 0 35px}.home-actions{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:42px}.home-actions button{gap:12px;padding:17px 20px;background:#e7edf3;color:#244d79}.home-file-list{display:flex;flex-direction:column;gap:10px;max-width:900px}.home-file-list button{justify-content:flex-start;gap:18px;padding:16px 10px;text-align:left}.home-file-list button>svg{color:#8292a2;flex-shrink:0}.home-file-list strong{font-size:15px;font-weight:500}.home-file-list small{display:block;margin-top:6px;font-size:11px}.welcome-empty{max-width:430px;color:#727e8a;line-height:1.7}.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;background:#f1f3f5;padding:32px}.login-form{max-width:400px;width:100%;display:flex;flex-direction:column;gap:22px;background:#fff;padding:40px;border-radius:8px;box-shadow:0 10px 45px #2332480a}.login-form .app-name{margin-bottom:12px;color:#244d79}.login-form h1{font-size:23px;margin:0}.login-form label{font-size:13px}.login-form input{padding:11px}.login-form .primary{margin-top:4px;padding:12px}.login-form small{font-size:11px;line-height:1.4}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:18px;background:#26394b;color:#fff;padding:14px 18px;border-radius:6px;z-index:150;max-width:90vw;box-shadow:0 6px 24px #0002;font-size:13px}.toast button{color:#fff;padding:2px}.modal-backdrop{position:fixed;inset:0;background:#182a3c66;display:flex;justify-content:center;align-items:center;z-index:100;padding:24px}.modal{background:#fff;padding:30px;max-height:90dvh;overflow:auto;width:480px;max-width:100%;border-radius:8px;box-shadow:0 20px 70px #0002}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-heading h2{margin:0}.member-list{display:flex;flex-direction:column;gap:20px;margin:26px 0 35px}.member{display:flex;align-items:center;gap:12px;font-size:12px}.member>div{flex:1;min-width:0}.member small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis}.member>span{color:#66727e}.member button{font-size:11px;padding:5px}.team-dialog form{display:flex;flex-direction:column;gap:18px}.team-dialog form h3{margin:0 0 3px}.team-dialog label{font-size:12px}.invite-result{display:flex;flex-direction:column;gap:8px;background:#f1f5f8;padding:16px}.invite-result input{font-size:11px}.invite-result button{align-self:flex-start;font-size:12px}@media(max-width:900px){.library-open .library-sidebar{position:fixed;inset:0 auto 0 0;z-index:80;box-shadow:10px 0 35px #0002;width:260px}.mobile-close{display:inline-flex}.file-header{padding:10px 16px}.editor-toolbar{padding:8px;flex-wrap:nowrap;overflow:auto;min-height:53px}.editor-toolbar>*{flex-shrink:0}.canvas-workarea{padding:18px}.library-home{padding:35px 24px}.home-actions{gap:10px}.home-actions button{padding:14px}.context-tools{padding:8px}.editor-status{padding:3px 10px}.modal-backdrop{padding:15px}.modal{padding:23px}.workspace-topbar{padding:4px 10px}}@media(max-width:480px){.login-form{padding:30px 24px}.login-screen{padding:20px}.filename{font-size:15px;max-width:65vw}.home-actions{flex-direction:column;align-items:stretch}.home-actions button{justify-content:flex-start}.library-home h1{font-size:25px;margin-bottom:25px}.editor-status>div{gap:0}.editor-status select{max-width:85px}.canvas-workarea{padding:12px}.document-workarea .paper-zoom{margin-left:0}.member{flex-wrap:wrap}.member>span{font-size:11px}}@media print{html,body,#root{height:auto;background:#fff}.library-sidebar,.workspace-topbar,.file-header,.editor-toolbar,.context-tools,.editor-status,.import-notice,.connection-notice,.toast{display:none!important}.workspace-shell,.main-workspace,.active-file,.editor-layout,.canvas-workarea,.paper-zoom{display:block!important;height:auto!important;overflow:visible!important;padding:0!important;width:auto!important}.document-paper{transform:none!important;box-shadow:none!important;width:auto!important;min-height:0!important;padding:0!important}.document-paper .tiptap{min-height:0}.page-break{font-size:0;margin:0;height:0;break-after:page}.tiptap table{break-inside:auto}.tiptap tr{break-inside:avoid}.tiptap h1,.tiptap h2,.tiptap h3{break-after:avoid}@page{size:A4;margin:20mm}}@media(max-width:600px){.document-workarea .paper-zoom{width:100%!important;padding-bottom:20px}.document-workarea .document-paper{width:100%!important;padding:28px 24px!important;min-height:calc(100dvh - 240px)!important;transform:none!important}.document-workarea .tiptap{min-height:400px}.document-layout .editor-status select[aria-label=Zoom]{display:none}}.workspace-topbar .account-button{margin-left:auto}.workspace-switcher{max-width:min(40vw,320px);background:transparent;border:0;font-size:12px}.open-file-button{font-size:12px}.login-panel{max-height:90dvh;overflow:auto}.login-panel .login-form{box-shadow:none;max-width:440px}.login-panel .dialog-heading,.login-panel .app-name{margin-bottom:0}@media(max-width:480px){.workspace-topbar{gap:5px}.workspace-switcher{max-width:38vw}.workspace-topbar .open-file-button,.workspace-topbar .account-button{padding:7px}.login-panel .login-form{padding:26px}}.library-home{padding:48px max(20px,8vw) 40px}.home-intro{max-width:620px;margin-bottom:26px}.home-brand{font-size:15px;font-weight:700;color:#244d79;margin:0 0 18px;letter-spacing:-.2px}.home-brand span{font-weight:400;color:#6b7785}.library-home .home-intro h1{margin:0 0 10px;font-size:30px;letter-spacing:-.5px;line-height:1.2}.home-intro p.muted{font-size:15px;line-height:1.55;margin:0}.drop-zone{display:flex;justify-content:flex-start;gap:16px;width:100%;max-width:620px;padding:24px 22px;border:1.5px dashed #9fb2c6;background:#fff;color:#244d79;border-radius:8px;text-align:left;margin-bottom:14px}.drop-zone:hover{background:#f1f6fb;border-color:#244d79}.drop-zone span{display:flex;flex-direction:column;gap:4px}.drop-zone strong{font-size:17px}.drop-zone small{font-size:13px}.library-home .home-actions{gap:10px;margin-bottom:38px}.library-home .home-actions button{padding:11px 16px;background:#e7edf3;font-size:14px}.home-subtitle{font-size:14px;font-weight:600;color:#4c5966;margin:0 0 8px}.library-home .home-file-list{gap:2px;max-width:620px}.home-file{display:flex;align-items:center;border-bottom:1px solid #e3e7eb}.home-file-open{flex:1;min-width:0;justify-content:flex-start;gap:14px;padding:13px 8px;text-align:left}.home-file-open>svg{color:#8292a2;flex-shrink:0}.home-file-open>div{min-width:0}.home-file-open strong{display:block;font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-file-open small{display:block;margin-top:4px;font-size:12px}.home-file-delete{color:#7d8894;padding:10px}.home-file-delete:hover{color:#ab3333;background:#f6e9e9}.home-note{max-width:620px;font-size:12px;color:#6b7785;line-height:1.5;margin-top:14px}.pdf-actions{justify-content:flex-end;gap:6px;padding:6px 16px;border-top:1px solid #edf0f2}.pdf-actions .pdf-action{font-size:13px;padding:8px 12px;background:#eef2f6;color:#1f3f63}.pdf-actions .pdf-action:hover{background:#dfe7ef}.pdf-actions .primary-action{background:#244d79;color:#fff}.pdf-actions .primary-action:hover{background:#1a3b61}.pdf-more{position:relative}.pdf-more summary{list-style:none;cursor:pointer;font-size:13px;padding:8px 12px;border-radius:5px;color:#1f3f63}.pdf-more summary::-webkit-details-marker{display:none}.pdf-more summary:hover,.pdf-more[open] summary{background:#e5e9ed}.pdf-more-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:60;background:#fff;border-radius:8px;box-shadow:0 10px 36px #1c2c3c30;padding:6px;display:flex;flex-direction:column;min-width:250px}.pdf-more-menu button{justify-content:flex-start;font-size:13px;padding:10px 12px}.pdf-more-note{font-size:11px;line-height:1.45;color:#6b7785;margin:6px 12px;border-top:1px solid #edf0f2;padding-top:8px;white-space:normal}@media(max-width:700px){.file-open .workspace-topbar{display:none}.file-header{min-height:54px;padding:6px 12px}.pdf-actions{padding:6px 8px;justify-content:space-between}.pdf-actions .pdf-action{padding:8px 9px}.library-home{padding:30px 16px 32px}.library-home .home-intro h1{font-size:25px}}.header-download{margin-left:auto;font-size:13px;padding:8px 14px;background:#244d79;color:#fff;flex-shrink:0}.header-download:hover{background:#1a3b61}.file-header .filename-group{flex:1}
