.v515-document-overlay{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;background:#000c;padding:18px;color:#eaf1f5}
.v515-document-window{width:min(1320px,96vw);height:min(92dvh,1000px);min-height:400px;display:flex;flex-direction:column;background:#112331;border:1px solid #b88c53;border-radius:12px;box-shadow:0 15px 80px #000d;overflow:hidden}
.v515-document-window:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0}
.v515-document-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 17px;border-bottom:1px solid #435969;background:#162c39;flex:none}
.v515-document-header span{font-size:9px;color:#dfb980;letter-spacing:.13em;font-weight:750}
.v515-document-header h2{font-size:17px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere}
.v515-document-actions{display:flex;flex-wrap:wrap;gap:7px}
.v515-document-actions button,.v515-editor-footer button{border:1px solid #607787;border-radius:6px;background:#294152;color:#eee2ce;font-size:12px;cursor:pointer;padding:8px 11px}
.v515-document-actions button:hover,.v515-editor-footer button:hover{background:#3a5567}
.v515-document-note{font-size:11px;color:#b3c5ce;padding:7px 18px;background:#0b1b29;flex:none}
.v515-document-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;background:#e6e9e9;color:#16232c;padding:0}
.v515-document-loading,.v515-document-empty{padding:22px}
.v515-doc-pdf{width:100%;height:100%;border:0;background:#fff}
.v515-image-scroll{overflow:auto;display:grid;place-items:start center;flex:1}.v515-image-scroll img{max-width:none;max-height:none}
.v515-word-preview{width:min(950px,96%);margin:18px auto;background:#fff;box-shadow:0 4px 22px #0002;padding:34px 48px;min-height:100%;font-family:'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.55;white-space:pre-wrap}
.v515-word-preview p{margin:0 0 12px}
.v515-sheet-preview{overflow:auto;flex:1;background:#fff;padding:15px}.v515-sheet-preview table{border-collapse:collapse;white-space:nowrap;font:12px/1.5 Arial}.v515-sheet-preview td{border:1px solid #b9c6ca;min-width:100px;padding:5px 7px}
.v515-txt-preview{white-space:pre-wrap;overflow:auto;padding:30px;background:#fff;flex:1}
.v515-editor-guide{background:#2b383f;color:#fff2d7;font-size:12px;padding:10px 15px}
.v515-document-text-editor{flex:1;min-height:0;resize:none;padding:20px;font:14px/1.6 'Segoe UI',Arial;color:#13212a;background:#fff;border:0;outline:none}
.v515-editor-footer{display:flex;align-items:center;gap:12px;padding:9px 15px;background:#122635;color:#a6cfc1;font-size:12px}
@media(max-width:650px){.v515-document-overlay{padding:0}.v515-document-window{width:100vw;height:100dvh;border-radius:0}.v515-document-header{flex-direction:column;align-items:flex-start}.v515-word-preview{padding:15px}}
