/* BYGOTIC V41 R2 · SINGLE SURFACE + VISUAL GEOMETRY CORRECTIVE */
:root{--v41r2-tab-min:128px;--v41r2-safe-dark:#081923;--v41r2-safe-dark-2:#0a1d29}
body.v41-complete [hidden],body.v41-complete .hidden,body.v41-complete .jp-hub-tabs.hidden,body.v41-complete .jp-client-preview-toggle.hidden{display:none!important}
body.jp-page[data-admin="1"]:not(.jp-client-preview) #jpMemberTabs{display:none!important}
body.jp-page[data-admin="1"]:not(.jp-client-preview) #jpAdminTabs{display:flex!important}
body.jp-page[data-admin="0"] #jpAdminTabs{display:none!important}
body.jp-page[data-admin="0"] #jpMemberTabs{display:flex!important}
body.jp-page.jp-client-preview #jpAdminTabs{display:none!important}
body.jp-page.jp-client-preview #jpMemberTabs{display:flex!important}
body.jp-page .jp-hub-nav{position:relative!important;top:auto!important;z-index:20!important;display:flex!important;align-items:center!important;gap:10px!important;padding:10px 0!important;background:transparent!important;overflow:visible!important}
body.jp-page .jp-hub-tabs{display:flex!important;flex:1 1 auto!important;grid-auto-flow:unset!important;grid-auto-columns:unset!important;grid-template-columns:none!important;gap:8px!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;padding:2px!important;overscroll-behavior-inline:contain}
body.jp-page .jp-hub-tabs>button{flex:1 0 var(--v41r2-tab-min)!important;min-width:var(--v41r2-tab-min)!important;max-width:220px!important;min-height:50px!important;padding:10px 12px!important;white-space:nowrap!important}
body.jp-page .jp-hub-tabs>button small{display:block!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.jp-page #jpClientPreviewToggle:not(.hidden){flex:0 0 auto!important;min-width:142px!important;max-width:180px!important}
body.jp-page .r38-workspace-head{display:none!important}
body.jp-page .jp-admin-hero-r7{margin-top:4px!important;padding:18px!important;border-radius:15px!important;box-shadow:none!important}
body.jp-page .jp-admin-hero-r7 h1{font-size:clamp(1.3rem,2vw,1.8rem)!important}
body.jp-page :is(.r34-dossier-card,.r35-dossier-card,.jp-dossier-card,.jp-order-card){min-width:0!important;overflow:hidden!important}
body.jp-page :is(.r34-dossier-card,.r35-dossier-card,.jp-dossier-card) dl{display:grid!important;grid-template-columns:minmax(96px,.65fr) minmax(0,1.35fr)!important;gap:8px 14px!important;align-items:start!important}
body.jp-page :is(.r34-dossier-card,.r35-dossier-card,.jp-dossier-card) dt{color:#8297aa!important;white-space:normal!important}
body.jp-page :is(.r34-dossier-card,.r35-dossier-card,.jp-dossier-card) dd{margin:0!important;overflow-wrap:anywhere!important;color:#eff5fa!important}
body.v41-complete :is(table tbody tr,.profile-row,.admin-user-row,.member-row,.team-card){color:#d9e5ee!important}
body.v41-complete :is(table tbody tr:hover,table tbody tr:focus-within,table tbody tr.selected,table tbody tr.active,.profile-row:hover,.profile-row.selected,.admin-user-row:hover,.admin-user-row.selected,.member-row:hover,.member-row.selected){background:linear-gradient(90deg,#0b2230,#081923)!important;color:#f6f9fc!important;box-shadow:inset 3px 0 #b9912a!important}
body.v41-complete :is(table tbody tr:hover,table tbody tr.selected) :is(td,a,button,span,b,strong,small){color:inherit}
body.v41-complete #view-base :is(.btn,.mini-button,.text-button,button){filter:none!important;text-shadow:none!important}
body.v41-complete #view-dashboard>.v38-command-center,body.v41-complete #view-dashboard #v38Command{display:none!important}
body.v41-complete:not(.p6-member) .sidebar .v40-tools{display:none!important}
body.v41-complete:not(.p6-member) .sidebar [data-view="statement"]{display:none!important}
.v41r2-module-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:10px;border:1px solid #17384b;border-radius:14px;background:#07151f}
.v41r2-module-tools button{min-height:40px;padding:9px 12px;border:1px solid #214358;border-radius:10px;background:#091b26;color:#b9c8d5;font-weight:700;cursor:pointer}
.v41r2-module-tools button:hover,.v41r2-module-tools button.active{border-color:#80641d;background:#17170d;color:#f3cd53}
body.v41-route-shell .pilot-topbar{display:none!important}
body.v41-route-shell .pilot-shell{margin-top:0!important}
body.v41-route-shell .pilot-support-layout{align-items:start!important;min-height:0!important;height:auto!important}
body.v41-route-shell :is(.pilot-list-card,.pilot-detail-card,.pilot-ticket-list,.pilot-empty-state){min-height:0!important}
body.v41-route-shell .pilot-empty-state{padding:28px 20px!important}
body.v41-complete .admin-metrics{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:10px!important}
body.v41-complete #view-account .account-grid{align-items:start!important}
body.v41-complete #view-account .pwa-control-panel{order:8!important}
body.v41-complete #view-account .motion-panel{order:9!important}
@media(max-width:1100px){body.jp-page .jp-hub-tabs>button{flex-basis:118px!important;min-width:118px!important}}
@media(max-width:800px){body.v41-route-shell .pilot-topbar{display:flex!important;position:relative!important;margin:0 0 10px!important}body.jp-page .jp-hub-nav{padding:8px 0!important;margin:0!important}body.jp-page .jp-hub-tabs{scroll-snap-type:x proximity!important}body.jp-page .jp-hub-tabs>button{flex:0 0 118px!important;min-width:118px!important;max-width:118px!important;scroll-snap-align:start!important}body.jp-page .jp-hub-tabs>button small{display:none!important}.v41r2-module-tools{overflow-x:auto!important;flex-wrap:nowrap!important}.v41r2-module-tools button{flex:0 0 auto!important}}
@media(max-width:430px){body.jp-page .jp-hub-tabs>button{flex-basis:108px!important;min-width:108px!important;max-width:108px!important;padding-inline:8px!important}}
