/* XBLUEMAN native-compat pages (np1): body.xb-native only = desktop, non-AJAX home/member/search rendered by native default templates inside theme shell. Markup untouched. */
body.xb.xb-native{--np-ink:#172338;--np-soft:#66768e;--np-line:#e3e9f2;--np-bg:#f3f6fb;--np-card:#fdfeff;--np-blue:#1f5bd8;--np-blue2:#1748b0;--np-tint:#edf3ff;background:var(--np-bg)}
body.xb-native:not(.xb-settings) #xb-main{max-width:1160px;margin:0 auto;padding:18px 20px 48px;font-size:15px;line-height:1.65;color:var(--np-ink)}
body.xb-native #xb-main .wp{width:auto;max-width:none;margin:0}
body.xb-native #xb-main a{color:var(--np-blue2)}
body.xb-native #xb-main .xg1,body.xb-native #xb-main .xg2,body.xb-native #xb-main .d{color:var(--np-soft)}
/* breadcrumb */
body.xb-native:not(.xb-settings) #pt{margin:0 0 14px;padding:0;border:0;background:none;font-size:13px;height:auto;line-height:1.6}
body.xb-native:not(.xb-settings) #pt a{color:var(--np-soft)}
body.xb-native #pt .nvhm{background:none;width:auto;text-indent:0;display:inline}
body.xb-native #pt em{margin:0 4px;color:#a6b2c4;background:none;width:auto;text-indent:0;display:inline}
/* layouts: ct2 (main + sd), ct2_a (appl + main), ct1 */
body.xb-native:not(.xb-settings) #ct{display:grid;gap:18px;align-items:start;background:none;border:0;padding:0;margin:0}
body.xb-native:not(.xb-settings) #ct.ct2{grid-template-columns:minmax(0,1fr) 300px}
body.xb-native:not(.xb-settings) #ct.ct2_a{grid-template-columns:220px minmax(0,1fr)}
body.xb-native:not(.xb-settings) #ct.ct2_a>.appl{order:-1}
body.xb-native:not(.xb-settings) #ct>*{float:none!important;width:auto!important;margin:0!important;min-width:0}
body.xb-native:not(.xb-settings) #ct>.cl:empty,body.xb-native #ct:after{display:none}
body.xb-native #ct .mn,body.xb-native #ct .sd{padding:0;border:0;background:none}
/* cards */
body.xb-native .bm{background:var(--np-card);border:1px solid var(--np-line)!important;border-radius:16px;margin:0 0 16px;box-shadow:0 1px 2px rgba(23,35,56,.04);overflow:hidden}
body.xb-native .bm.bw0{border-color:var(--np-line)!important}
body.xb-native #pt.bm{border:0!important;box-shadow:none;background:none;overflow:visible}
body.xb-native .bm_h{height:auto;padding:14px 20px;border:0;border-bottom:1px solid var(--np-line);background:none;line-height:1.4}
body.xb-native .bm_h h1,body.xb-native .bm_h h2,body.xb-native .bm_h h3{font-size:17px;font-weight:700;color:var(--np-ink);margin:0}
body.xb-native .bm_c{padding:18px 20px}
body.xb-native .bm>.mt,body.xb-native .bm h1.mt{margin:18px 20px 10px;font-size:20px;font-weight:700;color:var(--np-ink);background:none;padding:0}
body.xb-native .bbda{border-bottom:1px solid #eef2f7!important}
body.xb-native .bbs{border-bottom:1px solid #eef2f7!important}
/* tabs */
body.xb-native ul.tb{display:flex;flex-wrap:wrap;gap:4px;margin:0 20px 14px;padding:0;border-bottom:1px solid var(--np-line);height:auto;background:none}
body.xb-native ul.tb li{float:none;margin:0 0 -1px;padding:0;border:0;background:none;height:auto}
body.xb-native ul.tb li a{display:block;height:auto;padding:10px 14px;border:0!important;border-bottom:2px solid transparent!important;background:none!important;color:var(--np-soft)!important;font-size:14.5px;line-height:1.4;text-decoration:none}
body.xb-native ul.tb li.a a{color:var(--np-blue2)!important;font-weight:600;border-bottom-color:var(--np-blue)!important}
body.xb-native ul.tb li.y{margin-left:auto}
/* side nav (spacecp/space appl) */
body.xb-native:not(.xb-settings) .appl{position:sticky;top:16px}
body.xb-native:not(.xb-settings) .appl .tbn{background:var(--np-card);border:1px solid var(--np-line);border-radius:16px;padding:10px 8px;margin:0 0 14px}
body.xb-native:not(.xb-settings) .appl .tbn h2.mt{margin:4px 10px 8px;padding:0 0 10px;border-bottom:1px solid var(--np-line);font-size:13px;font-weight:600;color:var(--np-soft);background:none}
body.xb-native:not(.xb-settings) .appl ul{margin:0;padding:0;list-style:none}
body.xb-native:not(.xb-settings) .appl li{margin:1px 0;padding:0;border:0;background:none;height:auto;line-height:1.4}
body.xb-native:not(.xb-settings) .appl li a{display:block;padding:9px 12px;border-radius:10px;color:var(--np-ink)!important;font-size:14.5px;text-decoration:none;background:none}
body.xb-native:not(.xb-settings) .appl li a:hover{background:#f1f5fb}
body.xb-native:not(.xb-settings) .appl li.a{background:var(--np-tint);border-radius:10px}
body.xb-native:not(.xb-settings) .appl li.a a{color:var(--np-blue2)!important;font-weight:600}
/* forms */
body.xb-native table.tfm{width:100%;border-collapse:separate;border-spacing:0}
body.xb-native table.tfm tr>*{padding:12px 0;border-bottom:1px solid #eef2f7;vertical-align:top;font-size:15px}
body.xb-native table.tfm tr:last-child>*{border-bottom:0}
body.xb-native table.tfm th{width:140px;padding-right:16px;padding-top:20px;text-align:left;font-weight:500;color:#3a4a63}
body.xb-native .px,body.xb-native .pt,body.xb-native .ps,body.xb-native #xb-main select{box-sizing:border-box;height:40px;max-width:100%;padding:0 12px;border:1px solid #d6dfec;border-radius:10px;background:#fbfcfe;color:var(--np-ink);font:inherit;font-size:15px;box-shadow:none;vertical-align:middle}
body.xb-native .pt{height:auto;min-height:90px;padding:10px 12px;line-height:1.6}
body.xb-native .px:focus,body.xb-native .pt:focus,body.xb-native #xb-main select:focus{outline:0;border-color:var(--np-blue);box-shadow:0 0 0 3px rgba(31,91,216,.14);background:var(--np-card)}
body.xb-native .pn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 18px;border:1px solid #d6dfec;border-radius:19px;background:var(--np-card);color:var(--np-ink);font:inherit;font-size:14.5px;cursor:pointer;box-shadow:none;vertical-align:middle}
body.xb-native .pn em,body.xb-native .pn span,body.xb-native .pn strong{background:none;padding:0;line-height:1;font-style:normal}
body.xb-native .pnc,body.xb-native .pnc:hover{background:var(--np-blue);border-color:var(--np-blue);color:#f6f9ff!important}
body.xb-native input[type=radio],body.xb-native input[type=checkbox]{accent-color:var(--np-blue)}
body.xb-native .tbmu,body.xb-native .tbms{font-size:14px;color:var(--np-soft);border:0;border-radius:12px;background:#f2f6fd;padding:10px 14px}
/* lists/tables/pager */
body.xb-native table.dt{width:100%;border-collapse:collapse;font-size:14.5px}
body.xb-native table.dt th,body.xb-native table.dt td{padding:11px 10px;border-bottom:1px solid #eef2f7;background:none;text-align:left}
body.xb-native table.dt th{color:var(--np-soft);font-weight:500;font-size:13px}
body.xb-native .pg{display:flex;flex-wrap:wrap;gap:6px;float:none}
body.xb-native .pg a,body.xb-native .pg strong{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 10px;border:0;border-radius:17px;background:var(--np-card);box-shadow:inset 0 0 0 1px var(--np-line);font-size:14px}
body.xb-native .pg strong{background:var(--np-blue);color:#f6f9ff;box-shadow:none}
body.xb-native .emp{padding:40px 10px;text-align:center;color:var(--np-soft)}
/* notices/pm/friends: avatar list rows */
body.xb-native .nts dl,body.xb-native .pml dl,body.xb-native .buddy li{padding:14px 0;border-bottom:1px solid #eef2f7}
body.xb-native .avt img,body.xb-native .avtm img{border-radius:50%;padding:0;border:0;background:none}
body.xb-native .buddy{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
body.xb-native .buddy li{float:none;width:auto;height:auto;margin:0;padding:14px;border:1px solid var(--np-line);border-radius:14px}
/* public profile */
body.xb-native.xb-n-space #hd,body.xb-native.xb-n-space .h{border-radius:16px;overflow:hidden}
body.xb-native .u_profile{padding:22px 24px}
body.xb-native .u_profile h2.mbn{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:22px;font-weight:700;color:var(--np-ink);margin:0 0 8px}
body.xb-native .u_profile h2 .xw0{font-size:13px;font-weight:400;color:var(--np-soft)}
body.xb-native .u_profile h2.mbn:not(:first-child){font-size:15px;margin-top:4px}
body.xb-native .u_profile .pbm{padding-bottom:16px!important;margin-bottom:16px!important}
body.xb-native .pf_l{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 24px;margin:0;padding:0;list-style:none}
body.xb-native .pf_l li{float:none;width:auto;padding:7px 0;font-size:14.5px;line-height:1.55;border-bottom:1px dashed #edf1f6}
body.xb-native .pf_l li em,body.xb-native .u_profile em{display:inline-block;min-width:84px;margin-right:6px;font-style:normal;color:var(--np-soft)}
body.xb-native .u_profile ul.cl li{line-height:1.9;font-size:14.5px}
body.xb-native .u_profile .pipe{margin:0 8px;color:#c9d3e1}
body.xb-native .u_profile .md_ctrl img{margin:2px}
body.xb-native #uhd,body.xb-native .uhd{background:var(--np-card);border:1px solid var(--np-line);border-radius:16px;padding:18px 20px;margin:0 0 16px}
body.xb-native #uhd .tb,body.xb-native .uhd .tb{margin:12px 0 0}
body.xb-native .sd .avt img,body.xb-native #uhd .avt img{width:96px;height:96px;object-fit:cover}
body.xb-native .sd .bm .bm_c ul li,body.xb-native .sd .mbm li{font-size:14px;line-height:1.8}
/* member login/register */
body.xb-native.xb-n-member #ct{max-width:560px;margin:0 auto!important;display:block!important}
body.xb-native.xb-n-member .rfm{border:0;padding:0;margin:0}
body.xb-native.xb-n-member .rfm table{width:100%}
body.xb-native.xb-n-member .rfm th{width:110px;padding:10px 12px 10px 0;font-weight:500;color:#3a4a63;text-align:left}
body.xb-native.xb-n-member .rfm td{padding:10px 0}
body.xb-native.xb-n-member .rfm .px{width:100%;height:44px;font-size:16px}
body.xb-native.xb-n-member .rfm .pn{height:44px;min-width:140px}
body.xb-native.xb-n-member .bm_h{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.xb-native.xb-n-member .bm_h .y{float:none}
/* native search fallback */
body.xb-native.xb-n-search #scform,body.xb-native.xb-n-search .scbar{background:var(--np-card);border:1px solid var(--np-line);border-radius:16px;padding:14px 18px;margin:0 0 16px}
body.xb-native.xb-n-search .slst li{padding:14px 0;border-bottom:1px solid #eef2f7;list-style:none}
body.xb-native.xb-n-search .slst h3{font-size:16px;margin:0 0 4px}
/* showmessage */
body.xb-native #messagetext{padding:28px 24px;font-size:15px;line-height:1.7}
body.xb-native #messagetext p{margin:0 0 8px}
body.xb-native #xb-main a:focus-visible,body.xb-native #xb-main button:focus-visible{outline:2px solid var(--np-blue);outline-offset:2px}
@media(max-width:899px){
 body.xb-native:not(.xb-settings) #xb-main{padding:12px 12px 90px}
 body.xb-native:not(.xb-settings) #ct.ct2,body.xb-native:not(.xb-settings) #ct.ct2_a{grid-template-columns:minmax(0,1fr)}
 body.xb-native:not(.xb-settings) .appl{position:static}
 body.xb-native:not(.xb-settings) .appl .tbn{overflow-x:auto;padding:6px;scrollbar-width:none}
 body.xb-native:not(.xb-settings) .appl .tbn h2.mt{display:none}
 body.xb-native:not(.xb-settings) .appl .tbn ul{display:flex;gap:4px;white-space:nowrap}
 body.xb-native ul.tb{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:14px;margin-right:14px}
 body.xb-native ul.tb li a{white-space:nowrap}
 body.xb-native .bm_c,body.xb-native .u_profile{padding:14px}
 body.xb-native table.tfm th{width:96px}
}
/* forum post editor (native markup/assets from csstemplate + forum_post.js) */
body.xb-native.xb-n-post #xb-main{max-width:1180px}
body.xb-native.xb-n-post #ct{display:block!important}
body.xb-native.xb-n-post #postbox,body.xb-native.xb-n-post .bm.bw0{background:var(--np-card);border:1px solid var(--np-line)!important;border-radius:18px;padding:18px 22px}
body.xb-native.xb-n-post #subject{width:100%!important;max-width:none;height:46px;font-size:18px;font-weight:600}
body.xb-native.xb-n-post .pbt{margin-bottom:12px}
body.xb-native.xb-n-post .edt{border:1px solid #d6dfec;border-radius:12px;overflow:hidden;background:var(--np-card)}
body.xb-native.xb-n-post .edt .bar{background:#f4f7fb;border-bottom:1px solid #e3e9f2}
body.xb-native.xb-n-post .edt .area textarea,body.xb-native.xb-n-post .edt iframe{background:#fdfeff}
body.xb-native.xb-n-post .mtw,body.xb-native.xb-n-post .ptm{margin-top:14px}
body.xb-native.xb-n-post #postbox .pnpost .pn,body.xb-native.xb-n-post #postsubmit{min-width:140px;height:42px;background:var(--np-blue);border-color:var(--np-blue);color:#f6f9ff!important}
body.xb-native.xb-n-post .exfm{border-radius:12px;background:#f7f9fd;border:1px solid var(--np-line)}
/* ===== np3: native .rfm login/register tables — member pages AND login shown inside home/showmessage ===== */
body.xb-native .rfm,body.xb-native #messagelogin .rfm,body.xb-native .showmessage .rfm,body.xb-native #main_messaqge .rfm{border:0;padding:0;margin:0;max-width:100%;overflow:visible}
body.xb-native .rfm table{width:100%;table-layout:auto;border-collapse:collapse}
body.xb-native .rfm th{display:table-cell!important;visibility:visible!important;width:96px;min-width:5.5em;padding:10px 12px 10px 0;font-size:14px;font-weight:500;color:#3a4a63;text-align:left;white-space:nowrap;vertical-align:middle}
body.xb-native .rfm th label,body.xb-native .rfm th span,body.xb-native .rfm th em{display:inline!important;visibility:visible!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;font-size:inherit!important;color:inherit}
body.xb-native .rfm td{padding:10px 0;vertical-align:middle}
body.xb-native .rfm td.tipcol,body.xb-native .rfm td:last-child:not(:first-of-type){width:auto;padding-left:12px;white-space:nowrap;word-break:keep-all;font-size:13px}
body.xb-native .rfm td:last-child a,body.xb-native .rfm .tipcol a{white-space:nowrap;word-break:keep-all;display:inline-block;color:#1f5bd8}
body.xb-native .rfm .px,body.xb-native .rfm select{width:100%;max-width:100%;min-width:0;height:44px;font-size:16px;box-sizing:border-box}
body.xb-native .rfm .pn{height:44px;min-width:120px}
@media(max-width:640px){
 body.xb-native .rfm table,body.xb-native .rfm tbody,body.xb-native .rfm tr,body.xb-native .rfm th,body.xb-native .rfm td{display:block!important;width:100%!important;box-sizing:border-box}
 body.xb-native .rfm th{padding:10px 0 4px;white-space:normal}
 body.xb-native .rfm td{padding:0 0 6px}
 body.xb-native .rfm td:last-child:not(:first-of-type),body.xb-native .rfm td.tipcol{padding:0 0 10px;white-space:normal;text-align:left}
 body.xb-native .rfm th:empty,body.xb-native .rfm td:empty{display:none!important}
 body.xb-native .rfm .pn{width:100%}
 body.xb-native .rfm th,body.xb-native .rfm td,body.xb-native .rfm td>a{margin-left:0;float:none}
}
