.ch164-heading,.ch164-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ch164-heading{justify-content:space-between;margin:10px 0 16px}
.ch164-state{display:inline-flex;padding:6px 11px;border-radius:999px;color:var(--muted);border:1px solid var(--border);background:rgba(255,255,255,.025)}
.ch164-state.ch164-on{color:#b1d8c0;border-color:#78a18a66;background:#78a18a16}
.ch164-top{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr);gap:20px;align-items:end;margin:18px 0}
.ch164-top label>input:not([type=checkbox]){margin-top:7px;max-width:300px}
.ch164-checkbox{display:flex;align-items:flex-start;gap:10px;padding:9px 0;cursor:pointer}
.ch164-checkbox input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:2px 0;accent-color:var(--primary)}
.ch164-checkbox[hidden]{display:none}
.ch164-table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:12px}
.ch164-table{min-width:680px;width:100%;border-collapse:collapse;margin:0}
.ch164-table th{font-weight:550}.ch164-table tbody th{width:50px;text-align:center;color:var(--muted)}
.ch164-table td,.ch164-table th{padding:10px;border-bottom:1px solid var(--border)}
.ch164-table tbody tr:last-child td,.ch164-table tbody tr:last-child th{border-bottom:none}
.ch164-table td input{min-width:100px;font-variant-numeric:tabular-nums}.ch164-table td select{min-width:140px}
.ch164-catalog-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:14px 0}
.ch164-add,.ch164-remove{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:nowrap}
.ch164-remove{color:#d9b5b7;padding:8px 10px}.ch164-remove:hover:not(:disabled){background:#e3a0a112;border-color:#e3a0a155}
.ch164-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ch164-form button:focus-visible,.ch164-form input:focus-visible,.ch164-form select:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.ch164-form button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.ch164-compatibility[hidden]{display:none}
.ch164-rarity.ch164-common{color:#a7d5b8;border-color:#80b89455}.ch164-rarity.ch164-rare{color:#a3c7f2;border-color:#73a5de55}
.ch164-rarity.ch164-epic{color:#d5b3ef;border-color:#b58edb55}.ch164-rarity.ch164-legendary{color:#efd098;border-color:#d3ad5c66}
.ch164-rarity.ch164-mythic{color:#fff0c7;border-color:#efcf8077;background:linear-gradient(135deg,#372918,#191819)}
.ch164-sum{font-weight:600;color:#b1d8c0;line-height:1.6}
.ch164-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 12px}
.ch164-metrics>div{display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:12px;border:1px solid var(--border-strong);background:linear-gradient(130deg,#c9a76613,#ffffff03)}
.ch164-metrics strong{font-size:21px;color:var(--primary2);overflow-wrap:anywhere}
.ch164-warning{padding:14px;border:1px solid #c5a15d66;border-radius:10px;background:#c5a15d10;color:#e2c98f;line-height:1.6}
.ch164-legal{margin:22px 0;padding:16px 18px;border-left:2px solid var(--primary);background:rgba(201,167,102,.035);border-radius:0 10px 10px 0}
.ch164-legal p{color:var(--muted);line-height:1.6;margin:10px 0}
.ch164-feedback{min-height:22px;line-height:1.6;overflow-wrap:anywhere}.ch164-error{color:#e3a0a1}
.ch164-actions button:disabled{opacity:.5;cursor:not-allowed;transform:none}
@media(max-width:650px){.ch164-top,.ch164-metrics{grid-template-columns:1fr}.ch164-actions button{width:100%;min-height:44px}.ch164-table td,.ch164-table th{padding:8px}.ch164-metrics strong{font-size:19px}}
