/* Wiantex R13 — consistent navigation and intrinsic content sizing. */
body.wtx-pro-ui #sidebar .nav-item{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:44px;padding:10px 12px!important;box-sizing:border-box;line-height:1.45;min-width:0;text-align:start}
body.wtx-pro-ui #sidebar .nav-item>.wtx-icon,body.wtx-pro-ui #sidebar .nav-item>.nav-icon{display:block;flex:0 0 20px;width:20px!important;height:20px!important;margin:0!important;align-self:center}
body.wtx-pro-ui #sidebar .nav-item>.nav-label-text{flex:1;min-width:0;overflow-wrap:anywhere;font:inherit;line-height:inherit}
body.wtx-pro-ui #sidebar .nav-item>.count,body.wtx-pro-ui #sidebar .nav-item>.badge{flex:0 0 auto;margin-inline-start:auto;line-height:1.4}
body.wtx-pro-ui #sidebar .nav-item>.nav-external{width:13px!important;height:13px!important;flex-basis:13px;margin-inline-start:auto!important}
body.wtx-pro-ui #sidebar .nav-item>.dot{flex:0 0 8px;width:8px;height:8px;margin-inline:6px}
body.wtx-pro-ui :is(.content-grid,.main-col,.right-panel,.topic-list,.topic-main,.topic-title,.topic-meta,.section-head,.section-head>div){min-width:0;max-width:100%;box-sizing:border-box}
body.wtx-pro-ui .content-grid{align-items:start}
body.wtx-pro-ui .right-panel{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))!important;align-items:start;align-content:start;gap:16px;min-width:0;white-space:normal;overflow:visible}
body.wtx-pro-ui .right-panel>.widget,body.wtx-pro-ui .right-panel>.card{width:100%;min-width:0;max-width:100%;margin:0;box-sizing:border-box;align-self:start}
body.wtx-pro-ui .right-panel .widget h3{display:flex;align-items:flex-start;gap:8px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
body.wtx-pro-ui .right-panel .widget h3>.wtx-icon{flex:0 0 16px;margin-top:3px}
body.wtx-pro-ui .right-panel .leader-row{display:grid!important;grid-template-columns:18px 32px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 10px!important;align-items:center;min-width:0;padding:10px 0!important;line-height:1.4}
body.wtx-pro-ui .right-panel .leader-row>.leader-rank{grid-column:1;grid-row:1/3;width:18px;text-align:center}
body.wtx-pro-ui .right-panel .leader-row>:is(.avatar-wrap,.avatar,.avatar-frame-wrap){grid-column:2;grid-row:1/3;justify-self:center;flex-shrink:0}
body.wtx-pro-ui .right-panel .leader-name{grid-column:3;grid-row:1;min-width:0;width:100%;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
body.wtx-pro-ui .right-panel .leader-count{grid-column:3;grid-row:2;min-width:0;width:100%;line-height:1.45;text-align:start;white-space:normal;overflow-wrap:anywhere}
body.wtx-pro-ui .right-panel .stat-row{display:flex;justify-content:space-between;align-items:center;gap:14px;line-height:1.5}
body.wtx-pro-ui .right-panel .stat-row>span:first-child{min-width:0;overflow-wrap:anywhere}
body.wtx-pro-ui .right-panel .stat-row>span:last-child{flex-shrink:0;font-variant-numeric:tabular-nums}
body.wtx-pro-ui .wtx-personal-feed .topic-card{display:grid!important;grid-template-columns:42px minmax(0,1fr);gap:12px!important;align-items:start;padding:18px!important;min-width:0}
body.wtx-pro-ui .wtx-personal-feed .topic-card>.topic-icon{grid-column:1;grid-row:1/3;width:42px;height:42px;align-self:start;margin:0}
body.wtx-pro-ui .wtx-personal-feed .topic-card>.topic-main{grid-column:2;grid-row:1;min-width:0;width:100%}
body.wtx-pro-ui .wtx-personal-feed .topic-card>.topic-time{grid-column:2;grid-row:2;justify-self:start;text-align:start;margin:0;white-space:normal;line-height:1.5}
body.wtx-pro-ui .wtx-personal-feed .topic-title{display:block;line-height:1.5;margin-bottom:6px}
body.wtx-pro-ui .wtx-personal-feed .topic-title>.text{display:block!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5}
body.wtx-pro-ui .wtx-personal-feed .topic-meta{display:flex;flex-wrap:wrap;gap:4px 7px!important;line-height:1.6}
body.wtx-pro-ui .wtx-personal-feed .topic-meta>span{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.wtx-pro-ui .section-head{align-items:center;gap:12px}
body.wtx-pro-ui .section-head h2{line-height:1.5}
body.wtx-pro-ui .section-head p{line-height:1.65}
@media(min-width:901px){body.wtx-pro-ui:not(.admin-page):not(.wtx-dm-page) .content-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,300px)!important;gap:22px!important}body.wtx-pro-ui .content-grid>:is(.main-col,.right-panel){order:0!important}body.wtx-pro-ui .content-grid>.right-panel{margin-top:0!important}}
@media(max-width:900px){body.wtx-pro-ui:not(.admin-page):not(.wtx-dm-page) .content-grid{display:block!important}.right-panel{margin-top:22px}}
@media(max-width:480px){body.wtx-pro-ui .wtx-personal-feed .topic-card{grid-template-columns:36px minmax(0,1fr);gap:10px!important;padding:14px!important}body.wtx-pro-ui .wtx-personal-feed .topic-card>.topic-icon{width:36px;height:36px}}

body.wtx-pro-ui #sidebar .nav-external>.wtx-icon{width:13px!important;height:13px!important}
