.robot-library{width:min(1420px,95vw);max-height:94vh;border:1px solid #cedced;border-radius:20px;background:#f7faff;color:#3e5f86;padding:30px}.robot-library::backdrop{background:#20374b50;backdrop-filter:blur(5px)}.robot-library header{display:flex;justify-content:space-between;gap:20px}.robot-library h2{margin:8px 0 16px;font-size:30px}.robot-library small{letter-spacing:1.2px}.library-close{font-size:28px;background:transparent;color:#7893ae;align-self:flex-start}.library-tools{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin:20px 0}.robot-library label{display:flex;flex-direction:column;gap:8px;color:#7893ae}.robot-library input,.robot-library textarea,.robot-library select{padding:12px;border:1px solid #cddced;border-radius:8px;background:white;color:#426a96}.library-tools input{width:100px}#library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.library-card{padding:16px;background:white;border:1px solid #dbe5f0;border-radius:12px}.library-card h3{margin:12px 0}.library-card p{font-size:13px;min-height:36px}.library-preview{aspect-ratio:1.5;background:#e7edf3;border-radius:10px;overflow:hidden;display:grid;place-items:center}.library-preview canvas{width:100%;height:100%;display:block}.library-action{display:block;min-height:22px;color:#7d95ab}.library-studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.library-studio-grid section{display:flex;flex-direction:column;gap:18px}.library-studio-grid textarea{min-height:150px;resize:vertical}.robot-library button:disabled{opacity:.45;cursor:not-allowed}#library-generation-status,#library-status{white-space:pre-line;line-height:1.7}.library-card button{width:100%}@media(max-width:760px){.robot-library{padding:18px}.library-studio-grid{grid-template-columns:1fr}}
.library-preview-hint{max-width:80%;text-align:center;color:#69829e;line-height:1.8;padding:20px}#library-generation-status{margin:0;padding:12px 16px;border-radius:8px;background:#eaf1fa;color:#426a96;font-size:14px}#library-generation-status[data-state="error"]{background:#fff0ec;color:#a53f29;border:1px solid #e7b7aa}#library-generate[aria-busy="true"]{opacity:.8}
.library-prompt-examples{display:flex;gap:8px;flex-wrap:wrap}.library-prompt-examples button{padding:8px 12px;border:1px solid #cddced;border-radius:20px;background:#edf4fc;color:#426a96;cursor:pointer}
.library-preview-note{margin:0;color:#69829e;font-size:13px;line-height:1.7}#library-generation-preview{cursor:grab;touch-action:none;user-select:none}#library-generation-preview.is-dragging{cursor:grabbing}.library-preview-retry{margin-left:10px;padding:5px 10px;background:#eaf1fa;color:#426a96;border:1px solid #cddced;border-radius:6px;cursor:pointer}

.robot-library{box-sizing:border-box;overflow:auto}.robot-library input,.robot-library select,.robot-library textarea{box-sizing:border-box;max-width:100%;min-width:0}.robot-library .library-close{border:0;cursor:pointer}.library-studio-grid>section{min-width:0}@media(max-width:420px){#library-grid{grid-template-columns:minmax(0,1fr)}.robot-library h2{font-size:24px}.library-tools{gap:12px}}
