/* Website library; keeps the existing Mystica parchment / ink direction. */
.library-intro{padding-bottom:2rem}.library-intro .lead{max-width:48rem}.library-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-bottom:1.4rem}.library-toolbar .button{font-size:.85rem;padding:.7rem 1rem;min-height:42px}.library-search-label{display:grid;gap:.35rem;flex:1;min-width:200px;max-width:400px;font-size:.78rem}.library-search-label input{font:inherit;font-size:.95rem;background:#fff9e9;border:1px solid #9c896866;border-radius:3px;padding:.7rem}.library-local-note{font-size:.9rem;line-height:1.7;max-width:60rem;color:#655e4f;margin:.8rem 0 1.8rem}.library-summary{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #8e795d55;margin-bottom:1.4rem;padding-bottom:.75rem}.library-summary button{font:inherit;font-size:.85rem;background:none;border:1px solid #8e795d77;border-radius:3px;padding:.4rem .85rem;cursor:pointer}.library-summary button[aria-pressed=true]{background:#26342d;color:#f8f0dc}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem;margin-bottom:3rem}.library-card{display:grid;grid-template-columns:1fr;background:linear-gradient(135deg,#fffcf0bd,#ede1c5a3);border:1px solid #8e795d55;border-radius:3px;box-shadow:0 7px 24px #352b1b0a;overflow:hidden}.library-portrait{height:210px;background:radial-gradient(ellipse at center,#c7ae7747,transparent 72%);overflow:hidden}.library-portrait img{width:100%;height:100%;object-fit:contain;object-position:center 20%}.library-card-copy{padding:1.3rem}.library-meta{display:flex;justify-content:space-between;gap:.75rem;font-size:.73rem;letter-spacing:.04em;color:#6d604e}.library-card h2{font-size:1.6rem;line-height:1.15;margin:.8rem 0}.library-archetypes{font-size:.87rem;min-height:1.4em}.library-stage{font-size:.75rem;color:#566c4c}.library-date{font-size:.73rem;color:#776d5e}.library-card .button{font-size:.8rem;padding:.6rem .85rem}.library-options{border-top:1px solid #8e795d44;margin-top:1rem;padding-top:.6rem;font-size:.8rem}.library-options summary{cursor:pointer}.library-option-buttons{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.6rem}.library-option-buttons button{font:inherit;border:1px solid #8e795d66;background:transparent;padding:.4rem .6rem;border-radius:3px;cursor:pointer}.library-status{min-height:1.6em;font-size:.9rem;color:#2d6345}.library-status.is-error{color:#8b3628}.library-empty{padding:3rem;text-align:center;border:1px dashed #8e795d77;margin-bottom:3rem}.library-empty h2{font-size:2rem}.library-empty p{max-width:36rem;margin:1rem auto}.library-empty[hidden],.library-grid [hidden],[hidden]{display:none!important}.library-toolbar button:disabled{opacity:.5}.library-options button:hover,.library-summary button:hover{background:#ded0af}.catalog-browser{margin-block:2rem}.catalog-controls{display:flex;flex-wrap:wrap;gap:.7rem;margin:1rem 0}.catalog-controls input,.catalog-controls select{font:inherit;padding:.6rem;border:1px solid #8e795d66;background:#fff9e9;border-radius:3px}.catalog-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.catalog-item{padding:1rem;border:1px solid #8e795d55;background:#fffcf075}.catalog-item h3{font-size:1.25rem;margin:0 0 .5rem}.catalog-item p{font-size:.85rem;white-space:pre-line}.catalog-item summary{cursor:pointer}.catalog-item .tag{font-size:.7rem}.catalog-item small{font-size:.72rem;color:#786957}
@media(max-width:1050px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.library-grid,.catalog-items{grid-template-columns:1fr}.library-card{grid-template-columns:100px minmax(0,1fr)}.library-portrait{height:180px;align-self:start;margin-top:1rem}.library-card-copy{padding:1rem .8rem}.library-card h2{font-size:1.4rem}.library-meta{flex-wrap:wrap}.library-empty{padding:2rem 1rem}.library-toolbar{align-items:stretch}.library-search-label{max-width:none;flex-basis:100%}}
