@media screen {
 .view-documents .content { background:#f5f6f1; }
 .library-mast { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; margin:8px 0 20px; color:#193f36; }
 .library-mast h1 { margin:0; font:400 clamp(38px,4vw,56px)/1.08 "Instrument Serif",Georgia,serif; letter-spacing:-.02em; }
 .library-mast-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px 16px; }
 .library-mast .button.primary { background:#205341; border-color:#205341; color:#fff; }
 .library-menu { position:relative; }
 .library-menu>summary,.library-refine summary,.document-note summary { cursor:pointer; color:#365e4a; font-size:.86rem; }
 .library-menu>summary { padding:9px 0; }
 .library-menu>div { position:absolute; z-index:3; right:0; display:grid; gap:6px; width:max-content; max-width:75vw; padding:8px; background:#fffefa; border:1px solid #c9d7c8; border-radius:10px; box-shadow:0 8px 24px #233d2f1f; }
 .library-menu .button { white-space:normal; }
 .library-register { background:#fffefa; color:#243e33; border:1px solid #c6d4c6; border-radius:16px; }
 .library-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 14px; padding:12px clamp(14px,2vw,24px); color:#fff; background:#23483e; border-radius:15px 15px 0 0; }
 .library-controls .search { flex:1 1 190px; width:auto; min-width:0; max-width:510px; min-height:44px; margin:0; background:#fffefa; box-shadow:none; color:#3c5848; border-color:#d4e0cd; }
 .library-controls .search input { min-width:0; }
 .library-sort { display:flex; align-items:center; flex-wrap:wrap; gap:3px 8px; min-width:0; color:#fff; font-size:.83rem; }
 .library-sort select,.document-filters select { max-width:100%; min-width:0; min-height:42px; padding:7px 10px; font:inherit; color:#204532; background:#fbfcf6; border:1px solid #b7cab7; border-radius:8px; }
 .library-refine { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; padding:10px clamp(14px,2vw,24px); gap:6px 12px; }
 .library-refine:has(details[open]) { grid-template-columns:minmax(0,1fr); }
 .library-refine .document-quick-filters { margin:0; gap:6px; }
 .library-refine .document-quick-filters button { color:#315541; background:#fffefa; border-color:#c9d8c7; border-radius:7px; min-height:36px; padding:5px 10px; font-size:.82rem; }
 .library-refine .document-quick-filters button[aria-pressed=true] { background:#e5efd9; border-color:#69886c; color:#234e35; }
 .library-refine .document-quick-filters button span { color:#34513e; background:#edf1e6; border-radius:4px; padding:2px 5px; font-variant-numeric:tabular-nums; }
 .library-refine .document-filter-details { margin:0; padding:0; border:0; }
 .library-refine .document-filter-details summary { min-height:36px; align-content:center; padding:6px 0; }
 .library-refine .document-filters { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:4px; gap:9px; }
 .library-results { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px clamp(14px,2vw,24px); background:#eff3e9; border-top:1px solid #d8e1d5; color:#425f4c; }
 .library-results h2 { margin:0; font-family:inherit; font-weight:600; font-size:.85rem; line-height:1.4; }
 .library-results .link-button { text-decoration:underline; text-underline-offset:3px; padding:3px 0; border:0; background:none; color:#315d43; font-size:.84rem; }
 .library-register .document-row { grid-template-columns:minmax(0,1.25fr) minmax(0,.95fr) auto; gap:12px 20px; padding:16px clamp(14px,2vw,24px); border-color:#d6dfd4; }
 .library-register .document-row>* { min-width:0; }
 .library-file { display:flex; align-items:flex-start; gap:12px; }
 .library-format { display:grid; flex:none; place-items:center; width:42px; min-height:50px; padding:5px 2px; border:1px solid #c6d8ca; border-radius:8px; background:#eef3e9; font-size:.62rem; font-weight:700; color:#335a43; }
 .library-format svg { width:18px; height:18px; }
 .library-image { background:#f8f0dd; color:#795522; border-color:#e3d6b3; }
 .library-category { display:block; margin:0 0 2px; font-size:.77rem; color:#596d59; }
 .library-register .document-row h3 { font-size:1.04rem; line-height:1.35; color:#1e4433; margin:0; }
 .library-register .document-metadata { margin-top:4px; font-size:.78rem; color:#536856; }
 .library-register .document-links { margin:0; gap:5px; }
 .library-register .document-links button { color:#255c42; width:fit-content; padding:2px 0; line-height:1.35; font-size:.85rem; text-decoration:underline; text-decoration-color:#abbaae; text-underline-offset:3px; }
 .library-register .document-links button small { display:inline-block; font-size:.75rem; color:#536856; margin-left:5px; }
 .library-unlinked { font-size:.8rem; color:#566b5d; }
 .library-register .document-note { margin-top:4px; }
 .library-register .document-note summary { padding:3px 0; font-size:.76rem; }
 .library-register .document-note p { margin-top:3px; }
 .library-register .document-row-actions { display:flex; flex-direction:column; align-items:stretch; gap:0; }
 .library-register .document-row-actions>.button { color:#234d38; background:#f1f5eb; border:1px solid #c5d4c3; font-weight:600; }
 .library-register .ux-more { max-width:200px; margin:0; }
 .library-register .ux-more summary { color:#46634f; background:transparent; border:0; font-weight:500; min-height:32px; padding:5px 6px; }
 .library-register .ux-more>div { display:grid; gap:6px; margin:0; background:transparent; }
 .view-documents .document-help { margin:15px 0; border:0; border-radius:0; background:none; padding:5px 2px; color:#46614e; }
 .view-documents .document-help summary { width:fit-content; }
 @media (max-width:900px) {
  .library-register .document-row { grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:9px 16px; }
  .library-register .document-row-actions { grid-column:1/-1; flex-direction:row; align-items:flex-start; flex-wrap:wrap; gap:4px 12px; }
 }
 @media (max-width:600px) {
  .library-mast { margin:4px 0 12px; gap:7px; }
  .library-mast-actions { width:100%; gap:6px 12px; }
  .library-menu>div { left:auto; right:0; }
  .library-controls { gap:6px; padding:10px 12px; }
  .library-controls .search { flex-basis:100%; max-width:none; }
  .library-sort { width:100%; justify-content:space-between; }
  .library-sort select { min-height:36px; }
  .library-refine { padding:8px 12px; column-gap:6px; }
  .library-refine .document-quick-filters { gap:4px; }
  .library-refine .document-quick-filters button { padding:4px 6px; gap:3px; font-size:.75rem; }
  .library-refine .document-filter-details summary { font-size:.78rem; }
  .library-refine .document-filters { grid-template-columns:minmax(0,1fr); }
  .library-register .document-row { grid-template-columns:minmax(0,1fr); padding:14px 12px; gap:8px; }
  .library-file { gap:9px; }
  .library-format { width:33px; min-height:42px; }
  .library-register .document-links { padding-left:42px; }
  .library-register .document-row-actions { padding-left:42px; }
 }
 @media (max-width:370px) {
  .library-refine { grid-template-columns:minmax(0,1fr); gap:0; }
  .library-refine .document-filter-details summary { min-height:30px; }
  .library-register .document-row-actions { padding-left:0; }
  .library-menu>div { right:-5px; }
 }
}
