:root{--safe-gap:7px;--a4-margin-top:32px}body[data-app-path^="/nexus_memorial"]{--li-marker-size:1em}.memorial-grid{display:grid;grid-template-rows:auto 1fr;width:100%;height:calc(100vh - 40px);min-height:0;max-height:calc(100vh - 40px);overflow:hidden;position:relative;padding:0;margin:0;box-sizing:border-box}.ribbon-placeholder{grid-row:1;width:100%;height:auto;min-height:100px;overflow:visible;background:var(--bg-sidebar);border-bottom:1px solid var(--hud-border);z-index:50}.nexus-sidebar-tab.active{background:var(--accent-alpha-05);border-left:3px solid var(--accent);color:var(--accent)!important}.nexus-sidebar-tab.active .material-icons-round{color:var(--accent)!important;filter:drop-shadow(0 0 4px var(--accent-alpha-30))}.memorial-editor{grid-row:2;width:100%;height:100%;min-height:0;max-height:100%;overflow-y:auto;overflow-x:auto;padding:0;background-color:var(--bg-sidebar,#151921);position:relative;box-sizing:border-box;cursor:default}.memorial-root #nexus-quick-edit.nexus-floating-editor{position:absolute;transform:none;z-index:100;box-shadow:0 6px 18px rgba(0,0,0,0.12);border:1px solid rgba(0,0,0,0.08);background:var(--bg-surface,#fff);border-radius:8px}.memorial-root #nexus-quick-edit .quick-toolbar{padding:6px 8px}.memorial-root .memorial-editor{position:relative}.memorial-root .memorial-floating-btns{position:absolute;top:calc(var(--ribbon-min-height,100px) + var(--a4-margin-top,32px) + 8px);left:10px;width:auto;height:auto;display:flex;flex-direction:column;gap:8px;z-index:1200;pointer-events:auto}.memorial-root .memorial-float-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--field-border,#e2e8f0);background-color:var(--bg-surface,#ffffff);color:var(--text-main,#334155);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,0.1);cursor:pointer;transition:all 0.2s ease}.memorial-root .memorial-float-btn:hover{background-color:var(--accent,#7c3aed);color:#ffffff;border-color:var(--accent,#7c3aed);transform:scale(1.08)}.memorial-root .memorial-float-btn:focus{outline:3px solid rgba(var(--accent-rgb,124,58,237),0.3)}.memorial-root .memorial-float-btn .material-icons-round{font-size:20px}.memorial-root .memorial-quick-active{animation:memorialQuickFade 140ms ease-out both}.memorial-root{width:100%;max-width:100%;box-sizing:border-box;display:block;--bg-card:transparent}@keyframes memorialQuickFade{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}.nexus-debug-toast{position:fixed;top:20px;right:20px;background:var(--eng-success,#10b981);color:white;padding:15px;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.2);z-index:200;font-family:sans-serif;font-size:14px;animation:nexusSlideIn 0.3s ease-out}@keyframes nexusSlideIn{from{transform:translateX(100%)}to{transform:translateX(0)}}.nexus-system-toast{position:fixed;right:20px;bottom:20px;padding:10px 14px;border-radius:var(--radius-md,8px);box-shadow:0 6px 20px rgba(0,0,0,0.12);z-index:9999;font-family:var(--font-family-base,'Inter',sans-serif);color:#fff;max-width:320px;line-height:1.3;animation:nexusToastIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275) both;transition:opacity 360ms ease}.nexus-system-toast.toast-info{background:linear-gradient(90deg,#3b82f6,#2563eb)}.nexus-system-toast.toast-success{background:linear-gradient(90deg,#34d399,#10b981)}.nexus-system-toast.toast-error{background:linear-gradient(90deg,#e24141,#c53030)}.nexus-system-toast.toast-fade-out{opacity:0}@keyframes nexusToastIn{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}#nexus-editor-root,.nexus-editor-root{height:100%;min-height:297mm;max-height:none;width:100%;outline:none;background:transparent;box-shadow:none;border:none;border-radius:0;position:relative;z-index:1}.memorial-editor .nexus-sheet{margin:0 auto!important}.memorial-editor #nexus-document ul,.memorial-editor #nexus-document ol,.memorial-editor #nexus-document li{font-size:inherit!important;line-height:inherit!important}.memorial-editor #nexus-document ol{list-style:none;padding-left:0;margin-left:0}.memorial-editor #nexus-document ol li{padding-left:1.5em;position:relative}.memorial-editor #nexus-document ol li[data-list-number]::before{content:attr(data-list-number) '.';position:absolute;left:0;font-size:var(--li-marker-size,1em);font-weight:inherit;line-height:inherit}.memorial-editor #nexus-document ul{list-style:none;padding-left:0;margin-left:0}.memorial-editor #nexus-document ul li{padding-left:1.5em;position:relative}.memorial-editor #nexus-document ul li::before{content:'•';position:absolute;left:0;font-size:var(--li-marker-size,1em);font-weight:inherit;line-height:inherit}.memorial-editor #nexus-document p,.memorial-editor .nexus-sheet p{font-family:var(--style-normal-font-family,var(--font-family-base,'Times New Roman',serif));font-size:var(--style-normal-font-size,var(--fs-md));font-weight:var(--style-normal-font-weight,normal);font-style:var(--style-normal-font-style,normal);text-decoration:var(--style-normal-text-decoration,none);text-align:var(--style-normal-text-align,justify);line-height:var(--style-normal-line-height,1.5);margin-top:var(--style-normal-margin-before,0em);margin-bottom:var(--style-normal-margin-after,0.5em)}.memorial-editor #nexus-document h1,.memorial-editor .nexus-sheet h1{font-family:var(--style-h1-font-family,var(--font-family-base,'Times New Roman',serif));font-size:var(--style-h1-font-size,var(--fs-xl));font-weight:var(--style-h1-font-weight,bold);font-style:var(--style-h1-font-style,normal);text-decoration:var(--style-h1-text-decoration,none);text-align:var(--style-h1-text-align,left);line-height:var(--style-h1-line-height,1.4);margin-top:var(--style-h1-margin-before,1em);margin-bottom:var(--style-h1-margin-after,0.5em)}.memorial-editor #nexus-document h1 ol li::before{font-size:var(--style-h1-marker-size,1.2em)}.memorial-editor #nexus-document h2,.memorial-editor .nexus-sheet h2{font-family:var(--style-h2-font-family,var(--font-family-base,'Times New Roman',serif));font-size:var(--style-h2-font-size,var(--fs-lg));font-weight:var(--style-h2-font-weight,bold);font-style:var(--style-h2-font-style,normal);text-decoration:var(--style-h2-text-decoration,none);text-align:var(--style-h2-text-align,left);line-height:var(--style-h2-line-height,1.4);margin-top:var(--style-h2-margin-before,0.8em);margin-bottom:var(--style-h2-margin-after,0.4em)}.memorial-editor #nexus-document h2 ol li::before{font-size:var(--style-h2-marker-size,1.1em)}.memorial-editor #nexus-document h3,.memorial-editor .nexus-sheet h3{font-family:var(--style-h3-font-family,var(--font-family-base,'Times New Roman',serif));font-size:var(--style-h3-font-size,var(--fs-md));font-weight:var(--style-h3-font-weight,bold);font-style:var(--style-h3-font-style,normal);text-decoration:var(--style-h3-text-decoration,none);text-align:var(--style-h3-text-align,left);line-height:var(--style-h3-line-height,1.4);margin-top:var(--style-h3-margin-before,0.6em);margin-bottom:var(--style-h3-margin-after,0.3em)}.memorial-editor #nexus-document h3 ol li::before{font-size:var(--style-h3-marker-size,1em)}.memorial-editor #nexus-document blockquote,.memorial-editor .nexus-sheet blockquote{font-family:var(--style-quote-font-family,var(--font-family-base,'Times New Roman',serif));font-size:var(--style-quote-font-size,var(--fs-sm));font-weight:var(--style-quote-font-weight,normal);font-style:var(--style-quote-font-style,italic);text-decoration:var(--style-quote-text-decoration,none);text-align:var(--style-quote-text-align,justify);line-height:var(--style-quote-line-height,1.6);margin-top:var(--style-quote-margin-before,0.5em);margin-bottom:var(--style-quote-margin-after,0.5em);padding-left:1em}.memorial-editor #nexus-document code,.memorial-editor #nexus-document pre,.memorial-editor .nexus-sheet code,.memorial-editor .nexus-sheet pre{font-family:var(--style-code-font-family,var(--font-family-mono,'Courier New',monospace));font-size:var(--style-code-font-size,var(--fs-xs));line-height:var(--style-code-line-height,1.4)}.memorial-editor #nexus-document pre{margin-top:var(--style-code-margin-before,0.5em);margin-bottom:var(--style-code-margin-after,0.5em);padding:0.8em;background:var(--bg-surface);border-radius:4px;overflow-x:auto}.memorial-editor #nexus-document code{background:var(--bg-card);padding:0.2em 0.4em;border-radius:3px}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-print-overlay{background:rgba(var(--bg-main-rgb,6,10,15),0.85)}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-print-toolbar{background:var(--bg-panel,#0b1220);border-bottom:1px solid rgba(var(--accent-rgb),0.15);color:var(--text-main)}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-print-scroll-area{background:transparent}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-a4-paper{background:#ffffff;color:#000000;box-shadow:0 15px 40px rgba(0,0,0,0.6);border-radius:2px;border:1px solid rgba(0,0,0,0.06)}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-a4-paper .nexus-report-header,html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-a4-paper .nexus-report-table th{border-color:#000000;color:#000000;background:transparent}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-a4-paper .nexus-report-table th,html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-a4-paper .nexus-report-table td{border-bottom:1px solid rgba(0,0,0,0.08);background:transparent;color:#000000}html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-print-toolbar .btn-preview-print,html[data-theme="dark"] body[data-app-path^="/nexus_memorial"] .nexus-print-toolbar .btn-preview-cancel{background:var(--bg-card);color:var(--text-main);border:1px solid rgba(var(--field-border-rgb,255,255,255),0.06)}body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-print-readonly,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-print-readonly .ProseMirror,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-print-readonly [contenteditable]{caret-color:transparent!important;-webkit-user-modify:read-only!important;user-select:text;outline:none!important}body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-print-readonly .ProseMirror-focused,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-print-readonly .ProseMirror-selectednode{box-shadow:none!important;outline:none!important}body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .math-block,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .text-block,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .nexus-math-block{display:inline-block!important;vertical-align:baseline!important;white-space:nowrap!important;background:transparent!important;border:1px solid transparent!important;border-radius:var(--radius-sm)!important;box-shadow:none!important;outline:none!important;padding:0 4px!important;margin:0 2px!important;text-indent:0!important}@media print{body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .math-block,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .text-block,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .nexus-math-block{display:inline-block!important;vertical-align:baseline!important;white-space:nowrap!important;background:transparent!important;border:1px solid transparent!important;border-radius:var(--radius-sm)!important;box-shadow:none!important;outline:none!important;padding:0 4px!important;margin:0 2px!important;text-indent:0!important}}body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .math-block[data-module-id]::after,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .math-block[data-module-key]::after,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .text-block[data-module-id]::after,body[data-app-path^="/nexus_memorial"] #nexus-print-engine-root .nexus-a4-paper .text-block[data-module-key]::after{display:none!important}.ribbon-btn[data-action="toggleSidebar"]{display:none!important}.loading-icon{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}