/* Use the available desktop width while keeping the compact mobile layout. */
@media (min-width:1024px){
 body>main.compact-marketplace{width:calc(100% - 64px);max-width:none;padding-left:0;padding-right:0}
 body>header,body>.language-bar{width:calc(100% - 64px);max-width:none;padding-left:0;padding-right:0}
 body>footer{width:calc(100% - 64px);max-width:none;margin-left:auto;margin-right:auto}
 .compact-marketplace .categories{justify-content:space-between;gap:16px}
 .compact-marketplace .category{flex-basis:94px;gap:9px}
 .compact-marketplace .category-picture{width:64px;height:64px}
 .compact-marketplace .category-name{font-size:13px}
 .compact-marketplace .grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
 .compact-marketplace .cardphoto{height:auto;aspect-ratio:4/3}
 .compact-marketplace .cardbody h3,.compact-marketplace .price{font-size:17px}
 .compact-marketplace .location,.compact-marketplace .meta{font-size:12px}
 .miwa-partner-body{max-width:none;gap:28px}
 .miwa-partner-logo{width:150px;height:100px}
 .miwa-partner-title{font-size:30px}
 .atelier-partner-photo{left:auto;width:70%;object-position:right 78%}
 .atelier-partner:before{background:linear-gradient(90deg,#10100f 0%,#10100f 28%,#10100fe8 40%,#10100f00 65%)}
}
/* Use original artwork on desktop; high-density phones can select it too. */
.category-picture:not(.category-all)::before{background-image:image-set(url('/images/category-cutouts.webp') 1x,url('/images/category-cutouts.png') 2x)}
@media(min-width:1024px){.category-picture:not(.category-all)::before{background-image:url('/images/category-cutouts.png')}}

/* Desktop header, language control and search share one alignment. */
.desktop-language{display:none}
@media(min-width:1024px){
 body>header,
 body>main.compact-marketplace,
 body>footer{width:calc(100% - 64px);max-width:1600px;box-sizing:border-box}
 body>header{display:flex;height:96px;gap:24px;padding:0;border-bottom:0}
 body>header .logo{margin-right:auto;flex-shrink:0}
 body>header .header-actions{display:flex;align-items:center;gap:10px}
 body>header .header-actions button{min-height:42px;padding:10px 16px;border-radius:9px;font-size:14px;white-space:nowrap}
 body>header .header-actions .primary{background:#124881;color:white;border-color:#124881}
 body>header .header-actions #registerbutton{background:#edf3fb;border:1px solid #c9d9ed}
 body>header .language-bar{display:flex;width:auto;max-width:none;padding:0;margin:0;flex-shrink:0}
 body>header .language-bar .language-caption,
 body>header .language-bar .language-buttons{display:none}
 body>header .desktop-language{display:block;width:116px;height:42px;margin:0;padding:8px 10px;border:1px solid #d4deeb;border-radius:9px;background:#fff;color:#243e60;font:inherit;font-size:13px}
 .desktop-language:focus-visible{outline:2px solid #2e69ad;outline-offset:3px}
 .compact-marketplace .search{padding:20px 22px 14px;margin:22px 0 16px;grid-template-columns:minmax(280px,1fr) 240px 108px;gap:12px 16px;border:1px solid #e0e7ef;background:#f6f8fb;border-radius:14px}
 .compact-marketplace .search input,
 .compact-marketplace .search select{height:44px;font-size:14px;border-radius:8px}
 .compact-marketplace .search>button.primary{height:44px;background:#124881;border-color:#124881;border-radius:8px;font-size:14px}
 #search.search .search-actions-group{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding-top:2px}
 #search.search .search-actions-group .market-category{display:flex;gap:16px;margin:0}
 #search.search .search-actions-group .search-save-actions{display:flex!important;grid-template-columns:none;width:auto;gap:8px;margin:0}
 #search.search .search-save-actions button{flex:0 0 auto;width:auto;min-height:30px;padding:5px 11px!important;font-size:12px!important;background:#fff;border:1px solid #d8e2ef;border-radius:7px}
 .compact-marketplace .category-section{margin:14px 0 24px}
 .compact-marketplace .categories{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:12px;overflow:visible;padding:12px 0}
 .compact-marketplace .category{width:100%;min-width:0;gap:8px}
 .compact-marketplace .category-picture{width:60px;height:60px}
 .compact-marketplace .category-name{font-size:12px;line-height:1.35}
 .compact-marketplace .section-head{margin:18px 0 14px}
 .compact-marketplace .section-head h2{font-size:24px}
}
@media(min-width:1024px) and (max-width:1199px){
 body>header{gap:12px}
 body>header .header-actions button{padding:9px 11px;font-size:12px}
 #search.search .search-actions-group{gap:10px}
 #search.search .search-save-actions button{padding:5px 8px;font-size:11px}
}

@media(min-width:1024px){#search.search .search-save-actions{display:flex!important;width:auto;grid-template-columns:none}#search.search .query-control{min-height:44px!important}#search.search>.primary{height:44px;min-height:44px!important}#search.search .region-select-trigger{height:44px}}

/* Clear, direct refinement on every screen size. */
#search .market-filter-fields{gap:16px;align-items:end;padding:20px 0 4px;border-top:1px solid #dce4ef;margin-top:12px}
#search .market-filter-fields label{display:flex;flex-direction:column;gap:7px;font-size:14px;letter-spacing:normal}
#search .market-filter-fields select,#search .market-filter-fields input{width:100%;min-height:44px;height:44px;border:1px solid #c8d4e4;border-radius:9px;background-color:#fff;padding:9px 12px;box-sizing:border-box;font-size:14px;color:#1c3556}
#search .market-filter-fields select:disabled{color:#778497;background:#f3f5f8}
#search .market-filter-fields small{grid-column:1/-1;font-size:12px;line-height:1.5;color:#68778a}
.search-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.search-shortcuts[hidden]{display:none}
.search-shortcuts button{padding:9px 15px;min-height:40px;border:1px solid #d7e1ee;border-radius:22px;background:#fff;color:#244a77;font-size:14px}
.search-shortcuts button.active{background:#174b83;border-color:#174b83;color:#fff}
#search.search .market-category button{font-size:14px;min-height:36px}
#search.search .search-save-actions button{font-size:12px!important;min-height:32px!important}
@media(min-width:1024px){#search .market-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr))} .compact-marketplace .category-name{font-size:13px;max-width:120px;margin:auto}}
@media(max-width:620px){#search .market-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#search .market-filter-fields input,#search .market-filter-fields select{font-size:16px}.search-shortcuts{gap:7px}.search-shortcuts button{font-size:13px;padding:8px 12px}}

#search .filter-apply{min-height:44px;padding:10px 18px;border-radius:9px;background:#174b83;color:#fff;font-size:14px;grid-column:1/-1;justify-self:end}#search .market-filter-fields>small{order:1}

body.category-drawer-open{overflow:hidden}
#category-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(400px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0 18px 18px 0;background:#fff;color:#1c3556;box-shadow:12px 0 50px #122b4933;box-sizing:border-box;overflow:hidden}
#category-drawer[open]{display:flex;flex-direction:column;animation:flads-drawer-in .18s ease-out}
#category-drawer::backdrop{background:#14283c80}
.category-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid #e1e8f1}
.drawer-brand{display:block;color:#164b85;font-size:22px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
#category-drawer h2{font-size:20px;line-height:1.4;margin:0}
.drawer-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid #dce5ef;border-radius:50%;background:#f3f7fc;color:#234a77;font-size:26px;flex-shrink:0}
.drawer-search{padding:16px 24px 12px}
.drawer-search input{box-sizing:border-box;width:100%;height:46px;border:1px solid #cbd9e9;border-radius:10px;padding:10px 13px;background:#f7f9fc;color:#203c61;font:inherit;font-size:16px}
.drawer-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 24px 10px;font-size:13px;color:#61738c}
.drawer-breadcrumb:empty{display:none}
.drawer-back{padding:8px 12px;background:#edf3fb;border:0;border-radius:8px;color:#194c85;font-size:14px}
.drawer-categories{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 24px;scrollbar-width:thin;scrollbar-color:#bbcadc transparent}
#category-drawer .drawer-category-row{display:flex;align-items:center;gap:13px;box-sizing:border-box;width:100%;min-height:62px;padding:12px 8px;margin:0;border:0;border-bottom:1px solid #e7edf4;border-radius:0;background:#fff;color:#203953;text-align:left;font:inherit;font-size:14px;font-weight:600;line-height:1.4}
#category-drawer .drawer-category-row:hover{background:#f0f5fc;border-radius:9px;color:#124a85}
.drawer-category-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:#edf3fb;color:#1b548e}
.drawer-category-icon svg{width:23px;height:23px}
.drawer-category-copy{flex:1;min-width:0}
.drawer-category-copy small{display:block;color:#697c93;font-size:12px;font-weight:400;margin-top:3px}
.drawer-chevron{font-size:24px;font-weight:400;color:#7890aa}
.drawer-empty{padding:20px 8px;color:#697c93;font-size:14px}
@keyframes flads-drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#category-drawer[open]{animation:none}}
@media(max-width:480px){#category-drawer{width:calc(100% - 24px)}.category-drawer-head{padding:18px 20px 16px}.drawer-search{padding:14px 20px 10px}}
#category-drawer .drawer-categories{display:block;min-height:0;width:auto;max-width:none;gap:0;align-items:stretch;justify-content:normal;flex:1 1 0}
#category-drawer .category-drawer-head,#category-drawer .drawer-search,#category-drawer .drawer-breadcrumb{flex-shrink:0}
