.library-wrap{max-width:1000px;margin:auto}.library-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.library-card{background:#fff;border:1px solid #d7ddd1;border-radius:20px;padding:clamp(18px,4vw,32px);margin:20px 0}.library-card h2{margin-top:0}.library-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.library-actions a{font-weight:700}.library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.library-grid .library-card{margin:0}.library-input{display:block;width:100%;box-sizing:border-box;margin:8px 0 16px;padding:14px;border:1px solid #bdcbb9;border-radius:10px;font:inherit}.private-link{overflow-wrap:anywhere}.library-qr{background:white;padding:16px;width:max-content;max-width:100%}.library-qr img,.library-qr canvas{max-width:100%;height:auto}.library-status{padding:12px 0;white-space:pre-wrap}#librarySavePanel{margin:16px 0}#librarySavePanel .bank-actions{margin-top:8px}.library-version{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #ddd}.library-card summary{cursor:pointer;font-weight:700}

.question-actions{display:grid;gap:8px}.question-actions button{padding:7px 5px;font-size:12px}.bank-actions{flex-wrap:wrap}.library-card>details{margin-top:16px}.library-grid .library-card>details{font-size:13px}.library-grid .library-actions{align-items:stretch}.library-grid .library-actions a{padding:10px 0}

.set-editor .play-area,.set-editor .classic-timer,.set-editor .history-section,.set-editor .intro .progress,.set-editor #openDisplay{display:none}
.set-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}
.set-editor-layout #bankSection{min-width:0;margin-top:0}
.set-game-setup{position:sticky;top:20px;padding:24px;background:#fff;border:1px solid #d7ddd1;border-radius:20px}
.set-game-setup h2{margin:12px 0}.set-game-setup label{display:block;font-weight:700;margin:22px 0 8px}.set-game-setup select{width:100%}.set-game-setup .primary{width:100%;margin:20px 0 8px}.set-game-setup .pattern-preview{margin-top:16px}.set-editor #bankSection summary .edit-label{display:none}
@media(max-width:1000px){.set-editor-layout{grid-template-columns:minmax(0,1fr)}.set-game-setup{position:static;grid-row:1}}

.public-question-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:16px 0;border-bottom:1px solid #e3e7de}.public-question-row>div{min-width:0;overflow:auto}.public-question-head{font-size:.85rem;color:#6c8074}#publicStatus{padding:12px 0;white-space:pre-wrap}
