/* RB3826 — coordinated secondary-page presentation. No hiding actions, no DOM or JS changes. */
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) {--rbsec-ink:#203751;--rbsec-muted:#667b93;--rbsec-border:#dce6f2;--rbsec-blue:#116bd3;}
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) :is(main,h1,h2,h3,section,article,form) {min-width:0;}
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) :is(h1,h2) {letter-spacing:-.025em;}
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) :is(.card,.panel,.surface,.settings-card,.profile-card,.contact-card) {border-color:var(--rbsec-border);box-shadow:0 4px 18px rgba(24,59,108,.035);}
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) :is(label) {font-weight:600;}
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {max-width:100%;min-width:0;}
body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"]) :is(button,[type="submit"],a.btn) {border-radius:10px;}
body.mail-app[data-path="/contacts"] :is(table,.contacts-table) {width:100%;}
body.mail-app[data-path="/contacts"] :is(th,td) {vertical-align:middle;padding-block:12px;}
body.mail-app[data-path="/contacts"] :is(tbody tr) {transition:background-color .14s ease;}
@media(hover:hover) {body.mail-app[data-path="/contacts"] :is(tbody tr):hover {background:#f4f8ff;}}
body.mail-app[data-path="/profile"] :is(.profile-card,.profile-panel,.rb-profile-section) {min-width:0;}
body.mail-app[data-path="/settings"] :is(.settings-group,.settings-section) {min-width:0;}
/* Admin pages retain their own layout and permissions; unify only form/table chrome. */
body.mail-app[data-path^="/admin"] {--rbsec-border:#dce6f2;--rbsec-muted:#647892;--rbsec-focus:#116bd3;}
body.mail-app[data-path^="/admin"] :is(main,section,article,form,.card,.panel,.surface) {min-width:0;}
body.mail-app[data-path^="/admin"] :is(h1,h2) {letter-spacing:-.025em;line-height:1.2;}
body.mail-app[data-path^="/admin"] :is(.card,.panel,.surface) {border-color:var(--rbsec-border);}
body.mail-app[data-path^="/admin"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {max-width:100%;min-width:0;border-radius:9px;}
body.mail-app[data-path^="/admin"] :is(button,[type="submit"],a.btn) {border-radius:9px;}
body.mail-app[data-path^="/admin"] :is(table) {width:100%;border-collapse:separate;border-spacing:0;}
body.mail-app[data-path^="/admin"] :is(th) {font-size:.83rem;font-weight:700;color:#526d89;}
body.mail-app[data-path^="/admin"] :is(th,td) {padding-block:11px;border-bottom:1px solid var(--rbsec-border);vertical-align:middle;}
body.mail-app[data-path^="/admin"] :is(tbody tr):last-child td {border-bottom-color:transparent;}
body.mail-app[data-path^="/admin"] :is(pre,code) {overflow-wrap:anywhere;}
body.mail-app[data-path^="/admin"] :is(button,a,input,textarea,select):focus-visible {outline:2px solid var(--rbsec-focus);outline-offset:2px;}
@media(max-width:767px) {
 body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"],[data-path^="/admin"]) :is(main,section,article) {max-width:100%;}
 body.mail-app:is([data-path="/contacts"],[data-path^="/admin"]) :is(table) {font-size:.88rem;}
 body.mail-app:is([data-path="/contacts"],[data-path^="/admin"]) :is(th,td) {padding-inline:8px;}
 body.mail-app:is([data-path="/contacts"],[data-path="/profile"],[data-path="/settings"],[data-path^="/admin"]) :is(input,select,textarea) {font-size:max(16px,1em);}
}
@media(prefers-reduced-motion:reduce) {body.mail-app[data-path="/contacts"] tbody tr {transition:none!important;}}
