.document-menu{border-top:1px solid var(--line);padding:16px;color:var(--text)}
.document-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.document-menu-heading strong{font-size:14px;font-weight:700}
.document-menu-heading>span{font-size:12px;color:var(--muted)}
.document-menu-toolbar{display:flex;align-items:center;gap:8px;min-width:0}
.document-menu-toolbar select{flex:1 1 180px;width:0;min-width:0;min-height:38px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--text);font:inherit;font-size:13px}
.document-menu-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:38px;height:38px;padding:0 13px;border:1px solid #18334b;border-radius:8px;background:#18334b;color:#fff;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;line-height:1.2}
.document-menu-toolbar button:hover:not(:disabled){background:#244963}
.document-menu-toolbar button:disabled{opacity:.5;cursor:not-allowed}
.document-menu-toolbar button svg{width:16px;height:16px;flex:none}
.document-menu-toolbar select:focus-visible,.document-menu-toolbar button:focus-visible{outline:2px solid #008e91;outline-offset:2px}
.document-menu-hint{margin:8px 0 0;font-size:12px;color:var(--muted)}
html[data-theme="dark"] .document-menu-toolbar select{background:#182b3b;border-color:#405467;color:#e8f0f7}
html[data-theme="dark"] .document-menu-toolbar button{background:#28465f;border-color:#405a70;color:#fff}
@media(max-width:540px){.document-menu-full{display:none!important}.document-menu-toolbar select{font-size:16px}}
@media(pointer:coarse){.document-menu-toolbar button,.document-menu-toolbar select{min-height:44px;height:44px}}
