.native .dx-letter-heading,.native .dx-letter-row{display:grid;grid-template-columns:22px minmax(90px,1.3fr) minmax(50px,1fr) 65px;align-items:center;gap:0}
.native .dx-letter-heading{position:sticky;top:0;z-index:1;background:#100808;padding-inline:2px;height:22px;color:#c6a663;text-align:center;border-bottom:1px solid #735f3d}
.native .dx-letter-inbox{height:350px;max-height:calc(53dvh + 22px);overflow:auto;border:1px solid #635332}
.native :is(.mir-window,#panel) :is(.details,#panel-body) button.dx-letter-row{display:grid;width:100%;height:22px;min-height:22px;margin:0;padding:0 2px;background:#191400;color:#fff;border-bottom:1px solid #392e19;line-height:1;text-align:center}
.native :is(.mir-window,#panel) :is(.details,#panel-body) button.dx-letter-row:hover{background:#382c18}
.native .dx-letter-row img{max-height:19px;max-width:21px;justify-self:center}
.native .dx-letter-row span,.native .dx-letter-row time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native .dx-mail-actions,.native .dx-letter-actions,.native .dx-market-pages{display:flex;align-items:center;justify-content:space-evenly;gap:3px;padding:6px 0 1px;flex-wrap:wrap}
.native .dx-mail-actions button{width:80px}
.native :is(.mir-window,#panel):is([data-panel-kind="readMail"],[data-panel-kind="writeMail"]){width:min(273px,100vw)}
.native .dx-letter{width:min(255px,100%);padding:1px 4px 3px;display:grid;gap:4px}
.native .dx-letter-field{display:flex;align-items:center;gap:5px;min-height:20px}
.native .dx-letter-field>span{min-width:53px;color:#dfd7c3;text-align:right}
.native .dx-letter-field>output{min-width:0;flex:1;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:1px solid #635332;padding:1px 4px;background:#110e0b}
.native .dx-letter>label:has(input){display:grid;align-items:center;grid-template-columns:50px 1fr;gap:5px;text-align:right}
.native .dx-letter .dx-mail-content{display:block;resize:vertical;box-sizing:border-box;background:#050403;min-height:100px;height:120px;max-height:35dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #635332;padding:4px;margin:0!important;color:#fff}
.native .dx-letter .dx-attachments{grid-template-columns:repeat(6,35px);justify-self:end}
.native .dx-attachment-editor{border:1px solid #635332;padding:3px}
.native .dx-attachment-editor select{max-width:148px}
.native .dx-letter .dx-letter-actions{justify-content:flex-end}
.native .dx-market-inner{min-height:min(435px,60dvh);border:1px solid #635332;padding:8px;box-sizing:border-box}
.native .dx-market-filter{display:flex;align-items:center;gap:5px;border:1px solid #635332;padding:3px 5px;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.native .dx-market-filter label{white-space:nowrap}.native .dx-market-filter input{width:clamp(75px,14vw,135px)}.native .dx-market-filter select{max-width:112px}
.native .dx-market-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(156px,1fr);gap:7px}
.native .dx-market-list{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0}
.native :is(.mir-window,#panel) :is(.details,#panel-body) button.dx-market-row{display:grid;grid-template-columns:38px minmax(60px,1.6fr) minmax(60px,1fr) minmax(65px,.9fr);align-items:center;min-width:0;width:100%;height:40px;min-height:40px;border:1px solid #635332;background:#191400;padding:1px 2px;gap:4px;margin:0;text-align:left}
.native :is(.mir-window,#panel) :is(.details,#panel-body) button.dx-market-row[aria-pressed="true"]{background:#332815;border-color:#c6a663}
.native .dx-market-row b,.native .dx-market-row>span:not(.dx-wares-icon){font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal}
.native .dx-wares-icon{position:relative;display:block;width:36px;height:36px;border:1px solid #635332}
.native .dx-wares-icon>[aria-hidden]{position:absolute;inset:-1px;margin:0!important}
.native .dx-market-side{display:flex;align-items:stretch;flex-direction:column;gap:6px;font-size:12px}
.native .dx-commerce-box{box-sizing:border-box;display:grid;gap:3px;align-content:start;border:1px solid #635332;padding:3px 5px}
.native .dx-commerce-box h3{text-align:center;border-bottom:1px solid #635332;margin:0 0 2px!important}
.native .dx-commerce-box p{min-height:35px;max-height:75px;overflow:auto;white-space:pre-wrap}
.native .dx-commerce-box>button,.native .dx-commerce-box>label{justify-self:center}
.native .dx-commerce-box>label{max-width:100%}.native .dx-commerce-box select{max-width:95px}
.native .dx-market-side .dx-letter-field>span{min-width:51px}
.native .dx-market-pages{margin-top:auto;justify-content:center}
.native .dx-consign{grid-template-columns:minmax(160px,1fr) minmax(0,3fr)}
.native .dx-consign textarea{height:45px;width:100%;resize:vertical}
.native .dx-consign .dx-commerce-box .dx-commerce-box{border:0;padding:0}
.native .dx-consign .dx-market-side{gap:3px}
.native .dx-market-side>label{display:block}
.native :is(.mir-window,#panel)[data-panel-kind="market"] .dx-tab:last-child{margin-left:auto}
@media(max-width:580px){
 .native .dx-market-layout,.native .dx-consign{grid-template-columns:1fr}
 .native .dx-market-list{max-height:280px;overflow:auto}
 .native .dx-market-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:3px}
 .native .dx-market-filter{gap:2px;justify-content:start}
 .native .dx-market-inner{padding:3px}
}
.native :is(.mir-window,#panel)[data-panel-kind="market"] :is(.details,#panel-body) .dx-tabs button.dx-tab:last-child{margin-left:auto;min-width:100px}

.native .dx-letter .dx-mail-currency-name{position:absolute;top:2px;left:2px;padding:0 2px;border:1px solid #a37d32;border-radius:3px;background:#413016;color:#ffe9a0;font-size:12px;line-height:16px;font-weight:bold;white-space:nowrap}

.native :is(.mir-window,#panel)[data-panel-kind="saleConfirm"]{width:min(520px,100vw)}
.native .dx-sale-list{max-height:min(360px,55dvh);overflow:auto;border:1px solid #685537;background:#17120d}
.native .dx-sale-list table{width:100%;border-collapse:collapse;font-size:12px}
.native .dx-sale-list :is(th,td){padding:5px 7px;border-bottom:1px solid #49391f;text-align:right}
.native .dx-sale-list th{position:sticky;top:0;background:#342818;color:#f3dc9e;white-space:nowrap}
.native .dx-sale-list :is(th,td):first-child{width:40px;text-align:center}
.native .dx-sale-list :is(th,td):nth-child(2){text-align:left;min-width:80px}
.native .dx-sale-list td small{display:block;color:#bbaa8a}
.native .dx-sale-list input[type="checkbox"]{accent-color:#b28e4e}
.native .dx-sale-note{display:block;margin:5px 0;color:#bbaa8a}
.native .dx-sale-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px;margin-top:7px}
.native .dx-sale-total{margin-right:auto;color:#ffe0a0;font-variant-numeric:tabular-nums}
