.catalog-library-dialog{width:min(1080px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #414141;border-radius:18px;background:#111;color:#f6f6f6;box-shadow:0 24px 100px #0009;font:inherit;color-scheme:dark}
.catalog-library-dialog[open]{display:flex;flex-direction:column}.catalog-library-dialog::backdrop{background:rgba(0,0,0,.78)}
.catalog-library-dialog *{box-sizing:border-box}.catalog-library-dialog [hidden]{display:none!important}
.catalog-library-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid #343434;flex-shrink:0}
.catalog-library-shop{display:block;color:#b3b3b3;font-size:.85rem;margin-bottom:6px}.catalog-library-head h1{font-size:clamp(1.2rem,2.5vw,1.7rem);line-height:1.2;margin:0;font-weight:800}
.catalog-library-body{overflow:auto;padding:24px 28px;overscroll-behavior:contain;min-height:0}.catalog-library-intro{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.catalog-library-intro p{margin:0 0 7px;font-size:.95rem;line-height:1.5}.catalog-library-note{font-size:.8rem;color:#b3b3b3;line-height:1.5}
.catalog-library-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0;max-width:440px}.catalog-library-button{min-height:44px;padding:10px 15px;border:1px solid #505050;border-radius:9px;background:#222;color:#f6f6f6;font:inherit;font-size:.86rem;font-weight:650;line-height:1.3;cursor:pointer}.catalog-library-button:hover{background:#303030;border-color:#777}.catalog-library-button.is-primary{background:#ff6508;color:#111;border-color:#ff6508}.catalog-library-button.is-primary:hover{background:#ff7a27}.catalog-library-button:disabled{opacity:.42;cursor:default}.catalog-library-dialog button:focus-visible,.catalog-library-dialog input:focus-visible,.catalog-library-dialog summary:focus-visible{outline:2px solid #ff934b;outline-offset:3px}
.catalog-library-search{display:flex;flex-direction:column;gap:8px;font-size:.84rem;font-weight:600}.catalog-library-search input{display:block;width:100%;min-height:48px;background:#1b1b1b;border:1px solid #505050;border-radius:10px;color:#f6f6f6;padding:12px 15px;font:inherit;font-weight:400;appearance:none}.catalog-library-search input::placeholder{color:#a5a5a5}
.catalog-library-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.catalog-library-filter{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 14px;border-radius:9px;border:1px solid #424242;background:#1b1b1b;color:#ccc;font:inherit;font-size:.85rem;font-weight:650;cursor:pointer}.catalog-library-filter[aria-pressed=true]{border-color:#ff6508;color:#ff9a5d;background:#302116}.catalog-library-count{font-size:.78rem;font-variant-numeric:tabular-nums;color:inherit;opacity:.85}.catalog-library-count:empty{display:none}
.catalog-library-summary{display:flex;justify-content:space-between;gap:12px;min-height:48px;align-items:center;color:#bbb;font-size:.8rem}.catalog-library-summary p{margin:12px 0}.catalog-library-table-wrap{border:1px solid #3b3b3b;border-radius:12px;overflow:hidden}.catalog-library-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}.catalog-library-table thead{background:#242424;color:#ccc;font-size:.75rem}.catalog-library-table th,.catalog-library-table td{padding:16px;vertical-align:top}.catalog-library-table thead th{font-weight:650}.catalog-library-table th:first-child{width:49%}.catalog-library-table th:nth-child(2){width:15%}.catalog-library-table th:nth-child(3){width:16%}.catalog-library-table th:nth-child(4){width:20%}.catalog-library-table tbody tr{background:#171717;border-top:1px solid #373737}.catalog-library-table tbody th{text-align:left;font-weight:500}.catalog-library-table td{font-size:.88rem;line-height:1.5;font-variant-numeric:tabular-nums}.catalog-library-item-name{display:block;font-weight:700;font-size:.95rem;line-height:1.5;overflow-wrap:anywhere}.catalog-library-type{display:inline-block;margin-top:7px;font-size:.72rem;line-height:1.4;color:#c4c4c4;border:1px solid #474747;border-radius:5px;padding:2px 7px;background:#252525}.catalog-library-table small{display:block;color:#aaa;font-size:.77rem;margin-top:5px}.catalog-library-price{font-weight:700}.catalog-library-description{margin:10px 0 0;color:#b7b7b7;font-size:.82rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400}.catalog-library-description summary{cursor:pointer;color:#ddd;white-space:normal;min-height:32px;padding:5px 0}.catalog-library-description p{margin:8px 0 0}
.catalog-library-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:240px;gap:12px;padding:36px 24px;border:1px solid #3b3b3b;border-radius:12px;background:#171717}.catalog-library-empty h2{font-size:1.1rem;line-height:1.4;margin:0}.catalog-library-empty p{max-width:520px;margin:0;color:#bbb;font-size:.9rem;line-height:1.6}.catalog-library-action-error{padding:14px;border:1px solid #93633f;border-radius:9px;background:#2c2119;color:#ffd2af;font-size:.88rem;line-height:1.5}.catalog-library-error{border-color:#7e5639}.catalog-library-loading{width:26px;height:26px;border:2px solid #4c4c4c;border-top-color:#ff6508;border-radius:50%;animation:catalog-library-spin .8s linear infinite}.catalog-library-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:.82rem;color:#bbb;font-variant-numeric:tabular-nums}.catalog-library-sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}@keyframes catalog-library-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.catalog-library-loading{animation:none}}
@media(max-width:850px){.catalog-library-intro{flex-direction:column}.catalog-library-actions{max-width:none}.catalog-library-table th:first-child{width:43%}.catalog-library-table th:nth-child(2){width:17%}.catalog-library-table th:nth-child(4){width:24%}}
@media(max-width:600px){.catalog-library-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.catalog-library-head{padding:18px 16px;gap:12px}.catalog-library-body{padding:18px 16px}.catalog-library-head>.catalog-library-button{padding:10px 12px}.catalog-library-intro{margin-bottom:20px;gap:16px}.catalog-library-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.catalog-library-actions>[data-catalog-library-action=reload]{grid-column:1/-1}.catalog-library-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.catalog-library-filter{justify-content:space-between}.catalog-library-summary{gap:8px;font-size:.75rem}.catalog-library-table-wrap{border:0;border-radius:0}.catalog-library-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.catalog-library-table,.catalog-library-table tbody{display:block}.catalog-library-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #3b3b3b;border-radius:11px;margin-bottom:12px;overflow:hidden}.catalog-library-table tbody th{grid-column:1/-1;width:auto!important;padding:16px 16px 12px}.catalog-library-table tbody td{display:flex;flex-direction:column;gap:3px;padding:10px 16px;border-top:1px solid #303030;font-size:.9rem}.catalog-library-table tbody td::before{content:attr(data-label);color:#999;font-size:.72rem;font-weight:400}.catalog-library-table tbody td:last-child{grid-column:1/-1}.catalog-library-table tbody td:last-child small{margin:0}.catalog-library-empty{min-height:220px;padding:28px 18px}.catalog-library-pagination{margin-top:6px}.catalog-library-pagination .catalog-library-button{padding:10px 12px}}
.catalog-library-table [data-catalog-library-edit]{display:block;margin-top:12px;min-height:40px;padding:8px 12px;font-size:.8rem}
.catalog-library-notice{padding:14px 16px;border:1px solid #555;border-radius:10px;background:#202020;color:#eee;font-size:.88rem;line-height:1.5}
.catalog-library-editor{padding:24px;border:1px solid #444;border-radius:14px;background:#191919}.catalog-library-editor-heading h2{margin:0 0 10px;font-size:1.35rem;line-height:1.3}.catalog-library-editor-heading p{margin:0 0 24px;max-width:680px;color:#bbb;font-size:.9rem;line-height:1.6}.catalog-library-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.catalog-library-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:.85rem;font-weight:650;color:#eee}.catalog-library-field.is-wide{grid-column:1/-1}.catalog-library-field input,.catalog-library-field select,.catalog-library-field textarea{display:block;width:100%;border:1px solid #555;border-radius:9px;background:#101010;color:#f6f6f6;padding:12px;font:inherit;font-size:16px;line-height:1.5;min-height:46px}.catalog-library-field textarea{resize:vertical;min-height:130px}.catalog-library-field :disabled{color:#bbb;opacity:.8}.catalog-library-edit-options{display:flex;gap:20px;flex-wrap:wrap;align-items:center;min-height:46px;align-self:end;font-size:.9rem;color:#ddd}.catalog-library-edit-options label{display:flex;align-items:center;gap:9px}.catalog-library-edit-options input{width:18px;height:18px;accent-color:#ff6508;flex-shrink:0}.catalog-library-editor>.catalog-library-note{display:block;margin:20px 0;line-height:1.6}.catalog-library-edit-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px}.catalog-library-edit-warning{padding:14px 16px;border:1px solid #a4673c;border-radius:10px;background:#2b2119;color:#ffd0ad;font-size:.88rem;line-height:1.6}.catalog-library-edit-busy{color:#ffb27d;font-size:.88rem;line-height:1.5;text-align:right}.catalog-library-dialog select:focus-visible,.catalog-library-dialog textarea:focus-visible{outline:2px solid #ff934b;outline-offset:3px}
@media(max-width:600px){.catalog-library-editor{padding:18px 16px}.catalog-library-fields{grid-template-columns:minmax(0,1fr);gap:16px}.catalog-library-field.is-wide{grid-column:auto}.catalog-library-edit-options{padding-top:4px}.catalog-library-edit-actions .catalog-library-button{flex:1 1 120px}.catalog-library-search input{font-size:16px}}
.catalog-library-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.catalog-library-row-actions [data-catalog-library-edit]{margin:0}.catalog-library-row-actions .catalog-library-button{min-height:40px;padding:8px 10px;font-size:.78rem}.catalog-library-delete-name{overflow-wrap:anywhere;color:#eee!important}.catalog-library-delete-scope{max-width:680px}.catalog-library-actions [data-catalog-library-action=delete-all]{border-color:#83502c;color:#ffc49c;background:#241b15}.catalog-library-actions [data-catalog-library-action=delete-all]:hover:not(:disabled){background:#352315;border-color:#af6c3b}
@media(max-width:600px){.catalog-library-actions>[data-catalog-library-action=reload]{grid-column:auto}.catalog-library-row-actions{flex-wrap:nowrap}.catalog-library-row-actions .catalog-library-button{flex:1}}
