/* One shared fixed header; page headings are content, never another navigation bar. */
html body{--rp-shell-height:74px;padding-top:var(--rp-shell-height)!important;}
html body #siteTopBar.site-top-bar{position:fixed!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;width:min(1120px,100%)!important;height:var(--rp-shell-height)!important;min-height:0!important;box-sizing:border-box;margin:0!important;padding:12px 28px!important;z-index:900!important;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;}
html body #siteTopBar .site-top-bar-brand{padding:0 6px!important;min-width:0!important;}
html body #siteTopBar .site-top-bar-brand img{width:132px!important;max-height:30px!important;object-fit:contain;}
html body #siteTopBar :is(.site-top-bar-btn,.site-account-button){display:grid!important;place-items:center;width:36px!important;height:36px!important;min-width:36px!important;padding:5px!important;margin:0!important;background:none!important;border:0!important;border-radius:50%!important;box-shadow:none!important;}
html body #siteTopBar .site-top-bar-actions{gap:2px!important;}
html body .rp-page-heading{position:static!important;inset:auto!important;max-width:1120px!important;margin:0 auto!important;padding:22px 28px 0!important;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;box-sizing:border-box;}
html body .rp-page-heading .header-content{padding:0!important;max-width:none!important;min-height:40px!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;text-align:left!important;}
html body .rp-page-heading h1{margin:0!important;font-size:28px!important;line-height:1.5!important;font-weight:650!important;letter-spacing:-.6px;}
html body :is(.rp-legacy-back,#legacyThemeToggleBtn){display:none!important;}
/* Remove button sheen, not the borders of glass panels or keyboard focus. */
html body :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card){background-image:none!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
html body :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card)::before,
html body :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card)::after{background:none!important;box-shadow:none!important;filter:none!important;}
html body :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card):hover{box-shadow:none!important;filter:none!important;}
.rp-mobile-admin{display:none;}
html body #siteTopBar #siteLanguageToggle{display:none!important;}
.rp-settings .rp-settings-group{width:100%;max-width:none;margin:0 0 28px;box-sizing:border-box;}
html body:has(.rp-settings){min-height:100dvh;box-sizing:border-box;}
html body:has(.rp-settings) #app{min-height:calc(100dvh - var(--rp-shell-height));}
html body #app main.rp-settings{min-height:calc(100dvh - var(--rp-shell-height) - 90px);}
.rp-settings .rp-settings-group h2{font-size:14px;font-weight:500;color:var(--rp-text-2);margin:0 0 12px;}
.rp-settings fieldset{margin:0;padding:0;border:0;border-radius:18px;background:var(--rp-surface);overflow:hidden;}
.rp-settings .rp-settings-option{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;cursor:pointer;font-size:15px;border-bottom:1px solid var(--rp-line);color:var(--rp-text);}
.rp-settings .rp-settings-option:last-child{border-bottom:0;}
.rp-settings input[type=radio]{width:18px;height:18px;accent-color:#007aff;cursor:pointer;flex-shrink:0;}
.rp-settings .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
/* Wide layouts follow the viewport instead of staying in a 900–1220px column.
   Dialogs and the compact bottom capsule keep their own intentional sizing. */
@media(min-width:1024px){
 html body{--rp-content:100%;--rp-shell-gutter:clamp(28px,2.5vw,64px);}
 html body #siteTopBar.site-top-bar{width:100%!important;max-width:none!important;padding-inline:var(--rp-shell-gutter)!important;}
 html body #app main.main-content,html body main.main-content{width:100%!important;max-width:none!important;box-sizing:border-box;padding-inline:var(--rp-shell-gutter)!important;}
 html body #homePage .home-shell,html body #myPage .my-page-shell.my-dashboard{width:100%!important;max-width:none!important;}
 html body .rp-page-heading{width:100%!important;max-width:none!important;padding-inline:var(--rp-shell-gutter)!important;}
 html body[data-workbench-page=support] .dm-app,html body[data-workbench-page=profile] .edit-profile-container{width:100%!important;max-width:none!important;box-sizing:border-box;}
 html body[data-workbench-page=profile] .edit-profile-container{padding-inline:var(--rp-shell-gutter)!important;}
}
html body:has(#homePage) #siteTopBar #rpCommonBack{display:none!important;}
html body #app :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card),html body #app :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card):hover{background-image:none!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;}
html body #app :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card)::before,html body #app :is(button,.btn-primary,.btn-secondary,.btn-danger,a[class*="btn"],.admin-submodule,.admin-group__summary,.admin-card)::after{background:none!important;box-shadow:none!important;filter:none!important;}
@media(max-width:650px){
 html body{--rp-shell-height:64px;}
 html body #siteTopBar.site-top-bar{padding:8px 12px!important;gap:0!important;}
 html body #siteTopBar .site-top-bar-brand img{width:100px!important;max-height:24px!important;}
 html body #siteTopBar .site-top-bar-brand{padding:0 4px!important;}
 html body #siteTopBar .site-top-bar-spacer{min-width:0!important;}
 html body #siteTopBar :is(.site-top-bar-btn,.site-account-button){width:32px!important;min-width:32px!important;height:34px!important;}
 html body .rp-page-heading{padding:18px 18px 0!important;}
 html body .rp-page-heading h1{font-size:24px!important;}
 html body[data-workbench-page=admin] #app .wb-admin-sidebar>button,html body[data-workbench-page=admin] #app .wb-admin-select{display:none!important;}
 .rp-mobile-admin{display:block;}
 .rp-mobile-admin h2{font-size:14px;font-weight:500;color:var(--rp-text-2);margin:0 0 14px;}
 .rp-mobile-admin-list{display:flex;flex-direction:column;gap:0;background:var(--rp-surface);border-radius:18px;overflow:hidden;}
 .rp-mobile-admin-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px!important;border:0!important;border-bottom:1px solid var(--rp-line)!important;background:none!important;color:var(--rp-text)!important;text-align:left;font:500 15px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif!important;border-radius:0!important;}
 .rp-mobile-admin-row:last-child{border-bottom:0!important;}.rp-mobile-admin-row>span:last-child{color:var(--rp-text-2);}
 html body[data-workbench-page=admin].rp-admin-module-open #app .wb-admin-sidebar{display:none!important;}
}
