.collection-dialog,
.collection-editor { width: min(96vw, 1500px); max-width: none; padding: 0; border: 1px solid var(--border); border-radius: 22px; color: var(--text); background: var(--surface); box-shadow: 0 28px 100px rgba(0,0,0,.55); }
.collection-dialog { height: min(94vh, 1050px); }
.collection-editor { width: min(94vw, 900px); }
.collection-dialog::backdrop,.collection-editor::backdrop { background: rgba(3,4,6,.76); backdrop-filter: blur(6px); }
.collection-shell,.collection-editor-card { padding: 26px; }
.collection-shell { min-height: 100%; overflow: auto; }
.collection-header,.collection-toolbar,.collection-tools,.collection-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.collection-header { padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.collection-header h2,.collection-toolbar h3 { margin: 0; }
.collection-header p,.collection-toolbar small { margin-bottom: 0; color: var(--muted); }
.collection-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.collection-summary-card { padding: 16px; border: 1px solid var(--border-soft); border-radius: 15px; background: var(--surface-strong); }
.collection-summary-card span,.collection-summary-card small { display: block; color: var(--muted); }
.collection-summary-card strong { display: block; margin: 8px 0 6px; font-size: clamp(20px,2.2vw,30px); }
.collection-summary-card.is-positive strong,.collection-metric.is-positive strong { color: var(--green); }
.collection-summary-card.is-negative strong,.collection-metric.is-negative strong { color: var(--red); }
.collection-toolbar { margin: 16px 0 10px; }
.collection-tools { min-width: min(100%,720px); }
.collection-tools input,.collection-form-grid input,.collection-form-grid select,.collection-form-grid textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 10px; color: var(--text); background: var(--surface-strong); }
.collection-tools input { min-width: 260px; }
.collection-message { min-height: 20px; color: var(--gold-bright); }
.collection-list { display: grid; gap: 10px; }
.collection-row { display: grid; grid-template-columns: minmax(230px,1fr) minmax(650px,2fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--border-soft); border-radius: 15px; background: var(--surface-strong); }
.collection-info strong,.collection-info span,.collection-info small { display: block; }
.collection-info span { margin-top: 5px; color: var(--muted); }
.collection-info small { margin-top: 7px; color: var(--faint); }
.collection-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.collection-metric { min-width: 0; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.025); }
.collection-metric small,.collection-metric strong { display: block; white-space: nowrap; }
.collection-metric small { margin-bottom: 4px; color: var(--faint); font-size: 9px; text-transform: uppercase; }
.collection-metric strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.collection-empty { padding: 48px; border: 1px dashed var(--border); border-radius: 15px; color: var(--muted); text-align: center; }
.collection-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.collection-form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.collection-asset-field,.collection-notes { grid-column: 1/-1; }
.collection-asset-field select { min-height: 150px; }
.collection-editor-actions { justify-content: flex-end; }
@media(max-width:1100px){.collection-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-row{grid-template-columns:1fr}.collection-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.collection-shell,.collection-editor-card{padding:18px}.collection-header,.collection-toolbar,.collection-tools{align-items:stretch;flex-direction:column}.collection-tools{min-width:0}.collection-tools input{min-width:0}.collection-summary,.collection-form-grid{grid-template-columns:1fr}.collection-asset-field,.collection-notes{grid-column:auto}.collection-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
