/* Existing Perps layout and gold surfaces; readability only. */
html body.king-perps-clear :is(.lev-stat .l,.lev-stat .v,.klx-prac .fld label,.klx-prac .tk-info,.klx-prac .tk-info span,.klx-prac .lev-badge){-webkit-text-fill-color:white!important;text-shadow:none!important}
html body.king-perps-clear .lev-stat .l{font-size:11px!important;line-height:1.45!important;letter-spacing:.3px!important}
html body.king-perps-clear .lev-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important}
html body.king-perps-clear .lev-stat{min-width:0;box-sizing:border-box}
html body.king-perps-clear .lev-stat .v{font-size:18px!important;line-height:1.45!important;white-space:nowrap;overflow-wrap:normal;min-width:0}
html body.king-perps-clear .king-lock-fact .v{font-size:16px!important;line-height:1.5!important;white-space:normal;overflow-wrap:normal}
html body.king-perps-clear .klx-prac #margin{font-size:26px!important;line-height:1.35!important;min-height:48px!important;-webkit-text-fill-color:white!important;caret-color:white!important;min-width:0;box-sizing:border-box}
html body.king-perps-clear .klx-prac :is(.lev-quick button,.side-btn){min-height:44px!important;white-space:normal!important;line-height:1.35!important}
html body.king-perps-clear .klx-prac #placeBtn{min-height:52px!important;white-space:normal!important;line-height:1.45!important;overflow-wrap:anywhere}
html body.king-perps-clear .klx-prac details>summary{min-height:44px;display:flex;align-items:center;line-height:1.4;box-sizing:border-box}
html body.king-perps-clear .klx-prac :is(.lev-row,.side-row){min-width:0;gap:10px}
html body.king-perps-clear .klx-prac #lev{min-width:0}
html body.king-perps-clear .klx-prac .side-btn.active{background:linear-gradient(135deg,rgba(125,90,12,.55),rgba(45,33,8,.9))!important;border-color:rgba(243,200,82,.8)!important;color:white!important;-webkit-text-fill-color:white!important}
html body.king-perps-clear .klx-prac #placeBtn{background:linear-gradient(135deg,#80601c,#4f390d)!important;border:1px solid #f3c852!important;color:white!important;-webkit-text-fill-color:white!important;box-shadow:0 0 14px rgba(243,200,82,.12)!important}

/* Compact matching stat cards, with static thin-line icons. */
html body.king-perps-clear .lev-stat{border:1px solid rgba(243,200,82,.3)!important;background:linear-gradient(145deg,rgba(25,25,25,.95),rgba(15,15,15,.98))!important}
html body.king-perps-clear .lev-stat .l{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap}
html body.king-perps-clear .lev-stat .l svg{display:inline-block;width:16px;height:16px;flex:0 0 16px;color:#f3c852;vertical-align:middle}
@media(min-width:375px){html body.king-perps-clear .lev-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:375px) and (max-width:450px){html body.king-perps-clear .lev-stat .v{font-size:16px!important}}
html body.king-perps-clear .klx-prac :is(button,#placeBtn,.side-btn.active){background:rgba(12,13,18,.62)!important;background-image:none!important;border:1px solid rgba(243,200,82,.3)!important;color:white!important;-webkit-text-fill-color:white!important;box-shadow:none!important}
