:root{font-family:Segoe UI,Helvetica Neue,Inter,ui-sans-serif,system-ui,sans-serif;color:#1c2430;background:#f3f4f6;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.sidebar{background:#111827;color:#f8fafc;padding:22px 16px;overflow:auto;border-right:1px solid #0b1220}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#2563eb;color:#fff;font-family:Georgia,Times New Roman,serif;font-size:24px;font-weight:600}.brand strong,.brand small{display:block}.brand small{color:#94a3b8;margin-top:2px}.new-document{width:100%;border:0;border-radius:8px;padding:10px 12px;background:#2563eb;color:#fff;font-weight:600;text-align:left;margin-bottom:20px}.import-document{display:block;width:100%;border:1px solid #334155;border-radius:8px;padding:10px 12px;color:#e2e8f0;font-weight:500;text-align:left;margin:-10px 0 20px;cursor:pointer}.import-document:hover{background:#1e293b}.privacy-note{color:#94a3b8;font-size:13px;line-height:1.45;margin:4px 8px 0}.import-document input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.document-link{display:block;width:100%;border:0;border-radius:9px;padding:10px 12px;margin:3px 0;color:#dce2de;background:transparent;text-align:left}.document-link:hover,.document-link.selected{background:#314039}.document-link span,.document-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-link small{color:#92a19a;margin-top:3px}.workspace{min-width:0;background:#f3f4f6}.topbar{height:60px;padding:0 20px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.document-title{min-width:0;width:min(520px,60vw);border:1px solid transparent;border-radius:7px;background:transparent;color:#22231f;font-family:inherit;font-size:16px;font-weight:600;padding:6px 8px}.document-title:focus{outline:0;border-color:#9aa394;background:#fff}.document-actions{display:flex;align-items:center;gap:14px}.save-status{color:#68706b;font-size:13px}.save-status.error{color:#a53d36}.secondary,.export-docx,.ghost,.toolbar button{border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#1f2937;padding:7px 12px;font-size:13px;font-weight:600}.ghost{border-color:transparent;background:transparent;color:#475467;font-weight:500}.export-docx{border-color:#1d4ed8;background:#1d4ed8;color:#fff}.error-banner{margin:16px auto 0;width:min(880px,calc(100% - 32px));border:1px solid #dba19b;border-radius:8px;background:#fff0ee;color:#8b2f29;padding:10px 14px}.format-notice{display:flex;justify-content:space-between;gap:20px;margin:16px auto 0;width:min(880px,calc(100% - 32px));border:1px solid #b8b99c;border-radius:8px;background:#fffdea;color:#4e503d;padding:12px 14px;font-size:14px}.format-notice p{margin:8px 0 4px}.format-notice ul{margin:0;padding-left:20px}.format-notice>button{align-self:flex-start;border:0;background:transparent;color:inherit;font-size:22px;line-height:1}.canvas-wrap{padding:36px 20px 80px}.editor-panel{width:min(var(--page-width, 900px),100%);margin:0 auto}.editor-panel.page-a4.page-portrait{--page-width: 794px;--page-height: 1123px}.editor-panel.page-a4.page-landscape{--page-width: 1123px;--page-height: 794px}.editor-panel.page-letter.page-portrait{--page-width: 816px;--page-height: 1056px}.editor-panel.page-letter.page-landscape{--page-width: 1056px;--page-height: 816px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:3px;position:sticky;top:72px;z-index:4;margin-bottom:18px;padding:6px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 1px 2px #1018280f}.toolbar-group{display:inline-flex;align-items:center;gap:2px;min-height:32px;padding-right:5px;margin-right:2px;border-right:1px solid #e5e7eb}.toolbar-group:last-child{padding-right:0;margin-right:0;border-right:0}.toolbar-group>svg{color:#74766f;margin:0 2px 0 3px}.toolbar select{height:30px;min-width:112px;border:1px solid #d4d0c6;border-radius:6px;background:#fff;color:#30342f;padding:0 24px 0 8px;font-size:13px}.toolbar .text-controls select:first-of-type{min-width:148px}.toolbar .font-size-select{min-width:64px;width:64px}.toolbar .line-height-select{min-width:82px;width:82px}.toolbar .image-size-select{min-width:78px;width:78px}.toolbar .page-controls select{min-width:92px}.color-control{position:relative;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:6px;color:#344054;font-family:Georgia,serif;font-weight:700;cursor:pointer}.color-control:hover{background:#eff4ff}.color-control span{padding-bottom:3px;border-bottom:3px solid currentColor;line-height:14px}.color-control input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.toolbar button{display:inline-grid;place-items:center;width:30px;height:30px;border-color:transparent;background:transparent;padding:0}.toolbar button:hover,.toolbar button.active{background:#eff4ff;color:#1d4ed8}.toolbar button:focus-visible,.toolbar select:focus-visible{outline:2px solid #647d6c;outline-offset:1px}.toolbar button:disabled{cursor:default;opacity:.4}.search-replace{display:flex;align-items:center;gap:8px;margin:-8px 0 14px auto;width:fit-content;max-width:100%;padding:8px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;box-shadow:0 8px 24px #1018281a}.symbol-picker{display:flex;flex-wrap:wrap;gap:6px;margin:-8px 0 14px;padding:10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff}.symbol-picker button{width:36px;height:36px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;font-size:16px}.tracked-insertion{color:#027a48;text-decoration:underline;background:#ecfdf3}.tracked-deletion{color:#b42318;text-decoration:line-through;background:#fef3f2}.document-canvas [data-border=none]{border-color:transparent}.comment-mark{border-bottom:2px solid #f79009;background:#fffaeb}.footnote-ref{color:#175cd3;font-weight:700;cursor:help}.notes-panel{margin-top:18px;padding:16px 18px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#344054;font-family:Segoe UI,sans-serif;font-size:13px}.notes-panel h2{margin:0 0 8px;font-size:13px}.notes-panel q{display:block;color:#667085}.page-details{display:flex;align-items:end;gap:14px;margin:-8px 0 14px;padding:12px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;box-shadow:0 8px 24px #10182814}.page-details label:not(.page-number-option){display:grid;flex:1;gap:4px;color:#475467;font-size:12px;font-weight:600}.page-details input[type=text],.page-details input:not([type]){height:34px;border:1px solid #d0d5dd;border-radius:6px;padding:0 9px;color:#1d2939;font-weight:400}.page-number-option{display:flex;align-items:center;gap:7px;min-height:34px;color:#344054;font-size:13px;white-space:nowrap}.page-preview{position:relative}.page-header-preview,.page-footer-preview{position:absolute;z-index:2;right:42px;left:42px;display:flex;justify-content:space-between;color:#667085;font-family:Segoe UI,sans-serif;font-size:11px;pointer-events:none}.page-header-preview{top:22px;padding-bottom:7px;border-bottom:1px solid #eaecf0}.page-footer-preview{bottom:22px;padding-top:7px;border-top:1px solid #eaecf0}.search-replace input{width:150px;height:32px;border:1px solid #d0d5dd;border-radius:6px;padding:0 9px;color:#1d2939}.search-replace input:focus{outline:2px solid #84adff;outline-offset:1px}.search-replace button{height:32px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#344054;padding:0 10px;font-size:13px;font-weight:600}.search-replace button:hover:not(:disabled){background:#f2f4f7}.search-replace button:disabled{cursor:default;opacity:.45}.search-replace .close-search{display:grid;place-items:center;width:32px;padding:0;border-color:transparent}.match-count{min-width:70px;color:#667085;font-size:12px;text-align:center}.search-match{border-radius:2px;background:#fde68a;box-shadow:0 0 0 1px #f5c84c}.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}.document-canvas{min-height:var(--page-height, 920px);background:#fff;border:1px solid #e5e7eb;border-radius:2px;box-shadow:0 12px 32px #10182814;padding:76px 82px;font-family:Georgia,Times New Roman,serif;font-size:18px;line-height:1.68;outline:none}.editor-panel[data-margins=narrow] .document-canvas{padding:38px 40px}.editor-panel[data-margins=normal] .document-canvas{padding:76px 82px}.editor-panel[data-margins=wide] .document-canvas{padding:92px 112px}.page-break{position:relative;height:26px;margin:28px -24px;border-top:2px dashed #98a2b3}.page-break:after{position:absolute;top:-11px;left:50%;padding:0 8px;transform:translate(-50%);background:#fff;color:#667085;content:"Page break";font-family:Segoe UI,sans-serif;font-size:11px}.document-canvas .style-title{font-size:40px;line-height:1.15;font-weight:700;text-align:center}.document-canvas .style-subtitle{color:#475467;font-size:20px;font-style:italic;font-weight:400;text-align:center}.document-canvas .style-body{font-size:18px;font-weight:400;font-style:normal;text-align:left}.document-canvas h1{font-size:38px;line-height:1.15;margin:0 0 24px}.document-canvas h2{font-size:28px;line-height:1.2;margin-top:32px}.document-canvas p.is-editor-empty:first-child:before{color:#9c9c96;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.document-canvas blockquote{border-left:3px solid #6f8c72;color:#4d5a50;margin-left:0;padding-left:18px}.document-canvas pre{overflow-x:auto;border-radius:8px;background:#242923;color:#f5f2e9;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px}.document-canvas code{border-radius:4px;background:#ecece7;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em}.document-canvas .tableWrapper{overflow-x:auto;margin:1.25rem 0}.document-canvas table{width:100%;table-layout:fixed;border-collapse:collapse;font-family:inherit;font-size:.92em}.document-canvas th,.document-canvas td{position:relative;min-width:70px;border:1px solid #98a2b3;padding:8px 10px;vertical-align:top}.document-canvas th{background:#f2f4f7;font-weight:700;text-align:left}.document-canvas td>:first-child,.document-canvas th>:first-child{margin-top:0}.document-canvas td>:last-child,.document-canvas th>:last-child{margin-bottom:0}.document-canvas .selectedCell:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;content:"";pointer-events:none;background:#2563eb21}.document-canvas .column-resize-handle{position:absolute;top:0;right:-2px;bottom:-1px;z-index:3;width:4px;background:#2563eb;pointer-events:none}.document-canvas img{display:block;max-width:100%;border-radius:3px}.document-canvas img.ProseMirror-selectednode{outline:3px solid #84adff;outline-offset:3px}body.resize-cursor{cursor:col-resize}.document-canvas pre code{background:transparent;padding:0}.document-status{display:flex;justify-content:flex-end;gap:16px;padding:10px 4px 0;color:#667085;font-size:12px}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{max-height:240px}.topbar{padding:0 14px}.document-canvas{min-height:70vh;padding:38px 28px}.save-status{display:none}.search-replace{flex-wrap:wrap;width:100%;margin-top:-8px}.page-details{flex-wrap:wrap;align-items:stretch}.search-replace label{flex:1 1 130px}.search-replace input{width:100%}}@media print{@page{margin:0}body{background:#fff}.sidebar,.topbar,.toolbar,.search-replace,.page-details,.document-status,.error-banner,.format-notice{display:none!important}.app-shell,.workspace,.canvas-wrap,.editor-panel{display:block;width:100%;margin:0;padding:0;background:#fff}.document-canvas{min-height:0;border:0;box-shadow:none}.page-break{height:0;margin:0;border:0;break-after:page}.page-break:after{display:none}.page-header-preview,.page-footer-preview{position:fixed}}
