/* Consistent offer cards throughout the buyer catalog. */
body:has(.market-home) .market-home .store-content .grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:start;
  gap:16px!important;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card{
  box-sizing:border-box;
  width:100%;
  height:324px!important;
  min-height:324px!important;
  max-height:324px!important;
  display:flex;
  flex-direction:column;
  align-self:start;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card>.thumb.product-thumb{
  box-sizing:border-box;
  height:148px!important;
  min-height:148px!important;
  max-height:148px!important;
  flex:0 0 148px!important;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card>.cardbody{
  box-sizing:border-box;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  height:174px!important;
  min-height:174px!important;
  max-height:174px!important;
  overflow:hidden;
  padding:11px 13px 12px!important;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card h3{
  display:-webkit-box;
  box-sizing:border-box;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  flex:0 0 38px;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-height:19px!important;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card .market-product-description{
  height:18px;
  min-height:18px;
  max-height:18px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card .market-product-rating{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin-top:auto!important;
  overflow:hidden;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card .market-product-rating>span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body:has(.market-home) .market-home .store-content .grid>.market-product-card .market-price-row{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  height:49px!important;
  min-height:49px!important;
  max-height:49px!important;
  flex:0 0 49px;
  margin:0!important;
  padding-top:7px!important;
}
@media(max-width:1100px){
  body:has(.market-home) .market-home .store-content .grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:720px){
  body:has(.market-home) .market-home .store-content .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body:has(.market-home) .market-home .store-content .grid>.market-product-card{height:287px!important;min-height:287px!important;max-height:287px!important}
  body:has(.market-home) .market-home .store-content .grid>.market-product-card>.thumb.product-thumb{height:118px!important;min-height:118px!important;max-height:118px!important;flex-basis:118px!important}
  body:has(.market-home) .market-home .store-content .grid>.market-product-card>.cardbody{height:167px!important;min-height:167px!important;max-height:167px!important;padding:9px!important}
  body:has(.market-home) .market-home .store-content .grid>.market-product-card h3{height:36px!important;min-height:36px!important;max-height:36px!important;flex-basis:36px;font-size:12px!important;line-height:18px!important}
  body:has(.market-home) .market-home .store-content .grid>.market-product-card .market-price-row{height:43px!important;min-height:43px!important;max-height:43px!important;flex-basis:43px}
}

/* Seller API controls: one clear path from key creation to the first request. */
.seller-api-panel{max-width:1160px;padding:4px 0 24px;color:#eff1f2}
.seller-api-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 26px;border:1px solid #394047;border-radius:17px;background:linear-gradient(115deg,#232629,#171a1d 74%);box-shadow:0 12px 35px #0003}
.seller-api-hero span{display:block;margin-bottom:8px;color:#ffaf43;font-size:10px;font-weight:850;letter-spacing:.16em}
.seller-api-hero h2{margin:0 0 6px;font-size:28px;line-height:1.15}
.seller-api-hero p,.seller-api-box p,.seller-api-list-title p{margin:0;color:#aab2ba;font-size:12px;line-height:1.5}
.seller-api-hero a{flex:none;padding:10px 14px;border:1px solid #a76e2b;border-radius:9px;background:#352719;color:#ffc577;font-size:12px;font-weight:800;text-decoration:none}
.seller-api-hero a:hover{background:#49331d}
.seller-api-facts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.seller-api-facts span{padding:7px 11px;border:1px solid #333b42;border-radius:999px;background:#1a1f23;color:#b8c0c7;font-size:11px}
.seller-api-facts b{color:#ffb64e}
.seller-api-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.seller-api-box{min-width:0;padding:20px;border:1px solid #343b42;border-radius:15px;background:#191d21}
.seller-api-box-title{display:flex;gap:12px;align-items:start;margin-bottom:21px}
.seller-api-box-title>b{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:#3c2b1a;color:#ffb957}
.seller-api-box h3,.seller-api-list-title h3{margin:0 0 4px;font-size:16px}
.seller-api-box label{display:block;margin-bottom:7px;color:#d7dce0;font-size:12px;font-weight:750}
.seller-api-create-row{display:flex;gap:8px}
.seller-api-create-row input{min-width:0;flex:1}
.seller-api-create-row button{flex:none;padding:0 16px}
.seller-api-box small{display:block;margin-top:9px;color:#89949e;font-size:11px}
.seller-api-endpoint{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.seller-api-endpoint small{flex:1 0 100%;margin:0}
.seller-api-endpoint code{flex:1;min-width:0;padding:11px;border:1px solid #303840;border-radius:8px;background:#101417;color:#e6edf2;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seller-api-endpoint button,.seller-api-list-title button,.seller-api-revoke,.seller-api-reveal button,.seller-api-link{border:1px solid #49515a;border-radius:8px;background:#252b30;color:#e7ebef;padding:9px 11px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}
.seller-api-endpoint button:hover,.seller-api-list-title button:hover,.seller-api-link:hover{border-color:#b27a36;color:#ffc274}
.seller-api-link{display:inline-block;margin-top:12px;text-decoration:none}
.seller-api-reveal{margin:0 0 17px;padding:17px;border:1px solid #a66d29;border-radius:13px;background:#32271c}
.seller-api-reveal strong{display:block;color:#ffd38f;font-size:13px}
.seller-api-reveal>div{display:flex;gap:8px;margin-top:10px}
.seller-api-reveal code{flex:1;min-width:0;padding:11px;border:1px solid #805c33;border-radius:8px;background:#181715;color:#fff;word-break:break-all}
.seller-api-reveal .seller-api-link{margin-top:10px}
.seller-api-list-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:28px 0 12px}
.seller-api-list-title>div:last-child{display:flex;gap:7px}
.seller-api-list{border:1px solid #343b42;border-radius:13px;overflow:hidden}
.seller-api-key-row{display:flex;align-items:center;gap:13px;min-height:78px;padding:12px 15px;background:#191e22;border-bottom:1px solid #30363c}
.seller-api-key-row:last-child{border-bottom:0}
.seller-api-key-mark{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:#2c2b26;color:#ffc16a;font-size:20px}
.seller-api-key-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.seller-api-key-info strong{font-size:13px}
.seller-api-key-info code{color:#e3af68;font-size:11px}
.seller-api-key-info small{color:#8e9aa4;font-size:10px}
.seller-api-status{padding:5px 8px;border-radius:6px;font-size:10px;font-weight:800}
.seller-api-status.active{background:#193b2c;color:#8fe1b0}
.seller-api-status.revoked{background:#32363b;color:#9ba5ad}
.seller-api-revoke{border-color:#654044;color:#f0aaaa}
.seller-api-revoke:hover{background:#3d2227}
.seller-api-empty,.seller-api-loading{padding:25px;color:#a9b3bc;font-size:13px}
.seller-api-safety{margin:14px 0 0;color:#89939d;font-size:11px;line-height:1.5}
.seller-api-error{padding:11px 13px;border:1px solid #8f4343;border-radius:8px;background:#3a2224;color:#ffd0cf}
/* Keep the existing canvas in one composited layer behind the scrolling offers. */
html body[data-theme="dark"].ui-unified:has(.buyer-main){
  position:relative;
  isolation:isolate;
  background-image:none!important;
  background-attachment:scroll!important;
}
html body[data-theme="dark"].ui-unified:has(.buyer-main)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse 70% 430px at 54% -5%,#3a2917 0%,#201911 36%,transparent 76%),linear-gradient(180deg,#171715 0%,#121312 460px,#101111 100%);
  will-change:transform;
}
/* Card controls use a solid surface rather than a separate live blur for every offer. */
#app .market-product-card .market-favorite-toggle,
#app .market-product-card .market-product-badge{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  background:#141619!important;
}
#app .market-product-card>.thumb.product-thumb>img,
#app .market-product-card:hover>.thumb.product-thumb>img{
  filter:none!important;
  transition:transform .18s ease!important;
}
@media(max-width:780px){.seller-api-columns{grid-template-columns:1fr}.seller-api-hero{align-items:start;flex-direction:column}.seller-api-list-title{align-items:start;flex-direction:column}}
@media(max-width:520px){.seller-api-key-row{flex-wrap:wrap}.seller-api-key-info{flex-basis:calc(100% - 60px)}.seller-api-revoke{margin-left:auto}.seller-api-reveal>div,.seller-api-create-row{flex-direction:column}.seller-api-create-row button{min-height:42px}}

