/* Set selection is the first step, with no collection silently preselected. */
body[data-editor-step=sets] .collection-bar,
body[data-editor-step=sets] .workspace,
body[data-editor-step=sets] .mobile-studio-bar,
body[data-editor-step=sets] #header-export,
body[data-editor-step=sets] .intro{display:none!important}
body[data-editor-step=sets] .steps{margin-top:24px}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.step,.step:first-child{width:auto;min-width:0}
.step i{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.step b{font-weight:inherit}.step-label-short{display:none}
.collection-mode{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:740px;margin:0 0 25px}
.collection-mode button{display:flex;align-items:center;gap:14px;text-align:left;padding:16px 18px;min-height:84px;background:var(--paper);border:1px solid var(--line);border-radius:12px;color:var(--muted);min-width:0}
.collection-mode button>svg{width:30px;height:30px;flex-shrink:0}
.collection-mode button>span{display:grid;gap:3px;min-width:0}
.collection-mode strong{font-size:16px;color:var(--ink)}
.collection-mode small{font-size:14px;line-height:1.5}
.collection-mode i{font-style:normal;margin-left:auto;color:var(--accent);visibility:hidden}
.collection-mode button[aria-selected=true]{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--sage)}
.collection-mode button[aria-selected=true] i{visibility:visible}
.collection-mode button:hover{border-color:var(--sage)}
.step:disabled{opacity:.48}
.set-stage{padding:16px 0 30px;min-height:60vh}
.set-stage-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:6px 0 28px}
.set-stage-head .eyebrow{color:var(--sage);margin:0 0 10px;letter-spacing:1.5px;font-size:14px}
.set-stage-head h2{font-size:clamp(28px,3vw,40px);letter-spacing:-1.3px;line-height:1.2;font-weight:650}
.set-picker-intro{font-size:16px;line-height:1.7;color:var(--muted);max-width:670px;margin:12px 0 0}
#back-to-set{flex-shrink:0;min-height:44px;font-size:14px}
.set-stage .set-browse-controls{display:grid;grid-template-columns:minmax(0,1fr) 165px 165px;gap:14px;align-items:end;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px;margin:0 0 22px}
.set-stage .search-field{height:54px;margin:0;border:1px solid var(--line);background:var(--field);border-radius:10px;min-width:0;padding:0 15px;gap:12px}
.set-stage .search-field svg{flex-shrink:0;color:var(--muted)}
.set-stage .search-field input{width:100%;min-width:0;font-size:16px;color:var(--ink);background:transparent}
.set-sort-label,.set-language-label{display:grid;gap:6px;color:var(--muted);font-size:14px;min-width:0}
.set-stage select{width:100%;height:44px;border:1px solid var(--line);border-radius:9px;padding:0 10px;background:var(--field);color:var(--ink);font-size:16px;min-width:0}
.set-results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 1px 14px;font-size:14px;color:var(--muted)}
.set-results-heading p{margin:0}
.set-results-heading>span{color:var(--sage)}
.set-results-heading>span span{margin-left:10px;font-size:18px}
.set-stage .sets-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-height:none;overflow:visible;padding:0;margin:0}
.set-stage .set-option{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;gap:0;padding:0;border:1px solid var(--line);border-radius:14px;text-align:left;overflow:hidden;background:var(--paper);box-shadow:var(--shadow);min-width:0;transition:border-color .18s,box-shadow .18s}
.set-stage .set-option:hover,.set-stage .set-option:focus-visible{border-color:var(--sage);box-shadow:0 7px 25px #00000012;background:var(--paper)}
.set-stage .set-option.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.set-option-art{height:113px;display:flex;align-items:center;justify-content:center;padding:20px 16px;background:radial-gradient(ellipse at 50% 100%,#a8955e15,transparent 75%),var(--soft);border-bottom:1px solid var(--line)}
.set-stage .set-logo{width:150px;min-width:0;height:74px;display:flex;align-items:center;justify-content:center}
.set-stage .set-logo img{width:auto;height:auto;max-width:150px;max-height:74px;object-fit:contain}
.set-stage .set-logo.is-loading{background:transparent}
.set-stage .set-category-mark{display:grid;text-align:center}
.set-stage .set-category-mark strong{font-size:24px}
.set-stage .set-category-mark small{font-size:14px}
.set-text-mark{text-align:center;font-size:20px;font-weight:700;color:var(--muted);line-height:1.15;overflow-wrap:anywhere}
.set-option-copy{display:grid;gap:5px;padding:15px 16px 13px;flex:1;min-width:0}
.set-stage .set-option strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.set-stage .set-option small{font-size:14px;line-height:1.5;color:var(--muted)}
.set-stage .set-option-tail{display:flex;align-items:center;justify-content:space-between;margin:0 16px 14px;color:var(--sage);font-size:14px;font-weight:600;gap:8px}
.set-stage .set-option-tail span{font-size:18px;line-height:1}
.set-stage .set-option.active .set-option-tail{color:var(--accent)}
.set-catalog-note{font-size:14px;color:var(--muted);line-height:1.7;margin:24px 0 0;max-width:760px}
.set-skeleton{height:235px;border:1px solid var(--line);background:var(--paper);border-radius:14px;overflow:hidden}
.set-skeleton span{display:block;height:113px;background:var(--soft)}
.set-skeleton i{display:block;width:66%;height:16px;margin:22px 16px 0;border-radius:4px;background:var(--soft)}
.set-skeleton i+i{width:42%;margin-top:12px;height:14px}
.set-stage .empty-state,.set-catalog-error{grid-column:1/-1;min-height:240px;padding:45px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}
.set-catalog-error h3{font-size:22px;color:var(--ink)}
.set-catalog-error .button{margin:10px 5px 0}
.set-stage[data-loading-set=true] .set-results-heading{display:none}
.set-stage .set-loading-view{grid-column:1/-1;width:100%;max-width:650px;margin:10px auto 35px;padding:32px;border:1px solid var(--line);background:var(--paper);border-radius:16px;min-height:0}
.set-stage .set-loading-identity{margin-bottom:30px;gap:24px}
.set-stage .set-loading-identity h3{font-size:24px;line-height:1.3}
.set-stage .set-loading-identity p,.set-stage .set-load-hint{font-size:14px}
.set-stage .set-load-caption{font-size:16px}
.set-stage #cancel-set-load{min-height:44px;font-size:16px}
@media(max-width:1100px){.step i{display:none}.set-stage .sets-list{grid-template-columns:repeat(3,minmax(0,1fr))}.set-stage .set-browse-controls{grid-template-columns:minmax(0,1fr) 150px 150px}.set-stage-head h2{font-size:32px}}
@media(max-width:700px){body[data-editor-step=sets] .steps{margin-top:16px}.steps .step,.steps .step:first-child{justify-content:center;padding:10px 4px;gap:6px;min-height:44px;font-size:14px}.step>span{flex-shrink:0;width:21px;height:21px}.set-stage{padding-top:12px}.set-stage-head{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:23px}.set-stage-head h2{font-size:30px;letter-spacing:-.9px;max-width:360px}.set-picker-intro{font-size:16px;margin-top:10px}.set-stage-head .eyebrow{font-size:14px}.set-stage .set-browse-controls{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px;margin-bottom:18px}.set-stage .search-field{grid-column:1/-1;padding:0 12px;height:50px}.set-stage .search-field input{font-size:16px}.set-stage .search-field input::placeholder{font-size:14px}.set-stage .sets-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.set-option-art{height:105px;padding:15px 10px}.set-stage .set-logo,.set-stage .set-logo img{max-width:125px;max-height:66px}.set-option-copy{padding:13px 12px 10px}.set-stage .set-option-tail{margin:0 12px 12px}.set-results-heading>span{display:none}.set-stage .set-option strong{font-size:16px}.set-stage .set-loading-view{padding:22px 18px}.set-stage .set-loading-identity{flex-direction:column;align-items:flex-start;gap:16px}.set-stage .set-loading-identity .set-logo{width:150px}.set-stage .set-load-caption{align-items:flex-start;gap:12px}.set-stage .set-catalog-note{font-size:14px}.set-skeleton{height:230px}.set-skeleton span{height:105px}}
@media(prefers-reduced-motion:no-preference){.set-skeleton{animation:set-pulse 1.5s ease-in-out infinite alternate}@keyframes set-pulse{to{opacity:.5}}}

.set-stage .search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.set-stage .search-field input:focus-visible{outline:0}

.set-stage[data-loading-set=true] .set-browse-controls{display:none}
@media(max-width:700px){.step-label-wide{display:none}.step-label-short{display:inline}.collection-mode{gap:10px;margin-bottom:20px}.collection-mode button{padding:12px;min-height:84px;gap:9px;align-items:flex-start}.collection-mode button>svg{width:24px;height:24px;margin-top:1px}.collection-mode small{font-size:14px}.collection-mode i{display:none}}

.set-stage[data-collection-mode=pokemon] .set-stage-head>div{display:none}
.set-stage[data-collection-mode=pokemon] .set-stage-head{margin:0 0 15px;gap:0}
