/* Scoped module catalogue; switches and search keep their existing contracts. */
html body main#module-library{background:linear-gradient(180deg,#0c0d14b8,#0c0d1470)!important}
html body #module-library .nc-module-toolbar{display:flex;align-items:flex-end;gap:16px;margin:26px 0 30px;padding:18px;background:#101117e8;border:1px solid #ffffff12;border-radius:16px}
html body #module-library .nc-module-search{flex:1;margin:0;min-width:0;font-size:12px;color:#c8bdce}
html body #module-library .nc-module-search input{margin-top:8px;min-height:44px;border-radius:10px;background:#090b10;border-color:#ffffff20}
html body #module-library .nc-module-favorites{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 14px;border:1px solid #ffffff20;border-radius:10px;background:#191720;font-size:12px;white-space:nowrap;cursor:pointer}
html body #module-library .nc-module-group{margin:0 0 32px}
html body #module-library .nc-module-group>h2{display:flex;align-items:center;gap:16px;margin:0 0 14px;font-size:16px;color:#f4edf6;letter-spacing:.01em}
html body #module-library .nc-module-group>h2::after{content:'';flex:1;height:1px;background:#ffffff12}
html body #module-library .nc-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body #module-library .nc-module-card{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px!important;border:1px solid var(--nc-reference-line)!important;border-radius:var(--nc-scarlet-radius)!important;background:var(--nc-reference-card)!important;box-shadow:var(--nc-scarlet-shadow)!important;transition:border-color .15s,background-color .15s}
html body #module-library .nc-module-card:has(input[name=enabled]:checked){border-color:var(--nc-reference-line)!important}
html body #module-library .nc-module-card:hover{border-color:#e36a8b60!important;box-shadow:0 4px 18px #0003!important}
html body #module-library .nc-module-title{display:flex;align-items:center;gap:11px;padding-right:38px;min-height:28px}
html body #module-library .nc-module-monogram{display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid #df5f8133;border-radius:10px;background:#cd3f6412;color:#f3a0b9;font-size:15px;font-weight:700}
html body #module-library .nc-module-card h3{margin:0;font-size:14px;line-height:1.4;color:#f5f0f6;overflow-wrap:anywhere}
html body #module-library .nc-module-card p{margin:8px 0 8px;font-size:13px;line-height:1.55;color:#b1a9ba}
html body #module-library .nc-module-card small{display:block;font-size:11px;line-height:1.5;color:#91899c;font-weight:400}
html body #module-library .nc-module-card footer{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:10px;border-top:1px solid #ffffff0d}
html body #module-library .nc-module-configure{display:inline-flex;align-items:center;gap:12px;min-height:40px;padding:0 13px;border:1px solid #ffffff20;border-radius:9px;background:#ffffff05;color:#e6dce9;font-size:12px;font-weight:600;text-decoration:none}
html body #module-library .nc-module-configure:hover{background:#8e294035;border-color:#de668666;color:#fff}
html body #module-library .module-page-switch{display:flex;align-items:center;gap:9px;margin-left:auto;min-height:44px;font-size:11px;color:#a59bae}
html body #module-library .module-page-switch .nc-module-on{display:none;color:#eda3ba}
html body #module-library .module-page-switch:has(input:checked) .nc-module-on{display:inline}
html body #module-library .module-page-switch:has(input:checked) .nc-module-off{display:none}
html body #module-library .nc-module-card footer>button[data-paywall]{margin-left:auto;min-height:40px;border:1px solid #b94d5d44;border-radius:9px;background:#b94d5d0c;color:#dd8a96;font-size:11px}
html body #module-library .nc-module-card footer .nc-favorite-button{position:absolute;top:9px;right:9px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:#82788e;font-size:20px;border-radius:8px}
html body #module-library .nc-module-card footer .nc-favorite-button[aria-pressed=true]{color:#ffb0c8;background:#f04c7514}
html body #module-library :is(a,button,input):focus-visible{outline:3px solid #ff91b1;outline-offset:3px}
@media(max-width:760px){html body #module-library .nc-module-grid{grid-template-columns:minmax(0,1fr)}html body #module-library .nc-module-toolbar{flex-wrap:wrap}html body #module-library .nc-module-search{flex-basis:100%}html body #module-library .nc-module-favorites{min-height:44px}html body #module-library .nc-module-card{padding:16px!important}}
@media(prefers-reduced-motion:reduce){html body #module-library .nc-module-card{transition:none}}

html body #module-library .module-page-switch :is(.nc-module-on,.nc-module-off){order:-1}
html body #module-library [hidden]{display:none!important}
html body #module-library .nc-module-toolbar{flex-wrap:wrap;background:var(--nc-reference-card);border-color:var(--nc-reference-line)}
html body #module-library .nc-module-state{display:grid;gap:8px;margin:0;font-size:12px;min-width:170px}
html body #module-library .nc-module-evidence{margin-top:8px;color:#d7bbc0}
html body #module-library [data-module-count]{font-size:13px;color:#cbbbc0;margin:0 0 20px}
