.theme-toggle{width:42px;min-width:42px;height:42px;padding:0!important;font-size:22px;display:inline-flex;align-items:center;justify-content:center}
body #themeToggle{font-size:22px}
.collection-toolbar{padding:18px;display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}
.collection-toolbar input{flex:1;min-width:200px;max-width:500px}
.collection-toolbar input{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink);font-size:14px}
#page-collection .table-wrap{border:1px solid var(--line);border-radius:10px}
.collection-download{display:inline-flex;align-items:center;text-decoration:none;padding:10px 16px;border:1px solid var(--line);border-radius:10px;font-size:14px}
.collection-table{width:100%;min-width:900px;border-collapse:collapse}
.collection-table th,.collection-table td{padding:18px;text-align:left;vertical-align:top;border:1px solid var(--line,#e1e4eb)}
.collection-table td:first-child{min-width:210px;max-width:330px;overflow-wrap:anywhere;text-align:left!important}
.collection-table td:nth-child(2){max-width:250px;overflow-wrap:anywhere}
.collection-table td:nth-child(3){white-space:nowrap}
.collection-table td:nth-child(3)>small{display:block;margin-top:6px;white-space:nowrap}
.collection-table td:nth-child(4){min-width:280px;max-width:430px}
.collection-table td:last-child{white-space:nowrap}
.collection-table td:nth-child(4) strong,.collection-table td:nth-child(4) small{display:block}
.collection-actions{display:grid;gap:8px;min-width:108px}
.collection-product{display:flex;gap:14px;align-items:center}
.collection-product img{width:54px;height:54px;object-fit:contain;border-radius:8px;flex-shrink:0}
.collection-record{font-size:14px;line-height:1.7;border-bottom:1px solid var(--line,#e1e4eb);padding:8px 0}
.collection-record:last-child{border:0}.collection-record small{display:block;color:var(--muted);overflow-wrap:anywhere}
#collectionPublishDialog{width:min(740px,94vw);max-height:88vh;overflow:auto}
#collectionRecordsDialog{width:min(760px,94vw);max-height:88vh;overflow:auto}
.collection-record-list{border:1px solid var(--line);border-radius:10px;max-height:55vh;overflow:auto;padding:0 16px}
.collection-record{display:grid;grid-template-columns:minmax(120px,.6fr) minmax(160px,1fr);gap:2px 18px;align-items:start}
.collection-record small{grid-column:1/-1}.collection-record button{justify-self:start;margin-top:6px}
.collection-category-results{display:grid;gap:6px;max-height:230px;overflow:auto;margin-top:10px}
.collection-category-results button{text-align:left;white-space:normal;line-height:1.6}
#collectionSelectedCategory{padding:12px;border:1px solid var(--line);border-radius:8px;font-size:15px;line-height:1.8}
.collection-record details summary{cursor:pointer;color:var(--muted)}
body.theme-dark .collection-table tbody tr:nth-child(even) td{background:#242424}
body.theme-dark .collection-table tbody tr:hover td{background:#2e2e2e}
body:not(.theme-dark) .collection-table tbody tr:nth-child(even) td{background:#f6f8f6}
body:not(.theme-dark) .collection-table tbody tr:hover td{background:#edf3ef}
body.theme-dark #cancelCollectionPublish{background:#2a2a2a;border-color:#444;color:#e0e0e0}
body.theme-dark #cancelCollectionPublish:hover{background:#353535;border-color:#626262}
