.pose-library-dialog{width:min(1040px,94vw);height:min(760px,90vh);padding:0;border:0;border-radius:24px;background:#fbfefd;color:#10233e;box-shadow:0 26px 80px rgba(15,35,56,.24)}.pose-library-dialog::backdrop{background:rgba(12,28,45,.48);backdrop-filter:blur(8px)}
.pose-library-frame{height:100%;display:flex;flex-direction:column;overflow:hidden}.pose-library-header{display:flex;justify-content:space-between;gap:16px;padding:22px 26px 16px;border-bottom:1px solid #dce9e5}.pose-library-header small{font-weight:900;letter-spacing:.16em;color:#09956f}.pose-library-header h2{margin:3px 0 2px}.pose-library-header p{margin:0;color:#66778a}.pose-library-close{width:42px;height:42px;border:1px solid #d6e4e0;border-radius:50%;font-size:24px;background:#f4faf8;cursor:pointer}
.pose-library-toolbar{display:flex;gap:12px;padding:14px 26px 8px}.pose-library-search{flex:1;min-width:0;padding:10px 13px;border:1px solid #cddeda;border-radius:11px}.pose-upload-button,.pose-detail-actions button,.pose-control-panel button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #8bd7c1;border-radius:10px;padding:9px 14px;background:#eaf9f4;color:#087d5e;font-weight:800;cursor:pointer}.pose-library-status{margin:0;padding:0 26px 9px;color:#687a8e;font-size:13px}.pose-library-body{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(340px,1.4fr);gap:16px;flex:1;min-height:0;padding:0 26px 24px}.pose-library-list-pane,.pose-library-detail{min-height:0;border:1px solid #dce8e5;border-radius:15px;background:white;overflow:hidden}.pose-library-list-pane{display:flex;flex-direction:column}.pose-library-list-pane h3{margin:0;padding:13px 15px;border-bottom:1px solid #e2ece9;font-size:15px}.pose-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start;overflow:auto;padding:12px}.pose-card{padding:0;overflow:hidden;border:2px solid transparent;border-radius:12px;background:#f5faf8;text-align:left;cursor:pointer}.pose-card.selected{border-color:#0aa779}.pose-card img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#eef5f2}.pose-card span{display:block;padding:8px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.pose-library-detail{display:grid;place-items:center;padding:14px}.pose-detail-empty{color:#7a8997;text-align:center}.pose-detail-content{width:100%;height:100%;min-height:0;display:flex;flex-direction:column}.pose-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:1;min-height:0}.pose-compare figure{display:flex;min-height:0;flex-direction:column;margin:0}.pose-compare figcaption{padding:4px 0 7px;color:#5f7185;font-weight:800}.pose-compare img{width:100%;height:100%;min-height:180px;object-fit:contain;border-radius:11px;background:#f0f6f4}.pose-detail-name{margin-top:10px}.pose-detail-meta{color:#718194}.pose-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.pose-detail-actions .danger{border-color:#f2b4bd;background:#fff3f5;color:#c43c50}.pose-detail-actions button[hidden]{display:none}
.pose-control-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:11px 13px;border:1px solid #d6e5e1;border-radius:13px;background:#fbfefd}.pose-control-panel>div:first-child{display:flex;min-width:0;gap:9px;align-items:center}.pose-control-panel [data-pose-name]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#627488}.pose-control-panel.selected{border-color:#78d5ba;background:#f0fbf7}.pose-control-actions{display:flex;gap:7px}.pose-control-actions [data-pose-clear]{padding-inline:11px;border-color:#f1b7bf;background:#fff5f6;color:#cb4053}.pose-control-hidden{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.pose-control-strength-row{display:none!important}.pose-control-strength-row.active{display:flex!important}
@media(max-width:600px){.pose-library-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:16px}.pose-library-header{padding:12px 14px 10px}.pose-library-header p{display:none}.pose-library-toolbar{padding:10px 14px 7px}.pose-library-status{padding:0 14px 7px}.pose-library-body{display:flex;flex-direction:column;padding:0 14px calc(14px + env(safe-area-inset-bottom))}.pose-library-list-pane{flex:0 0 min(33vh,250px)}.pose-library-detail{flex:1}.pose-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pose-card span{font-size:12px}.pose-compare img{min-height:120px}.pose-detail-actions button{padding:8px 10px}.pose-reference-figure{display:none}.pose-compare{grid-template-columns:1fr}.pose-control-panel{padding:9px 10px}}
