#app.documents-open> :not(.workspace-nav):not(.top):not(#documentsPage){display:none!important}
.documents-page{max-width:1120px;margin:24px auto 50px;width:100%;min-width:0}
.documents-heading h1{font-size:clamp(30px,4vw,42px);margin:0 0 12px}.documents-heading p{color:#bfcede;line-height:1.6}
.documents-toolbar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:28px 0 20px}.documents-toolbar h2{font-size:20px;margin:8px 0}.documents-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.documents-tools[hidden]{display:none}
.documents-page button,.documents-dialog button{cursor:pointer}.documents-tools button,.doc-actions button{padding:9px 13px!important;font-size:13px!important;border-radius:9px!important;min-height:38px;white-space:nowrap}
.documents-search{display:block;max-width:420px;margin:0 0 16px;color:#bdcddd;font-size:13px}.documents-search input{display:block;width:100%;margin-top:6px;box-sizing:border-box}
.doc-row{display:flex;align-items:center;gap:16px;padding:18px 4px;border-bottom:1px solid #ffffff19}.doc-symbol{color:#edc783;display:inline-flex;flex:0 0 32px}.doc-symbol svg{width:30px;height:30px}.doc-name{flex:1;min-width:0}.doc-name strong,.doc-name .doc-open{color:#f4f7fc!important;font-size:16px!important;overflow-wrap:anywhere;white-space:normal;text-align:left;font-weight:650}.doc-name .doc-open{background:transparent!important;border:0!important;padding:0!important}.doc-name small{display:block;color:#aebed0;font-size:12px;margin-top:6px;line-height:1.5}.doc-actions{display:flex;align-items:center;gap:8px}.doc-actions>button{background:transparent!important;border:1px solid #54687f!important;color:#e7d0a1!important}.doc-more{position:relative}.doc-more summary{cursor:pointer;list-style:none;color:#edc783;padding:12px;min-width:25px}.doc-more summary::-webkit-details-marker{display:none}.doc-more[open]>button{position:absolute;right:0;top:100%;z-index:3;background:#22364d!important;color:#ffc5c5!important;border:1px solid #61738a!important}
.doc-empty{padding:40px 0;color:#b7c7d9}.doc-hint{font-size:12px;line-height:1.6;color:#9caec3}.documents-status{white-space:pre-wrap;overflow-wrap:anywhere;color:#edc783;min-height:22px;font-size:14px}
.documents-dialog{width:min(560px,92vw);max-height:85dvh;overflow:auto;box-sizing:border-box;background:#13243a;color:#edf2f8;border:1px solid #51657d;border-radius:18px;padding:24px}.documents-dialog::backdrop{background:#06101bd9}.documents-dialog header{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.documents-dialog h2{font-size:22px;overflow-wrap:anywhere}.documents-dialog p{line-height:1.65}.documents-dialog label{display:grid;gap:8px;margin:16px 0}.documents-dialog input:not([type=checkbox]){width:100%;box-sizing:border-box}.documents-dialog .doc-close{padding:4px 10px;border:0;background:transparent;color:#fff;font-size:26px}.documents-dialog fieldset{border:1px solid #4c6179;border-radius:10px}.documents-dialog .doc-agent{display:flex;align-items:flex-start;gap:12px}.doc-agent input{width:18px;height:18px;min-height:18px;margin:4px 0;accent-color:#edc783}.doc-agent small{display:block;color:#bccbda;font-size:12px;line-height:1.5;margin-top:5px}.documents-page :focus-visible,.documents-dialog :focus-visible{outline:2px solid #edc783;outline-offset:4px}
@media(max-width:650px){.doc-row{flex-wrap:wrap;gap:12px}.doc-name{flex-basis:calc(100% - 48px)}.doc-actions{margin-left:44px;flex-wrap:wrap}.documents-toolbar{display:block}.documents-tools{margin-top:12px}.documents-dialog{padding:18px}}
.doc-number{flex:0 0 28px;font-size:17px;color:#d7b77b;font-variant-numeric:tabular-nums}
.doc-folders{margin-top:32px;border-top:1px solid #ffffff25;padding-top:16px}.doc-folders h3{font-size:14px;color:#afbed0;font-weight:500}
.doc-add{position:relative}.doc-add summary{cursor:pointer;list-style:none;font-size:25px;line-height:36px;text-align:center;width:38px;border:1px solid #9f885f;border-radius:9px;color:#edc783}.doc-add summary::-webkit-details-marker{display:none}.doc-add>div{position:absolute;right:0;top:44px;z-index:5;background:#14263b;border:1px solid #54687f;border-radius:10px;padding:6px;min-width:155px;box-shadow:0 10px 30px #0005}.doc-add button{display:block;width:100%;text-align:left;background:transparent!important;color:#f1e5cd!important;border:0!important}
.documents-page .doc-drag{flex:0 0 24px;padding:0!important;background:transparent!important;border:0!important;color:#92a4bb;cursor:grab;touch-action:none;font-size:24px;min-height:36px}.doc-drag:active{cursor:grabbing}.doc-drop{box-shadow:inset 0 -2px #edc783;background:#ffffff05}
@media(max-width:650px){.doc-row{gap:8px}.doc-name{flex-basis:calc(100% - 80px)}.doc-actions{margin-left:68px}}
.doc-name .doc-open:hover{text-decoration:underline;text-underline-offset:4px}
.document-preview{width:min(1100px,96vw);height:92dvh;max-width:96vw;max-height:92dvh;box-sizing:border-box;padding:0;border:1px solid #50657e;border-radius:16px;background:#14263b;color:#f4f7fc;overflow:hidden}
.document-preview[open]{display:flex;flex-direction:column}
.document-preview::backdrop{background:#030a14dc}
.document-preview-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid #ffffff20;flex:none}
.document-preview-header h2{margin:0;font-size:19px;overflow-wrap:anywhere;min-width:0}
.document-preview-actions{display:flex;gap:10px;flex:none}
.document-preview-actions button{cursor:pointer;border:1px solid #8091a5;border-radius:8px;padding:10px 16px;background:#20374f;color:#fff;font:inherit;min-height:42px}
.document-preview-actions button:disabled{opacity:.45;cursor:wait}
.document-preview :focus-visible{outline:2px solid #edc783;outline-offset:3px}
.document-preview-content{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;background:#e8ecf1;color:#172b43}
.document-preview-frame{display:block;flex:1;width:100%;min-height:300px;border:0;background:white}
.document-preview-image{display:block;max-width:100%;height:auto;object-fit:contain;margin:auto}
.document-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.65 ui-monospace,monospace;background:white;margin:24px;padding:28px}
.document-preview-status{padding:32px;line-height:1.7;max-width:65ch;margin:0 auto}
.document-preview-note{flex:none;font-size:13px;line-height:1.5;margin:0;padding:10px 18px;background:#f6e9cd;color:#334359}
@media(max-width:650px){.document-preview{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0}.document-preview-header{padding:14px;gap:12px;flex-wrap:wrap}.document-preview-header h2{font-size:17px;flex-basis:100%}.document-preview-actions{width:100%;justify-content:flex-end}.document-preview-text{margin:0;padding:18px}}
.document-pdf-controls{display:flex;align-items:center;justify-content:center;gap:16px;flex:none;position:sticky;top:0;z-index:1;padding:12px;background:#f4f6f9;border-bottom:1px solid #ccd3db}
.document-pdf-controls button{background:white;color:#19304e;border:1px solid #9eacbc;border-radius:8px;padding:10px 14px;cursor:pointer;min-height:40px}
.document-pdf-controls button:disabled{opacity:.4;cursor:default}.document-pdf-controls span{font-size:14px;white-space:nowrap}
.document-pdf-sheet{padding:16px;min-width:0;box-sizing:border-box;text-align:center}.document-pdf-sheet canvas{background:white;box-shadow:0 2px 12px #182c4520;max-width:100%}
