/* Client areas and control spacing follow GroupDialog, GuildDialog, TradeDialog, BlockDialog and RankingDialog. */
.native :is(.mir-window,#panel):is([data-panel-kind=group],[data-panel-kind=block]){width:min(218px,100vw)}
.native :is(.mir-window,#panel) .social-book,.native .social-list-box,.native .social-member-book{border:1px solid #635332;box-sizing:border-box}
.native .social-member-book{height:178px;max-height:44dvh;padding:7px 5px}
.native .social-group-list{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:20px;align-content:start;overflow:auto}
.native :is(.mir-window,#panel)[data-panel-kind=group]{width:min(252px,100vw)}
.native [data-panel-kind=group] .social-member-book{height:90px;max-height:22dvh}
.native .social-nearby{border:1px solid #635332;max-height:min(144px,25dvh);overflow-y:auto;min-height:24px}
.native :is(.details,#panel-body) button.social-nearby-player{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;min-height:24px;margin:0;padding:2px 6px;border:0;background:transparent;text-align:left;color:#ead6a3}
.native .social-nearby-player span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native .social-nearby-player small{white-space:nowrap}
.native :is(.details,#panel-body) button.social-nearby-player:enabled:hover{background:#3d311e}
.native :is(.details,#panel-body) button.social-nearby-player:disabled{color:#8c887e;opacity:1;cursor:default}
.native .social-empty,.native .social-invite-result{display:block;padding:3px 5px;color:#b6a98d}
.native .social-invite-result:empty{display:none}
.native [data-panel-kind=group] .social-empty{grid-column:1/-1}
.native .social-block-list{height:175px;max-height:50dvh;overflow:auto;display:flex;flex-direction:column}
.native .social-footer,.native .social-trade-footer,.native .social-rank-controls,.native .social-vault-filter{display:flex;align-items:center;gap:4px;justify-content:space-between}
.native .social-footer{margin-top:4px}
.native .social-footer button{min-width:60px}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-icon{padding:0;background:none!important;width:32px;height:32px;min-width:32px;margin:0}
.native .social-icon img{display:block;width:32px;height:32px}
.native :is(.mir-window,#panel) :is(.details,#panel-body) :is(.social-list-choice,.social-rank-name){background:none;min-height:18px;padding:0 4px;margin:0;text-align:left;border:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-list-choice[aria-pressed=true],.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-list-choice:hover{background:#3d311e;color:#eacb8d}
.native .social-disclosure{margin:5px 0 0;color:#cab995}
.native .social-disclosure summary{cursor:pointer}
.native .social-field{display:inline-flex;align-items:center;gap:4px}
.native .social-field input{width:110px;min-width:0}
.native .social-name-form{display:flex;flex-wrap:wrap;gap:3px;align-items:center;margin:4px 0}
.native .social-guild-page{height:395px;max-height:70dvh;overflow:auto;padding:4px}
.native .social-section{position:relative;margin:2px 0 6px}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-heading{background:#191400;color:#c6a663;text-align:center;line-height:21px;height:22px;font-weight:normal}
.native .social-guild-form .social-section{text-align:center;margin-bottom:12px}
.native .social-guild-form .social-field,.native .social-guild-form .social-radio{display:flex;justify-content:center;margin:3px 0}
.native .social-guild-form .social-field span{min-width:82px;text-align:right}
.native .social-guild-form .dx-value{margin:auto;width:min(208px,100%)}
.native .social-guild-form .social-section:first-child{margin-top:12px}
.native .social-guild-notice{display:block;width:100%;height:clamp(100px,32vh,275px);resize:vertical;box-sizing:border-box}
.native .social-notice-actions{position:absolute;top:0;right:2px}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-notice-actions button{min-height:18px;line-height:18px;padding:0 6px}
.native .social-guild-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 6px;border:1px solid #635332;padding:5px}
.native .social-guild-row{width:100%;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;align-items:center;text-align:center}
.native .social-guild-row span,.native .social-rank-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.native .social-columns{color:#c6a663;border-bottom:1px solid #635332}
.native .social-member-rows{max-height:275px;overflow:auto}
.native .social-member-rows .social-guild-row:nth-child(odd),.native .social-rank-row:nth-child(even){background-color:#191400}
.native .social-rights{display:grid;grid-template-columns:repeat(4,1fr)}
.native .social-castle{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:3px}
.native .social-vault-filter{border:1px solid #635332;padding:3px 5px;margin:2px 0}
.native .social-vault-scroll{overflow:auto;height:300px;max-height:50dvh}
.native .social-vault-grid{grid-template-columns:repeat(14,35px)}
.native .social-dim{opacity:.25}
.native .social-trade-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(2px,2vw,20px);margin:0 4px}
.native .social-trade-side h3{text-align:center}
.native .social-trade-cells{width:100%;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:auto;box-sizing:border-box}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-trade-cells .dx-cell{width:100%;height:auto;aspect-ratio:1/1;min-height:0;min-width:0}
.native .social-trade-cells .dx-cell>[aria-hidden="true"]{width:calc(100% + 2px)!important;height:calc(100% + 2px)!important}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-gold{border:0;background:none;width:100%;height:18px;min-height:16px;padding:0;margin:0}
.native .social-trade-footer{justify-content:center;gap:14px;margin:3px 0}
.native .social-trade-tools .dx-grid{margin:auto}
.native .social-rank-controls{min-height:31px}
.native .social-rank-controls select{width:85px}
.native .social-ranks{height:455px;max-height:62dvh;overflow:auto;border:1px solid #635332}
.native .social-rank-row{display:grid;grid-template-columns:14px minmax(18px,.45fr) minmax(40px,1.5fr) minmax(30px,.7fr) minmax(51px,1fr) minmax(40px,.8fr);align-items:center;min-height:21px;gap:1px;color:silver}
.native .social-rank-row img{width:12px;height:12px;margin:auto}
.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-rank-row button{text-align:center;min-height:17px;margin:0;padding:0 2px;line-height:17px;white-space:nowrap}
.native .social-rank-row.social-columns{color:#c6a663}
@media(max-width:440px){.native .social-guild-stats{grid-template-columns:1fr}.native .social-rights{grid-template-columns:repeat(2,1fr)}.native .social-rank-controls{gap:1px}}

.native :is(.mir-window,#panel) :is(.details,#panel-body) .social-switch{display:inline-flex;width:auto;gap:2px;align-items:center}
