.tp-library-scrim{z-index:160;backdrop-filter:blur(3px);background:#080808aa;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.tp-library{box-sizing:border-box;--library-scroll-outset:14px;color:#ddd;background:#202020;border:1px solid #555;border-radius:22px;width:1140px;max-width:100%;height:780px;max-height:calc(100dvh - 48px);padding:20px;font:13px/1.45 Segoe UI,sans-serif;position:relative;overflow:hidden;box-shadow:0 24px 90px #0006}.tp-library:focus{outline:none}.tp-library button{color:inherit;font:inherit;cursor:pointer;white-space:nowrap;background:#383838;border:1px solid #0000;border-radius:7px;padding:7px 11px}.tp-library button:hover:not(:disabled){background:#4b4b4b}.tp-library button:disabled{opacity:.45;cursor:default}.tp-library :is(button,input):focus-visible{outline-offset:2px;outline:2px solid #ffc24a}.tp-library p{margin:0}.tp-library-content{grid-template-columns:minmax(0,.41fr) minmax(0,.59fr);gap:20px;height:100%;min-height:0;display:grid}.tp-library-detail,.tp-library-gallery{flex-direction:column;gap:12px;min-width:0;min-height:0;display:flex}.tp-library-navigation{flex-wrap:wrap;flex:none;align-items:center;gap:6px;min-height:50px;display:flex}.tp-library-segment{background:#171717;border-radius:14px;gap:3px;padding:4px;display:inline-flex}.tp-library-segment button{color:#b5b5b5;background:0 0;border:0;border-radius:10px;padding:6px 13px}.tp-library-segment button[aria-pressed=true]{color:#f1f1f1;background:#414141}.tp-library .tp-library-cull{color:#bbb;background:0 0;border:0;border-radius:9px;justify-content:center;align-items:center;width:34px;height:34px;padding:6px;display:inline-flex;position:absolute;top:28px;right:20px}.tp-library .tp-library-cull[aria-pressed=true]{color:#eee;background:#151515;box-shadow:inset 0 2px 4px #000b,inset 0 -1px #444}.tp-library .tp-library-cull[aria-pressed=true]:hover:not(:disabled){background:#1d1d1d}.tp-library-cull .tp-icon,.tp-library-cull svg{width:20px;height:20px}.tp-library-gallery-toolbar{flex-flow:wrap;flex:none;align-items:center;gap:8px 12px;min-height:50px;padding-right:46px;display:flex}.tp-library-filters{flex-wrap:wrap;flex:1;gap:3px;display:flex}.tp-library-filters button{color:#aaa;background:0 0;border-radius:9px;padding:5px 9px}.tp-library-filters button[aria-pressed=true]{color:#e0e0e0;background:#414141}.tp-library-toolbar{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px 12px;font-size:12px;display:flex}.tp-library-toolbar.is-empty{display:none}.tp-library-personal-actions{background:#171717;border:1px solid #404040;border-radius:16px;align-items:center;gap:12px;padding:9px;display:inline-flex}.tp-library-personal-actions button{justify-content:center;align-items:center;gap:7px;min-height:30px;padding:4px 9px;display:inline-flex}.tp-library-personal-actions .tp-icon,.tp-library-personal-actions .tp-icon svg{width:18px;height:18px}.tp-library-auto-check{background:#202020;border:1px solid #888;border-radius:3px;justify-content:center;align-items:center;width:15px;height:15px;display:flex}.tp-library-personal-actions [aria-checked=true] .tp-library-auto-check{color:#202020;background:#ffc24a;border-color:#ffc24a}.tp-library-auto-check svg{width:13px;height:13px}.tp-library-scroll-area{min-width:0;min-height:0;margin-right:calc(-1 * var(--library-scroll-outset));flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 28px;gap:14px;display:grid}.tp-library-grid{scrollbar-width:none;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:14px 10px;min-width:0;min-height:0;padding:3px 3px 4px;display:grid;overflow:auto}.tp-library-grid::-webkit-scrollbar{display:none}.tp-library-scroll-track{touch-action:none;user-select:none;cursor:pointer;background:#171717;border-radius:14px;align-self:stretch;min-height:0;margin-block:8px;padding-inline:3px;position:relative}.tp-library-scroll-track[data-overflow=false]{visibility:hidden}.tp-library-scroll-track:focus-visible{outline-offset:1px;outline:2px solid #aaa}.tp-library-scroll-thumb{background:#626262;border-radius:11px;width:22px;position:absolute;top:0;left:3px}.tp-library-scroll-track:hover .tp-library-scroll-thumb,.tp-library-scroll-track:active .tp-library-scroll-thumb{background:#7a7a7a}.tp-library-card{border-radius:8px;min-width:0;position:relative}.tp-library .tp-library-choice{text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;flex-direction:column;width:100%;padding:4px;display:flex;overflow:hidden}.tp-library .is-selected .tp-library-choice{background:#303030;border-color:#ffc24a}.tp-library .is-marked .tp-library-choice{border-color:#ffc24a;box-shadow:inset 0 0 0 1px #ffc24a}.tp-library-thumbnail,.tp-library-large-image{background:#303030;justify-content:center;align-items:center;display:flex;overflow:hidden}.tp-library-thumbnail{border-radius:4px;width:100%;height:138px}.tp-library-thumbnail img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%}.tp-library-card-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:8px 2px 3px;display:block;overflow:hidden}.tp-library-preview{background:#292929;border:1px solid #404040;border-radius:14px;flex-direction:column;flex:1;gap:12px;min-width:0;min-height:0;padding:12px;display:flex}.tp-library-large-image{border-radius:9px;flex:1;min-height:0}.tp-library-large-image img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%}.tp-library-caption{flex-direction:column;gap:4px;min-width:0;display:flex}.tp-library-name-row{align-items:center;gap:8px;min-width:0;min-height:32px;display:flex}.tp-library-caption strong{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:15px;font-weight:550;overflow:hidden}.tp-library-caption span,.tp-library-reason{color:#aaa;font-size:12px}.tp-library .tp-library-rename{background:#383838;border-color:#585858;flex:0 0 30px;justify-content:center;align-items:center;height:30px;padding:5px;display:flex}.tp-library-rename .tp-icon,.tp-library-rename svg{width:18px;height:18px}.tp-library-name{box-sizing:border-box;color:#f1f1f1;min-width:0;height:32px;font:inherit;background:#171717;border:1px solid #686868;border-radius:6px;flex:1;padding:5px 9px}.tp-library-empty{color:#aaa;grid-column:1/-1;padding:20px 8px}.tp-library-feedback{color:#bbb;flex:none;max-height:75px;font-size:12px;overflow:auto}.tp-library-feedback.is-empty{display:none}.tp-library-feedback [role=alert]{color:#f0b4a6}.tp-library input[type=checkbox]{accent-color:#ffc24a}.tp-library-mark{cursor:pointer;border-radius:3px;width:19px;height:19px;margin:0;position:absolute;top:11px;left:11px;box-shadow:0 0 0 3px #292929cc}.tp-library .tp-library-remove{color:#ff4d4d;background:#303030;border-color:#656565;justify-content:center;align-items:center;gap:3px;min-width:30px;height:30px;padding:4px 5px;display:flex;position:absolute;top:11px;right:11px;box-shadow:0 2px 5px #0005}.tp-library .tp-library-remove:disabled{opacity:.65}.tp-library-remove .tp-icon,.tp-library-remove svg{width:19px;height:19px}.tp-library .tp-library-remove:hover:not(:disabled){background:#522626}.tp-library .tp-library-preview-insert{color:#fff;background:#3c3c3c;border-color:#666;flex:none;width:100%;min-height:42px;font-weight:550}.tp-library-image-insert{flex:none;grid-template-columns:1fr 1fr;gap:9px;padding:0;display:grid}.tp-library-insert-label{color:#eee;grid-column:1/-1;font-size:13px;font-weight:600}.tp-library .tp-library-image-insert button{color:#fff;background:#3c3c3c;border-color:#666;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:7px 8px;display:flex}.tp-library .tp-library-image-insert button:hover:not(:disabled),.tp-library .tp-library-preview-insert:hover:not(:disabled){color:#fff;background:#515151}.tp-library-image-insert .tp-icon,.tp-library-image-insert .tp-icon svg{width:22px;height:22px}@media (width<=1000px){.tp-library{--library-scroll-outset:10px;padding:16px}.tp-library .tp-library-cull{top:24px;right:16px}.tp-library-content{grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:14px}.tp-library-segment button{padding:6px 10px}.tp-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.tp-library-scrim{padding:12px}.tp-library-navigation{padding-right:38px}.tp-library{--library-scroll-outset:8px;max-height:calc(100dvh - 24px);padding:14px}.tp-library .tp-library-cull{top:22px;right:14px}.tp-library-content{grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);gap:12px}.tp-library-navigation{gap:4px}.tp-library-segment button{padding:5px 10px}.tp-library-image-insert{grid-template-columns:1fr;padding:9px}.tp-library .tp-library-image-insert button{min-height:34px}.tp-library-thumbnail{height:116px}}@media (width<=520px){.tp-library{--library-scroll-outset:6px;padding:12px}.tp-library-content{flex-direction:column;gap:10px;display:flex}.tp-library-detail{flex:0 0 290px;gap:8px}.tp-library-preview{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:9px;display:grid}.tp-library-large-image{grid-row:1/3}.tp-library-gallery{flex:1;gap:6px}.tp-library-gallery-toolbar{min-height:0;padding-right:0}.tp-library-feedback{grid-column:1/-1;max-height:40px}.tp-library-image-insert{gap:5px;padding:7px}.tp-library-image-insert .tp-icon,.tp-library-image-insert .tp-icon svg{width:18px;height:18px}.tp-library-thumbnail{height:110px}}.tp-library-preview-origin{color:#aaa;flex:none;font-size:12px}.tp-library-preview-origin button{padding:4px 8px}.tp-library .tp-library-save{color:#252525;background:#ddd;border-color:#eee;min-height:42px}.tp-library-image-insert{background:0 0;border:0;border-radius:0;padding:0}.tp-library img.tp-library-transparent{background-color:#c8c8c8;background-image:conic-gradient(#b8b8b8 25%, transparent 0 50%, #b8b8b8 0 75%, transparent 0);background-size:32px 32px}
