#item-catalog .cv-view-switch{display:inline-flex}
.cv-view-bar{position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-bottom:14px}
#item-catalog .catalog-view-switch[hidden],#item-catalog .catalog-content[hidden]{display:none}
.cv-collection-toolbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:-8px -8px 0;padding:10px;background:#131d2a;border-bottom:1px solid #466176}
.cv-search-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.cv-progress-filters,.cv-backup-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cv-progress-filters{justify-content:flex-end}
.cv-search-row .cv-stats-button{min-height:48px;padding:0 12px;border:1px solid #a38950;border-radius:7px;background:#463820;color:#ffe3a1;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.cv-search-row .cv-stats-button:hover{background:#59482b}
.cv-stats-dialog{box-sizing:border-box;width:min(540px,calc(100% - 24px));max-height:85dvh;padding:14px;border:1px solid #58748a;border-radius:10px;background:#131d2a;color:#e2ecf5;overscroll-behavior:contain}
.cv-stats-dialog::backdrop{background:#060d16bc}
.cv-stats-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.cv-stats-header h2{margin:0;font-size:19px;color:#ffe087}
.cv-stats-header button,.cv-show-completed{min-height:44px;padding:0 10px;border:1px solid #58748a;border-radius:5px;background:#192b3b;color:inherit;cursor:pointer}
.cv-stats-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.cv-stats-note{color:#bed0df;font-size:13px;line-height:1.5}
.cv-stat-meters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:center}
.cv-stat-meter{--meter:#ffd16a;display:grid;justify-items:center;gap:8px;padding:10px 3px;border:1px solid #3a5368;border-radius:7px;background:#172636;color:var(--meter);font-size:13px}
.cv-stat-meter:nth-child(2){--meter:#8bd9fa}
.cv-stat-ring{display:grid;place-items:center;width:74px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle closest-side,#172636 77%,transparent 80%),conic-gradient(var(--meter) var(--rate),#33495c 0);font-size:20px;font-weight:700}
.cv-stats-content h3{margin:16px 0 8px;font-size:14px}
.cv-stat-grades{display:grid;gap:8px}
.cv-stat-grade{display:grid;grid-template-columns:2em minmax(0,1fr) minmax(80px,auto);align-items:center;gap:8px;font-size:12px}
.cv-stat-grade progress{width:100%;min-width:0;accent-color:currentColor}
.cv-stat-grade[data-grade=rare]{color:#8ccaff}
.cv-stat-grade[data-grade=heroic]{color:#ff9b9b}
.cv-stat-grade[data-grade=legendary]{color:#cdaaff}
.cv-stat-grade span:last-child{text-align:right}
.cv-show-completed{margin-top:14px}
.cv-effect-totals{width:100%;border-collapse:collapse;font-size:13px}
.cv-effect-totals :is(th,td){padding:9px 5px;border-bottom:1px solid #3a5368;text-align:left}
.cv-effect-totals :is(th,td):not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.cv-effect-totals td:nth-child(2){color:#a2ebc5;font-weight:700}
.cv-progress-filters select,.cv-progress-filters button,.cv-backup-actions button{min-height:44px;padding:0 10px;border:1px solid #466176;border-radius:5px;background:#142231;color:#e2ecf5;font:inherit;font-size:13px}
.cv-progress-filters button[aria-pressed=true]{color:#ffe087;border-color:#a48b50;background:#39352a}
.cv-storage-guide{z-index:6;max-width:100%;margin-inline-start:auto;color:#c0d3e1;font-size:13px}
.cv-storage-guide summary{width:fit-content;min-height:44px;margin-inline-start:auto;align-content:center;cursor:pointer;color:#d8e8f3}
.cv-storage-body{position:absolute;inset-inline-end:0;top:100%;box-sizing:border-box;width:min(420px,100%);padding:10px;border:1px solid #466176;border-radius:6px;background:#131d2a;box-shadow:0 8px 18px #0007}
.cv-storage-guide p{margin:6px 0 10px;line-height:1.5}
.cv-storage-guide p:empty,.cv-backup-actions[hidden]{display:none}
.cv-collection-title{display:grid;grid-template-columns:44px auto minmax(0,1fr);align-items:center;gap:4px;min-width:0}
.cv-collection-title .cv-favorite{display:grid;place-items:center end;width:44px;height:44px;padding:0 3px 0 0;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer}
.cv-favorite-star{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#152635}
.cv-favorite-star::before{content:'';width:24px;height:24px;background:#91abc0;clip-path:path('M 10.5 3 Q 12 0 13.5 3 L 15.6 7 L 20.2 7.7 Q 23.5 8.2 21 10.6 L 17.7 14 L 18.6 18.7 Q 19.2 22 16.2 20.5 L 12 18.3 L 7.8 20.5 Q 4.8 22 5.4 18.7 L 6.3 14 L 3 10.6 Q 0.5 8.2 3.8 7.7 L 8.4 7 Z')}
.cv-favorite[aria-pressed=true] .cv-favorite-star{background:#604522;animation:cv-star-pop 240ms ease-out}
.cv-favorite[aria-pressed=true] .cv-favorite-star::before{background:radial-gradient(circle at 39% 34%,#fff5b5 0 7%,transparent 20%),linear-gradient(145deg,#ffe993 20%,#ffbd46 90%)}
@keyframes cv-star-pop{45%{transform:translateY(-3px) rotate(-8deg) scale(1.14)}}
@media(prefers-reduced-motion:reduce){.cv-favorite[aria-pressed=true] .cv-favorite-star{animation:none}}
.cv-collection-title .cv-favorite:hover{background:#172937}
.cv-collection-title .cv-favorite:focus-visible{outline:2px solid #ffe087;outline-offset:1px}
.cv-material-status{padding:0 4px;color:#bfd2e0;font-size:12px;font-weight:600;white-space:nowrap}
.cv-results .is-material-ready .sg-collection-summary{box-shadow:inset 0 0 0 1px #72d7a8}
.cv-results .sg-collection-summary.is-celebrating{animation:cv-ready-shine 1100ms ease-out}
@keyframes cv-ready-shine{
 0%,44%,100%{box-shadow:inset 0 0 0 1px #72d7a8}
 20%,66%{box-shadow:inset 0 0 0 2px #caffdb,inset 0 0 17px #9cebc280}
}
@media(prefers-reduced-motion:reduce){.cv-results .is-celebrating{animation:none}}
.cv-material-reset{min-height:32px;border:1px solid #72d7a8;border-radius:4px;background:#19382e;color:#9cebc2;cursor:pointer}
.cv-material-reset:hover{background:#25513e}
.cv-material-reset:focus-visible{outline:2px solid #ffe087;outline-offset:2px}
.cv-results .sg-collection-material[aria-pressed=true]{border-color:#72d7a8;background:#19382e;outline:0;box-shadow:inset 0 0 0 1px #72d7a8}
.cv-results .sg-collection-material:focus-visible{outline:2px solid #ffe087;outline-offset:2px}
.cv-material-check{display:none;position:absolute;top:1px;left:1px;width:15px;height:15px;border-radius:50%;place-items:center;background:#9cebc2;color:#142c24;font-size:11px;font-weight:800;line-height:1}
.sg-collection-material[aria-pressed=true] .cv-material-check{display:grid}
.cv-collection-toolbar :focus-visible,.cv-storage-guide :focus-visible{outline:2px solid #ffe087;outline-offset:2px}
.cv-category-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;box-sizing:border-box}
.cv-category-switch button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding-inline:3px;font-weight:600}
.cv-category-count{padding:2px 5px;border-radius:4px;background:#203447;color:#bed0df;font-size:11px;font-variant-numeric:tabular-nums}
.cv-category-switch button[aria-pressed=true] .cv-category-count{background:#57472c;color:#ffe3a1}
.cv-collection-search{min-width:0;min-height:48px;border-color:#58768c;border-radius:7px}
.cv-collection-search input{min-width:0;font-size:15px;color:#edf5fb}
.cv-collection-search input::placeholder{color:#a9becf;opacity:1}
.cv-collections [role=status]{margin:12px 0;color:#c0d3e1;font-size:13px}
.cv-results{display:grid;gap:9px}
.cv-collection-group + .cv-collection-group{margin-top:12px}
.cv-group-heading{display:flex;align-items:baseline;gap:8px;margin:0 0 8px;padding:7px 0;border-bottom:1px solid #466176;color:#f1d498;font-size:16px}
.cv-group-heading small{color:#bfd2e0;font-size:12px;font-weight:400}
.cv-group-cards{display:grid;gap:8px}
.cv-results .sg-collection-card{content-visibility:auto;contain-intrinsic-size:auto 110px}
.cv-results .sg-collection-summary{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;padding-block:3px;padding-inline-start:4px}
.cv-results .sg-collection-card-heading[data-grade=rare]{color:#8ccaff}
.cv-results .sg-collection-card-heading[data-grade=heroic]{color:#ff9b9b}
.cv-results .sg-collection-card-heading[data-grade=legendary]{color:#cdaaff}
.cv-results .sg-collection-material{cursor:pointer}
.cv-results .sg-collection-material-level{white-space:nowrap}
.cv-results .sg-collection-material-level.is-enhancement{font-size:13px;line-height:17px}
@media(min-width:901px){.cv-results .sg-collection-material-level.is-enhancement{font-size:15px;line-height:19px}}
.cv-restriction{margin:8px 0 0;color:#b6cddd;font-size:12px}
@media(max-width:700px){
 .cv-collection-toolbar{grid-template-columns:minmax(0,1fr)}
 .cv-progress-filters{justify-content:flex-start}
}
@media(max-width:480px){
 #item-catalog .cv-view-bar .cv-view-switch{flex:1 0 100%;box-sizing:border-box}
 .cv-view-bar .cv-view-switch button{padding-inline:8px}
 .cv-storage-guide summary{font-size:11px}
 .cv-category-switch{gap:2px}
 .cv-category-switch button{font-size:12px}
 .cv-search-row .cv-stats-button{padding-inline:8px;font-size:12px}
 .cv-collection-search input{font-size:16px}
 .cv-results .sg-collection-summary{grid-template-columns:minmax(0,1fr)}
 .cv-results .sg-collection-effects{text-align:left}
}
