/* Web182 3090: approved preview hunt-right-panels.css (r70..r72, SHA 3272272765a84c53…); rules and selectors unchanged; ported by tools/port_css.sh: #stage -> the game stage, preview-only asset URLs -> byte-identical formal files, !important declarations -> @layer web182-ui (ordered before the formal lineageNativeOverrides, as these rules won over the same skins in the preview); body.skin-lineagem-preview -> body.skin-lineagem */
@layer web182-ui-run,web182-ui-count,web182-ui-trade,web182-ui,lineageNativeOverrides;
/* r70: shared right-side window frame, matching More. Preview scoped. */
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel{animation:right-panel-open .16s ease-out}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel>header .lmc-class-label{margin-left:8px}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-rows{overscroll-behavior:contain}
@keyframes right-panel-open{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}
/* r71: one complete original button PNG; no sliced frame or layered fill. */
/* r72: fixed cell pitch, no stretched columns; keep icon and tile size. */
@layer web182-ui{
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel{position:absolute!important;left:auto!important;right:8px!important;top:68px!important;bottom:auto!important;width:436px!important;height:344px!important;max-width:none!important;max-height:none!important;transform:none!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:0!important;padding:0 12px 12px!important;border:1px solid #7d7054!important;border-image:none!important;border-radius:0!important;background:linear-gradient(135deg,rgba(37,34,27,.98),rgba(12,16,18,.98) 45%,rgba(24,26,26,.98))!important;box-shadow:0 9px 30px #0009,inset 0 0 0 3px #151714,inset 0 0 0 4px #514b3b!important;color:#e6dcc1!important;font:12px/1.4 'Microsoft JhengHei',sans-serif!important;z-index:100040!important;overflow:visible!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel::before,body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel::after{display:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel>header{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;height:38px!important;min-height:38px!important;flex:0 0 38px!important;padding:0 4px!important;margin:0 0 7px!important;border:0!important;border-bottom:1px solid #6d6044!important;background:none!important;box-shadow:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel>header h2{display:block!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;font:normal 14px 'Microsoft JhengHei',sans-serif!important;letter-spacing:2px!important;color:#e6dcc1!important;margin:0!important;padding:0!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel>header .m-right-close{position:static!important;flex:0 0 32px!important;width:32px!important;height:30px!important;min-height:0!important;min-width:0!important;margin:0 0 0 auto!important;padding:0!important;background:none!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;color:#d7c6a5!important;font:25px/30px sans-serif!important;cursor:pointer!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-body{flex:1!important;min-height:0!important;overflow:visible!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-inv-grid{grid-auto-rows:36px!important;scrollbar-width:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-inv-tidy{top:8px!important;right:46px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-footer,body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .lmc-footer{flex:0 0 38px!important;min-height:38px!important;margin:4px 0 0!important;padding:4px 0 0!important;background:none!important;border-top:1px solid #6d604466!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-inv-side{z-index:100060!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .lmc-scroll{background:none!important;scrollbar-width:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .lmc-scroll::-webkit-scrollbar,body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-inv-grid::-webkit-scrollbar,body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-rows::-webkit-scrollbar{display:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-tabs{flex:0 0 33px!important;height:33px!important;gap:3px!important;padding:0 0 5px!important;margin:0!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-tabs button{height:28px!important;min-height:0!important;padding:0 4px!important;font-size:11px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-content{grid-template-columns:minmax(0,1fr) 120px!important;padding:0!important;gap:7px!important;min-height:0!important;flex:1!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-filter{gap:4px!important;padding:4px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-filter input{width:120px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-filter select{width:78px!important;font-size:10px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-columns{grid-template-columns:1fr 29px 48px!important;padding:4px 5px!important;font-size:10px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel button.market-item{grid-template-columns:26px minmax(0,1fr) 24px 42px!important;gap:2px!important;height:36px!important;min-height:36px!important;padding:3px 5px!important;font-size:10px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-item img{width:25px!important;height:25px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-item span{min-width:0!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-rows{scrollbar-width:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel aside.market-detail{gap:6px!important;padding:8px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-detail>img{width:42px!important;height:42px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-detail h3{font-size:12px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-detail p,body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .market-detail strong{font-size:11px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel.lm-market footer{height:25px!important;flex:0 0 25px!important;padding:2px 0 0!important;font-size:9px!important;gap:6px!important}
:is(#stage,.game) .lmc-detail{z-index:100060!important}
@media(prefers-reduced-motion:reduce){body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel{animation:none!important}}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel>header .m-right-close::before{content:"×"!important;display:block!important;font:25px/30px sans-serif!important;color:#d7c6a5!important;background:none!important;width:auto!important;height:auto!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel :is(.mw-inv-cat,.mw-footer .mw-button,.market-tabs button,.market-detail>button){border:0!important;border-image:none!important;border-radius:0!important;background:transparent url('/assets/lineagem-common/Btn_Alpha_Normal.png') center/100% 100% no-repeat!important;box-shadow:none!important;outline-offset:1px!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel :is(.mw-inv-cat,.mw-footer .mw-button,.market-tabs button,.market-detail>button):is([aria-pressed=true],.primary):not(:disabled){background-image:url('/assets/lineagem-common/Btn_Blue_Normal_P.png')!important;box-shadow:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel :is(.mw-inv-cat,.mw-footer .mw-button,.market-tabs button,.market-detail>button):active:not(:disabled){background-image:url('/assets/lineagem-common/Btn_Blue_Pressed.png')!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel :is(.mw-inv-cat,.mw-footer .mw-button,.market-tabs button,.market-detail>button):disabled{background-image:url('/assets/lineagem-common/Btn_Disabled.png')!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel button.market-item{border:0!important;border-image:none!important;border-bottom:1px solid #353b33!important;background:#111716b3!important;box-shadow:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel button.market-item[aria-pressed=true]{background:transparent url('/assets/lineagem-common/Btn_Blue_Normal_P.png') center/100% 100% no-repeat!important;box-shadow:none!important}
body.skin-lineagem :is(#stage#stage#stage#stage#stage#stage#stage#stage,.game) .m-right-panel .mw-inv-grid{grid-template-columns:repeat(auto-fill,36px)!important;grid-auto-rows:36px!important;gap:3px!important;justify-content:start!important;justify-items:start!important;align-content:start!important;padding:2px 0 1px!important}
}
