/* Ruction Elements v0.4.01 — reusable source-backed Module Library (no new layout engine). */
#appShell .re384-page-reset-row .re401-open-library {
  background:#087eac!important;color:#fff!important;border:1px solid #17a6d5!important;
  font-weight:600!important;white-space:nowrap;cursor:pointer;border-radius:8px;
}
#appShell .re384-page-reset-row .re401-open-library:hover {background:#056b92!important}
.re401-library{width:min(730px,calc(100vw - 28px));max-width:min(730px,calc(100vw - 28px));max-height:min(82vh,850px);overflow:auto;box-sizing:border-box;padding:24px!important;color:#e8f4fa!important;}
.re401-library h2{font-size:22px!important;line-height:1.3;margin:0 0 8px;font-weight:650}
.re401-library .re401-summary,.re401-library .re401-footnote{font:400 13px/1.5 system-ui,sans-serif;color:#c0d2de;margin:4px 0 15px}
.re401-library .re401-library-controls{display:flex;gap:10px;margin:10px 0 14px;align-items:center;flex-wrap:wrap}
.re401-library .re401-library-controls input,.re401-library .re401-library-controls select{min-width:0;flex:1 1 190px;box-sizing:border-box;border:1px solid #488ba8;border-radius:7px;background:#0e2737;color:#f2faff;padding:11px 12px;font:400 14px system-ui,sans-serif}
.re401-library .re401-list{display:grid;gap:8px;max-height:min(55vh,550px);overflow:auto;padding:2px}
.re401-library .re401-item{display:flex;gap:12px;align-items:center;border:1px solid #30536a;background:#132f40;padding:11px;border-radius:9px;min-width:0}
.re401-library .re401-item-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;color:#52cef3;background:#16465e;border-radius:7px}
.re401-library .re401-item-copy{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0}
.re401-library .re401-item-copy strong{font:600 14px/1.3 system-ui,sans-serif;color:#eaf7ff;overflow-wrap:anywhere}
.re401-library .re401-item-copy span{font:400 12px/1.4 system-ui,sans-serif;color:#a9c2d0}
.re401-library .re401-item-action{border:1px solid #159bce;background:#0a729d;color:white;font:600 12px system-ui,sans-serif;border-radius:7px;padding:8px 12px;cursor:pointer;flex:0 0 auto;}
.re401-library .re401-item-action:disabled{opacity:.45;cursor:not-allowed;background:transparent;border-color:#6d8795}
.re401-library .re401-footer{display:flex;justify-content:flex-end;margin-top:12px}
.re401-library .re401-footer button{background:#24485b;color:white;border:1px solid #527c91;border-radius:7px;padding:9px 16px}
.re401-library .re401-empty{padding:20px;text-align:center;color:#bacdd8}
.re376-dialog .re401-remove-option{color:#f7b9b9;border:1px solid #b36b6b;background:transparent}
@media (max-width:600px){.re401-library{padding:15px!important}.re401-library .re401-item{gap:7px;padding:8px}.re401-library .re401-item-icon{display:none}.re401-library .re401-item-action{padding:7px 9px}}
