.project-library{width:min(1120px,94vw);max-height:90dvh;padding:24px;border:1px solid #dce5eb;border-radius:14px;color:#234558;background:#f5f8fa;overflow:auto}.project-library::backdrop{background:#142b3977}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.library-heading h2{margin:0 0 16px;font-size:24px}.library-close{border:0;background:#e7eef2;border-radius:6px;font-size:24px;width:34px;height:34px}.library-toolbar{display:flex;gap:12px;align-items:center}.library-toolbar input{flex:1;min-width:0;padding:12px;border:1px solid #d9e3e8;border-radius:8px}.library-note{font-size:12px;line-height:1.6;color:#6a818f}.library-archive{font-size:12px;display:flex;align-items:center;gap:6px;margin:12px 0}.library-error{color:#a33434;font-size:13px}.library-error:empty{display:none}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin-top:18px}.library-card{border:1px solid #dce5eb;background:white;border-radius:9px;overflow:hidden;padding-bottom:12px}.library-card.current{border:2px solid #2c81a8}.library-open{display:block;width:100%;padding:0;border:0;background:#edf2f5;color:#fff;text-align:left}.library-open img,.library-placeholder{width:100%;height:160px;display:block;object-fit:cover}.library-placeholder{display:grid;place-items:center;color:#80949f;background:linear-gradient(135deg,#e4edf2,#f8fafb)}.library-open strong{display:block;padding:10px 12px;background:#245e7c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-card>input{width:calc(100% - 24px);margin:12px 12px 6px;padding:8px;border:1px solid #dce5eb;border-radius:5px;font-size:12px}.library-card small{display:block;margin:0 12px 10px;font-size:10px;color:#748995}.library-card-actions{display:flex;gap:8px;margin:0 12px}.library-card-actions button{flex:1;border:1px solid #dce5eb;background:#f4f7f9;color:#365d73;padding:7px;border-radius:5px;font-size:11px}.library-card-actions button:disabled{opacity:.4;cursor:default}.project-library[aria-busy=true]{cursor:wait}.app-header:has(#my-projects) .brand{min-width:220px}.app-header:has(#my-projects) .prototype{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.app-header:has(#my-projects){gap:14px}.app-header:has(#my-projects) .header-actions{gap:7px}.app-header:has(#my-projects) .button{gap:8px;padding:0 12px}
@media(max-width:1100px){.app-header:has(#my-projects) .prototype{display:none}.app-header:has(#my-projects) .brand{min-width:0}}@media(max-width:700px){.project-library{padding:14px}.library-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}.library-toolbar{flex-wrap:wrap}.library-toolbar input{flex-basis:100%}.app-header:has(#my-projects){height:auto;min-height:86px;flex-wrap:wrap;padding:12px}.app-header:has(#my-projects) .header-actions{flex-wrap:wrap}.app-header:has(#my-projects) .brand{min-width:160px}.app-header:has(#my-projects) .button{font-size:10px;padding:0 8px}.library-open img,.library-placeholder{height:140px}}
